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

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

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

.main_section .gallery_item {
    height: 22vw;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: .5vw;
    overflow: hidden;
    cursor: pointer;
}

.main_section .gallery_item i {
    position: absolute;
    color: white;
    font-size: 3vw;
    animation: scale 1s alternate infinite;
    opacity: 0;
    transition: .25s;
    z-index: 1;
}

.main_section .gallery_item:hover i {
    opacity: 1;
}

.main_section .gallery_item img {
    transition: .25s;
}

.main_section .gallery_item:hover img {
    transform: scale(1.05);
    filter: blur(.15vw);
    -webkit-filter: blur(.15vw);
    opacity: .5
}

@media (max-width: 996px) {
    .main_section {
        padding: 40vw 10vw 10vw 10vw;
    }
    .main_section .main_box {
        grid-template-columns: repeat(2, 1fr);
        gap: 5vw;
    }
    .main_section .gallery_item {
        height: 37vw;
        border-radius: 1vw;
    }
    .main_section .gallery_item i {
        font-size: 6vw;
    }
}


/* ---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(--yellow);
}


.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;
    animation: .5s 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:75%;
        font-size: 10vw;
    }
    .lightbox .ti-chevron-left {
        left: 35%;
    }
    .lightbox .ti-chevron-right {
        right: 35%;
    }
}