.dl-slideshow {
	--dl-cur: var(--dl-h, 450px);
	position: relative;
	width: 100%;
	max-width: 100%;
	margin: 0 0 1.5em;
	background: var(--dl-bg, #f2f2f2);
	color: var(--dl-fg, #1d2327);
}
@media (max-width: 600px) {
	.dl-slideshow {
		--dl-cur: var(--dl-hm, 260px);
	}
}

.dl-slideshow:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

/* Toutes les slides sont empilées dans la même cellule de grille. */
.dl-slideshow .dl-viewport {
	display: grid;
	overflow: hidden;
	touch-action: pan-y;
}
.dl-slideshow .dl-slide {
	grid-area: 1 / 1;
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	border: 0;
}
.dl-slideshow:not(.dl-ready) .dl-slide:not(:first-child) {
	visibility: hidden;
}

/* Zone image : hauteur fixe, proportions conservées quelle que soit la résolution. */
.dl-slideshow .dl-media {
	height: var(--dl-cur);
	background: var(--dl-bg, #f2f2f2);
	overflow: hidden;
}
.dl-slideshow .dl-media .dl-img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	object-fit: contain;
	object-position: center;
}
.dl-slideshow.dl-fit-cover .dl-media .dl-img {
	object-fit: cover;
}

/* Spécificité renforcée : les thèmes stylent souvent « figcaption » (couleur, taille, marges). */
.dl-slideshow .dl-slide .dl-caption {
	margin: 0;
	padding: 0.6em 0.9em;
	background: none;
	color: var(--dl-fg, #1d2327) !important;
	font-size: var(--dl-cap, 14px) !important;
	font-style: normal;
	line-height: 1.4;
	text-align: center;
}

/* Flèches sur l'image, centrées verticalement sur la zone image. */
.dl-slideshow .dl-arrow {
	position: absolute;
	top: calc(var(--dl-cur) / 2);
	transform: translateY(-50%);
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 0;
	border-radius: 50%;
	line-height: 1;
	cursor: pointer;
	opacity: 0.85;
	transition: opacity 0.2s;
}
/* Couleurs imposées (y compris survol / focus) : les thèmes restylent souvent les boutons. */
.dl-slideshow .dl-arrow,
.dl-slideshow .dl-arrow:hover,
.dl-slideshow .dl-arrow:focus,
.dl-slideshow .dl-arrow:active {
	background: var(--dl-arrow-bg, rgba(0, 0, 0, 0.55)) !important;
	color: var(--dl-arrow, #fff) !important;
	border: 0 !important;
	box-shadow: none !important;
}
.dl-slideshow .dl-arrow:hover,
.dl-slideshow .dl-arrow:focus-visible {
	opacity: 1;
}
.dl-slideshow .dl-arrow:focus-visible {
	outline: 2px solid var(--dl-arrow, #fff);
	outline-offset: 2px;
}
.dl-slideshow .dl-arrow svg {
	display: block;
	pointer-events: none;
}
.dl-slideshow .dl-prev {
	left: 12px;
}
.dl-slideshow .dl-next {
	right: 12px;
}
.dl-slideshow:not(.dl-ready) .dl-arrow {
	display: none;
}

@media (prefers-reduced-motion: reduce) {
	.dl-slideshow .dl-slide {
		transition: none !important;
	}
}