.gallery_section {
    padding: 5%;
}

.gallery_section .row_contain {
    display: grid;
}

.gallery_section .row_type01 {
    grid-template-columns: 25% 50% 25%;
}

.gallery_section .row_type02 {
    grid-template-columns: 50% 25% 25%;
}

.gallery_section .row_type03 {
    grid-template-columns: repeat(3, 1fr);
}

.gallery_section .row_contain .gallery_image {
    position: relative;
    height: 450px;
    margin: 10px;
    overflow: hidden;
}

.gallery_section .row_contain .gallery_image:first-child {
    background: #006545;
}

.gallery_section .row_contain .gallery_image:last-child {
    background: #c81025;
}

.gallery_section img {
    position: absolute;
    top: 0;
    left: 0;
    transform: scale(1.1);
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: .25s;
}

.gallery_section .gallery_image:hover img {
    transform: scale(1.2);
    opacity: .8;
    cursor: pointer;
}

@media (max-width: 996px) {
    .gallery_section .row_type01,
    .gallery_section .row_type02,
    .gallery_section .row_type03 {
        grid-template-columns: 1fr;
    }
    .gallery_section .row_contain .gallery_image {
         height: fit-content;
     }

    .gallery_section img {
        position: initial;
        object-fit: initial;
    }
}


/* ---LIGHTBOX--- */

.lightbox_section {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    opacity: 0;
    visibility: hidden;
    z-index: 1;
    transition: .25s;
}

.lightbox_active {
    opacity: 1;
    visibility: visible;
}

.lightbox_section .lightbox_contain {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    border-radius: 10px;
    background: white;
    z-index: 1;
}

.lightbox_section .lightbox_contain h2 {
    color: white;
    position: absolute;
    top: -35px;
    right: 0;
    font-size: 20px;
    transition: .25s;
}

.lightbox_section .lightbox_contain h2:hover {
    cursor: pointer;
    color: #ffb000;
    letter-spacing: 2px;
}

.lightbox_section .lightbox_contain img {
    border-radius: 5px;
}

.lightbox_backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0000007d;
}

@media (max-width: 996px) {
    .lightbox_section {
        padding: 20px;
    }
}
