/* ── Variables ──────────────────────────────────────────────────────────── */
:root {
  --black: #0a0a0a;
  --off-black: #111111;
  --dark: #1a1a1a;
  --dark-mid: #222222;
  --mid: #888888;
  --light-mid: #aaaaaa;
  --light: #dddddd;
  --off-white: #f5f2ee;
  --white: #ffffff;
  --gold: #c9a96e;
  --gold-light: #e4c99a;
  --gold-dark: #a07040;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Montserrat', sans-serif;

  --header-h: 78px;
  --transition: 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--black);
  color: var(--light);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  transition: background var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(201,169,110,0.15);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
}

.logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}

.logo-icon {
  width: 70px;
  height: 42px;
  flex-shrink: 0;
}

.logo-main {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: #40aadd;
}

.logo-img {
  max-height: 44px;
  width: auto;
  display: block;
  object-fit: contain;
}

.main-nav {
  display: flex;
  gap: 36px;
  align-items: center;
}

.main-nav a {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--light-mid);
  transition: color var(--transition);
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.main-nav a:hover { color: var(--white); }
.main-nav a:hover::after { transform: scaleX(1); }
.main-nav a.nav-admin { color: var(--gold); }

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

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--white);
  transition: var(--transition);
}

/* ── Flash Messages ──────────────────────────────────────────────────────── */
.flash-messages {
  position: fixed;
  top: calc(var(--header-h) + 12px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  min-width: 320px;
}

.flash {
  padding: 14px 24px;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-align: center;
  animation: fadeInDown 0.4s ease, fadeOut 0.4s ease 3.5s forwards;
}

.flash-success { background: rgba(100,180,100,0.15); border: 1px solid rgba(100,180,100,0.4); color: #90ee90; }
.flash-error { background: rgba(200,60,60,0.15); border: 1px solid rgba(200,60,60,0.4); color: #ff9999; }

@keyframes fadeInDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }

/* ── Splash Screen ───────────────────────────────────────────────────────── */
.splash-screen {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* height: 100vh comes from .hp-panel */
}

.splash-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  animation: slowZoom 20s ease-in-out infinite alternate;
}

.splash-bg-a {
  z-index: 0;
}

.splash-bg-b {
  z-index: 1;
  opacity: 0;
  transition: opacity 2.5s ease-in-out;
}

.splash-bg-b.fade-in {
  opacity: 1;
}

.splash-placeholder {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-mid) 100%);
}

@keyframes slowZoom {
  from { transform: scale(1.05); }
  to { transform: scale(1.12); }
}

.splash-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.3) 0%,
    rgba(0,0,0,0.5) 50%,
    rgba(0,0,0,0.8) 100%
  );
}

.splash-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
}

.splash-title {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 10vw, 8rem);
  font-weight: 300;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.3);
  line-height: 1;
  animation: fadeUp 1.2s ease 0.3s both;
}

.splash-subtitle {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 16px;
  animation: fadeUp 1.2s ease 0.6s both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.splash-scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  position: fixed;
  bottom: 36px;
  left: 0;
  width: 100vw;
  z-index: 9001;
  color: rgba(255,255,255,0.65);
  font-size: 1.0rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0;
  transition: color var(--transition), opacity 0.4s ease;
  pointer-events: none;
}

.splash-scroll-hint:hover { color: rgba(255,255,255,0.95); }

.splash-scroll-hint svg {
  width: 28px;
  height: 28px;
  animation: bounce 2s ease infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ── Floating Photos (splash animation) ─────────────────────────────────── */
.floating-photos {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1s ease;
}

.floating-photos.visible {
  opacity: 1;
}

.floating-photo {
  position: absolute;
  will-change: transform;
  perspective: 900px;
}

.floating-photo-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.floating-photo-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6), 0 2px 8px rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.08);
}

.floating-photo-back {
  transform: rotateY(180deg);
}

.floating-photo-face img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  user-select: none;
  background: transparent;
}

/* ── Scrolling Photos Section ────────────────────────────────────────────── */
/* ── Homepage scroll: JS-driven fixed panels ────────────────────────────── */
/* The container height is set by JS to N*100vh, providing the scroll runway.
   Tracks are invisible scroll-space divs. Panels are position:fixed and
   translated by JS — panel 0 starts at 0, panels 1..N start at 100vh and
   slide up as the user scrolls into their window. */
.hp-scroll-container {
  /* height set by JS */
}

.hp-track {
  height: 100vh; /* each track = one scroll step; JS reads offsetTop */
}

.hp-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  /* z-index = panel-index + 1 */
  z-index: calc(var(--panel-index) + 1);
  /* panels start translated below viewport; JS animates them */
  transform: translateY(100vh);
  will-change: transform;
}
/* First panel starts visible */
.hp-panel[style*="--panel-index:0"] {
  transform: translateY(0);
}

/* Photo panels */
.hp-photo-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hp-photo-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25);
  z-index: 1;
}

.hp-photo-caption {
  position: absolute;
  bottom: 80px;
  width: 260px;
  z-index: 2;
}
.hp-photo-caption.caption-right { right: 60px; text-align: right; }
.hp-photo-caption.caption-left  { left: 60px; }

.hp-photo-caption p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--off-white);
  line-height: 1.5;
  padding: 16px;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  border-left: 2px solid var(--gold);
}
.hp-photo-caption.caption-right p { border-left: none; border-right: 2px solid var(--gold); }

/* Galleries panel */
.hp-galleries-panel {
  background: var(--black);
  overflow-y: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hp-galleries-panel .featured-galleries {
  width: 100%;
  max-height: 100vh;
  overflow-y: auto;
}

/* ── Scroll counter ──────────────────────────────────────────────────────── */
body.hp-on-splash .hp-counter { opacity: 0; pointer-events: none; }
body.hp-on-splash .splash-scroll-hint { opacity: 1; pointer-events: auto; }
/* Hide hint on non-splash panels */
body:not(.hp-on-splash) .splash-scroll-hint { opacity: 0; pointer-events: none; }

.hp-counter {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9000;
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.6);
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.hp-counter-sep {
  font-size: 0.65rem;
  opacity: 0.6;
}
#hp-counter-current {
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 400;
}

/* ── Featured Galleries ─────────────────────────────────────────────────── */
.featured-galleries {
  padding: 80px 40px;
  max-width: 1400px;
  margin: 0 auto;
}
/* Inside the hp-galleries-panel the container needs no extra top padding */
.hp-galleries-panel .featured-galleries { padding-top: calc(var(--header-h) + 40px); }

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 48px;
}

.section-header h2 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--white);
}

.view-all {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}

.view-all:hover { border-color: var(--gold); }

/* ── Gallery Grid ────────────────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2px;
}

.gallery-grid-large {
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 3px;
}

.gallery-card {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--dark);
}

.gallery-card-img {
  position: relative;
  width: 100%;
  height: 100%;
}

.gallery-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.gallery-card:hover .gallery-card-img img {
  transform: scale(1.05);
}

.gallery-card-placeholder {
  width: 100%;
  height: 100%;
  background: var(--dark-mid);
}

.gallery-lock {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 1rem;
  background: rgba(0,0,0,0.6);
  padding: 4px 8px;
  border-radius: 2px;
}

.gallery-card-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 40px 20px 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
  transform: translateY(8px);
  transition: transform var(--transition);
}

.gallery-card:hover .gallery-card-info { transform: translateY(0); }

.gallery-card-info h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--white);
}

.gallery-card-info span,
.gallery-card-info p {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--light-mid);
  margin-top: 4px;
}

/* ── Page Hero ───────────────────────────────────────────────────────────── */
.page-hero {
  padding: calc(var(--header-h) + 80px) 40px 60px;
  text-align: center;
  border-bottom: 1px solid rgba(201,169,110,0.12);
}

.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--white);
}

.page-hero p {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 12px;
}

/* ── Gallery Page ─────────────────────────────────────────────────────────── */
.gallery-page-header {
  padding: calc(var(--header-h) + 60px) 40px 40px;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.gallery-breadcrumb {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 16px;
  display: block;
}

.gallery-breadcrumb a { color: var(--gold); transition: color var(--transition); }
.gallery-breadcrumb a:hover { color: var(--gold-light); }

.gallery-page-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--white);
}

.gallery-desc {
  margin-top: 12px;
  color: var(--light-mid);
  max-width: 100%;
}

.view-switcher {
  display: flex;
  gap: 8px;
  margin-top: 24px;
}

/* Header-level slideshow button — pushed to right edge of header */
.gallery-page-header .view-switcher {
  margin-top: 24px;
  align-self: flex-end;
}

.view-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--mid);
  transition: all var(--transition);
}

.view-btn svg { width: 14px; height: 14px; }
.view-btn:hover { border-color: var(--gold); color: var(--gold); }
.view-btn.active { border-color: var(--gold); color: var(--gold); background: rgba(201,169,110,0.08); }

/* ── Photo Grid ─────────────────────────────────────────────────────────── */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 3px;
  padding: 0 0 80px;
}

.photo-grid-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: var(--dark);
}

.photo-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.photo-grid-item:hover img { transform: scale(1.04); }

.photo-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px 16px 12px;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--off-white);
  opacity: 0;
  transition: opacity var(--transition);
}

.photo-grid-item:hover .photo-caption { opacity: 1; }

/* ── Photo Strip (lightbox trigger view) ─────────────────────────────────── */
/* ── Sub-gallery section ─────────────────────────────────────────────────── */
.sub-galleries {
  margin-bottom: 60px;
  padding: 0 40px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.section-divider-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 32px;
  padding: 0 40px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.section-divider-row .view-switcher {
  margin: 0;
  position: static; /* override the header absolute rule */
}

.section-divider {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--mid);
  margin: 0;
}

.photo-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  grid-auto-rows: 10px;
  gap: 9px;
  padding: 0 60px 120px;
  align-items: start;
}

.photo-strip-item {
  cursor: pointer;
  overflow: hidden;
  position: relative;
  display: block;
  width: 100%;
}

.photo-strip-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.photo-strip-item:hover img { transform: scale(1.02); }

/* Captions are absolute overlays — no longer static text below the photo */
.photo-strip-item .photo-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px 16px 12px;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--off-white);
  opacity: 0;
  transition: opacity var(--transition);
}
.photo-strip-item:hover .photo-caption { opacity: 1; }

/* ── Photo info button & EXIF modal ─────────────────────────────────────── */
.photo-strip-item-wrap {
  position: relative;
  margin-bottom: 0;
  /* Fill the allocated grid rows completely */
  height: 100%;
  min-height: 0;
}
/* The <a> inside the wrap fills the wrap height */
.photo-strip-item-wrap .photo-strip-item {
  margin-bottom: 0;
  height: 100%;
  display: block;
}
.photo-strip-item-wrap .photo-strip-item img,
.photo-strip-item-wrap .photo-strip-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-exif-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, color 0.2s ease;
  padding: 0;
  backdrop-filter: blur(4px);
  flex-shrink: 0;
}
.photo-exif-btn svg { width: 16px; height: 16px; }
.photo-exif-btn:hover { border-color: var(--gold); color: var(--gold); }
.photo-exif-btn:hover svg { stroke: var(--gold); }

/* EXIF modal */
.exif-modal {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.exif-modal[hidden] { display: none; }

.exif-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
}

.exif-modal-box {
  position: relative;
  z-index: 1;
  background: var(--off-black);
  border: 1px solid rgba(255,255,255,0.1);
  width: min(520px, 92vw);
  max-height: 80vh;
  overflow-y: auto;
  padding: 32px;
  border-radius: 2px;
}

.exif-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--mid);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  transition: color var(--transition);
}
.exif-modal-close:hover { color: var(--white); }

.exif-modal-title {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 24px;
}

.exif-loading, .exif-error {
  color: var(--mid);
  font-size: 0.85rem;
  text-align: center;
  padding: 24px 0;
}

.exif-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 8px 16px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  align-items: baseline;
}
.exif-row:last-child { border-bottom: none; }

.exif-label {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
}

.exif-value {
  font-size: 0.85rem;
  color: var(--off-white);
  word-break: break-word;
}

/* ── Contact form confirmation modal ─────────────────────────────────────── */
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
}

.contact-modal-box {
  position: relative;
  z-index: 1;
  background: var(--off-black);
  border: 1px solid rgba(255,255,255,0.1);
  width: min(440px, 92vw);
  padding: 48px 40px 40px;
  border-radius: 2px;
  text-align: center;
  animation: contact-modal-in 220ms ease-out;
}

@keyframes contact-modal-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.contact-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--mid);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  transition: color var(--transition);
}
.contact-modal-close:hover { color: var(--white); }

.contact-modal-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
}
.contact-modal-icon svg {
  width: 32px;
  height: 32px;
}
.contact-modal-icon-success { color: var(--gold); }
.contact-modal-icon-error   { color: #d9534f; }

.contact-modal-title {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 16px;
}

.contact-modal-text {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--off-white);
  line-height: 1.5;
  margin: 0 0 28px;
}

.contact-modal-ok {
  min-width: 140px;
}

/* ── Lightbox ────────────────────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0,0,0,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox[hidden] { display: none; }

.lb-content {
  max-width: 90vw;
  max-height: 90vh;
  text-align: center;
}

.lb-content img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  margin: 0 auto;
}

#lb-caption {
  margin-top: 16px;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--light-mid);
}

.lb-close, .lb-prev, .lb-next {
  position: fixed;
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
  cursor: pointer;
  transition: all var(--transition);
  font-size: 1.5rem;
  line-height: 1;
}

.lb-close {
  top: 24px; right: 24px;
  width: 44px; height: 44px;
  font-size: 1.2rem;
}

.lb-prev { left: 24px; top: 50%; transform: translateY(-50%); padding: 16px 20px; }
.lb-next { right: 24px; top: 50%; transform: translateY(-50%); padding: 16px 20px; }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { border-color: var(--gold); color: var(--gold); }

/* ── Slideshow ───────────────────────────────────────────────────────────── */
/* ── Full-window Slideshow ───────────────────────────────────────────────── */

/* When the full-window slideshow is active, hide surrounding page chrome */
body.fws-active .gallery-page-header,
body.fws-active #site-header,
body.fws-active footer { display: none; }
body.fws-active main { padding: 0; }

.fullwin-slideshow {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--black);
  overflow: hidden;
}

/* Two crossfade background layers */
.fws-layer {
  position: absolute;
  inset: 0;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #000; /* black bars fill uncovered area */
}

#fws-b {
  opacity: 0;
  transition: opacity 0.8s ease;
}
#fws-b.visible { opacity: 1; }

/* Caption */
.fws-caption {
  position: absolute;
  bottom: 24px;
  right: 24px;
  left: auto;
  transform: none;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: rgba(255,255,255,0.9);
  text-align: right;
  padding: 6px 14px;
  background: rgba(0,0,0,0.18);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-right: 2px solid rgba(255,255,255,0.18);
  max-width: 42vw;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 2px 0 0 2px;
}
.fws-caption:not(:empty) { opacity: 1; }

/* Controls overlay — hidden until hover */
.fws-controls {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 20;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
/* JS adds this class on mousemove; removes it after 2.5 s idle */
.fws-controls-visible {
  opacity: 1;
  pointer-events: auto;
}

/* Top-right cluster: caption toggle + close */
.fws-top-right {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 10px;
}

/* Prev / next sit at the sides, vertically centred */
.fws-prev, .fws-next { flex-shrink: 0; }

/* Bottom-centre cluster: play, fullscreen, counter */
.fws-middle {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
}

.fws-counter {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.55);
  font-family: var(--font-sans);
  white-space: nowrap;
}

/* Button base */
.fws-btn {
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--white);
  cursor: pointer;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
  backdrop-filter: blur(4px);
  padding: 0;
}
.fws-btn:hover {
  background: rgba(0,0,0,0.6);
  border-color: var(--gold);
}
.fws-btn svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: block;
  stroke: var(--white);
  transition: stroke 0.2s ease;
}
.fws-btn:hover svg { stroke: var(--gold); }
.fws-playpause svg, .fws-fs svg, .fws-caption-toggle svg, .fws-close svg { width: 18px; height: 18px; }
.fws-prev svg, .fws-next svg { width: 26px; height: 26px; }
/* fill-based icons (play/pause) */
.fws-playpause svg { fill: var(--white); stroke: none; }
.fws-playpause:hover svg { fill: var(--gold); stroke: none; }
/* Active state for caption toggle — gold border when captions are on */
.fws-btn-active {
  border-color: var(--gold) !important;
}
.fws-btn-active svg { stroke: var(--gold) !important; }
/* Close button: slightly smaller, always visible hint */
.fws-close { width: 44px; height: 44px; }

/* ── glightbox theme overrides ───────────────────────────────────────────── */
.glightbox-clean .gslide-description { background: rgba(0,0,0,0.75) !important; }
.glightbox-clean .gdesc-inner { padding: 14px 20px !important; }
.glightbox-clean .gslide-title { display: none; }
.glightbox-clean .gslide-desc {
  font-family: var(--font-serif) !important;
  font-style: italic !important;
  font-size: 1rem !important;
  color: var(--off-white) !important;
  margin: 0 !important;
}
.glightbox-clean .gnext, .glightbox-clean .gprev {
  background: rgba(0,0,0,0.35) !important;
  border: 1px solid rgba(255,255,255,0.18) !important;
  border-radius: 50% !important;
}
.glightbox-clean .gnext:hover, .glightbox-clean .gprev:hover {
  background: rgba(0,0,0,0.6) !important;
  border-color: var(--gold) !important;
}


/* ── Photo title caption (larger than regular caption) ────────────────────── */
.photo-caption-title {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--off-white);
  background: var(--off-black);
  padding: 8px 12px 4px;
  margin: 0;
}
.photo-caption-title + .photo-caption {
  padding-top: 2px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* ── Pagination ──────────────────────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 48px 0 80px;
}
.page-btn {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.35);
  padding: 10px 28px;
  transition: all var(--transition);
  background: rgba(255,255,255,0.05);
}
.page-btn:hover { border-color: var(--gold); color: var(--gold); background: rgba(201,169,110,0.08); }
.page-info { font-size: 0.78rem; color: var(--light-mid); letter-spacing: 0.1em; }

/* ── Keyword browser (admin) ─────────────────────────────────────────────── */
.exif-folder-select {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  padding: 8px 12px;
  border-radius: 2px;
  min-width: 320px;
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition);
}
.exif-folder-select:hover,
.exif-folder-select:focus { border-color: var(--gold); }
.exif-folder-select option {
  background: #1a1a1a;
  color: var(--white);
}

.keyword-list {
  max-height: 500px;
  overflow-y: auto;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  padding: 8px 0;
}
.keyword-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.keyword-row:last-child { border-bottom: none; }
.keyword-link {
  font-size: 0.8rem;
  color: var(--light-mid);
  transition: color var(--transition);
}
.keyword-link:hover { color: var(--gold); }
.keyword-count {
  font-size: 0.7rem;
  color: var(--mid);
  background: rgba(255,255,255,0.06);
  padding: 1px 7px;
  border-radius: 10px;
  flex-shrink: 0;
}

/* ── Gallery header admin actions ────────────────────────────────────────── */
.gallery-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}
.gallery-header-actions .view-switcher {
  margin-top: 0;
  align-self: auto;
}

.btn-admin-manage {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid var(--gold);
  color: var(--gold);
  background: rgba(201,169,110,0.08);
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-admin-manage:hover {
  background: rgba(201,169,110,0.18);
}
/* ── Password Gate ───────────────────────────────────────────────────────── */
.password-gate {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.password-gate-inner {
  max-width: 400px;
  width: 100%;
  text-align: center;
}

.lock-icon {
  font-size: 3rem;
  margin-bottom: 24px;
}

.password-gate-inner h1 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 300;
  color: var(--white);
  margin-bottom: 12px;
}

.password-gate-inner p {
  color: var(--mid);
  margin-bottom: 32px;
}

.error-msg { color: #ff9999; margin-bottom: 16px !important; }

.password-gate-inner input {
  width: 100%;
  padding: 14px 18px;
  background: var(--dark);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--white);
  font-size: 1rem;
  text-align: center;
  letter-spacing: 0.2em;
  margin-bottom: 16px;
  transition: border-color var(--transition);
}

.password-gate-inner input:focus {
  outline: none;
  border-color: var(--gold);
}

/* ── About Page ──────────────────────────────────────────────────────────── */
.about-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 40px 40px;
}

.about-text h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--white);
  margin-bottom: 32px;
  line-height: 1.1;
  text-align: center;
}

.about-text h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 300;
  color: var(--white);
  margin: 1.2em 0 0.5em;
}

.about-text h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--white);
  margin: 1em 0 0.4em;
}

.about-text p {
  color: var(--light-mid);
  margin-bottom: 20px;
  font-size: 1.05rem;
  line-height: 1.8;
}

.about-text a { color: var(--gold); }
.about-text a:hover { color: var(--gold-light); }

.about-text ul, .about-text ol {
  color: var(--light-mid);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 20px;
  padding-left: 1.5em;
}
.about-text li { margin-bottom: 6px; }

/* ── Contact Page ────────────────────────────────────────────────────────── */
.contact-page {
  max-width: 700px;
  margin: 0 auto;
  padding: 30px 40px 120px;
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--dark);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-group textarea { resize: vertical; min-height: 140px; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  padding: 14px 36px;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary:hover {
  background: var(--gold);
  color: var(--black);
}

.btn-secondary {
  display: inline-block;
  padding: 10px 24px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--light-mid);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-secondary:hover { border-color: var(--white); color: var(--white); }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid rgba(201,169,110,0.12);
  padding: 32px 40px;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.footer-row-main {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--gold);
  text-decoration: none;
}
.footer-logo:hover { color: var(--gold-light); }

.footer-nav {
  display: flex;
  gap: 24px;
}

.footer-nav a {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid);
  transition: color var(--transition);
}

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

.footer-copy {
  font-size: 0.7rem;
  color: var(--light-mid);
  letter-spacing: 0.05em;
}

/* ── 404 ─────────────────────────────────────────────────────────────────── */
.not-found {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
}

.not-found h1 {
  font-family: var(--font-serif);
  font-size: 8rem;
  font-weight: 300;
  color: var(--dark-mid);
  line-height: 1;
}

.not-found p {
  color: var(--mid);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
}

/* ── Empty State ─────────────────────────────────────────────────────────── */
.empty-state {
  padding: 80px 40px;
  text-align: center;
  color: var(--mid);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
}

/* ── Galleries Page ──────────────────────────────────────────────────────── */
.galleries-page {
  padding: 40px 40px 80px;
  max-width: 1400px;
  margin: 0 auto;
}

.photo-count {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--mid);
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ADMIN STYLES
   ═══════════════════════════════════════════════════════════════════════════ */

body.admin-page { background: #0f0f0f; }

.admin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-login-box {
  width: 100%;
  max-width: 380px;
  padding: 48px 40px;
  border: 1px solid rgba(255,255,255,0.08);
  background: var(--off-black);
}

.admin-logo {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--gold);
  letter-spacing: 0.12em;
  margin-bottom: 32px;
}

.admin-login-box h1 {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 32px;
}

.admin-back-link {
  display: block;
  margin-top: 24px;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--mid);
  text-align: center;
  transition: color var(--transition);
}

.admin-back-link:hover { color: var(--white); }

.admin-dashboard { padding: calc(var(--header-h) + 40px) 40px 80px; max-width: 1200px; margin: 0 auto; }

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}

.admin-header h1 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 300;
  color: var(--white);
}

.admin-breadcrumb {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  text-transform: uppercase;
  display: inline;
}
.admin-breadcrumb-sep {
  font-size: 0.7rem;
  color: var(--mid);
  margin: 0 4px;
  display: inline;
}
.admin-breadcrumb-row {
  display: block;
  margin-bottom: 8px;
  line-height: 1.6;
}

.admin-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.admin-card {
  padding: 32px;
  border: 1px solid rgba(255,255,255,0.08);
  background: var(--off-black);
  transition: border-color var(--transition);
  display: block;
}

.admin-card:hover { border-color: var(--gold); }

.admin-card-icon { font-size: 2rem; margin-bottom: 16px; }
.admin-card h2 { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 300; color: var(--white); }
.admin-card p { font-size: 0.75rem; color: var(--mid); margin-top: 8px; letter-spacing: 0.1em; }

.admin-section { padding: calc(var(--header-h) + 40px) 40px 80px; max-width: 1200px; margin: 0 auto; }

.admin-card-panel {
  background: var(--off-black);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 32px;
  margin-bottom: 24px;
}

.admin-card-panel h2 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--white);
  margin-bottom: 24px;
}

.admin-card-panel h2 small {
  font-size: 0.65rem;
  font-family: var(--font-sans);
  letter-spacing: 0.1em;
  color: var(--mid);
  margin-left: 12px;
}

/* Upload */
.upload-form { display: flex; flex-direction: column; gap: 12px; }

.file-drop-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 40px;
  border: 2px dashed rgba(255,255,255,0.12);
  cursor: pointer;
  transition: border-color var(--transition);
  color: var(--mid);
}

.file-drop-zone:hover { border-color: var(--gold); color: var(--gold); }
.file-drop-zone span { font-size: 0.9rem; }
.file-drop-zone small { font-size: 0.7rem; letter-spacing: 0.1em; }
/* Only hide native file inputs inside a styled drop zone — bare file
   inputs in ordinary forms must remain visible and clickable. */
.file-drop-zone input[type="file"] { display: none; }

/* Admin photo grid */
.admin-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.admin-photo-item {
  position: relative;
  background: var(--dark);
  border: 1px solid rgba(255,255,255,0.05);
  cursor: grab;
  user-select: none;
}

.admin-photo-item.dragging { opacity: 0.4; }
.admin-photo-item.drag-over { border-color: var(--gold); }

.admin-photo-item.is-cover {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.admin-photo-cover-badge {
  display: none;
  position: absolute;
  top: 6px; left: 6px;
  background: var(--gold);
  color: var(--black);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 2px;
  pointer-events: none;
}
.admin-photo-item.is-cover .admin-photo-cover-badge { display: block; }

.admin-photo-actions {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

.btn-secondary-sm {
  background: none;
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--light-mid);
  font-size: 0.7rem;
  padding: 4px 8px;
  border-radius: 2px;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
  white-space: nowrap;
}
.btn-secondary-sm:hover,
.admin-photo-item.is-cover .btn-secondary-sm {
  border-color: var(--gold);
  color: var(--gold);
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--light-mid);
  margin-bottom: 8px;
  cursor: pointer;
}
.radio-label input[type="radio"] {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  accent-color: var(--gold);
  cursor: pointer;
}

.admin-photo-name {
  font-size: 0.7rem;
  color: var(--mid);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  display: block;
}

.admin-hint {
  font-size: 0.8rem;
  color: var(--mid);
  margin: -8px 0 16px;
}

.admin-photo-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  pointer-events: none;
}

.admin-photo-controls {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.caption-input {
  width: 100%;
  padding: 6px 10px;
  background: var(--dark-mid);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--white);
  font-size: 0.75rem;
  font-family: var(--font-sans);
  transition: border-color var(--transition);
}

.caption-input:focus { outline: none; border-color: var(--gold); }

.btn-danger-sm {
  padding: 5px 10px;
  background: transparent;
  border: 1px solid rgba(200,60,60,0.3);
  color: rgba(200,60,60,0.8);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-sans);
}

.btn-danger-sm:hover { background: rgba(200,60,60,0.15); border-color: rgba(200,60,60,0.8); }

/* Gallery admin list */
.admin-gallery-list { display: flex; flex-direction: column; gap: 2px; }

.admin-gallery-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px;
  background: var(--dark);
  border: 1px solid rgba(255,255,255,0.04);
}

.admin-gallery-thumb {
  width: 80px;
  height: 60px;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--dark-mid);
}

.admin-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.no-thumb { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 0.6rem; color: var(--mid); }

.admin-gallery-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-gallery-info strong { color: var(--white); font-weight: 400; }
.admin-gallery-info span { font-size: 0.7rem; color: var(--mid); letter-spacing: 0.05em; }

.badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  border-radius: 2px;
  text-transform: uppercase;
}

.badge-lock { background: rgba(201,169,110,0.15); color: var(--gold); border: 1px solid rgba(201,169,110,0.3); }

.admin-gallery-actions { display: flex; gap: 8px; }

.gallery-settings-panel {
  padding: 24px;
  background: var(--dark-mid);
  border: 1px solid rgba(201,169,110,0.15);
  border-top: none;
  margin-bottom: 2px;
}

.inline-form { display: flex; gap: 12px; }
.inline-form input {
  flex: 1;
  padding: 10px 14px;
  background: var(--dark);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--white);
  font-size: 0.85rem;
  transition: border-color var(--transition);
}

.inline-form input:focus { outline: none; border-color: var(--gold); }

.form-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.form-check input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--gold); }
.form-check label { font-size: 0.8rem; color: var(--light-mid); }

.empty-msg { color: var(--mid); font-size: 0.85rem; letter-spacing: 0.05em; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hp-photo-caption { display: none; }
  .contact-form .form-row { grid-template-columns: 1fr; }
  .photo-strip { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}

@media (max-width: 900px) {
  .header-inner { padding: 0 20px; }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: rgba(10,10,10,0.98);
    flex-direction: column;
    padding: 32px 20px;
    gap: 24px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition);
    z-index: 99;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-toggle { display: flex; }

  .featured-galleries { padding: 60px 20px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid-large { grid-template-columns: 1fr; }
  .page-hero { padding: calc(var(--header-h) + 40px) 20px 40px; }
  .gallery-page-header { padding: calc(var(--header-h) + 40px) 20px 24px; }
  .galleries-page { padding: 32px 20px 60px; }
  .sub-galleries { padding: 0 20px; }
  .photo-grid { grid-template-columns: 1fr 1fr; }
  .photo-strip { grid-template-columns: 1fr; }
  .section-header { padding: 0 20px; }
  .about-page, .contact-page { padding: 40px 20px 80px; }
  .admin-section, .admin-dashboard { padding: calc(var(--header-h) + 24px) 20px 60px; }
  .admin-photo-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .admin-gallery-row { flex-wrap: wrap; }
  .admin-gallery-actions { width: 100%; }
}


/* ── Child display toggle button ────────────────────────────────────────── */
.child-display-toggle-form {
  display: inline-flex;
}
.btn-child-display {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.04);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-child-display svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.btn-child-display:hover {
  border-color: rgba(255,255,255,0.4);
  color: var(--white);
  background: rgba(255,255,255,0.08);
}
/* ── Ghost sign-in button (bottom-right, appears on hover) ──────────────── */
/* Resting: nearly invisible. Hover: clearly visible. Fully passive UX.    */
.signin-ghost {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid transparent;
  color: transparent;
  background: transparent;
  opacity: 1;
  transition: color 0.35s ease, border-color 0.35s ease, background 0.35s ease;
  z-index: 9999;
  text-decoration: none;
  cursor: pointer;
}
.signin-ghost svg {
  width: 36px;
  height: 36px;
}
.signin-ghost:hover {
  color: rgba(255,255,255,0.7);
  border-color: rgba(255,255,255,0.35);
  background: rgba(0,0,0,0.45);
}

/* ── Video thumbnails in gallery grid ───────────────────────────────────── */
.video-thumb-link {
  position: relative;
  display: block;
  overflow: hidden;
}
.video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 16/9;
  background: #000;
}
.video-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 16/9;
}
.video-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.25);
  transition: background var(--transition);
}
.video-play-overlay svg {
  width: 48px;
  height: 48px;
  color: rgba(255,255,255,0.85);
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}
.video-thumb-link:hover .video-play-overlay {
  background: rgba(0,0,0,0.4);
}

/* ── Video in fullscreen slideshow ──────────────────────────────────────── */
.fws-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  z-index: 1;
}

/* ── Ratings browser (admin) ─────────────────────────────────────────────── */
.ratings-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rating-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 3px;
}
.rating-stars {
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: var(--gold);
  flex-shrink: 0;
  min-width: 90px;
}
.rating-count {
  font-size: 0.75rem;
  color: var(--mid);
  flex: 1;
}
.rating-links {
  display: flex;
  gap: 12px;
}
.rating-links .keyword-link {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── Homepage featured panels ────────────────────────────────────────────── */
.hp-featured-panel {
  display: flex;
  align-items: stretch;
  cursor: pointer;
  overflow: hidden;
}
/* left side = media left, text right */
.hp-featured-left  { flex-direction: row; }
/* right side = text left, media right */
.hp-featured-right { flex-direction: row-reverse; }

.hp-feat-media {
  position: relative;
  flex: 0 0 60%;
  overflow: hidden;
  background: #000;
  display: flex;
  flex-direction: column;
}
.hp-feat-slideshow {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.hp-feat-text {
  flex: 0 0 40%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 5vw, 80px);
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(2px);
}

/* Mini slideshow layers — position relative, fills flex parent */
.hp-feat-layer {
  position: absolute;
  inset: 0;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #000;
  transition: opacity 1s ease;
}
.hp-feat-b { opacity: 0; }
.hp-feat-b.visible { opacity: 1; }

/* Mini slideshow controls */
/* hp-feat-below-media removed — mute button moved into hp-feat-actions */
.hp-feat-actions {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}
.hp-feat-mute {
  background: none;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.6);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s;
  margin-bottom: 0px;
}
.hp-feat-mute:hover { border-color: rgba(255,255,255,0.5); color: #fff; }
.hp-feat-mute svg  { width: 18px; height: 18px; }

.hp-feat-view-all {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
  white-space: nowrap;
  flex: 1;
}
.hp-feat-view-all svg { width: 13px; height: 13px; }
.hp-feat-view-all:hover { color: #fff; }

.hp-feat-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
}

/* Text side */
.hp-feat-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
}
.hp-feat-desc {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--light-mid);
  margin-bottom: 32px;
  max-width: 50ch;
  max-height: 220px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.2) transparent;
}
.hp-feat-desc p {
  margin: 0 0 0.8em;
  word-break: break-word;
}
.hp-feat-desc p:last-child { margin-bottom: 0; }
.hp-feat-explore {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--gold-dark);
  padding-bottom: 4px;
  transition: all var(--transition);
}
.hp-feat-explore svg { width: 14px; height: 14px; }
.hp-feat-explore:hover { color: var(--gold-light); border-color: var(--gold); }

/* Mobile: stack vertically */
@media (max-width: 700px) {
  .hp-featured-panel,
  .hp-featured-panel.hp-featured-right { flex-direction: column; }
  .hp-feat-media { flex: 0 0 55vh; }
  .hp-feat-text  { flex: 1; padding: 28px 24px; }
}

/* ── Keyword search-as-you-type picker ───────────────────────────────────── */
.keyword-picker {
  position: relative;
}
.kw-search {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  padding: 7px 12px;
  border-radius: 2px;
  outline: none;
  transition: border-color var(--transition);
}
.kw-search:focus { border-color: var(--gold); }
.kw-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 2px);
  left: 0; right: 0;
  background: #1c1c1c;
  border: 1px solid rgba(255,255,255,0.12);
  max-height: 220px;
  overflow-y: auto;
  z-index: 100;
  border-radius: 0 0 2px 2px;
}
.kw-option {
  padding: 7px 12px;
  font-size: 0.8rem;
  color: var(--light-mid);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.kw-option:hover { background: rgba(255,255,255,0.07); color: var(--white); }
.kw-none { color: var(--mid); cursor: default; }
.kw-selected {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  min-height: 8px;
}
.kw-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(201,169,110,0.15);
  border: 1px solid var(--gold-dark);
  color: var(--gold-light);
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 2px;
}
.kw-remove {
  background: none;
  border: none;
  color: var(--gold);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0 0 0 2px;
  opacity: 0.7;
}
.kw-remove:hover { opacity: 1; }

/* ── Featured gallery entry in admin ────────────────────────────────────── */
.featured-entry {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 3px;
  margin-bottom: 10px;
}
.featured-entry-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.featured-entry-summary::-webkit-details-marker { display: none; }
.featured-entry-title {
  font-size: 0.85rem;
  color: var(--white);
  flex: 1;
  text-align: left;
  margin-right: 12px;
}
.featured-entry-body {
  padding: 0 16px 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* ── Featured badge ──────────────────────────────────────────────────────── */
.badge-featured {
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-dark);
  padding: 2px 7px;
  border-radius: 2px;
  white-space: nowrap;
}

/* ── Admin gallery manage: video thumbnail placeholder ───────────────────── */
.admin-video-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--mid);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── Slideshow video progress bar ───────────────────────────────────────── */
.fws-video-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255,255,255,0.12);
  z-index: 20;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
/* Show when controls are visible (i.e. cursor is over the slideshow) */
.fws-controls-visible ~ .fws-video-progress,
.fullwin-slideshow:hover .fws-video-progress {
  opacity: 1;
}
.fws-video-progress-bar {
  height: 100%;
  width: 0%;
  background: rgba(255,255,255,0.75);
  transition: width 0.25s linear;
}

/* ── Print icon on photo grid cards ─────────────────────────────────────── */
/* print button moved to .photo-card-btns */

/* ── Print order page ────────────────────────────────────────────────────── */
.print-page {
  min-height: 80vh;
  padding: 80px clamp(20px, 5vw, 80px);
}
.print-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}
.print-photo-wrap {
  position: sticky;
  top: 100px;
}
.print-photo {
  width: 100%;
  display: block;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}
.print-breadcrumb {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 24px;
}
.print-breadcrumb a { color: var(--mid); }
.print-breadcrumb a:hover { color: var(--white); }
.print-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 300;
  color: var(--white);
  margin-bottom: 12px;
}
.print-caption {
  font-size: 0.9rem;
  color: var(--light-mid);
  margin-bottom: 40px;
  font-style: italic;
}
.print-coming-soon {
  border: 1px solid rgba(255,255,255,0.1);
  padding: 40px;
  border-radius: 2px;
}
.print-coming-icon {
  color: var(--gold);
  margin-bottom: 20px;
}
.print-coming-soon h2 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--white);
  margin-bottom: 16px;
}
.print-coming-soon p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--light-mid);
  margin-bottom: 14px;
}
.print-coming-soon a { color: var(--gold); }
.print-meta {
  margin-top: 24px;
  font-size: 0.72rem;
  color: var(--mid);
  letter-spacing: 0.08em;
}
@media (max-width: 768px) {
  .print-hero { grid-template-columns: 1fr; gap: 32px; }
  .print-photo-wrap { position: static; }
}

/* ── Gallery page title row with optional admin button ───────────────────── */
.gallery-page-title-row {
  display: flex;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 0;
}
.gallery-page-title-row h1 {
  margin-bottom: 0;
}

/* ── Photo card button group (ⓘ + print) ────────────────────────────────── */
.photo-card-btns {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.photo-strip-item-wrap:hover .photo-card-btns {
  opacity: 1;
  pointer-events: auto;
}
.photo-print-btn {
  width: 30px;
  height: 30px;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  backdrop-filter: blur(4px);
  transition: border-color 0.2s ease, color 0.2s ease;
  text-decoration: none;
  flex-shrink: 0;
}
.photo-print-btn svg { width: 14px; height: 14px; }
.photo-print-btn:hover { border-color: var(--gold); color: var(--gold); }




/* ── Lightbox caption bar: make room for icons on same line ─────────────── */
.gdesc-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
}
/* Caption text takes all available space */
.gslide-desc {
  flex: 1;
  min-width: 0;
}
/* Icon row sits right-aligned on caption line */
.glb-icon-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}
.glb-overlay-btn {
  width: 30px;
  height: 30px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.75);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  text-decoration: none;
  flex-shrink: 0;
  padding: 0;
}
.glb-overlay-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,169,110,0.12);
}

/* ── Ghost login/logout tooltip ─────────────────────────────────────────── */
.signin-ghost[data-tooltip]::after,
.signout-ghost[data-tooltip]::after {
  content: attr(data-tooltip);
  position: fixed;
  bottom: 116px;
  right: 28px;
  background: rgba(0,0,0,0.75);
  color: rgba(255,255,255,0.9);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 2px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  transition-delay: 0s;
}
.signin-ghost[data-tooltip]:hover::after,
.signout-ghost[data-tooltip]:hover::after {
  opacity: 1;
  transition-delay: 1s;
}

/* ── Gallery description text formatting ────────────────────────────────── */
.gallery-description-text {
  max-height: 260px;
  overflow-y: auto;
  padding-right: 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.2) transparent;
}
.gallery-description-text p {
  margin: 0 0 1em;
  line-height: 1.7;
  font-size: 0.9rem;
}
.gallery-description-text p:last-child { margin-bottom: 0; }

/* ── Two-section photo order UI ─────────────────────────────────────────── */
.order-sections {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}
.order-section {
  padding: 16px 0;
  width: 100%;
  box-sizing: border-box;
}
.order-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.order-section-label {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--light-mid);
}
.order-section-count {
  font-size: 0.72rem;
  color: var(--mid);
}
.order-section-pinned {
  background: rgba(201,169,110,0.04);
  border-radius: 4px;
  padding: 16px;
  min-height: 100px;
  border: 1px solid rgba(201,169,110,0.15);
  width: 100%;
  box-sizing: border-box;
}
.order-section-date {
  padding: 16px 0;
}
.order-drop-hint {
  font-size: 0.8rem;
  color: var(--mid);
  font-style: italic;
  padding: 20px;
  text-align: center;
  border: 1px dashed rgba(255,255,255,0.1);
  border-radius: 4px;
}
.order-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  color: var(--mid);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.order-divider::before,
.order-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.08);
}
.order-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}
.order-item {
  cursor: grab;
}
.order-item.dragging {
  opacity: 0.4;
  cursor: grabbing;
}

/* ── Photo order promote/demote buttons ─────────────────────────────────── */
/* admin-photo-controls: filename on top, then cover+arrow on same row below */
.admin-photo-controls {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.admin-photo-controls .admin-photo-name {
  font-size: 0.65rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-photo-controls-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  min-width: 0;
}
.admin-photo-controls-row .cover-form {
  flex: 1;
}
.order-promote-btn,
.order-demote-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(0,0,0,0.4);
  color: rgba(255,255,255,0.7);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  flex-shrink: 0;
}
.order-promote-btn svg, .order-demote-btn svg { width: 16px; height: 16px; }
.order-promote-btn { border-color: rgba(201,169,110,0.5); color: var(--gold); }
.order-promote-btn:hover { background: rgba(201,169,110,0.2); border-color: var(--gold); }
.order-demote-btn:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.5); color: var(--white); }

/* ── Auto-linked URLs in gallery/featured descriptions ──────────────────── */
.desc-link {
  color: var(--gold);
  text-decoration: none;
  word-break: break-all;
  opacity: 0.85;
  transition: opacity 0.15s;
}
.desc-link:hover { opacity: 1; text-decoration: underline; }

/* ── Admin dashboard stats ───────────────────────────────────────────────── */
.admin-stats-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.admin-stat {
  background: var(--off-black);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 4px;
  padding: 20px 28px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 140px;
}
.admin-stat-value {
  font-size: 2rem;
  font-weight: 300;
  color: var(--white);
  line-height: 1;
  font-family: var(--font-serif);
}
.admin-stat-label {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid);
}
.admin-stat-scan-time {
  font-size: 1.1rem;
  font-family: var(--font-sans);
}

/* Arrow button right-justified when no cover form (gallery-order page) */
.admin-photo-controls-row:not(:has(.cover-form)) {
  justify-content: flex-end;
}

/* ── Slideshow volume control ────────────────────────────────────────────── */
.fws-volume {
  display: flex;
  align-items: center;
  gap: 6px;
}
.fws-vol-btn {
  flex-shrink: 0;
}
.fws-vol-btn svg {
  width: 18px;
  height: 18px;
}
.fws-vol-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 80px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,0.3);
  outline: none;
  cursor: pointer;
  transition: background 0.2s;
}
.fws-vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
}
.fws-vol-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
  border: none;
}
.fws-vol-slider:hover {
  background: rgba(255,255,255,0.5);
}

/* ── Gallery manage board ─────────────────────────────────────────────────── */
#gallery-board {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.gm-section-col {
  width: 100%;
  background: var(--off-black);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 4px;
  min-height: 60px;
}
.gm-section-col-flat {
  width: 100%;
}
.gm-section-col-other {
  border-style: dashed;
  opacity: 0.85;
}
.gm-section-col-header {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid);
  font-weight: 600;
}
.gm-section-col-title { color: var(--gold); }
.gm-gallery-list {
  padding: 8px;
  min-height: 60px;
}
.gm-gallery-list.drag-over {
  background: rgba(255,255,255,0.04);
  outline: 2px dashed var(--gold-dark);
  outline-offset: -2px;
  border-radius: 3px;
}
.drag-indicator {
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin: 3px 0;
  pointer-events: none;
}
.featured-drag-handle {
  cursor: grab;
  color: var(--mid);
  font-size: 1rem;
  margin-right: 6px;
  user-select: none;
  flex-shrink: 0;
}
.featured-drag-handle:active { cursor: grabbing; }
.featured-entry.dragging { opacity: 0.4; }

/* ── Sections editor rows ────────────────────────────────────────────────── */
#sections-list { display: flex; flex-direction: column; gap: 8px; }
.gm-sec-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 4px;
  padding: 8px 12px;
}
.gm-sec-handle {
  cursor: grab;
  color: var(--mid);
  font-size: 1rem;
  user-select: none;
  flex-shrink: 0;
  padding: 0 4px;
}
.gm-sec-handle:active { cursor: grabbing; }
.gm-sec-row.dragging { opacity: 0.4; }
.gm-sec-fields { display: flex; gap: 10px; flex: 1; flex-wrap: wrap; }
.gm-sec-title {
  flex: 0 0 200px;
  background: var(--dark);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
  padding: 7px 10px;
  border-radius: 3px;
  font-size: 0.85rem;
}
.gm-sec-desc {
  flex: 1 1 260px;
  background: var(--dark);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
  padding: 7px 10px;
  border-radius: 3px;
  font-size: 0.85rem;
}
.gm-sec-title:focus, .gm-sec-desc:focus {
  outline: none;
  border-color: rgba(255,255,255,0.35);
}

/* ── Gallery section on listing page ─────────────────────────────────────── */
.gallery-section { margin-bottom: 56px; }
.gallery-section-header { margin-bottom: 20px; }
.gallery-section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 300;
  color: var(--white);
  margin: 0 0 8px;
  letter-spacing: 0.06em;
}
.gallery-section-desc {
  font-size: 0.85rem;
  color: var(--mid);
  margin: 0;
  letter-spacing: 0.04em;
}

/* ── Manage galleries compact row ────────────────────────────────────────── */
.gm-gallery-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--off-black);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 3px;
  margin-bottom: 4px;
  cursor: default;
}
.gm-gallery-row-title {
  flex: 1;
  font-size: 0.85rem;
  color: var(--white);
  text-align: left;
}
.gm-section-select {
  font-size: 0.72rem;
  padding: 3px 6px;
  background: var(--dark);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--mid);
  border-radius: 3px;
  max-width: 130px;
}
