.diaporama-chrono {
	position: relative;
	margin: 2em 0;
}
.diaporama-track {
	display: flex;
	gap: 1.5em;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scroll-behavior: smooth;
	padding: 0.5em 0.25em 2.5em;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin; /* Firefox */
	scrollbar-color: rgba(0, 0, 0, 0.45) rgba(0, 0, 0, 0.08); /* Firefox */
}
.diaporama-track::-webkit-scrollbar {
	height: 10px;
}
.diaporama-track::-webkit-scrollbar-track {
	background: rgba(0, 0, 0, 0.08);
	border-radius: 6px;
}
.diaporama-track::-webkit-scrollbar-thumb {
	background: rgba(0, 0, 0, 0.45);
	border-radius: 6px;
}
.diaporama-track::-webkit-scrollbar-thumb:hover {
	background: rgba(0, 0, 0, 0.65);
}
.diaporama-item {
	flex: 0 0 auto;
	scroll-snap-align: start;
	margin: 0;
	text-align: center;
}
.diaporama-item img {
	height: 65vh;
	max-height: 620px;
	min-height: 320px;
	width: auto;
	max-width: none;
	display: block;
	border-radius: 2px;
}
.diaporama-item figcaption {
	margin-top: 0.5em;
	font-size: 0.85em;
	color: #666;
	letter-spacing: 0.03em;
}

.diaporama-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	outline: none;
	margin: 0;
	color: rgba(255, 255, 255, 0.9);
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65), 0 0 14px rgba(0, 0, 0, 0.35);
	font-size: 3.5em;
	line-height: 1;
	padding: 0.15em 0.35em;
	cursor: pointer;
	z-index: 3;
	opacity: 0.65;
	transition: opacity 0.2s ease;
}
.diaporama-nav:hover,
.diaporama-nav:focus-visible {
	opacity: 1;
}
.diaporama-prev { left: 0.25em; }
.diaporama-next { right: 0.25em; }

@media screen and (max-width: 480px) {
	.diaporama-nav {
		display: none; /* le glisser tactile suffit sur mobile */
	}
}

@media screen and (max-width: 480px) {
	.diaporama-item img {
		height: 42vh;
		min-height: 220px;
	}
}

/* Page plein écran : ne garde que les images du diaporama et la barre
   de défilement, sans bandeau, titre, marges ni pied de page. */
body.diaporama-pleine-page {
	margin: 0;
	background: #fff;
}
body.diaporama-pleine-page .sidebar,
body.diaporama-pleine-page .entry-header,
body.diaporama-pleine-page .entry-footer,
body.diaporama-pleine-page .post-thumbnail,
body.diaporama-pleine-page .site-footer {
	display: none !important;
}
body.diaporama-pleine-page .site,
body.diaporama-pleine-page .site-content,
body.diaporama-pleine-page .content-area,
body.diaporama-pleine-page .site-main,
body.diaporama-pleine-page article,
body.diaporama-pleine-page .entry-content {
	margin: 0 !important;
	padding: 0 !important;
	width: 100% !important;
	max-width: none !important;
}
body.diaporama-pleine-page .site-content:before {
	display: none !important;
}
body.diaporama-pleine-page .diaporama-chrono {
	margin: 0;
}
body.diaporama-pleine-page .diaporama-track {
	height: 100vh;
	align-items: center;
	width: 100%;
	padding: 0 2vw 2.5em;
	gap: 2vw;
}
body.diaporama-pleine-page .diaporama-item img {
	height: calc(100vh - 5.5em);
	max-height: calc(100vh - 5.5em);
	min-height: 200px;
}
body.diaporama-pleine-page .diaporama-item figcaption {
	font-size: 0.9em;
	color: #555;
}
body.diaporama-pleine-page .diaporama-nav {
	font-size: 4.5em;
}

@media screen and (max-width: 480px) {
	body.diaporama-pleine-page .diaporama-track {
		align-items: flex-start;
	}
	body.diaporama-pleine-page .diaporama-item img {
		height: calc(100vh - 5em);
		max-height: calc(100vh - 5em);
		min-height: 160px;
	}
}
