/* Thai-Terrasse – Galerie (ergänzt basis.css) */

.held-kompakt .held-innen { padding-bottom: 32px; }
.held-kompakt .einleitung { margin-bottom: 20px; }

.katnav .anzahl { color: var(--text-leise); font-size: 12px; margin-left: 2px; }
.katnav button[aria-pressed="true"] { background: var(--rot); border-color: var(--rot); color: #fff; }
.katnav button[aria-pressed="true"] .anzahl { color: var(--gold-hell); }

/* Über die ganze Bildschirmbreite, mit schmalem Rand */
.galerie-rahmen { padding: 8px clamp(10px, 1.6vw, 28px) 96px; }

/* Mosaik-Raster: füllt zeilenweise, Hochformate über 2 Zeilen, Panoramen über 2 Spalten.
   Kacheln ca. 50 % größer: 1280 px → 3 Spalten, 1920 px → 4 Spalten */
.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); grid-auto-rows: clamp(260px, 22vw, 440px); grid-auto-flow: dense; gap: clamp(10px, 1vw, 18px); margin-top: 16px; }
.g-bild { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: #2a1a17; box-shadow: var(--schatten); }
.g-bild.hoch { grid-row: span 2; }
.g-bild.breit { grid-column: span 2; }
.g-bild a { display: block; height: 100%; cursor: zoom-in; }
.g-bild img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.g-bild a:hover img, .g-bild a:focus-visible img { transform: scale(1.04); }
.g-bild a:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
.g-bild figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 10px;
  background: linear-gradient(transparent, rgba(30, 10, 8, .78));
  color: #fff; font-size: 14px; line-height: 1.35; pointer-events: none;
  opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s;
}
.g-bild:hover figcaption, .g-bild:focus-within figcaption { opacity: 1; transform: none; }
@media (hover: none) { .g-bild figcaption { opacity: 1; transform: none; } }

/* Vollbild-Ansicht */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(20, 8, 6, .94); color: #fff; }
.lightbox[open] { display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; }
.lightbox::backdrop { background: rgba(20, 8, 6, .94); }
.lb-figur { margin: 0; grid-column: 2; display: flex; flex-direction: column; align-items: center; gap: 12px; min-height: 0; }
.lb-bild { max-width: 100%; max-height: calc(100vh - 110px); width: auto; height: auto; object-fit: contain; border-radius: 6px; }
.lb-figur figcaption { display: flex; gap: 16px; align-items: baseline; font-size: 15px; color: #f1e6da; text-align: center; }
.lb-zaehler { color: var(--gold); font-size: 13px; font-variant-numeric: tabular-nums; }
.lb-pfeil, .lb-zu { background: rgba(255, 255, 255, .08); border: 1px solid rgba(201, 162, 74, .4); color: var(--gold-hell); border-radius: 999px; cursor: pointer; font: 400 32px/1 var(--serif); }
.lb-pfeil { width: 48px; height: 48px; justify-self: center; }
.lb-pfeil:hover, .lb-zu:hover { background: rgba(201, 162, 74, .25); color: #fff; }
.lb-zurueck { grid-column: 1; grid-row: 1; }
.lb-weiter { grid-column: 3; grid-row: 1; }
.lb-figur { grid-row: 1; }
.lb-zu { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; font-size: 28px; z-index: 2; }

@media (max-width: 640px) {
  .galerie { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 210px; gap: 8px; }
  .galerie-rahmen { padding-bottom: 64px; }
  .g-bild figcaption { font-size: 12px; padding: 20px 10px 8px; }
  .lightbox[open] { grid-template-columns: 1fr; }
  .lb-pfeil { position: absolute; bottom: 20px; }
  .lb-zurueck { left: 20px; }
  .lb-weiter { right: 20px; }
  .lb-bild { max-height: calc(100vh - 160px); }
  .lb-figur { grid-column: 1; padding: 0 8px; }
}
