/* andre250.de – Bildansicht */
.lichtbox {
	position: fixed;
	inset: 0;
	z-index: 1050;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 12px 0;
	color: var(--text, #333);
	touch-action: none;
}

.lichtbox[hidden] {
	display: none;
}

.lichtbox__grund {
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--weiss, #fff);
}

.lichtbox__bild {
	display: block;
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	margin: 0;
	transform-origin: center center;
	user-select: none;
	-webkit-user-select: none;
	cursor: default;
}

.lichtbox--zoombar .lichtbox__bild {
	cursor: zoom-in;
}

.lichtbox--gezoomt .lichtbox__bild {
	cursor: grab;
}

.lichtbox--gezoomt.lichtbox--zieht .lichtbox__bild {
	cursor: grabbing;
}

.lichtbox__lupe {
	top: 0;
	right: 46px;
}

.lichtbox__lupe svg {
	width: 24px;
	height: 24px;
	stroke-width: 1.5;
}

.lichtbox__lupe[aria-pressed="true"] .lichtbox__lupenstrich {
	display: none;
}

.lichtbox__knopf {
	position: absolute;
	box-sizing: content-box;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--text, #333);
	font: inherit;
	cursor: pointer;
	transition: all 0.15s;
}

.lichtbox__knopf[hidden] {
	display: none;
}

.lichtbox--gezoomt .lichtbox__knopf {
	background: var(--weiss, #fff);
}

.lichtbox__knopf svg {
	fill: none;
	stroke: var(--dunkel, #4e277f);
	stroke-linecap: round;
	stroke-linejoin: round;
	pointer-events: none;
}

@media (forced-colors: active) {
	.lichtbox__knopf svg {
		stroke: CanvasText;
	}
}

.lichtbox__knopf:focus {
	outline: none;
}

.lichtbox__knopf:focus-visible {
	outline: 2px solid transparent;
	outline-offset: -2px;
	box-shadow: inset 0 0 0 2px currentColor;
}

.lichtbox__schliessen {
	top: 0;
	right: 0;
}

.lichtbox__schliessen svg {
	width: 24px;
	height: 24px;
	stroke-width: 1.5;
	transform: translateY(-1.5px);
}

.lichtbox__zurueck, .lichtbox__vor {
	top: 50%;
	transform: translateY(-50%);
}

.lichtbox__zurueck {
	left: 0;
}

.lichtbox__vor {
	right: 0;
}

.lichtbox__zurueck svg, .lichtbox__vor svg {
	width: 20px;
	height: 20px;
	stroke-width: 3;
}

.lichtbox__melder {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

html.lichtbox-offen body {
	margin-right: var(--lichtbox-ausgleich, 0px);
	overflow: hidden;
	touch-action: none;
	overscroll-behavior-y: none;
}

@keyframes lichtbox-ein {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes lichtbox-aus {
	to { opacity: 0; }
}

@keyframes lichtbox-bild-ein {
	from { transform: scale(0.975) translate3d(0, 16px, 0); opacity: 0; }
	to { transform: scale(1) translate3d(0, 0, 0); opacity: 1; }
}

@keyframes lichtbox-bild-aus {
	to { transform: scale(0.975) translate3d(0, 16px, 0); opacity: 0; }
}

.lichtbox__grund {
	animation: 0.35s ease backwards lichtbox-ein;
}

.lichtbox__bild {
	animation: 0.2s ease 0.1s backwards lichtbox-bild-ein;
}

.lichtbox__knopf {
	animation: 0.25s ease 0.1s backwards lichtbox-ein;
}

.lichtbox.geht .lichtbox__grund {
	animation: 0.35s ease forwards lichtbox-aus;
}

.lichtbox.geht .lichtbox__bild {
	animation: 0.2s ease forwards lichtbox-bild-aus;
}

.lichtbox.geht .lichtbox__knopf {
	animation: 0.15s ease forwards lichtbox-aus;
}

.lichtbox--weich .lichtbox__bild {
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-reduced-motion: reduce) {
	.lichtbox__grund, .lichtbox__bild, .lichtbox__knopf,
	.lichtbox.geht .lichtbox__grund, .lichtbox.geht .lichtbox__bild, .lichtbox.geht .lichtbox__knopf {
		animation: none;
	}

	.lichtbox--weich .lichtbox__bild, .lichtbox__knopf {
		transition: none;
	}
}
