@import url(../css/global.css);

 /* Masonry stlye gallery view styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.galleryContainer {
    padding-top: 100px;
    column-count: 3;
    column-gap: 0;
    width: 100vw;
}

.galleryItem {
    display: block;
    width: 100%; 
    margin-bottom: 0;
}

.galleryItem img {
    width: 100%;
    height: auto; 
    display: block;
}

/* Modal View Styling */

.modal {
    display: none; 
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    max-width: 80%;
    max-height: 80%;
    margin-right: 20px;
}

h5 {
    color: white;
    text-align: center;
    margin-top: 10px;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    color: white;
    cursor: pointer;
}

/* Responsive Style */ 

@media screen and (max-width: 705px) {
    .modal {
        display: flex;
        flex-flow: column;
    }
    .modal-content {
        max-width: 90%;
        max-height: 90%;
    }
    .modal h5 {
        font-size: 20px;
    }
}