/* =========================================================================
   towd — lightbox infographies (charte v3 « carnet »).
   Overlay encre semi-opaque, image pleine résolution centrée, pinch-zoom + pan
   NATIFS (touch-action:auto, aucun geste neutralisé). Croix palette carnet,
   zéro border-radius, zéro box-shadow douce.
   ========================================================================= */

/* --- Indice d'agrandissement sur la vignette inline (discret) --- */
.article-image.towd-lb-ready { position: relative; }

.article-image.towd-lb-ready img {
	cursor: zoom-in;                 /* indice desktop */
}

/* Petit tampon loupe, coin bas-droit — papier sur encre, carré, sans radius. */
.article-image.towd-lb-ready::after {
	content: '\1F50D';               /* 🔍 */
	position: absolute;
	right: 8px;
	bottom: 8px;
	width: 32px;
	height: 32px;
	line-height: 32px;
	text-align: center;
	font-size: 15px;
	color: #2b2419;                  /* encre */
	background: #f7f0e0;             /* papier */
	border: 1px solid #2b2419;       /* bordure encre nette */
	opacity: .9;
	pointer-events: none;            /* le tap va à l'image, pas au badge */
}

/* --- Overlay plein écran --- */
.towd-lb {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba( 43, 36, 25, .92 );   /* --ink semi-opaque */
	overscroll-behavior: contain;
	-webkit-tap-highlight-color: transparent;
}

/* Scène : centre l'image, laisse le navigateur gérer pinch-zoom + pan. */
.towd-lb__stage {
	max-width: 100%;
	max-height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	touch-action: auto;              /* pinch-zoom + pan natifs, non neutralisés */
	overscroll-behavior: contain;
}

.towd-lb__img {
	display: block;
	max-width: 100vw;
	max-height: 100vh;
	width: auto;
	height: auto;
	object-fit: contain;
	touch-action: auto;              /* geste navigateur intact */
	-webkit-user-select: none;
	user-select: none;
}

/* --- Croix de fermeture : papier sur encre, carrée, sans radius ni ombre --- */
.towd-lb__close {
	position: fixed;
	top: 12px;
	right: 12px;
	z-index: 1;
	width: 44px;
	height: 44px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	line-height: 1;
	color: #f7f0e0;                  /* papier */
	background: rgba( 43, 36, 25, .6 );
	border: 1px solid rgba( 247, 240, 224, .55 );  /* filet papier */
	border-radius: 0;
	box-shadow: none;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.towd-lb__close:hover,
.towd-lb__close:focus-visible {
	background: #b23a2e;             /* rouge tampon */
	border-color: #b23a2e;
	color: #f7f0e0;
	outline: 2px solid #f7f0e0;
	outline-offset: 2px;
}
