/* Diaporamas (en-tête et galeries) — reprennent le rendu de l'ancien slider Huge-IT */
.balct-slideshow {
	position: relative;
	max-width: 100%;
	margin: 0 auto;
	overflow: hidden;
}
.balct-slideshow--header {
	width: 350px;
	height: 180px;
}
.balct-slideshow--gallery {
	width: 600px;
	aspect-ratio: 600 / 375;
	margin-bottom: 24px;
	background: #fff;
}
.balct-slide {
	position: absolute;
	inset: 0;
	margin: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 1s ease, visibility 0s linear 1s;
}
/* Seule la diapo affichée est au premier plan et cliquable */
.balct-slide.is-active {
	z-index: 1;
	opacity: 1;
	visibility: visible;
	transition: opacity 1s ease;
}
.balct-prev,
.balct-next,
.balct-dots,
.balct-counter {
	z-index: 2;
}
.balct-slide a {
	display: block;
	height: 100%;
}
.balct-slide img {
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	border-radius: 0;
	box-shadow: none;
}
.balct-slide figcaption {
	position: absolute;
	top: 5px;
	right: 10px;
	max-width: 30%;
	padding: 5px 7px;
	background: rgba(255, 255, 255, 0.8);
	border-radius: 4px;
	color: #000;
	font-size: 13px;
	font-weight: bold;
	line-height: 1.1;
	text-align: right;
}
.balct-prev,
.balct-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 36px;
	height: 36px;
	padding: 0 0 4px;
	background: rgba(0, 0, 0, 0.35);
	border: 0;
	border-radius: 50%;
	box-shadow: none;
	color: #fff;
	font-size: 32px;
	line-height: 1;
	cursor: pointer;
}
.balct-prev:hover,
.balct-next:hover {
	background: rgba(0, 0, 0, 0.6);
}
.balct-prev { left: 6px; }
.balct-next { right: 6px; }
.balct-dots {
	position: absolute;
	top: 8px;
	left: 0;
	right: 0;
	text-align: center;
}
.balct-dots button {
	width: 10px;
	height: 10px;
	margin: 0 12px;
	padding: 0;
	background: #000;
	border: 0;
	border-radius: 50%;
	box-shadow: none;
	cursor: pointer;
}
.balct-dots button.is-active {
	background: #fff;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5);
}

/* Galeries : photo entière (portrait ou paysage), sans recadrage */
.balct-slideshow--gallery .balct-slide img {
	object-fit: contain;
}
.balct-slideshow--gallery .balct-slide figcaption {
	top: auto;
	bottom: 10px;
	max-width: 60%;
	font-weight: normal;
}
.balct-counter {
	position: absolute;
	top: 8px;
	left: 50%;
	transform: translateX(-50%);
	padding: 2px 8px;
	background: rgba(0, 0, 0, 0.5);
	border-radius: 10px;
	color: #fff;
	font-size: 12px;
}
