/* ============================================================
   ZG Photographics – Hauptstylesheet
   Warm Luxury · Cormorant Garamond + Jost
   ============================================================ */

/* ── Custom Properties ─────────────────────────────────────── */
:root {
  /* Farbpalette – warm & luxuriös */
  --cream:          #F9F4EC;
  --cream-mid:      #F0E8D8;
  --cream-deep:     #E6DACC;
  --espresso:       #1E0F08;
  --espresso-mid:   #3A1E10;
  --espresso-light: #5A3420;
  --amber:          #C07838;
  --amber-light:    #D89050;
  --amber-pale:     #E8B87A;
  --gold:           #B08545;
  --gold-light:     #CDAA6A;
  --warm-white:     #FDFAF5;
  --text-dark:      #2A150A;
  --text-mid:       #5A3420;
  --text-light:     #8A6040;
  --text-muted:     #A88060;
  --divider:        rgba(176, 133, 69, 0.25);

  /* Typografie */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Jost', 'Helvetica Neue', sans-serif;

  /* Abstände */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  6rem;
  --space-2xl: 10rem;

  /* Layout */
  --max-w:      1280px;
  --nav-h:      72px;
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;

  /* Übergänge */
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast:    200ms;
  --dur-mid:     400ms;
  --dur-slow:    700ms;
}

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--cream);
  color: var(--text-dark);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }

/* Grain-Overlay über allem */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.6;
}

/* ── Typografie ────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  color: var(--espresso);
}

h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: 1.25rem; font-weight: 500; }

p + p { margin-top: 1em; }

.italic { font-style: italic; }
.serif  { font-family: var(--font-display); }

/* ── Utility ───────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

.section {
  padding-block: clamp(4rem, 8vw, 7rem);
}

.section--dark {
  background: var(--espresso);
  color: var(--cream);
}

.section--mid {
  background: var(--cream-mid);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1rem;
}

.section-label::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--amber);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  color: var(--espresso);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.section--dark .section-title { color: var(--cream); }

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 520px;
  line-height: 1.8;
}

.section--dark .section-subtitle { color: var(--cream-mid); }

/* Divider */
.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-block: 1.5rem;
}

.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--divider);
}

.divider span {
  color: var(--gold);
  font-size: 1.2rem;
}

/* ── Fade-in Animations ────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--dur-slow) var(--ease-smooth),
              transform var(--dur-slow) var(--ease-smooth);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease-smooth);
}

.fade-in.visible { opacity: 1; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2.25rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--dur-mid) var(--ease-smooth);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.08);
  opacity: 0;
  transition: opacity var(--dur-fast);
}

.btn:hover::after { opacity: 1; }

.btn--primary {
  background: var(--espresso);
  color: var(--cream);
  border-color: var(--espresso);
}

.btn--primary:hover {
  background: var(--espresso-mid);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(30, 15, 8, 0.3);
}

.btn--amber {
  background: var(--amber);
  color: var(--warm-white);
  border-color: var(--amber);
}

.btn--amber:hover {
  background: var(--amber-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(192, 120, 56, 0.35);
}

.btn--outline {
  background: transparent;
  border-color: var(--espresso);
  color: var(--espresso);
}

.btn--outline:hover {
  background: var(--espresso);
  color: var(--cream);
}

.btn--outline-light {
  background: transparent;
  border-color: rgba(249, 244, 236, 0.5);
  color: var(--cream);
}

.btn--outline-light:hover {
  background: rgba(249, 244, 236, 0.12);
  border-color: var(--cream);
}

/* ── Navigation ────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background var(--dur-mid) var(--ease-smooth),
              box-shadow var(--dur-mid) var(--ease-smooth);
}

.site-header.scrolled {
  background: rgba(249, 244, 236, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--divider);
}

.nav-container {
  max-width: var(--max-w);
  height: 100%;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  text-decoration: none;
}

.logo-letters {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 500;
  color: var(--amber);
  letter-spacing: 0.05em;
  line-height: 1;
}

.logo-name {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--espresso);
  transition: color var(--dur-fast);
}

.site-header.hero-mode .logo-name { color: var(--cream); }
.site-header.hero-mode .logo-letters { color: var(--amber-pale); }

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--espresso);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  transition: color var(--dur-fast), background var(--dur-fast);
  position: relative;
}

.site-header.hero-mode .nav-link { color: var(--cream-mid); }

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: var(--amber);
  transition: width var(--dur-mid) var(--ease-smooth);
}

.nav-link:hover::after { width: calc(100% - 1.8rem); }

.nav-link--cta {
  background: var(--amber);
  color: var(--warm-white) !important;
  padding: 0.55rem 1.25rem;
  border-radius: 2px;
}

.nav-link--cta::after { display: none; }
.nav-link--cta:hover { background: var(--amber-light); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--espresso);
  transition: all var(--dur-mid) var(--ease-smooth);
}

.site-header.hero-mode .nav-toggle span { background: var(--cream); }
.site-header.menu-open .nav-toggle span { background: var(--cream); }

/* Nav overlay – shared, outside header */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20,8,2,.55);
  z-index: 1500;
  opacity: 0;
  transition: opacity 0.32s ease;
}

.nav-overlay.open { display: block; opacity: 1; }

/* Close button inside panel */
.nav-close {
  position: absolute;
  top: 1.4rem;
  right: 1.4rem;
  width: 36px;
  height: 36px;
  background: rgba(249,244,236,.08);
  border: 1px solid rgba(249,244,236,.12);
  border-radius: 50%;
  cursor: pointer;
  display: none;  /* shown only on mobile via JS */
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
}

.nav-close:hover { background: rgba(249,244,236,.15); }

.nav-close span {
  position: absolute;
  width: 15px;
  height: 1.5px;
  background: rgba(249,244,236,.8);
  display: block;
}

.nav-close span:first-child { transform: rotate(45deg); }
.nav-close span:last-child  { transform: rotate(-45deg); }

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: var(--espresso);
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0;
  transition: opacity 1.2s var(--ease-smooth);
}

.hero__img.loaded { opacity: 0.65; }

.hero__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(30, 15, 8, 0.15) 0%,
    rgba(30, 15, 8, 0.0) 35%,
    rgba(30, 15, 8, 0.6) 75%,
    rgba(30, 15, 8, 0.88) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin-inline: auto;
  width: 100%;
  padding: clamp(1.25rem, 5vw, 3rem);
  padding-bottom: clamp(4rem, 8vw, 6rem);
}

.hero__label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--amber-pale);
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: fadeSlideUp 0.8s 0.4s var(--ease-smooth) forwards;
}

.hero__label::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--amber-pale);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 8rem);
  font-weight: 300;
  line-height: 1.0;
  color: var(--cream);
  white-space: pre-line;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeSlideUp 0.9s 0.6s var(--ease-smooth) forwards;
}

.hero__title em {
  font-style: italic;
  color: var(--amber-pale);
}

.hero__sub {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  font-weight: 300;
  color: rgba(249, 244, 236, 0.8);
  max-width: 400px;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeSlideUp 0.9s 0.8s var(--ease-smooth) forwards;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  opacity: 0;
  animation: fadeSlideUp 0.9s 1s var(--ease-smooth) forwards;
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  right: clamp(1.25rem, 5vw, 3rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
  opacity: 0;
  animation: fadeIn 1s 1.5s forwards;
}

.hero__scroll span {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(249, 244, 236, 0.6);
  writing-mode: vertical-rl;
}

.scroll-arrow {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(249,244,236,0.6), transparent);
  animation: scrollPulse 2s infinite;
}

/* ── Featured Galleries – Masonry Grid ─────────────────────── */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto;
  gap: 1rem;
  margin-top: var(--space-lg);
}

.gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: var(--espresso-mid);
}

.gallery-card:nth-child(1) { grid-column: 1 / 8;  grid-row: 1; }
.gallery-card:nth-child(2) { grid-column: 8 / 13; grid-row: 1; }
.gallery-card:nth-child(3) { grid-column: 1 / 5;  grid-row: 2; }
.gallery-card:nth-child(4) { grid-column: 5 / 9;  grid-row: 2; }
.gallery-card:nth-child(5) { grid-column: 9 / 13; grid-row: 2; }

.gallery-card__img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-smooth),
              filter var(--dur-slow) var(--ease-smooth);
}

.gallery-card:nth-child(1) .gallery-card__img { min-height: 420px; }
.gallery-card:nth-child(2) .gallery-card__img { min-height: 420px; }
.gallery-card:nth-child(3) .gallery-card__img,
.gallery-card:nth-child(4) .gallery-card__img,
.gallery-card:nth-child(5) .gallery-card__img { min-height: 280px; }

.gallery-card:hover .gallery-card__img {
  transform: scale(1.06);
  filter: brightness(0.75);
}

.gallery-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30,15,8,0.82) 0%, transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  transition: opacity var(--dur-mid);
}

.gallery-card__cat {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber-pale);
  margin-bottom: 0.35rem;
}

.gallery-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.75rem);
  font-weight: 400;
  color: var(--cream);
  line-height: 1.15;
  margin-bottom: 0.4rem;
}

.gallery-card__subtitle {
  font-size: 0.82rem;
  color: rgba(249,244,236,0.7);
  transform: translateY(8px);
  opacity: 0;
  transition: all var(--dur-mid) var(--ease-smooth);
}

.gallery-card:hover .gallery-card__subtitle {
  opacity: 1;
  transform: translateY(0);
}

.gallery-card__arrow {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(249,244,236,0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  opacity: 0;
  transform: scale(0.8);
  transition: all var(--dur-mid) var(--ease-spring);
}

.gallery-card:hover .gallery-card__arrow {
  opacity: 1;
  transform: scale(1);
}

/* ── Gallery Grid (Seite gallery.php) ─────────────────────── */
.gallery-grid {
  gap: 1.25rem;
  margin-top: var(--space-lg);
}

/* Default (no variant) fallback */
.gallery-grid:not([class*="gallery-grid--"]) {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.gallery-tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--espresso-mid);
  aspect-ratio: 4 / 3;
}

.gallery-tile:nth-child(3n+1) { aspect-ratio: 4 / 5; }

.gallery-tile__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-smooth);
}

.gallery-tile:hover .gallery-tile__img { transform: scale(1.05); }

.gallery-tile__info {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30,15,8,0.88) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity var(--dur-mid);
}

.gallery-tile:hover .gallery-tile__info { opacity: 1; }

.gallery-tile__cat {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber-pale);
  margin-bottom: 0.3rem;
}

.gallery-tile__name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--cream);
  line-height: 1.2;
}

.gallery-tile__meta {
  font-size: 0.78rem;
  color: rgba(249,244,236,0.7);
  margin-top: 0.25rem;
}

/* Category Filter */
.cat-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}

.cat-btn {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--divider);
  background: transparent;
  color: var(--text-mid);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all var(--dur-fast);
}

.cat-btn:hover, .cat-btn.active {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--warm-white);
}

/* ── Lightbox / Foto-Detail ────────────────────────────────── */
.photo-grid {
  margin-top: var(--space-md);
}

/* Spacing variants */
.photo-spacing-none     { gap: 0; }
.photo-spacing-compact  { gap: 0.25rem; }
.photo-spacing-normal   { gap: 0.75rem; }
.photo-spacing-wide     { gap: 1.5rem; }

/* ── Masonry layout ── */
.photo-grid--masonry {
  display: block;
  columns: 3;
  column-gap: 0.75rem;
}

.photo-grid--masonry.photo-spacing-none     { column-gap: 0; }
.photo-grid--masonry.photo-spacing-compact  { column-gap: 0.25rem; }
.photo-grid--masonry.photo-spacing-wide     { column-gap: 1.5rem; }

.photo-grid--masonry .photo-thumb {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  display: block;
  margin-bottom: 0.75rem;
  aspect-ratio: unset;         /* natural image height */
}

.photo-grid--masonry.photo-spacing-none    .photo-thumb { margin-bottom: 0; }
.photo-grid--masonry.photo-spacing-compact .photo-thumb { margin-bottom: 0.25rem; }
.photo-grid--masonry.photo-spacing-wide    .photo-thumb { margin-bottom: 1.5rem; }

.photo-grid--masonry .photo-thumb:nth-child(4n+1),
.photo-grid--masonry .photo-thumb:nth-child(4n+3) { aspect-ratio: unset; }

.photo-grid--masonry .photo-thumb__img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Grid layout (equal cells) ── */
.photo-grid--grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.photo-grid--grid .photo-thumb { aspect-ratio: 3 / 2; }

/* ── Justified layout ── */
.photo-grid--justified {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-start;
}

.photo-grid--justified .photo-thumb {
  flex: 1 1 250px;
  aspect-ratio: 4 / 3;
}

/* ── Column count overrides ── */
.photo-cols-2.photo-grid--masonry { columns: 2; }
.photo-cols-3.photo-grid--masonry { columns: 3; }
.photo-cols-4.photo-grid--masonry { columns: 4; }
.photo-cols-2.photo-grid--grid { grid-template-columns: repeat(2, 1fr); }
.photo-cols-3.photo-grid--grid { grid-template-columns: repeat(3, 1fr); }
.photo-cols-4.photo-grid--grid { grid-template-columns: repeat(4, 1fr); }

/* ── Default fallback (no variant class) ── */
.photo-grid:not([class*="photo-grid--"]) {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.75rem;
}

.photo-thumb {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  cursor: zoom-in;
  background: var(--cream-deep);
  aspect-ratio: 3 / 2;
}

/* nth-child ratios only for non-masonry (masonry uses natural height) */
.photo-grid:not(.photo-grid--masonry) .photo-thumb:nth-child(4n+1) { aspect-ratio: 2 / 3; }
.photo-grid:not(.photo-grid--masonry) .photo-thumb:nth-child(4n+3) { aspect-ratio: 4 / 3; }

/* Responsive */
@media (max-width: 900px) {
  .photo-grid--masonry,
  .photo-cols-3.photo-grid--masonry,
  .photo-cols-4.photo-grid--masonry { columns: 2; }
  .photo-grid--grid,
  .photo-cols-3.photo-grid--grid,
  .photo-cols-4.photo-grid--grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .photo-grid--masonry,
  .photo-cols-2.photo-grid--masonry { columns: 1; }
  .photo-grid--grid,
  .photo-cols-2.photo-grid--grid { grid-template-columns: 1fr; }
  .photo-grid--justified .photo-thumb { flex: 1 1 100%; }
}

.photo-thumb__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-smooth),
              filter var(--dur-slow);
}

.photo-thumb:hover .photo-thumb__img {
  transform: scale(1.04);
  filter: brightness(0.85);
}

.photo-thumb__info {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--dur-mid);
}

.photo-thumb:hover .photo-thumb__info { opacity: 1; }

.photo-thumb__zoom {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(249,244,236,0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
}

/* ══════════════════════════════════════════════════════════
   LIGHTBOX – Fullscreen + Zoom
══════════════════════════════════════════════════════════ */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: #0e0705;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  user-select: none;
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

/* ── Top bar ── */
.lightbox__topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: linear-gradient(to bottom, rgba(14,7,5,.85) 0%, transparent 100%);
  gap: 1rem;
}

.lightbox__exif {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  flex: 1;
}

.exif-tag {
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(30,15,8,.75);
  color: var(--amber-pale);
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  white-space: nowrap;
}

.lightbox__controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.lb-icon-btn {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(249,244,236,.8);
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
  flex-shrink: 0;
}

.lb-icon-btn:hover  { background: rgba(255,255,255,.15); color: #fff; border-color: rgba(255,255,255,.3); }
.lb-icon-btn.active { background: var(--amber); border-color: var(--amber); color: #fff; }

/* ── Image stage – fills viewport ── */
.lightbox__stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: zoom-in;
}

.lightbox__stage.zoomed    { cursor: grab; }
.lightbox__stage.zoomed:active { cursor: grabbing; }

.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transform-origin: center center;
  transform: scale(1) translate(0, 0);
  transition: transform 0.22s cubic-bezier(0.25,0.46,0.45,0.94),
              opacity 0.2s ease;
  will-change: transform;
  pointer-events: none;
  display: block;
}

.lightbox__img.loading { opacity: 0.3; }

/* ── Nav buttons (prev/next) – sides ── */
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(14,7,5,.55);
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(249,244,236,.85);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s, transform 0.18s;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lightbox__nav:hover {
  background: rgba(192,120,56,.5);
  border-color: var(--amber);
  color: #fff;
}

.lightbox__nav--prev { left: 1rem; }
.lightbox__nav--next { right: 1rem; }

.lightbox__nav:active { transform: translateY(-50%) scale(0.93); }

/* ── Bottom bar ── */
.lightbox__bottombar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 10;
  padding: 1rem 1.25rem;
  background: linear-gradient(to top, rgba(14,7,5,.85) 0%, transparent 100%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.lightbox__info { flex: 1; min-width: 0; }

.lightbox__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(249,244,236,.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.lightbox__caption {
  font-size: 0.78rem;
  color: rgba(249,244,236,.45);
  margin-top: 0.2rem;
  font-style: italic;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lightbox__counter {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: rgba(249,244,236,.35);
  white-space: nowrap;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

/* ── Thumbnail strip ── */
.lightbox__thumbstrip {
  position: absolute;
  bottom: 3.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
  max-width: calc(100vw - 6rem);
  overflow-x: auto;
  padding: 0 .25rem;
  scrollbar-width: none;
}

.lightbox__thumbstrip::-webkit-scrollbar { display: none; }

.lb-thumb {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0.45;
  border: 1.5px solid transparent;
  flex-shrink: 0;
  transition: opacity 0.18s, border-color 0.18s;
}

.lb-thumb.active { opacity: 1; border-color: var(--amber); }
.lb-thumb:hover  { opacity: 0.8; }

/* ── Loading spinner ── */
.lightbox__spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  border: 2px solid rgba(255,255,255,.1);
  border-top-color: var(--amber);
  border-radius: 50%;
  animation: lb-spin 0.7s linear infinite;
  z-index: 5;
  display: none;
}

.lightbox__spinner.show { display: block; }

@keyframes lb-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ── Zoom level indicator ── */
.lb-zoom-label {
  font-size: .65rem;
  letter-spacing: .08em;
  color: rgba(249,244,236,.5);
  min-width: 36px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .lightbox__nav { width: 42px; height: 42px; }
  .lightbox__nav--prev { left: .5rem; }
  .lightbox__nav--next { right: .5rem; }
  .lightbox__exif { display: none; }    /* hide EXIF on small screens – too crowded */
  .lb-zoom-label  { display: none; }
  .lightbox__thumbstrip { bottom: 3rem; max-width: calc(100vw - 2rem); }
  .lb-thumb { width: 36px; height: 36px; }
}

/* ── About-Seite ───────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
  margin-top: var(--space-lg);
}

.about-img-wrap {
  position: relative;
}

.about-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.about-img-accent {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  width: 60%;
  aspect-ratio: 1;
  border: 2px solid var(--gold-light);
  border-radius: var(--radius-md);
  z-index: -1;
}

.about-quote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-style: italic;
  font-weight: 300;
  color: var(--espresso);
  line-height: 1.4;
  border-left: 2px solid var(--gold);
  padding-left: 1.5rem;
  margin-block: 2rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--divider);
}

.stat-item { text-align: center; }

.stat-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--amber);
  display: block;
  line-height: 1;
}

.stat-label {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-top: 0.4rem;
}

/* ── Testimonials ──────────────────────────────────────────── */
.testimonials-slider {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: var(--space-lg);
}

.testimonial-card {
  background: rgba(249,244,236,0.06);
  border: 1px solid rgba(201,168,108,0.15);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: border-color var(--dur-mid), transform var(--dur-mid) var(--ease-smooth);
}

.testimonial-card:hover {
  border-color: rgba(201,168,108,0.4);
  transform: translateY(-4px);
}

.testimonial-stars {
  display: flex;
  gap: 0.15rem;
  margin-bottom: 1.25rem;
}

.star-icon {
  width: 14px;
  height: 14px;
  fill: var(--amber-pale);
  color: var(--amber-pale);
}

.testimonial-quote {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 300;
  color: var(--cream-mid);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
}

.testimonial-name {
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--cream);
}

.testimonial-role {
  font-size: 0.72rem;
  color: rgba(249,244,236,0.5);
  margin-top: 0.1rem;
}

/* ── Kontaktformular ───────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
  margin-top: var(--space-lg);
}

.contact-info h3 {
  margin-bottom: 0.75rem;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--divider);
}

.contact-detail:first-of-type { border-top: none; margin-top: 1.5rem; padding-top: 0; }

.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(192,120,56,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 18px;
  height: 18px;
  color: var(--amber);
}

.contact-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.contact-value {
  font-size: 1rem;
  color: var(--text-dark);
}

.contact-value a:hover { color: var(--amber); }

/* Formular */
.form-card {
  background: var(--warm-white);
  border: 1px solid var(--cream-deep);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 3rem);
  box-shadow: 0 8px 40px rgba(30,15,8,0.08);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  background: var(--cream);
  border: 1px solid var(--cream-deep);
  border-radius: var(--radius-sm);
  color: var(--text-dark);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
  outline: none;
  -webkit-appearance: none;
}

.form-control:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(192, 120, 56, 0.12);
}

.form-control::placeholder { color: var(--text-muted); }

textarea.form-control {
  resize: vertical;
  min-height: 130px;
}

select.form-control { cursor: pointer; }

.form-submit { margin-top: 1.75rem; }

/* Alert */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  display: none;
}

.alert.show { display: block; }

.alert--success {
  background: rgba(100, 160, 100, 0.1);
  border: 1px solid rgba(100, 160, 100, 0.3);
  color: #2d6a2d;
}

.alert--error {
  background: rgba(200, 80, 60, 0.1);
  border: 1px solid rgba(200, 80, 60, 0.3);
  color: #8b2020;
}

/* ── Gallery Detail – Hero Minimal ────────────────────────── */
.gallery-hero {
  height: 55svh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.gallery-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6);
}

.gallery-hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding: clamp(1.25rem, 5vw, 3rem);
  padding-bottom: 3rem;
}

.gallery-hero__cat {
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber-pale);
  margin-bottom: 0.75rem;
}

.gallery-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 300;
  color: var(--cream);
  margin-bottom: 0.5rem;
}

.gallery-hero__sub {
  font-size: 1rem;
  color: rgba(249,244,236,0.75);
  max-width: 480px;
}

/* ── Page Hero (About, Galerie) ────────────────────────────── */
.page-hero {
  padding-top: calc(var(--nav-h) + 4rem);
  padding-bottom: 4rem;
  text-align: center;
  background: linear-gradient(180deg, var(--cream-mid) 0%, var(--cream) 100%);
}

/* ── CTA Banner ────────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--espresso) 0%, var(--espresso-mid) 100%);
  padding-block: clamp(4rem, 7vw, 6rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '"';
  position: absolute;
  top: -2rem;
  left: 5%;
  font-family: var(--font-display);
  font-size: 20rem;
  color: rgba(200,131,74,0.05);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.cta-banner .section-title { color: var(--cream); margin-bottom: 1rem; }
.cta-banner .section-subtitle { color: rgba(249,244,236,0.65); margin-inline: auto; margin-bottom: 2.5rem; }

/* ── Footer ────────────────────────────────────────────────── */
.site-footer {
  background: var(--espresso);
  color: var(--cream-mid);
}

.footer-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding: clamp(3rem, 6vw, 5rem) clamp(1.25rem, 5vw, 3rem);
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand .footer-logo {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.footer-brand .logo-letters { color: var(--amber-pale); }
.footer-brand .logo-name { color: var(--cream-mid); }

.footer-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: rgba(240,232,216,0.5);
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(249,244,236,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(249,244,236,0.6);
  transition: all var(--dur-fast);
}

.footer-social a:hover {
  border-color: var(--amber);
  color: var(--amber-pale);
}

.footer-social svg { width: 16px; height: 16px; }

.footer-nav h4,
.footer-contact h4 {
  font-size: 0.68rem;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber-pale);
  margin-bottom: 1.25rem;
}

.footer-nav ul { list-style: none; }

.footer-nav li + li { margin-top: 0.6rem; }

.footer-nav a {
  font-size: 0.88rem;
  color: rgba(240,232,216,0.6);
  transition: color var(--dur-fast);
}

.footer-nav a:hover { color: var(--cream); }

.footer-contact p {
  font-size: 0.88rem;
  color: rgba(240,232,216,0.6);
  margin-bottom: 0.5rem;
}

.footer-contact a:hover { color: var(--amber-pale); }

.footer-bottom {
  border-top: 1px solid rgba(249,244,236,0.06);
  padding: 1.5rem clamp(1.25rem, 5vw, 3rem);
  max-width: var(--max-w);
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: rgba(240,232,216,0.35);
}

.footer-legal { display: flex; gap: 1.25rem; }
.footer-legal a { color: rgba(240,232,216,0.35); transition: color var(--dur-fast); }
.footer-legal a:hover { color: rgba(240,232,216,0.7); }

/* ── Admin ─────────────────────────────────────────────────── */
.admin-body {
  background: #f5f0eb;
  font-family: var(--font-body);
}

.admin-login-wrap {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--espresso) 0%, var(--espresso-mid) 100%);
}

.admin-login-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}

.admin-login-logo {
  text-align: center;
  margin-bottom: 2rem;
}

/* ── Keyframes ─────────────────────────────────────────────── */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.6; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.15); }
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .featured-grid {
    grid-template-columns: 1fr 1fr;
  }
  .gallery-card:nth-child(1) { grid-column: 1 / -1; grid-row: 1; }
  .gallery-card:nth-child(2) { grid-column: 1 / 2;  grid-row: 2; }
  .gallery-card:nth-child(3) { grid-column: 2 / 3;  grid-row: 2; }
  .gallery-card:nth-child(4) { grid-column: 1 / 2;  grid-row: 3; }
  .gallery-card:nth-child(5) { grid-column: 2 / 3;  grid-row: 3; }

  .about-grid      { grid-template-columns: 1fr; }
  .contact-grid    { grid-template-columns: 1fr; }
  .testimonials-slider { grid-template-columns: 1fr; }
  .footer-inner    { grid-template-columns: 1fr 1fr; }

  .nav-toggle { display: flex; z-index: 1001; }

  .about-img-accent { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: repeat(3, 1fr); }

  /* ── Mobile Nav Panel ── */
  /* JS removes header's backdrop-filter + transform before opening,
     so position:fixed here correctly covers the full viewport */

  .nav-links {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    left: auto;
    width: min(88vw, 360px);
    z-index: 9000;
    background: var(--espresso);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 5rem 2.5rem 3rem;
    gap: 0;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.36s cubic-bezier(0.25,0.46,0.45,0.94),
                visibility 0s 0.36s;
    overflow-y: auto;
  }

  .nav-links.open {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.36s cubic-bezier(0.25,0.46,0.45,0.94),
                visibility 0s 0s;
  }

  .nav-links li {
    width: 100%;
    border-bottom: 1px solid rgba(249,244,236,.07);
  }

  .nav-links li:first-child { border-top: 1px solid rgba(249,244,236,.07); }

  .nav-link {
    display: block;
    width: 100%;
    padding: 1.1rem 0;
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 300;
    color: rgba(249,244,236,.65);
    letter-spacing: 0.01em;
    border-radius: 0;
    transition: color 0.2s, padding-left 0.2s;
  }

  .nav-link::after { display: none; }
  .nav-link:hover  { color: var(--amber); padding-left: 0.4rem; }

  .nav-link--cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
    width: auto;
    background: var(--amber);
    color: #fff !important;
    padding: .85rem 1.75rem;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: .82rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-weight: 500;
  }

  .nav-link--cta:hover { background: var(--amber-light); color: #fff !important; padding-left: 1.75rem; }
}

@media (max-width: 600px) {
  .featured-grid { grid-template-columns: 1fr; }
  .gallery-card:nth-child(n) {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .testimonials-slider { grid-template-columns: 1fr; }
}

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream-mid); }
::-webkit-scrollbar-thumb {
  background: var(--gold-light);
  border-radius: 3px;
}

/* ── Selektion ─────────────────────────────────────────────── */
::selection {
  background: rgba(192, 120, 56, 0.25);
  color: var(--espresso);
}

/* ── Cookie Banner ─────────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(calc(100% + 2rem));
  width: min(96vw, 560px);
  background: var(--espresso);
  color: var(--cream-mid);
  border-radius: 6px;
  padding: 1.5rem 1.75rem;
  z-index: 9000;
  box-shadow: 0 8px 40px rgba(0,0,0,.4);
  transition: transform .4s var(--ease-smooth), opacity .4s;
  opacity: 0;
}
.cookie-banner.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.cookie-banner p {
  font-size: .82rem;
  line-height: 1.7;
  margin: 0 0 1.1rem;
  color: rgba(249,244,236,.75);
}
.cookie-banner p a { color: var(--amber); text-decoration: underline; }
.cookie-banner__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--cream);
  margin: 0 0 .5rem;
}
.cookie-banner__actions {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}
.cookie-btn {
  font-family: var(--font-body);
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: none;
  border-radius: 3px;
  padding: .55rem 1.1rem;
  cursor: pointer;
  transition: opacity .2s;
  white-space: nowrap;
}
.cookie-btn:hover { opacity: .85; }
.cookie-btn--accept  { background: var(--amber);   color: #fff; }
.cookie-btn--deny    { background: rgba(255,255,255,.1); color: var(--cream-mid); }
.cookie-btn--settings{ background: none; color: var(--amber); border: 1px solid var(--amber); }

/* ── Cookie Settings Modal ─────────────────────────────────── */
.cookie-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(30,15,8,.65);
  backdrop-filter: blur(4px);
  z-index: 9100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility 0s .3s;
}
.cookie-modal-backdrop.open {
  opacity: 1;
  visibility: visible;
  transition: opacity .3s, visibility 0s;
}
.cookie-modal {
  background: var(--cream);
  border-radius: 8px;
  width: min(92vw, 520px);
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(30,15,8,.25);
  transform: translateY(20px);
  transition: transform .3s var(--ease-smooth);
}
.cookie-modal-backdrop.open .cookie-modal { transform: translateY(0); }
.cookie-modal h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--espresso);
  margin: 0 0 .3rem;
}
.cookie-modal > p {
  font-size: .82rem;
  color: var(--espresso-light);
  line-height: 1.7;
  margin: 0 0 1.5rem;
}
.cookie-category {
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1rem 1.1rem;
  margin-bottom: .75rem;
}
.cookie-category__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.cookie-category__name {
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 500;
  color: var(--espresso);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.cookie-category__desc {
  font-size: .78rem;
  color: var(--espresso-light);
  line-height: 1.6;
  margin: .4rem 0 0;
}
/* Toggle switch */
.cookie-toggle {
  position: relative;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}
.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.cookie-toggle__track {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 22px;
  transition: background .25s;
  cursor: pointer;
}
.cookie-toggle__track::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform .25s;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.cookie-toggle input:checked + .cookie-toggle__track { background: var(--amber); }
.cookie-toggle input:checked + .cookie-toggle__track::after { transform: translateX(18px); }
.cookie-toggle input:disabled + .cookie-toggle__track { opacity: .5; cursor: default; }
.cookie-modal__footer {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
}


/* ══════════════════════════════════════════════════════════
   GALLERY LAYOUT VARIANTS  (controlled via Admin Settings)
══════════════════════════════════════════════════════════ */

/* ── Masonry (CSS columns) ── */
.gallery-grid--masonry {
  display: block;
  columns: 3;
  column-gap: 1.25rem;
}

.gallery-grid--masonry .gallery-tile {
  break-inside: avoid;
  page-break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin-bottom: 1.25rem;
  display: block;
  aspect-ratio: unset;   /* let image dictate height */
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.gallery-grid--masonry .gallery-tile:nth-child(3n+1) {
  aspect-ratio: unset;   /* reset homepage override */
}

.gallery-grid--masonry .gallery-tile__img {
  width: 100%;
  height: auto;          /* natural height for masonry */
  display: block;
}

/* ── Grid (equal cells) ── */
.gallery-grid--grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.gallery-grid--grid .gallery-tile {
  aspect-ratio: 4 / 3;
}

/* ── Justified (full-width rows) ── */
.gallery-grid--justified {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
}

.gallery-grid--justified .gallery-tile {
  flex: 1 1 280px;
  aspect-ratio: 4 / 3;
}

/* ── Column count overrides ── */
.gallery-cols-2.gallery-grid--masonry { columns: 2; }
.gallery-cols-3.gallery-grid--masonry { columns: 3; }
.gallery-cols-4.gallery-grid--masonry { columns: 4; }

.gallery-cols-2.gallery-grid--grid { grid-template-columns: repeat(2, 1fr); }
.gallery-cols-3.gallery-grid--grid { grid-template-columns: repeat(3, 1fr); }
.gallery-cols-4.gallery-grid--grid { grid-template-columns: repeat(4, 1fr); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .gallery-grid--masonry,
  .gallery-cols-3.gallery-grid--masonry,
  .gallery-cols-4.gallery-grid--masonry { columns: 2; }
  .gallery-grid--grid,
  .gallery-cols-3.gallery-grid--grid,
  .gallery-cols-4.gallery-grid--grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .gallery-grid--masonry,
  .gallery-cols-2.gallery-grid--masonry { columns: 1; }
  .gallery-grid--grid,
  .gallery-cols-2.gallery-grid--grid    { grid-template-columns: 1fr; }
  .gallery-grid--justified .gallery-tile { flex: 1 1 100%; }
}

/* ══════════════════════════════════════════════════════════
   MOBILE MENU  – full-panel redesign
══════════════════════════════════════════════════════════ */

/* Honeypot fields – visually hidden, screen readers ignored */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  tabindex: -1;
}

