/* ==========================================================================
   Jubiläumsgalerie — nur von jubilaeum.html geladen
   ========================================================================== */

/* --------------------------------------------------------------- Kopfbild */
.gv-hero {
  position: relative;
  min-height: min(78vh, 700px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}

.gv-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.gv-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.55) 40%, rgba(0, 0, 0, 0.25) 100%);
  z-index: 1;
}

.gv-hero .container {
  position: relative;
  z-index: 2;
  padding-top: 80px;
  padding-bottom: 72px;
}

.gv-hero h1 {
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  font-weight: 900;
  line-height: 0.98;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.gv-hero p {
  max-width: 620px;
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.86);
}

/* ------------------------------------------------------------- Textblöcke */
.gv-eyebrow {
  display: block;
  color: var(--accent);
  font-weight: 800;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 14px;
}

.gv-section {
  padding: 88px 0 96px;
}

.gv-head {
  max-width: 760px;
  margin: 0 auto 44px;
  text-align: center;
}

.gv-head h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.gv-head p {
  color: var(--text-muted);
}

.gv-head p + p {
  margin-top: 14px;
}

/* ---------------------------------------------------------------- Kacheln */
.gv-tile {
  position: relative;
  display: block;
  overflow: hidden;
  background: #14140f;
  cursor: zoom-in;
}

.gv-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.gv-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 0 var(--accent);
  transition: box-shadow 0.25s ease;
  pointer-events: none;
}

.gv-tile:hover img {
  transform: scale(1.05);
}

.gv-tile:hover::after {
  box-shadow: inset 0 0 0 4px var(--accent);
}

.gv-tile:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.gv-tile.is-hidden {
  display: none;
}

/* Mosaik: gleichmäßiges Raster mit rhythmisch größeren Kacheln */
.gv-mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-flow: row dense;
  gap: 16px;
}

.gv-mosaic > .gv-tile {
  aspect-ratio: 3 / 2;
}

/* Große und hochformatige Kacheln belegen zwei Rasterzeilen. Sie brauchen ein
   eigenes Seitenverhältnis: ohne das bestimmt die Eigenhöhe des Bildes die
   Zeilenhöhe (Hochformate sprengen das Raster), und eine Zeile ganz ohne
   normale Kachel fällt auf Höhe null zusammen. */
.gv-mosaic > .gv-big,
.gv-mosaic > .gv-portrait {
  grid-row: span 2;
}

.gv-mosaic > .gv-big {
  grid-column: span 2;
  aspect-ratio: 3 / 2;
}

.gv-mosaic > .gv-portrait {
  aspect-ratio: 3 / 4;
}

/* Die Einladungskarte wird als Plakat gezeigt, nicht angeschnitten */
.gv-mosaic > .gv-poster {
  background: var(--carbon);
}

.gv-mosaic > .gv-poster img {
  object-fit: contain;
  padding: 10px;
}

.gv-mosaic > .gv-poster:hover img {
  transform: scale(1.02);
}

/* ------------------------------------------------------------ Filterleiste */
.gv-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 44px;
}

.gv-chip {
  display: inline-flex;
  align-items: center;
  /* feste Mindesthöhe statt Innenabstand-Rechnerei: 44px Antippfläche */
  min-height: 44px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0 22px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.gv-chip .gv-count {
  opacity: 0.55;
  margin-left: 7px;
  font-weight: 600;
}

.gv-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.gv-chip.active {
  background: var(--carbon);
  border-color: var(--carbon);
  color: #fff;
}

.gv-note {
  margin-top: 44px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.gv-note a {
  color: var(--accent);
  font-weight: 600;
}

/* --------------------------------------------------------------- Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(12, 12, 12, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.lightbox[hidden] {
  display: none;
}

.lightbox.visible {
  opacity: 1;
}

.lb-stage {
  max-width: min(1500px, 94vw);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.lb-stage img {
  max-width: 100%;
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

.lb-stage figcaption {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  text-align: center;
  min-height: 22px;
}

.lb-counter {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.lightbox button {
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
  transition: background 0.2s ease;
  z-index: 2;
}

.lightbox button:hover {
  background: var(--accent);
}

.lb-close {
  top: 20px;
  right: 20px;
  width: 46px;
  height: 46px;
  font-size: 2rem;
}

.lb-prev,
.lb-next {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 76px;
  font-size: 2.4rem;
}

.lb-prev {
  left: 16px;
}

.lb-next {
  right: 16px;
}

body.lb-open {
  overflow: hidden;
}

/* -------------------------------------------------------------- Responsiv */
@media (max-width: 1080px) {
  .gv-mosaic {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 860px) {
  .gv-section {
    padding: 60px 0 68px;
  }

  .gv-mosaic {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .lb-prev,
  .lb-next {
    width: 42px;
    height: 62px;
    font-size: 1.9rem;
  }

  .lb-prev {
    left: 6px;
  }

  .lb-next {
    right: 6px;
  }
}

@media (max-width: 520px) {
  /* Auf schmalen Geräten würde eine 2x2-Kachel die halbe Bildschirmhöhe füllen */
  .gv-mosaic > .gv-big {
    grid-column: span 2;
    grid-row: span 1;
  }

  .gv-chip {
    padding: 0 14px;
    font-size: 0.64rem;
  }

  .gv-filter {
    gap: 8px;
    margin-bottom: 32px;
  }
}
