/* MARCH PUMPEN – Bild-Vergrößerung (assets/js/lightbox.js) */

.zoomable {
	position: relative;
	display: block;
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	line-height: 0;
	cursor: zoom-in;
}
.zoomable > img { transition: transform .5s var(--ease); }
.zoomable__hint {
	position: absolute;
	right: .6rem;
	bottom: .6rem;
	display: grid;
	place-items: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: .25rem;
	background: rgba(5, 15, 26, .78);
	color: #fff;
	opacity: .85;
	transition: background-color .2s, opacity .2s;
}
.zoomable:hover .zoomable__hint,
.zoomable:focus-visible .zoomable__hint { background: var(--color-blue-dark); opacity: 1; }
.zoomable:focus-visible { outline: 3px solid var(--color-cyan); outline-offset: 2px; }

/* Bilder in Kopf-Plate und Artikel behalten ihre bisherige Größe/Ausrichtung */
.report-head__plate .zoomable { height: 100%; }
.report-body figure .zoomable { width: fit-content; margin-inline: auto; }

/* Dialog */
.lightbox {
	width: 100vw;
	max-width: none;
	height: 100dvh;
	max-height: none;
	margin: 0;
	padding: clamp(1rem, 4vw, 3rem);
	border: 0;
	background: transparent;
	color: var(--color-text);
	overflow: hidden;
}
.lightbox[open] {
	display: grid;
	place-items: center;
	animation: lightbox-in .25s var(--ease);
}
.lightbox::backdrop {
	background: rgba(3, 9, 16, .92);
	backdrop-filter: blur(6px);
}
.lightbox__figure {
	display: grid;
	justify-items: center;
	gap: .9rem;
	width: 100%;
	max-height: 100%;
	margin: 0;
}
.lightbox__img {
	display: block;
	max-width: 100%;
	max-height: calc(100dvh - clamp(2rem, 8vw, 6rem) - 3.5rem);
	width: auto;
	height: auto;
	padding: .5rem;
	border-radius: .25rem;
	background: #fff;
	box-shadow: 0 30px 90px rgba(0, 0, 0, .6);
	object-fit: contain;
}
.lightbox__caption {
	max-width: 60rem;
	color: var(--color-text-muted);
	font-size: .95rem;
	line-height: 1.4;
	text-align: center;
}
.lightbox__close {
	position: absolute;
	top: clamp(.75rem, 2vw, 1.5rem);
	right: clamp(.75rem, 2vw, 1.5rem);
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 1px solid var(--color-line);
	border-radius: .25rem;
	background: var(--color-bg-alt);
	color: #fff;
	cursor: pointer;
	transition: background-color .2s, border-color .2s;
}
.lightbox__close:hover { background: var(--color-blue-dark); border-color: var(--color-blue-dark); }
.lightbox__close:focus-visible { outline: 3px solid var(--color-cyan); outline-offset: 2px; }

.lightbox-open { overflow: hidden; }

@keyframes lightbox-in {
	from { opacity: 0; transform: scale(.98); }
	to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
	.lightbox[open] { animation: none; }
	.zoomable > img { transition: none; }
}
