/* ================= FOTO-LAUFBAND (nur wir.php)  ==================
 * includes/photowall.php: sichtbarer Ausschnitt mit aspect-ratio --pw-ar
 * (Format des frueheren Sliders), darin ein Streifen aus Masonry-Spalten
 * (2-3 Fotos uebereinander). Spaltenbreite = --pw-w Bandhoehen, ueber
 * Container-Einheiten (cqh = 1 % der Bandhoehe). Der Streifen steht zweimal
 * im Track; die Animation schiebt um -50 % (= eine Kopie) und beginnt dann
 * nahtlos von vorn. Hover haelt an, „Bewegung reduzieren“ schaltet die
 * Animation ab und erlaubt stattdessen seitliches Scrollen.
 */
.photowall {
	aspect-ratio: var(--pw-ar);
	container-type: size;
	overflow: hidden;
	margin: 10px 0 30px;
	border-radius: 2px;
}
.photowall-track {
	display: flex;
	width: max-content;
	height: 100%;
	animation: photowall-run var(--pw-dur) linear infinite;
}
.photowall:hover .photowall-track {
	animation-play-state: paused;
}
.photowall-set {
	display: flex;
	height: 100%;
}
.photowall-col {
	display: flex;
	flex-direction: column;
	gap: 4px;
	/* Luecke rechts gehoert zur Spalte, damit beide Kopien gleich lang sind */
	width: calc(var(--pw-w) * 100cqh);
	margin-right: 4px;
	height: 100%;
	flex-shrink: 0;
}
.photowall-item {
	flex-basis: 0;
	min-height: 0;
	overflow: hidden;
	border-radius: 2px;
	background: #ddd;
}
.photowall-item img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
@keyframes photowall-run {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}
@media only screen and (max-width: 600px) {
	.photowall { aspect-ratio: var(--pw-ar-m); }
	.photowall-col { gap: 3px; margin-right: 3px; }
}
@media (prefers-reduced-motion: reduce) {
	.photowall { overflow-x: auto; }
	.photowall-track { animation: none; }
	.photowall-set[aria-hidden] { display: none; }
}
