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

.main_section {
    padding: 2.5vw 5vw;
}

.main_section .main_box {
    display: flex;
    flex-direction: column;
    gap: 1vw;
}

.main_section .gallery_row {
    display: grid;
    gap: 1vw;
}

.main_section .gallery_row:nth-child(1) {
    grid-template-areas: "a a b c" "a a d d";
}

.main_section .gallery_row:nth-child(2) {
    grid-template-areas: "a b b c" "d b b c";
}

.main_section .gallery_row:nth-child(3) {
    grid-template-areas: "a b c c" "a b d e";
}

.main_section .gallery_row:nth-child(4) {
    grid-template-areas: "a a b b" "c c b b";
}

.main_section .gallery_row:nth-child(5) {
    grid-template-areas: "a b c d" "a e f d";
}

.main_section .gallery_item {
    position: relative;
    display: flex;
    overflow: hidden;
    cursor: pointer;
}

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

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

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

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

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

.main_section .gallery_item:nth-child(6) {
    grid-area: f;
}

.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;
}


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

.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);
}