/* ---GALLERY STYLES--- */

.gallery_section {
    padding: 10%;
}

.gallery_section .gallery_box {
    display: flex;
    flex-direction: column;
    gap: .5vw;
}

.gallery_section .gallery_row {
    display: grid;
    gap: .5vw;
}

.gallery_section .gallery_row .gallery_item:nth-child(1) {
    grid-area: a;
}

.gallery_section .gallery_row .gallery_item:nth-child(2) {
    grid-area: b;
}

.gallery_section .gallery_row .gallery_item:nth-child(3) {
    grid-area: c;
}

.gallery_section .gallery_row .gallery_item:nth-child(4) {
    grid-area: d;
}

.gallery_section .gallery_row .gallery_item:nth-child(5) {
    grid-area: e;
}

.gallery_section .type_one {
    grid-template-areas: "a a b c";
}

.gallery_section .type_one.inverse {
    grid-template-areas: "a b c c";
}

.gallery_section .type_two {
    grid-template-areas: "a a d d" "b c d d";
}

.gallery_section .type_three {
    grid-template-areas: "a b e e" "c d e e";
}

.gallery_section .gallery_item {
    overflow: hidden;
    cursor: pointer;
}

.gallery_section .gallery_item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .5s;
    transform: scale(1);
}

.gallery_section .gallery_item:hover img {
    filter: brightness(0.8);
    
}

@media (max-width: 996px) {
    .gallery_section {
        padding: 20% 5%;
    }
    .gallery_section .gallery_box {
        gap: 1vw;
    }
    .gallery_section .gallery_row {
        gap: 1vw;
    }
}


/* ---LIGHTBOX STYLES--- */

.lightbox_section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transition: .25s;
}

.lightbox_section.active {
    opacity: 1;
    pointer-events: inherit;
}

.lightbox_section .media_box {
    display: table;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-height: 95vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    overflow: hidden;
}

.lightbox_section .media_box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lightbox_section .backdrop {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #00000090;
    backdrop-filter: blur(.2vw);
    -webkit-backdrop-filter: blur(.2vw);
}

@media (max-width: 996px) {
    .lightbox_section .media_box {
        width: 90%;
    }
}