.images-gallery-widget {
    max-width: 100%;
    width: 100%;
    margin: auto;
    text-align: center;
}

.images-gallery-widget .gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 17px;
    align-items: stretch;
}

.images-gallery-widget .gallery-item-wrapper {
    position: relative;
    overflow: hidden;
/*     border-radius: 4px; */
}

.images-gallery-widget .gallery-grid img {
    width: 100%;
    max-width: 100%;
    height: 100%;
    margin-bottom: 17px;
    break-inside: avoid;
    display: block;
    transition: 0.3s ease;
    cursor: pointer;
    object-fit: cover;
}

.images-gallery-widget .gallery-grid img:hover {
    transform: scale(1.03);
    transition: 0.3s ease;
}
.slide-caption{
	color: white !important;
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.5), transparent);
    color: #ffffff;
    padding: 40px 12px 12px 12px;
    font-size: 14px;
    font-family: inherit;
    font-weight: 500;
    text-align: center;
/* 	color: white; */
    letter-spacing: 0.3px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
    z-index: 2;
}


.gallery-item-wrapper:hover .image-caption {
    opacity: 1;
}

.gallery-item-wrapper.touch-active .image-caption {
    opacity: 1;
}

.gallery-item:focus {
    outline: 2px solid #0073e6;
    outline-offset: 2px;
}
.gallery-item-wrapper{
    position: relative;
}

.image-hover-icon{
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px !important;
    height: 40px !important;
    opacity: 0;
    transition: opacity .3s ease;
    z-index: 3;
    pointer-events: none;
}

.gallery-item-wrapper:hover .image-hover-icon{
    opacity: 1;
}

.gallery-item-wrapper.touch-active .image-hover-icon{
    opacity: 1;
}

/* LIGHTBOX */
.images-gallery-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .9);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999999;
}

.images-gallery-lightbox .lightbox-content {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 920px;
    max-height: 70vh;
    height: 100%;
    width: 100%;
    position: relative;
}

.images-gallery-lightbox .lightbox-image {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
}

.images-gallery-lightbox .close {
    position: absolute;
    top: -10px;
    right: -27px;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
}

.images-gallery-lightbox .prev,
.images-gallery-lightbox .next {
    background: none;
    border: none;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

/* THUMBNAILS */
.images-gallery-lightbox .thumbnails-box {
    display: flex;
    gap: 65px;
    max-width: 920px;
    align-items: center;
}

.images-gallery-lightbox .thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    overflow-x: auto;
    max-width: 900px;
}

.images-gallery-lightbox .thumbnails img {
    max-width: 120px;
    width: 100%;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    opacity: .6;
}

.images-gallery-lightbox .thumbnails img.active {
    opacity: 1;
    border: 2px solid white;
}

/* Tablet */
@media(max-width: 1025px) {
    .images-gallery-widget .gallery-grid {
        gap: 10;
    }
    .images-gallery-widget .gallery-grid img {
        margin-bottom: 10px;
    }
}

@media (max-width: 992px) {
    .images-gallery {
        padding: 30px 20px;
    }
    .images-gallery .gallery-grid {
        column-count: 2;
    }
}

@media (max-width: 768px) {
    .images-gallery-widget .gallery-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .images-gallery-lightbox {
        height: calc(100% - 94px);
    }

    .images-gallery .gallery-grid {
        column-count: 1;
    }
    
    .images-gallery-widget .gallery-grid {
        column-count: 1;
    }

    .images-gallery-lightbox .lightbox-content {
        max-width: 90%;
    }

    .images-gallery-lightbox .lightbox-image {
        max-height: 60vh;
    }

    .images-gallery-lightbox .thumbnails-box {
        max-width: 90%;
    }

    .images-gallery-lightbox .thumbnails img {
        max-width: 90px;
        height: 60px;
    }

    .images-gallery-lightbox .thumbnails {
        overflow-x: auto;
        scrollbar-width: none;
    }

    .images-gallery-lightbox .thumbnails::-webkit-scrollbar {
        display: none;
    }

    .images-gallery-lightbox .close {
        position: absolute;
        right: 10px;
        font-size: 30px;
        color: #fff;
        cursor: pointer;
    }
    
    .images-gallery-widget .gallery-grid img {
        height: 190px;
        object-fit: cover;
        margin-bottom: 10px;
    }
    
 
    .image-caption {
        font-size: 12px;
        padding: 30px 10px 10px 10px;
    }
}