/* Fotoalben (Block dpk/fotoalben, Seite /fotos/). Handy zuerst.
   Bedienelemente in Tinte; Säulenfarben nur im Etikett (Name und Symbol
   stehen immer dabei). Ohne JavaScript bleibt die Fotoliste ein Raster. */

.dpk-fotoalben {
	display: grid;
	gap: 56px;
}

.dpk-fa {
	display: grid;
	gap: 12px;
	min-width: 0;
}

.dpk-fa__kopf {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 6px 16px;
}

.dpk-fa__wer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 12px;
	min-width: 0;
}

.dpk-fa__wer > * {
	margin: 0;
}

.dpk-fa__titel {
	font-size: 1.375rem;
	line-height: 1.25;
	font-weight: 600;
	color: var(--wp--preset--color--tinte);
}

.dpk-fa__datum,
.dpk-fa__zaehler {
	margin: 0;
	font-size: 0.9375rem;
	color: var(--wp--preset--color--grau);
}

.dpk-fa__zaehler {
	font-variant-numeric: tabular-nums;
}

.dpk-fa__text {
	margin: 0;
	max-width: 62ch;
	color: var(--wp--preset--color--grau);
}

/* ---------- Ohne JavaScript: Raster aller Fotos ---------- */

.dpk-fa__roh {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 6px;
}

@media (min-width: 700px) {
	.dpk-fa__roh {
		grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	}
}

.dpk-fa__roh li {
	margin: 0;
}

.dpk-fa.is-js .dpk-fa__roh {
	display: none;
}

/* ---------- Bühne ---------- */

.dpk-fa__buehne {
	position: relative;
	height: 400px;
}

@media (min-width: 700px) {
	.dpk-fa__buehne {
		height: 470px;
	}
}

.dpk-fa__spur {
	height: 100%;
	display: flex;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
	border-radius: var(--wp--custom--radius--foto, 6px);
}

.dpk-fa__spur::-webkit-scrollbar {
	display: none;
}

.dpk-fa__gruppe {
	flex: 0 0 100%;
	min-width: 0;
	height: 100%;
	display: grid;
	gap: 6px;
	scroll-snap-align: start;
	scroll-snap-stop: always;
}

/* ---------- Kacheln ---------- */

.dpk-fa__kachel {
	position: relative;
	display: block;
	min-width: 0;
	min-height: 0;
	overflow: hidden;
	background: var(--wp--preset--color--papier-tief);
	border-radius: 3px;
	-webkit-user-select: none;
	user-select: none;
	-webkit-touch-callout: none;
}

.dpk-fa__kachel img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	pointer-events: none;
	-webkit-user-drag: none;
	user-select: none;
}

.dpk-fa__roh .dpk-fa__kachel {
	aspect-ratio: 4 / 3;
}

.dpk-fa__roh .dpk-fa__kachel img {
	position: absolute;
	inset: 0;
}

.dpk-fa img:not([src]) {
	visibility: hidden;
}

.dpk-fa__kachel:focus-visible {
	outline: 3px solid var(--wp--preset--color--tinte);
	outline-offset: -3px;
	box-shadow: inset 0 0 0 6px #FFFFFF;
}

/* ---------- Pfeile, Punkte, Anhalten ---------- */

.dpk-fa__pfeil,
.dpk-lb__knopf {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--wp--preset--color--tinte);
	color: #FFFFFF;
	cursor: pointer;
}

.dpk-fa__pfeil {
	position: absolute;
	top: 50%;
	z-index: 2;
	transform: translateY(-50%);
	opacity: 0.92;
}

.dpk-fa__pfeil--vor { left: 8px; }
.dpk-fa__pfeil--weiter { right: 8px; }

.dpk-fa__pfeil:hover,
.dpk-lb__knopf:hover {
	opacity: 1;
	background: #3F3548;
}

.dpk-fa__pfeil:focus-visible,
.dpk-fa__punkt:focus-visible,
.dpk-fa__pause:focus-visible,
.dpk-lb__knopf:focus-visible {
	outline: 3px solid var(--wp--preset--color--tinte);
	outline-offset: 3px;
	box-shadow: 0 0 0 3px #FFFFFF;
}

.dpk-fa__steuerung {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 4px 16px;
}

.dpk-fa__punkte {
	display: flex;
	flex-wrap: wrap;
}

/* Tippfläche 44 × 44, sichtbar nur der kleine Punkt. */
.dpk-fa__punkt {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}

.dpk-fa__punkt span {
	display: block;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--wp--preset--color--linie);
	box-shadow: inset 0 0 0 2px var(--wp--preset--color--tinte);
}

.dpk-fa__punkt[aria-current="true"] span {
	background: var(--wp--preset--color--tinte);
}

.dpk-fa__pause {
	min-height: 44px;
	padding: 0 16px;
	border: 2px solid var(--wp--preset--color--tinte);
	border-radius: 999px;
	background: #FFFFFF;
	color: var(--wp--preset--color--tinte);
	font: inherit;
	font-size: 0.9375rem;
	font-weight: 600;
	cursor: pointer;
}

.dpk-fa__pause:hover {
	background: var(--wp--preset--color--papier-tief);
}

[hidden].dpk-fa__pause,
[hidden].dpk-fa__pfeil,
[hidden].dpk-fa__punkte {
	display: none;
}

/* ---------- Ältere Alben ---------- */

.dpk-fa-aelter__titel {
	margin: 0 0 12px;
	font-size: 1.25rem;
	font-weight: 600;
}

.dpk-fa-aelter__liste {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--wp--preset--color--linie);
}

.dpk-fa-aelter__liste li {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 14px;
	margin: 0;
	padding: 12px 0;
	border-bottom: 1px solid var(--wp--preset--color--linie);
}

.dpk-fa-aelter__name {
	font-weight: 600;
}

.dpk-fa-aelter__liste time,
.dpk-fa-aelter__zahl {
	color: var(--wp--preset--color--grau);
	font-size: 0.9375rem;
}

.dpk-fa__leer {
	margin: 0;
	color: var(--wp--preset--color--grau);
}

/* ---------- Großansicht ---------- */

.dpk-lb {
	position: fixed;
	inset: 0;
	width: 100vw;
	max-width: none;
	height: 100vh;
	height: 100dvh;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgba(20, 15, 25, 0.96);
	color: #FFFFFF;
	flex-direction: column;
}

.dpk-lb[open] {
	display: flex;
}

.dpk-lb::backdrop {
	background: rgba(20, 15, 25, 0.96);
}

.dpk-lb__kopf {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 12px 0 16px;
}

.dpk-lb__titel {
	margin: 0;
	font-weight: 600;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.dpk-lb__mitte {
	position: relative;
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 8px 12px;
}

.dpk-lb__bild {
	display: block;
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	-webkit-user-select: none;
	user-select: none;
	-webkit-touch-callout: none;
	-webkit-user-drag: none;
	pointer-events: none;
}

.dpk-lb__knopf {
	background: rgba(255, 255, 255, 0.16);
	flex: 0 0 auto;
}

.dpk-lb__vor,
.dpk-lb__weiter {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	background: rgba(43, 35, 51, 0.78);
}

.dpk-lb__vor { left: 8px; }
.dpk-lb__weiter { right: 8px; }

.dpk-lb__knopf:focus-visible {
	outline-color: #FFFFFF;
	box-shadow: 0 0 0 3px #2B2333;
}

.dpk-lb__zaehler {
	margin: 0;
	padding: 4px 16px 14px;
	text-align: center;
	font-size: 0.9375rem;
	font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
	.dpk-fa__spur {
		scroll-behavior: auto;
	}
}
