/* -------------------------------------------------------------------
 * Visionneuse plein écran (lightbox) partagée : utilisée par le Slider
 * (diapositives avec "Visionneuse activée") et par la Case libre EAsymage
 * (image d'arrière-plan cliquable, réglage "Visionneuse"), qu'elle soit
 * utilisée comme diapositive du Slider ou en sous-conteneur autonome.
 * ------------------------------------------------------------------- */
.easymage-slide.has-lightbox,
.easymage-slide-free.has-lightbox {
	cursor: zoom-in;
}

body.easymage-lightbox-open {
	overflow: hidden;
}

.easymage-lightbox {
	position: fixed !important;
	inset: 0 !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	z-index: 2147483000 !important;
	display: none;
	background: rgba( 0, 0, 0, 0.92 );
	box-sizing: border-box !important;
}
.easymage-lightbox.is-open {
	display: block !important;
}

.easymage-lightbox-bg {
	position: absolute !important;
	inset: -30px;
	background-size: cover;
	background-position: center;
	filter: blur( 35px );
	transform: scale( 1.15 );
	z-index: 0;
}

.easymage-lightbox-overlay {
	position: absolute !important;
	inset: 0;
	z-index: 0;
	pointer-events: none;
}

/* Ligne flex : flèche gauche / image / flèche droite. Le centrage vertical
   des flèches est naturel (align-items), sans aucun calcul top:50%+transform
   qui pourrait se recalculer incorrectement lors d'un changement d'image. */
.easymage-lightbox-row {
	position: relative !important;
	z-index: 1;
	display: flex !important;
	flex-direction: row !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;
	gap: 12px;
	padding: 70px 16px 16px;
	box-sizing: border-box !important;
}

.easymage-lightbox-stage {
	position: relative !important;
	flex: 1 1 auto !important;
	min-width: 0;
	max-width: 85vw;
	max-height: 85vh;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	margin: 0 !important;
	float: none !important;
}

.easymage-lightbox-img {
	max-width: 85vw;
	max-height: 85vh;
	width: auto;
	height: auto;
	object-fit: contain;
	box-shadow: 0 20px 60px rgba( 0, 0, 0, 0.5 );
	border-radius: 4px;
}

.easymage-lightbox-close,
.easymage-lightbox-nav {
	z-index: 2 !important;
	pointer-events: auto !important;
	background: rgba( 255, 255, 255, 0.12 );
	color: #fff;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	margin: 0 !important;
	float: none !important;
	box-sizing: border-box !important;
	transition: background 0.2s ease;
}
.easymage-lightbox-close:hover,
.easymage-lightbox-nav:hover {
	background: rgba( 255, 255, 255, 0.25 );
}

.easymage-lightbox-close {
	position: absolute !important;
	top: 20px !important;
	right: 20px !important;
	left: auto !important;
	bottom: auto !important;
	width: 44px !important;
	height: 44px !important;
	font-size: 26px;
	line-height: 1;
}

.easymage-lightbox-nav {
	/* Élément de la ligne flex, pas de position absolue : reste toujours
	   correctement centré verticalement, quelle que soit la taille de l'image. */
	position: static !important;
	flex: 0 0 auto !important;
	width: 54px !important;
	height: 54px !important;
	font-size: 32px;
	line-height: 1;
}

@media ( max-width: 600px ) {
	.easymage-lightbox-row {
		gap: 4px;
		padding: 60px 4px 4px;
	}
	.easymage-lightbox-nav {
		width: 38px;
		height: 38px;
		font-size: 22px;
	}
	.easymage-lightbox-close {
		width: 38px;
		height: 38px;
		font-size: 20px;
		top: 10px;
		right: 10px;
	}
}
