.glightbox-clean .gslide-image img {
    border-radius: 8px;
}

.glightbox-clean .gclose {
    font-size: 32px;
}

.glightbox-clean .gnext,
.glightbox-clean .gprev {
    opacity: 0.9;
}
/* Keep the custom thumbnail rail inside the lightbox viewport. */
.glightbox-container .gcontainer {
	position: relative;
}

.glightbox-container .gslide-description {
	position: relative;
	z-index: 25;
}


/* Keep the desktop lightbox approximately 20% smaller than the viewport. */
@media (min-width: 769px) {
    .glightbox-container .gslide-image {
        width: 80vw !important;
        max-width: 80vw !important;
        height: 76vh !important;
        max-height: 76vh !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 auto !important;
    }

    .glightbox-container .gslide-image img {
        width: auto !important;
        height: auto !important;
        max-width: 80vw !important;
        max-height: 76vh !important;
        object-fit: contain !important;
    }
}

/* Keep the thumbnail rail below the image and prevent it from covering the slide. */
.glightbox-container .gdgm-lightbox-thumbs {
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    width: min(80vw, 1500px);
    max-width: calc(100vw - 120px);
    z-index: 100000;
}
