/* ---GALLERY STYLES--- */

.gallery_section {
    padding: 10%;
}

.gallery_section .gallery_box {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2vw;
}

.gallery_section .gallery_item {
    position: relative;
    width: 100%;
    height: 15vw;
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
    transition: .25s;
}

.gallery_section .gallery_item:hover {
    transform: scale(1.02);
}

.gallery_section .gallery_item img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - .9vw);
    height: calc(100% - .9vw);
    object-fit: cover;
    object-position: center;
    transition: .25s;
}

@media (max-width: 996px) {
    .gallery_section {
        padding: 20% 10%;
    }

    .gallery_section .gallery_box {
        grid-template-columns: 1fr;
        gap: 5vw;
    }

    .gallery_section .gallery_item {
        height: 45vw;
    }

    .gallery_section .gallery_item img {
        width: calc(100% - 2vw);
        height: calc(100% - 2vw);
    }
}


/* ---LIGHTBOX STYLES--- */

.lightbox_section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    opacity: 0;
    pointer-events: none;
    transition: .25s;
    z-index: 99;
}

.lightbox_section .blur_box {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #101010cd;
    backdrop-filter: blur(.25vw);
}

.lightbox_active {
    opacity: 1;
    pointer-events: initial;
}

.lightbox_section .lightbox_box {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.lightbox_section .lightbox_box i {
    color: var(--yellow);
    position: absolute;
    font-size: 3vw;
    transform: translateY(-50%);
    z-index: 1;
}

.lightbox_section .lightbox_box :hover {
    color: var(--white);
}

.lightbox_section .prev_modal {
    top: 50%;
    left: 5%;
}

.lightbox_section .next_modal {
    top: 50%;
    right: 5%;
}

.lightbox_box .modal_box {
    position: relative;
    width: 70%;
    z-index: 1;
}

.lightbox_box .modal_box img {
    width: 100%;
    height: 100%;
}

@media (max-width: 996px) {
    .lightbox_section .lightbox_box i {
        font-size: 7vw;
    }

    .lightbox_section .prev_modal {
        left: 2%;
    }

    .lightbox_section .next_modal {
        right: 2%;
    }

    .lightbox_box .modal_box {
        width: 80%;
    }
}