/* #gallery {
  padding-top: 40px;
} */
/* @media screen and (min-width: 991px) {
  #gallery {
    padding: 60px 30px 0 30px;
  }
} */

.grid-container {
    /*display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 8px;
  height: 270px;
  overflow: hidden;*/
}

    .grid-container .gallery-main-img .img-wrapper {
        width: 100%;
        height: 184.5px;
        border-radius: 12PX;
        overflow: hidden;
        display: block;
    }

    .grid-container .gallery-thumb {
        cursor: grab;
        scrollbar-width: none;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        padding: 10px 0;
        width: 100%;
        overflow: auto;
    }

        .grid-container .gallery-thumb .thumb-box .img-wrapper {
            width: 80px;
            height: 80px;
            display: block;
            border-radius: 12px;
            overflow: hidden;
        }

            .grid-container .gallery-thumb .thumb-box .img-wrapper img {
                width: 100%;
                height: 100%;
                object-fit: cover;
            }

.img-wrapper {
    position: relative;
    height: 100%;
    /* margin-top: 15px; */
}

    .img-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.img-overlay {
    background: rgba(0, 0, 0, 0.7);
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
}

    .img-overlay i {
        color: #fff;
        font-size: 3em;
    }

#overlay {
    background: rgba(0, 0, 0, 0.7);
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

    #overlay img {
        margin: 0;
        width: 80%;
        height: auto;
        -o-object-fit: contain;
        object-fit: contain;
        padding: 5%;
    }


#nextButton {
    color: #fff;
    font-size: 2em;
    transition: opacity 0.8s;
}

    #nextButton:hover {
        opacity: 0.7;
    }


#prevButton {
    color: #fff;
    font-size: 2em;
    transition: opacity 0.8s;
}

    #prevButton:hover {
        opacity: 0.7;
    }


#exitButton {
    color: #fff;
    font-size: 2em;
    transition: opacity 0.8s;
    position: absolute;
    top: 15px;
    right: 15px;
}

    #exitButton:hover {
        opacity: 0.7;
    }
