/* ---MAIN STYLES--- */

.main_section {
    padding: 10vw 10vw 0 10vw;
}

.main_section .main_box {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1vw;
}

.main_section .gallery_item {
    padding: 1vw 1vw 4vw 1vw;
    background: white;
    transition: .25s;
    cursor: pointer;
}

.main_section .gallery_item:hover {
    transform: scale(.98);
}

.main_section .media_box {
    position: relative;
    width: 100%;
    height: 18vw;
    transition: .25s;
    background: var(--cream-green);
}

@media (max-width: 996px) {
    .main_section {
        padding: 30vw 10vw 10vw 10vw;
    }
    .main_section .main_box {
        grid-template-columns: repeat(2, 1fr);
        gap: 3vw;
    }
    .main_section .gallery_item {
        padding: 2vw 2vw 10vw 2vw;
    }
    .main_section .media_box {
        height: 35vw;
    }
}


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

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: .25s;
    z-index: 100;
}

.lightbox_active {
    opacity: 1;
    pointer-events: inherit;
}

.lightbox .ti {
    position: absolute;
    top: 50%;
    font-size: 4vw;
    color: white;
    cursor: pointer;
    transition: .25s;
    z-index: 1;
}

.lightbox .ti-chevron-left {
    left: 5%;
}

.lightbox .ti-chevron-right {
    right: 5%;
}

.lightbox .ti:hover {
    color: var(--green);
}

.lightbox .media_box {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.lightbox .media_box img {
    max-width: 80vw;
    max-height: 80vh;
    object-fit: contain;
    animation: 1s zoomIn;
}

.lightbox .backdrop_box {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000A0;
    backdrop-filter: blur(.5vw);
    -webkit-backdrop-filter: blur(.5vw);
}

@media (max-width: 996px) {
    .lightbox .ti {
        top: 85%;
        font-size: 10vw;
    }
    .lightbox .ti-chevron-left {
        left: 35%;
    }
    .lightbox .ti-chevron-right {
        right: 35%;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}