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

.main_section {
    padding: 3vw;
}

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

.main_section .gallery_item {
    position: relative;
    display: flex;
    overflow: hidden;
    border-radius: 1vw;
    cursor: pointer;
}

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

.main_section .gallery_item:hover img {
    transform: scale(1.05);
    filter: blur(.1vw);
    opacity: .8;
}

.main_section .gallery_item i {
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5vw;
    opacity: 0;
    transition: .25s;
}

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

@media (max-width: 996px) {
    .main_section .main_box {
        grid-template-columns: repeat(2, 1fr);
        gap: 3vw;
    }
    .main_section .gallery_item {
        border-radius: 2vw;
    }
}


/* ---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 .media_box {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    cursor: pointer;
}

.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 .media_box img {
        max-width: 93vw;
    }
}