.ipl-image-gallery__container,
.ipl-image-gallery__header,
.ipl-image-gallery__slider {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ipl-image-gallery__slide {
	width: var(--slide-w, 72%);
}

@media (min-width: 768px) {
	.ipl-image-gallery__slide {
		width: var(--slide-w-md, 44%);
	}
}

@media (min-width: 1024px) {
	.ipl-image-gallery__slide {
		width: var(--slide-w-lg, 28%);
	}
}

/* WIDE MODE */

.ipl-image-gallery[data-ipl-mode="wide"] .ipl-image-gallery__slide {
	width: 86%;
}

@media (min-width: 768px) {

	.ipl-image-gallery[data-ipl-mode="wide"] .ipl-image-gallery__slide {
		width: 60%;
	}

}

@media (min-width: 1024px) {

	.ipl-image-gallery[data-ipl-mode="wide"] .ipl-image-gallery__slide {
		width: 60%;
	}

}

/* Image styling */

.ipl-image-gallery__title {
    color: #1F2937;
}

.ipl-image-gallery__img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: .25rem;
}
.ipl-image-gallery__pagination {
    display: none;
}
.ipl-image-gallery__nav-wrapper {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}
.ipl-image-gallery__nav-wrapper .swiper-button-prev,
.ipl-image-gallery__nav-wrapper .swiper-button-next {
    align-items: center;
    background: #fff;
    border: 1px solid #4B5563;
    border-radius: .5rem;
    display: flex;
    height: 2.5rem;
    justify-content: center;
    position: static;
    width: 2.5rem;
}

.ipl-image-gallery__nav-wrapper .swiper-button-prev::after,
.ipl-image-gallery__nav-wrapper .swiper-button-next::after {
    color: #4B5563;
    font-size: 14px;
}

.gslide-image img {
    border-radius: .5rem;
}
.glightbox-clean .gclose,
.glightbox-clean .gnext,
.glightbox-clean .gprev {
    background: #fff;
}
.glightbox-clean .gclose path,
.glightbox-clean .gnext path,
.glightbox-clean .gprev path {
    fill: #000000;
}
.glightbox-clean .gclose:hover path,
.glightbox-clean .gnext:hover path,
.glightbox-clean .gprev:hover path {
    fill: #fff;
}
/* .glightbox-clean .gprev {
    top: 75%;
    left: 40%;
}
.glightbox-clean .gnext {
    top: 75%;
    right: 40%;
} */


.ipl-image-gallery__lightbox {
	display: block;
	width: 100%;
	overflow: hidden;
}
.ipl-image-gallery__slide--portrait .ipl-image-gallery__lightbox {
	aspect-ratio: 9 / 16;
}
.ipl-image-gallery__slide--wide .ipl-image-gallery__lightbox {
	aspect-ratio: 16 / 9;
}
.ipl-image-gallery__slide--normal .ipl-image-gallery__lightbox {
	aspect-ratio: 4 / 3;
}
.ipl-image-gallery__img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
}
.ipl-image-gallery__slide--wide .ipl-image-gallery__img {
    object-fit: unset;
}

@media (max-width: 768px) {
    .glightbox-clean .gslide-image {
        align-items: center;
        display: flex;
        justify-content: center;
        width: 100%;
    }
    .glightbox-clean .gslide-image img {
        display: block;
        margin: 0 auto;
        max-height: 85vh;
        object-fit: contain;
    }
    .glightbox-clean .gslide.is-portrait .gslide-image img {
        height: 70vh;
        width: auto;
        max-width: calc(100vw - 32px);
    }
    .glightbox-clean .gslide.is-landscape .gslide-image img {
        height: auto;
        width: calc(100vw - 8px);
        max-height: 85vh;
        max-width: calc(100vw - 8px);
    }
    .glightbox-clean .gslide.is-square .gslide-image img {
        height: auto;
        max-height: 80vh;
        max-width: calc(100vw - 32px);
        width: auto;
    }
    .glightbox-clean .gclose {
        top: 16px;
        right: 16px;
    }
    .glightbox-clean .gprev {
        top: 90%;
        left: 38%;
    }
    .glightbox-clean .gnext {
        top: 90%;
        right: 38%;
    }
}