/* ============================================================
   Custom styles — Tailwind CDN handles utilities,
   this file covers things Tailwind can't do easily.
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Inter:wght@300;400;500;600&display=swap');

/* ── CSS Variables ── */
:root {
  --font-serif:  'Cormorant Garamond', Georgia, serif;
  --font-sans:   'Inter', system-ui, sans-serif;
  --color-bg:    #f8f7f5;
  --color-surface: #efefed;
  --color-border: rgba(0,0,0,0.1);
  --color-text:  #1a1a1a;
  --color-muted: rgba(26,26,26,0.5);
  --color-gold:  #b8924a;
  --nav-scrolled-bg: rgba(248,247,245,0.92);
  --mobile-menu-bg:  rgba(248,247,245,0.97);
  --nav-height:  72px;
  --transition:  0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg:    #0c0c0c;
    --color-surface: #161616;
    --color-border: rgba(255,255,255,0.08);
    --color-text:  #f0ede8;
    --color-muted: rgba(240,237,232,0.5);
    --color-gold:  #c9a96e;
    --nav-scrolled-bg: rgba(12,12,12,0.92);
    --mobile-menu-bg:  rgba(12,12,12,0.97);
  }
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.7;
  margin: 0;
  min-height: 100vh;
}

/* ── Typography ── */
h1, h2, h3, h4, .serif { font-family: var(--font-serif); }

/* ── Custom scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.3); }

/* ============================================================
   NAVIGATION
   ============================================================ */
#main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  padding: 0 2rem;
  transition: background var(--transition), backdrop-filter var(--transition), border-color var(--transition);
  border-bottom: 1px solid transparent;
}

#main-nav.nav-scrolled {
  background: var(--nav-scrolled-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--color-border);
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--color-text);
  text-decoration: none;
  flex: 1;
}

.nav-logo span { color: var(--color-gold); }

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  text-decoration: none;
  transition: color var(--transition);
  position: relative;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-gold);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.nav-active {
  color: var(--color-text);
}

.nav-links a:hover::after,
.nav-links a.nav-active::after {
  width: 100%;
}

/* ── Hamburger Menu ── */
#menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 101;
}

.bar {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--color-text);
  transition: transform var(--transition), opacity var(--transition);
  transform-origin: center;
}

.bar.active:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.bar.active:nth-child(2) { opacity: 0; transform: scaleX(0); }
.bar.active:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile Menu */
#mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--mobile-menu-bg);
  backdrop-filter: blur(20px);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

#mobile-menu a {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color var(--transition);
}

#mobile-menu a:hover { color: var(--color-gold); }

@media (max-width: 768px) {
  #menu-toggle { display: flex; }
  .nav-links { display: none; }
  #mobile-menu { display: flex; }
}

/* Over hero (home page, before scroll) — light text on dark photo */
body:has(.hero) #main-nav:not(.nav-scrolled) .nav-logo {
  color: #fff;
  text-shadow: 0 1px 12px rgba(0,0,0,0.35);
}

body:has(.hero) #main-nav:not(.nav-scrolled) .nav-logo span {
  color: #e8d5a8;
}

body:has(.hero) #main-nav:not(.nav-scrolled) .nav-links a {
  color: rgba(255,255,255,0.88);
  text-shadow: 0 1px 10px rgba(0,0,0,0.3);
}

body:has(.hero) #main-nav:not(.nav-scrolled) .nav-links a:hover,
body:has(.hero) #main-nav:not(.nav-scrolled) .nav-links a.nav-active {
  color: #e8d5a8;
}

body:has(.hero) #main-nav:not(.nav-scrolled) .nav-links a::after {
  background: #c9a96e;
}

body:has(.hero) #main-nav:not(.nav-scrolled) .bar {
  background: #fff;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.3) 0%,
    rgba(0,0,0,0.2) 40%,
    rgba(0,0,0,0.6) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 1.5rem;
}

.hero-name {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  line-height: 1;
  margin: 0 0 1.25rem;
  color: #fff;
  text-shadow: 0 2px 40px rgba(0,0,0,0.4);
}

.hero-tagline {
  font-family: var(--font-sans);
  font-size: clamp(0.8rem, 1.5vw, 1rem);
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin: 0;
}

.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 1;
  animation: bounce 2.5s ease-in-out infinite;
}

.scroll-indicator span {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}

.scroll-arrow {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
}

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

@media (max-width: 768px) {
  .hero {
    min-height: 0;
    height: 85svh;
  }

  /* Slightly zoom out so more of the scene fits on narrow screens */
  .hero-bg img {
    width: 118%;
    height: 118%;
    max-width: none;
    margin-left: -9%;
    margin-top: -9%;
  }

  .hero-name {
    font-size: clamp(2.25rem, 11vw, 3.5rem);
  }
}

/* ============================================================
   FADE-IN ANIMATIONS
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }

/* ============================================================
   GALLERY GRID
   ============================================================ */
.album-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1024px) { .album-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  {
  .album-grid { grid-template-columns: 1fr; gap: 1rem; }
  .album-card { aspect-ratio: 16/9; }
}

.album-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--color-surface);
  aspect-ratio: 4/3;
  border: 1px solid var(--color-border);
}

.album-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1), filter 0.5s ease;
  filter: brightness(0.8);
}

.album-card:hover .album-card-img {
  transform: scale(1.06);
  filter: brightness(0.6);
}

.album-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}

.album-card-lock {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.2);
}

.album-card-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  margin: 0 0 0.25rem;
  color: #fff;
  letter-spacing: 0.03em;
}

.album-card-dateline {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin: 0 0 0.4rem;
}

.album-page-dateline {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin: 0 0 0.75rem;
}

.album-header-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1.25rem;
}

.album-header-title-row #album-title {
  margin: 0;
}

.album-header-title-row .album-page-dateline {
  margin: 0;
}

.group-page-dateline {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin: 0 0 0.75rem;
}

.album-card-meta {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

/* ── Next album nav (album.html) ─────────────────────────── */
.album-next-nav {
  margin-top: 4rem;
}

.album-next-link {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem 0;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
}

.album-next-link:hover {
  opacity: 0.85;
}

.album-next-link:hover .album-next-title {
  color: var(--color-gold);
}

.album-next-thumb {
  flex-shrink: 0;
  width: 5.5rem;
  height: 3.5rem;
  overflow: hidden;
  background: var(--color-border);
}

.album-next-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.album-next-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.album-next-label {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.album-next-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--color-text);
  transition: color 0.2s;
}

.album-next-meta {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.album-next-arrow {
  flex-shrink: 0;
  color: var(--color-muted);
  transition: transform 0.2s, color 0.2s;
}

.album-next-link:hover .album-next-arrow {
  color: var(--color-gold);
  transform: translateX(4px);
}

@media (max-width: 640px) {
  .album-next-nav {
    margin-top: 3rem;
  }

  .album-next-thumb {
    width: 4.5rem;
    height: 3rem;
  }

  .album-next-title {
    font-size: 1.15rem;
  }
}

.album-card-desc {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  margin-top: 0.4rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.4s ease;
  opacity: 0;
}

.album-card:hover .album-card-desc {
  max-height: 60px;
  opacity: 1;
}

.album-card-desc--tbd {
  max-height: 60px;
  opacity: 0.75;
  margin-top: 0.4rem;
  font-style: italic;
  letter-spacing: 0.06em;
}

.editorial-grid .album-card-desc--tbd {
  max-height: 80px;
  opacity: 0.75;
  margin-top: 0.5rem;
}

/* ============================================================
   EDITORIAL GRID — home page full-bleed 3-up
   ============================================================ */
.editorial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.editorial-grid .album-card {
  aspect-ratio: unset;
  height: 60vh;
  min-height: 340px;
  border: none;
  border-right: 1px solid rgba(255,255,255,0.06);
}

.editorial-grid .album-card:last-child {
  border-right: none;
}

/* Always-visible title — compact, slides up on hover */
.editorial-grid .album-card-overlay {
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.75) 0%,
    rgba(0,0,0,0.3) 45%,
    transparent 100%
  );
  justify-content: flex-end;
  padding: 2rem;
  transition: background 0.4s ease;
}

.editorial-grid .album-card:hover .album-card-overlay {
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.88) 0%,
    rgba(0,0,0,0.45) 55%,
    rgba(0,0,0,0.1) 100%
  );
}

.editorial-grid .album-card-title {
  font-size: 1.75rem;
  margin: 0 0 0.2rem;
  transform: translateY(0);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}

.editorial-grid .album-card-dateline {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.35rem;
}

.editorial-grid .album-card:hover .album-card-title {
  transform: translateY(-4px);
}

.editorial-grid .album-card-meta {
  color: rgba(255,255,255,0.65);
  transition: opacity 0.3s ease;
}

.editorial-grid .album-card-desc {
  max-height: 0;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.4s ease, margin 0.4s ease;
  margin-top: 0;
}

.editorial-grid .album-card:hover .album-card-desc {
  max-height: 80px;
  opacity: 1;
  margin-top: 0.5rem;
}

/* Mobile: stack vertically, shorter */
@media (max-width: 768px) {
  .editorial-grid {
    grid-template-columns: 1fr;
  }
  .editorial-grid .album-card {
    height: 55vw;
    min-height: 220px;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .editorial-grid .album-card:last-child {
    border-bottom: none;
  }
}

/* ============================================================
   PHOTO GRID — Flickr-style justified row layout
   - justifiedLayout() computes equal-height rows filling full width
   - Items are positioned absolutely; grid height is set by JS
   ============================================================ */
.photo-grid {
  position: relative;
}

.album-page-header {
  padding-top: calc(var(--nav-height) + 1rem);
  padding-bottom: 0;
}

.album-page-header .album-header-rule {
  margin-left: 0;
  margin-top: 1.25rem;
}

.album-page-header #back-link {
  margin-bottom: 0.75rem;
}

.album-header-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  position: sticky;
  top: var(--nav-height);
  z-index: 90;
  margin-top: 0;
  padding-top: 0.75rem;
  padding-bottom: 1.25rem;
  background: transparent;
  transition: background var(--transition), backdrop-filter var(--transition),
              border-color var(--transition), padding 0.2s ease;
}

.album-header-toolbar.is-stuck {
  background: var(--nav-scrolled-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.album-header-toolbar.is-stuck .album-section-nav-btn {
  padding: 0.35rem 0.55rem;
  font-size: 0.625rem;
  letter-spacing: 0.1em;
}

.album-header-toolbar.is-stuck .album-header-actions .btn-ghost,
.album-header-toolbar.is-stuck .album-header-actions .btn-primary {
  padding: 0.35rem 0.75rem;
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  gap: 0.35rem;
}

.album-header-toolbar.is-stuck .album-header-actions .btn-ghost svg,
.album-header-toolbar.is-stuck .album-header-actions .btn-primary svg {
  width: 12px;
  height: 12px;
}

.album-toolbar-back {
  display: none;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-sans);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  text-decoration: none;
  flex-shrink: 0;
  transition: color var(--transition);
}

.album-toolbar-back:hover {
  color: var(--color-text);
}

.album-header-toolbar.is-stuck .album-toolbar-back {
  display: inline-flex;
}

.album-toolbar-main {
  display: flex;
  flex: 1;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  flex-wrap: wrap;
}

#album-toolbar-sentinel {
  height: 1px;
  margin-top: -1px;
}

.album-header-toolbar:has(#album-section-nav[hidden]) .album-toolbar-main {
  justify-content: flex-end;
}

.album-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .album-header-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .album-toolbar-main {
    flex-direction: column;
    align-items: stretch;
  }

  .album-header-actions {
    justify-content: flex-end;
  }

  .album-header-toolbar.is-stuck {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .album-header-toolbar.is-stuck .album-toolbar-main {
    flex: 1;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
}


.album-section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0;
}

.album-section-nav-btn {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-muted);
  background: transparent;
  border: 1px solid var(--color-border);
  padding: 0.55rem 0.9rem;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.album-section-nav-btn:hover,
.album-section-nav-btn.is-active {
  color: var(--color-text);
  border-color: var(--color-gold);
  background: rgba(201, 169, 110, 0.08);
}

.album-content-section,
.album-film-block,
.album-section-label {
  scroll-margin-top: var(--album-sticky-offset, 7rem);
}

.album-film-section {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--color-border);
}

.album-section-label {
  font-size: 0.6875rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 2rem;
}

.album-film-block--continued {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.photo-thumb {
  position: absolute;
  overflow: hidden;
  cursor: pointer;
  background: var(--color-surface);
}

.photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease, opacity 0.3s;
  opacity: 0;
}

.photo-thumb img.loaded { opacity: 1; }
.photo-thumb:hover img  { transform: scale(1.03); }

.photo-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.28);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

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

/* ============================================================
   LIGHTBOX
   ============================================================ */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

#lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  display: block;
  opacity: 0;
  transition: opacity 0.25s ease;
  border: 1px solid rgba(255,255,255,0.05);
}

#lightbox-img.loaded { opacity: 1; }

#lightbox-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90vw;
  height: 90vh;
  z-index: 1;
  pointer-events: none;
}

#lightbox-stage .lightbox-layer {
  position: absolute;
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  display: block;
  border: 1px solid rgba(255,255,255,0.05);
  opacity: 0;
  z-index: 1;
  transition: none;
  pointer-events: auto;
}

#lightbox-stage .lightbox-layer.active { opacity: 1; z-index: 2; }

@media (max-width: 768px) {
  #lightbox-stage .lightbox-layer {
    touch-action: pinch-zoom;
  }
}

#lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 10;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  transition: background var(--transition);
}

#lightbox-close:hover { background: rgba(255,255,255,0.18); }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  transition: background var(--transition);
}

.lightbox-nav:hover { background: rgba(255,255,255,0.18); }
#lightbox-prev { left: 1.5rem; }
#lightbox-next { right: 1.5rem; }

#lightbox-counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
}

/* ============================================================
   PASSWORD MODAL
   ============================================================ */
#password-modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0;
}

.password-modal-inner {
  text-align: center;
  width: 100%;
  max-width: 380px;
  padding: 2rem;
}

.password-modal-inner .lock-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1.5rem;
  opacity: 0.5;
}

.password-error {
  color: #e07070;
  font-size: 0.8rem;
  margin-top: 0.5rem;
  min-height: 1.2em;
  text-align: center;
}

/* ============================================================
   FORM STYLES
   ============================================================ */
.form-field {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 300;
  padding: 0.75rem 0;
  outline: none;
  transition: border-color var(--transition);
  caret-color: var(--color-gold);
}

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

.form-field:focus { border-bottom-color: var(--color-gold); }

textarea.form-field {
  resize: none;
  height: 120px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 2rem;
  background: transparent;
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}

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

/* Hero CTA — gold fill for contrast + brand color */
.hero .btn-primary {
  background: #c9a96e;
  border: 2px solid #c9a96e;
  color: #1a1a1a;
  font-weight: 500;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.hero .btn-primary:hover {
  background: #dfc088;
  border-color: #dfc088;
  color: #1a1a1a;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  background: rgba(0,0,0,0.04);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition);
}

.btn-ghost:hover {
  background: rgba(0,0,0,0.08);
  border-color: rgba(0,0,0,0.2);
}

/* ── Download progress overlay ── */
#download-progress {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 1rem 1.5rem;
  z-index: 300;
  font-size: 0.8rem;
  color: var(--color-muted);
  display: none;
  min-width: 220px;
}

#download-progress.show { display: block; }

.progress-bar-wrap {
  width: 100%;
  height: 2px;
  background: var(--color-border);
  border-radius: 1px;
  margin-top: 0.75rem;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--color-gold);
  transition: width 0.3s ease;
  width: 0%;
}

/* ============================================================
   PAGE HEADER (shared between gallery, about, contact)
   ============================================================ */
.page-header {
  padding-top: calc(var(--nav-height) + 5rem);
  padding-bottom: 3rem;
  text-align: center;
}

.page-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  margin: 0 0 0.75rem;
  color: var(--color-text);
}

.page-subtitle {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin: 0;
}

.gold-rule {
  width: 40px;
  height: 1px;
  background: var(--color-gold);
  margin: 1.25rem auto;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  border-top: 1px solid var(--color-border);
  padding: 2.5rem 2rem;
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--color-muted);
}

footer a {
  color: var(--color-muted);
  text-decoration: none;
  transition: color var(--transition);
}

footer a:hover { color: var(--color-gold); }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-photo-wrap {
  position: relative;
}

.about-photo-wrap::after {
  content: '';
  position: absolute;
  inset: 1rem -1rem -1rem 1rem;
  border: 1px solid var(--color-gold);
  z-index: -1;
  opacity: 0.3;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-success {
  display: none;
  text-align: center;
  padding: 3rem;
}

.contact-success.show { display: block; }

/* ============================================================
   LOADING SKELETON
   ============================================================ */
.skeleton {
  background: linear-gradient(90deg, var(--color-surface) 25%, rgba(255,255,255,0.04) 50%, var(--color-surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================================
   UTILITY
   ============================================================ */
.text-gold { color: var(--color-gold); }
.font-serif { font-family: var(--font-serif); }
.tracking-widest { letter-spacing: 0.2em; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
