/* Divi's own "et_flex_group" class (applied to the same element as .swiper when the
   carousel sits inside a Divi Group module) sets display:flex on the outer container,
   which fights Swiper's own sizing — Swiper expects the outer .swiper element to be a
   plain block, only .swiper-wrapper should be flex. */
.swiper.fdr-festival-gallery {
	display: block !important;
}

.fdr-festival-gallery .fdr-slide img {
	border-radius: var(--fed-radius);
}

/* Nav arrows — small white circular buttons, top-right of the slider (replaces
   Swiper's default side-centered placement), keeping Swiper's own arrow glyph. */
.fdr-festival-gallery .swiper-button-prev,
.fdr-festival-gallery .swiper-button-next {
	top: 16px;
	bottom: auto;
	width: 36px;
	height: 36px;
	margin-top: 0;
	background: var(--fed-white);
	border-radius: 999px;
	box-shadow: var(--fed-shadow-sm);
	color: var(--fed-navy);
   border: none;
}
.fdr-festival-gallery .swiper-button-prev:after,
.fdr-festival-gallery .swiper-button-next:after {
	font-size: 14px;
	font-weight: 700;
}
.fdr-festival-gallery .swiper-button-next {
	right: 16px;
	left: auto;
}
.fdr-festival-gallery .swiper-button-prev {
	right: 60px;
	left: auto;
}
.fdr-festival-gallery .swiper-button-prev.swiper-button-disabled,
.fdr-festival-gallery .swiper-button-next.swiper-button-disabled {
	opacity: 0.35;
}

/* [federcori-festival-gallery] renders nothing when the festival_gallery repeater has no
   images, so its Divi sidebar wrapper is left with no .swiper-slide descendant — hide it. */
.fdr-festival-sidebar-gallery:not(:has(.swiper-slide)) {
	display: none !important;
}

.fdr-festival-gallery .slider-cori-in-corso .swiper-slide img {
    aspect-ratio: 16/9 !important;
    object-fit: cover !important;
}