/**
 * Farbgescopte Produktbild-Lightbox (gallery-lightbox.js).
 * Ruhige, markennahe Großansicht; Bedienelemente dezent, Bild im Fokus.
 */

/* Body-Scroll sperren, solange die Lightbox offen ist. */
html.zwcl-lightbox-open {
	overflow: hidden;
}

.zwcl-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(12px, 4vw, 48px);
	background: rgba(20, 26, 33, 0.92); /* ZCF Ink, deckend genug fürs Herausheben */
}

.zwcl-lightbox[hidden] {
	display: none;
}

.zwcl-lightbox__stage {
	display: flex;
	align-items: center;
	justify-content: center;
	max-width: 100%;
	max-height: 100%;
}

.zwcl-lightbox__img {
	max-width: min(92vw, 1400px);
	max-height: 88vh;
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 4px;
	box-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
	background: #fff;
}

/* Bedienelemente */
.zwcl-lightbox__close,
.zwcl-lightbox__nav {
	position: absolute;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	cursor: pointer;
	transition: background 0.15s ease;
	-webkit-tap-highlight-color: transparent;
}

.zwcl-lightbox__close:hover,
.zwcl-lightbox__nav:hover {
	background: rgba(255, 255, 255, 0.25);
}

.zwcl-lightbox__close:focus-visible,
.zwcl-lightbox__nav:focus-visible {
	outline: 3px solid #C9A46A; /* ZCF Camel */
	outline-offset: 2px;
}

.zwcl-lightbox__close {
	top: 14px;
	right: 14px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	font-size: 1.7rem;
	line-height: 1;
}

.zwcl-lightbox__nav {
	top: 50%;
	transform: translateY(-50%);
	width: 52px;
	height: 52px;
	border-radius: 50%;
	font-size: 2rem;
	line-height: 1;
}

.zwcl-lightbox__nav--prev {
	left: 14px;
}

.zwcl-lightbox__nav--next {
	right: 14px;
}

.zwcl-lightbox__counter {
	position: absolute;
	bottom: 16px;
	left: 50%;
	transform: translateX(-50%);
	padding: 4px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	font-size: 0.85rem;
	letter-spacing: 0.02em;
}

@media (max-width: 600px) {
	.zwcl-lightbox__nav {
		width: 44px;
		height: 44px;
		font-size: 1.6rem;
	}
	.zwcl-lightbox__img {
		max-height: 80vh;
	}
}
