.mdd-slider {
	position: relative;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	overflow: hidden;
}

.mdd-viewport {
	position: relative;
	width: 100%;
	overflow: hidden;
	touch-action: pan-y;
}

.mdd-size-ratio .mdd-viewport {
	aspect-ratio: var(--mdd-ratio, 16 / 9);
}

.mdd-size-fixed .mdd-viewport {
	height: var(--mdd-height, 400px);
}

.mdd-slide {
	position: absolute;
	inset: 0;
	margin: 0;
	visibility: hidden;
}

.mdd-slide.is-active,
.mdd-slide.is-leaving {
	visibility: visible;
}

.mdd-link {
	display: block;
	width: 100%;
	height: 100%;
}

.mdd-img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: var(--mdd-fit, cover);
	user-select: none;
	-webkit-user-drag: none;
}

/* Défilement horizontal */
.mdd-mode-slide .mdd-slide {
	transition: transform var(--mdd-speed, 600ms) ease;
}

/* Fondu enchaîné */
.mdd-mode-fade .mdd-slide {
	opacity: 0;
	transition: opacity var(--mdd-speed, 600ms) ease;
}

.mdd-mode-fade .mdd-slide.is-active {
	opacity: 1;
	z-index: 2;
}

.mdd-mode-fade .mdd-slide.is-leaving {
	z-index: 1;
}

/* Légende */
.mdd-caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 3;
	padding: 2.5rem 1rem 2.75rem;
	color: #fff;
	font-size: 1.1rem;
	line-height: 1.3;
	background: linear-gradient(to top, rgba(0, 0, 0, .65), rgba(0, 0, 0, 0));
	pointer-events: none;
}

/* Contrôles */
.mdd-arrow,
.mdd-toggle {
	position: absolute;
	z-index: 5;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	color: #fff;
	background: rgba(0, 0, 0, .45);
	cursor: pointer;
}

.mdd-arrow:hover,
.mdd-toggle:hover {
	background: rgba(0, 0, 0, .7);
}

.mdd-arrow {
	top: 50%;
	transform: translateY(-50%);
}

.mdd-prev {
	left: .75rem;
}

.mdd-next {
	right: .75rem;
}

.mdd-toggle {
	top: .75rem;
	right: .75rem;
	width: 36px;
	height: 36px;
}

.mdd-toggle::before {
	content: "";
	width: 10px;
	height: 12px;
	border-left: 3px solid #fff;
	border-right: 3px solid #fff;
}

.mdd-toggle[aria-pressed="true"]::before {
	width: 0;
	height: 0;
	border-left: 10px solid #fff;
	border-right: 0;
	border-top: 6px solid transparent;
	border-bottom: 6px solid transparent;
}

.mdd-dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: .75rem;
	z-index: 5;
	display: flex;
	justify-content: center;
	gap: .6rem;
}

.mdd-dot {
	position: relative;
	width: 12px;
	height: 12px;
	padding: 0;
	border: 2px solid #fff;
	border-radius: 50%;
	background: rgba(0, 0, 0, .35);
	cursor: pointer;
}

.mdd-dot::after {
	content: "";
	position: absolute;
	inset: -8px;
}

.mdd-dot.is-active {
	background: #fff;
}

.mdd-arrow:focus-visible,
.mdd-toggle:focus-visible,
.mdd-dot:focus-visible,
.mdd-link:focus-visible {
	outline: 3px solid #fff;
	outline-offset: -3px;
	box-shadow: 0 0 0 5px rgba(0, 0, 0, .6);
}

.mdd-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (max-width: 575.98px) {
	.mdd-arrow {
		width: 36px;
		height: 36px;
	}

	.mdd-caption {
		font-size: .95rem;
		padding: 2rem .75rem 2.5rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mdd-slide {
		transition-duration: .01ms !important;
	}
}
