/*
  ============================================================
  DC Gipsy Ebern Website
  Datei: gallerie.css
  Speicherort: assets/css/pages/
  Zweck: Seitenbezogene Styles für die Galerie-Seite.
         Enthält Hero-Ergänzungen, Filter-System,
         Galerie-Grid und Galerie-Karten.
  Stand: Grundstruktur Version 1.0
  ============================================================
*/

/* ============================================================
   GALLERIE INTRO SECTION
   Einleitung und Filterbereich
   ============================================================ */

.gallerie-intro-section {
  padding: 110px 0 70px;
}

.gallerie-intro-content {
  text-align: center;
  max-width: 850px;
  margin: 0 auto;
}

.gallerie-intro-content h2 {
  margin: 18px 0 22px;
}

.gallerie-intro-content p {
  opacity: 0.85;
  line-height: 1.7;
}

/* ============================================================
   GALLERIE FILTER
   Filter Buttons oberhalb der Galerie
   ============================================================ */

.gallerie-filter {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 45px;
}

.gallerie-filter-btn {
  appearance: none;
  border: 1px solid rgba(179, 0, 255, 0.35);
  border-radius: 999px;

  padding: 12px 24px;

  background: rgba(255, 255, 255, 0.045);
  color: #fff;

  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;

  cursor: pointer;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.gallerie-filter-btn:hover {
  transform: translateY(-2px);
  background: rgba(179, 0, 255, 0.16);
  border-color: rgba(179, 0, 255, 0.75);
  box-shadow: 0 16px 40px rgba(179, 0, 255, 0.18);
}

.gallerie-filter-btn.active {
  background: linear-gradient(135deg, #b300ff, #6b2cff);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 18px 45px rgba(179, 0, 255, 0.32);
}

/* ============================================================
   GALLERIE GRID
   Bilderübersicht
   ============================================================ */

.gallerie-section {
  padding-bottom: 120px;
}

.gallerie-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ============================================================
   GALLERIE CARD
   Einzelne Galerie Karte
   ============================================================ */

.gallerie-card {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  min-height: 320px;
  cursor: pointer;
  transition: transform 0.35s ease;
}

.gallerie-card:hover {
  transform: translateY(-6px);
}

.gallerie-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.gallerie-card:hover img {
  transform: scale(1.08);
}

/* ============================================================
   GALLERIE OVERLAY
   Texte auf Bildern
   ============================================================ */

.gallerie-overlay {
  position: absolute;
  inset: 0;
  padding: 24px;
  display: flex;
  justify-content: flex-end;
  flex-direction: column;

  background: linear-gradient(to top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.05));
}

.gallerie-overlay span {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  opacity: 0.8;
}

.gallerie-overlay h3 {
  margin: 0;
  font-size: 1.25rem;
}

/* ============================================================
   EMPTY STATE
   Falls später keine Bilder vorhanden sind
   ============================================================ */

.gallerie-empty {
  text-align: center;
  padding: 80px 20px;
  opacity: 0.7;
}

/* ============================================================
   GALLERIE LIGHTBOX
   Großansicht der Bilder
   ============================================================ */

.gallerie-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: none;
  align-items: center;
  justify-content: center;

  padding: 40px;

  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(14px);
}

.gallerie-lightbox.active {
  display: flex;
}

.gallerie-lightbox-img {
  max-width: min(1100px, 92vw);
  max-height: 78vh;

  object-fit: contain;

  border-radius: 22px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.75);
}

.gallerie-lightbox-close {
  position: absolute;
  top: 28px;
  right: 34px;

  width: 48px;
  height: 48px;

  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;

  background: rgba(255, 255, 255, 0.08);
  color: #fff;

  font-size: 2rem;
  line-height: 1;

  cursor: pointer;
  transition: all 0.3s ease;
}

.gallerie-lightbox-close:hover {
  transform: rotate(90deg) scale(1.05);
  background: rgba(128, 90, 213, 0.35);
  border-color: rgba(128, 90, 213, 0.75);
}

.gallerie-lightbox-caption {
  position: absolute;
  bottom: 32px;
  left: 50%;

  transform: translateX(-50%);

  max-width: 90%;
  padding: 10px 18px;

  border-radius: 999px;

  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.86);

  font-size: 0.9rem;
  text-align: center;
}
