/* ====== Seitenbasis ====== */
:root {
  --gap: 15px;
  --maxw: 1200px;
  --border: 2px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #000;
  color: #fff;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* ====== Titel ====== */
.galerie-title {
  text-align: center;
  font-family: "Times New Roman", Times, Georgia, Cambria, serif;
  font-size: 2.2rem;
  font-weight: 600;
  letter-spacing: .5px;
  margin: 28px 0 16px;
  color: #fff;
}

/* ====== Galerie-Grid ======
   Unterstützt sowohl <div class="galerie"> als auch <div class="grid"> */
.galerie,
.grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--gap);
  max-width: var(--maxw);
  padding: 20px;
  margin: 0 auto 32px;
}

/* Responsiv etwas weicher staffeln */
@media (max-width: 1200px) {
  .galerie, .grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  .galerie, .grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .galerie, .grid { grid-template-columns: repeat(2, 1fr); }
}

/* ====== Thumbnails (quadratisch, gleich groß) ====== */
.thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;          /* Quadratische Kachel */
  overflow: hidden;
  background: #000;
  border-radius: 6px;
}

.thumb a {
  display: block;
  width: 100%;
  height: 100%;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;             /* füllt das Quadrat */
  display: block;
  border: var(--border) solid #fff;
  transition: transform .25s ease;
}

.thumb:hover img {
  transform: scale(1.04);
}

/* Optional sichtbare Bildunterschrift unter der Kachel */
.caption {
  margin-top: 6px;
  font-size: .95rem;
  color: #ddd;
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
}

/* ====== Lightbox ====== */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  display: none;                 /* per JS auf flex gesetzt */
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: rgba(0,0,0,.95);
  z-index: 2000;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 85vh;
  border: 4px solid #fff;
  box-shadow: 0 0 24px rgba(0,0,0,.8);
}

.lightbox-caption {
  margin-top: 12px;
  color: #fff;
  font-size: 1rem;
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  padding: 0 16px;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 24px;
  font-size: 3rem;
  line-height: 1;
  color: #fff;
  cursor: pointer;
  user-select: none;
}

/* ====== Kleinigkeiten ====== */
a { color: inherit; text-decoration: none; }


/* ====== Titel & Beschreibung zentrieren ====== */
.galerie-title,
.galerie-description {
  text-align: center;
  max-width: 800px;       /* damit die Zeilen nicht zu breit laufen */
  margin: 0 auto 20px;    /* auto links/rechts = mittig */
  padding: 0 10px;
}

.galerie-description {
  font-size: 1.1rem;
  color: #ccc;
  line-height: 1.5;
  font-family: Georgia, "Times New Roman", serif;
}


/* ========== DUNKEL (Lightbox) ========== */
.theme-dark .site-header,
.theme-dark .site-footer {
  background: #000;
  color: #fff;
}

.theme-dark .logo-link { color: #fff; }
.theme-dark .logo-link img { margin-right: 8px; }
.theme-dark .site-title { color: #fff; }
.theme-dark .nav a { color: #fff; }
.theme-dark .nav a:hover { color: #ddd; }




