body {
    padding-top: 60px;
}

img {
    user-select: none;
}

.gallery_section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-height: calc(100vh - 60px);
    padding: 5% 3%;
    background-color: #686d59;
}

.gallery_section h1 {
    width: 100%;
    font-size: 2.3rem;
    color: #fff;
    text-align: center;
    margin-bottom: 25px;
}

.gallery_section .gallery_container {
    width: 100%;
    max-width: 1360px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gallery_section .gallery_container .row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
    max-width: 1360px;
    height: 370px;
    gap: 10px;
}

.gallery_section .gallery_container .col {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.gallery_section .gallery_container .col img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: .2s;
}

.gallery_section .gallery_container .col:hover img {
    transform: scale(1.1);
}

.gallery_section .gallery_container .col-2 {
    grid-column: span 2;
}

@media (max-width: 996px) {
    .gallery_section {
        padding: 10% 5%;
    }

    .gallery_section .gallery_container .row {
        grid-template-columns: 1fr;
        height: 900px;
    }

    .gallery_section .gallery_container .col-2 {
        grid-column: span 1;
    }
}

.image_popup {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, .5);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    z-index: 401;
    transition: .3s;
}

.image_popup.active {
    opacity: 1;
    visibility: visible;
}

.image_popup .close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 50px;
    height: 50px;
    border: none;
    outline: none;
    background-color: transparent;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
}

.image_popup .image {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 75%;
    height: 80%;
    transform: scale(.2);
    transition: .3s;
}

.image_popup.active .image {
    transform: scale(1);
}

.image_popup .image img {
    height: auto;
    max-height: 100%;
}

@media (max-width: 996px) {
    .image_popup .image img {
        width: 100%;
        height: auto;
    }
}