/* Lightbox globale — images du contenu question/réponse (tous modèles FAQ) */

.faq-img-zoomable {
	cursor: zoom-in;
}

#faq-image-lightbox {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	flex-direction: column;
	box-sizing: border-box;
	background: rgba(0, 0, 0, 0.82);
}

#faq-image-lightbox.faq-lightbox-open {
	display: flex;
}

#faq-image-lightbox-close {
	position: absolute;
	top: 12px;
	right: 16px;
	width: 44px;
	height: 44px;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.95);
	color: #222;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
	z-index: 2;
}

#faq-image-lightbox-close:hover {
	background: #fff;
}

#faq-image-lightbox-close:focus {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

#faq-image-lightbox-toolbar {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 12px 56px 8px;
	flex-shrink: 0;
}

#faq-image-lightbox-toolbar button {
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	border: none;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.95);
	color: #222;
	font-size: 22px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

#faq-image-lightbox-toolbar button:hover {
	background: #fff;
}

#faq-image-lightbox-toolbar button:focus {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

#faq-image-lightbox-toolbar button:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

#faq-lightbox-zoom-label {
	min-width: 4.5em;
	text-align: center;
	font-size: 14px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.95);
	letter-spacing: 0.02em;
}

#faq-lightbox-zoom-reset {
	font-size: 20px;
	font-weight: 600;
	padding-top: 2px;
}

.faq-lightbox-viewport {
	flex: 1;
	min-height: 0;
	width: 100%;
	overflow: auto;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 8px 16px 20px;
	box-sizing: border-box;
	-webkit-overflow-scrolling: touch;
}

.faq-lightbox-viewport img {
	display: block;
	margin: auto;
	width: auto;
	height: auto;
	max-width: none;
	max-height: none;
	object-fit: contain;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
	border-radius: 4px;
	cursor: grab;
}

.faq-lightbox-viewport img:active {
	cursor: grabbing;
}
