/* Grundlayout */
:root { --bg: #0e9cd9; }

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: #ffffff;
  font-family: Arial, sans-serif;
}

/* Kopfbereich */
header {
  padding: 80px 16px 8px; /* pushed down */ /* 48px 16px 8px; /* eine Zeile tiefer */
  text-align: center;
}
header .headline,
header h1 {
  margin: 0;
  font-family: "Barlow Condensed", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 36px;               /* Vorgabe */
  font-style: italic;             /* italic */
  font-weight: 700;               /* bold */
  letter-spacing: 0.5px;
}
header h1 { margin-top: 6px; }
header .subtitle {
  margin: 6px 0 16px 0;
  font-family: "Barlow Condensed", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 24px;
  font-style: italic;
  font-weight: 700;
  color: #ffffff;
}

/* Galerie – große Thumbnails, ganze Seite sichtbar */
.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px;
}

.thumb {
  background: none;
  padding: 0;
  margin: 0;
  display: inline-block;   /* schrumpft auf Bildbreite */
}
.thumb img {
  width: 140px;
  height: 295px;
  display: block;
  border: 2px solid #000;
  border-radius: 6px;
  cursor: zoom-in;
}
.thumb:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Video-Thumbnail */
.thumb.video {
  cursor: pointer;
}
.thumb.video img {
  cursor: pointer;
}
.thumb.video figcaption {
  margin-top: 8px;
  color: #ffffff;
  text-align: center;
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-weight: 700;
  font-style: italic;
  font-size: 24px;
}

/* In der nächsten Reihe mittig platzieren */
.centered {
  grid-column: 1 / -1;           /* nimmt gesamte Zeile ein */
  max-width: 480px;
  justify-self: center;           /* mittig */
  width: 100%;
}

/* Lightbox gemeinsam */
.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(2px);
  padding: 24px;
  z-index: 1000;
}
.lightbox.open { display: flex; }
.lightbox img, .lightbox video {
  max-width: 95vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 10px;
  background: #111;
}
.lightbox .close {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 36px;
  line-height: 1;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
}

.thumb.video {
  width: 180px;
  text-align: center;
}
.thumb.video img {
  width: 100%;
  height: auto;
}
.thumb.video figcaption {
  font-size: 20px;
  color: #ffffff;
  text-align: center;
  margin-top: 4px;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-style: italic;
}

.thumb figcaption {
  text-align: center;
  color: #ffffff;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 20px;
  font-style: italic;
  font-weight: 700;
  margin-top: 4px;
}

/* Lightbox Navigation */
.lightbox .prev, .lightbox .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  border: none;
  color: #ffffff;
  font-size: 40px;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: 50%;
  user-select: none;
}
.lightbox .prev { left: 20px; }
.lightbox .next { right: 20px; }
.lightbox .prev:hover, .lightbox .next:hover {
  background: rgba(255,255,255,0.3);
}