/* ============================================================
   main.css — Photo Portfolio
   Aesthetic: editorial dark, Cormorant serif + DM Sans
   ============================================================ */

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

:root {
  --ink:         #0d0d0d;
  --ink-2:       #1a1a1a;
  --ink-3:       #2a2a2a;
  --warm:        #c8a96e;
  --text:        #e8e4de;
  --text-dim:    #888078;
  --text-dimmer: #554f48;
  --serif:       'Cormorant Garamond', Georgia, serif;
  --sans:        'DM Sans', system-ui, sans-serif;
  --gutter:      clamp(1.5rem, 4vw, 3rem);
  --section:     clamp(3rem, 8vw, 7rem);
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.875rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
button { background: none; border: none; cursor: pointer; color: inherit; }

/* Subtle noise overlay */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: 1000;
}

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.5rem var(--gutter);
}
.site-header::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(13,13,13,0.92) 0%, transparent 100%);
  pointer-events: none; z-index: -1;
}

.nav { width: 100%; display: flex; align-items: center; justify-content: space-between; }

.nav-logo {
  font-family: var(--serif);
  font-size: 2.5rem; font-weight: 300; letter-spacing: 0.08em;
  color: var(--text); transition: color 0.2s;
}
.nav-logo:hover { color: var(--warm); }

.nav-links { display: flex; gap: 2rem; align-items: center; }

.nav-link {
  font-size: 1rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-dim); transition: color 0.2s; position: relative;
}
.nav-link::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 1px; background: var(--warm);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link.active::after, .nav-link:hover::after { transform: scaleX(1); }

/* ── Loading ─────────────────────────────────────────────── */
.loading-state { grid-column: 1/-1; display: flex; justify-content: center; align-items: center; height: 30vh; }
.loading-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--warm); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity:0.2; transform:scale(0.8); } 50% { opacity:1; transform:scale(1.2); } }
@keyframes fadeUp { to { opacity:1; transform:translateY(0); } }

/* ── Home: Hero ──────────────────────────────────────────── */
.hero {
  padding: calc(var(--section) + 5rem) var(--gutter) var(--section);
  display: flex; flex-direction: column; gap: 1rem;
}

.hero-title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(3.5rem, 10vw, 8rem);
  line-height: 0.95; letter-spacing: -0.01em;
  display: flex; flex-direction: column;
}
.hero-line { display: block; }
.hero-line--italic { font-style: italic; color: var(--warm); }

.hero-count {
  font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--text-dim); margin-top: 0.5rem;
}

/* ── Home: Albums grid ───────────────────────────────────── */
.albums-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 3rem; padding: 0 3rem;
  margin-top: 0.5rem;
}

.album-card {
  scroll-margin-top: 6rem;
  position: relative;
  background: var(--ink-2);
  cursor: pointer; opacity: 0; transform: translateY(20px);
  animation: fadeUp 0.7s var(--ease-out) forwards;
  overflow: hidden;
}
.album-card:nth-child(2) { animation-delay: 0.08s; }
.album-card:nth-child(3) { animation-delay: 0.16s; }
.album-card:nth-child(4) { animation-delay: 0.24s; }
.album-card:nth-child(5) { animation-delay: 0.32s; }
.album-card:nth-child(6) { animation-delay: 0.38s; }

.album-card-img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.8s var(--ease-out), filter 0.6s ease;
  filter: brightness(0.72) saturate(0.88);
}
.album-card-placeholder {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--ink-2) 0%, var(--ink-3) 100%);
}
.album-card:hover .album-card-img { transform: scale(1.04); filter: brightness(0.5) saturate(0.8); }

.album-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 55%);
  transition: background 0.4s;
}
.album-card:hover .album-card-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.18) 65%);
}

.album-card-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1.75rem 2rem;
  transform: translateY(4px); transition: transform 0.4s var(--ease-out);
}
.album-card:hover .album-card-info { transform: translateY(0); }

.album-card-name {
  font-family: var(--serif); font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 300; line-height: 1.1; margin-bottom: 0.4rem;
}
.album-card-count {
  font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--warm); opacity: 0; transition: opacity 0.3s 0.05s;
}
.album-card:hover .album-card-count { opacity: 1; }

.album-card-arrow {
  position: absolute; top: 1.5rem; right: 1.75rem;
  width: 2.5rem; height: 2.5rem;
  border: 1px solid rgba(255,255,255,0.2); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translate(4px, -4px);
  transition: opacity 0.3s, transform 0.4s var(--ease-out);
}
.album-card:hover .album-card-arrow { opacity: 1; transform: translate(0, 0); }
.album-card-arrow svg { width: 14px; height: 14px; }

/* ── Album page: Header ──────────────────────────────────── */
.album-hero {
  padding: calc(var(--section) + 5rem) var(--gutter) clamp(2rem, 5vw, 4rem);
  border-bottom: 1px solid var(--ink-3);
}
.album-hero-meta {
  font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-dimmer); margin-bottom: 1rem;
}
.album-title {
  font-family: var(--serif); font-size: clamp(2.8rem, 8vw, 6rem);
  font-weight: 300; line-height: 1; letter-spacing: -0.01em; margin-bottom: 1.2rem;
}
.album-description {
  font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--warm); margin-top: 1rem;
}

.album-story {
  font-family: var(--serif); font-size: 1.1rem; font-weight: 300;
  font-style: italic; color: var(--text-dim);
  max-width: 60ch; margin-top: 1rem; line-height: 1.7;
}

.album-stats {
  font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-dim); display: flex; gap: 0.75rem; align-items: center;
}
.album-stats-sep { color: var(--text-dimmer); }

/* ── Album page: Hero image ──────────────────────────────── */
.album-hero-wrap {
  position: relative;
  width: 100%;
  cursor: pointer;
  margin-top: 2rem;
  overflow: hidden;
}

.album-hero-img {
  width: 100%; height: auto; display: block;
  object-fit: unset;
  transition: filter 0.5s ease;
  filter: brightness(0.92);
}
.album-hero-wrap:hover .album-hero-img { filter: brightness(0.7); }

.album-hero-hint {
  position: absolute; bottom: 1.5rem; right: 2rem;
  font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  opacity: 0; transition: opacity 0.3s;
}
.album-hero-wrap:hover .album-hero-hint { opacity: 1; }

/* ── Album page: Desktop overlay layout ─────────────────── */
.album-view-cta { display: none; }

@media (min-width: 901px) {
  .album-cover { position: relative; }

  .album-hero {
    position: absolute;
    top: 12%; left: 8%;
    z-index: 2;
    width: min(42%, 500px);
    min-height: 35vh;
    background: rgba(13,13,13,0.80);
    border-bottom: none;
    padding: 4rem 5rem 4rem;
    cursor: pointer;
  }

  .album-hero-wrap { margin-top: 0; }

  /* Lighten small text for contrast against the semi-transparent overlay */
  .album-hero .album-hero-meta { color: rgba(255,255,255,0.65); }
  .album-hero .album-stats     { color: rgba(255,255,255,0.65); }
  .album-hero .album-stats-sep { color: rgba(255,255,255,0.4); }
  .album-hero .album-story     { color: rgba(255,255,255,0.75); max-width: 72%; }

  .album-view-cta {
    display: block;
    margin-top: 2rem;
    font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--warm);
  }

  .album-hero-hint {
    font-size: 0.85rem; letter-spacing: 0.2em;
    color: var(--warm);
    background: rgba(13,13,13,0.72);
    padding: 0.9rem 2rem;
  }

  body.admin-mode .album-view-cta { display: none; }
}

/* ── Album page: Thumb strip (admin mode, desktop only) ─── */
.thumb-strip {
  display: none; /* hidden until admin mode */
  gap: 0.4rem;
  overflow-x: auto;
  padding: 1.5rem var(--gutter);
  scrollbar-width: none;
}
.thumb-strip::-webkit-scrollbar { display: none; }

@media (min-width: 901px) {
  body.admin-mode .thumb-strip { display: flex; }
}

.thumb-item {
  flex: 0 0 auto;
  width: 90px; height: 64px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s, outline 0.15s;
  outline: 2px solid transparent;
  outline-offset: 2px;
  user-select: none;
}
.thumb-item img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.thumb-item:hover { opacity: 0.85; }
.thumb-item.is-hero { opacity: 1; outline-color: var(--warm); }
.thumb-item.dragging { opacity: 0.3; }
.thumb-item.drag-over { outline-color: rgba(255,255,255,0.5); opacity: 1; }

/* ── Album page: Photos grid (kept for reference) ────────── */
.photos-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 3rem; padding: 0 3rem;
  margin-top: 3rem;
}

.photo-item {
  background: var(--ink-2);
  cursor: pointer;
  opacity: 0; animation: fadeUp 0.6s var(--ease-out) forwards;
}
.photo-item.portrait {}
.photo-item.square {}

.photo-item-img {
  width: 100%; height: auto; object-fit: unset;
  transition: transform 0.7s var(--ease-out), filter 0.5s ease;
  filter: brightness(0.92);
}
.photo-item:hover .photo-item-img { transform: scale(1.04); filter: brightness(0.55); }

.photo-item-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s;
}
.photo-item:hover .photo-item-overlay { opacity: 1; }

.photo-item-expand {
  width: 2.8rem; height: 2.8rem;
  border: 1px solid rgba(255,255,255,0.45); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transform: scale(0.8); transition: transform 0.3s var(--ease-out);
}
.photo-item:hover .photo-item-expand { transform: scale(1); }
.photo-item-expand svg { width: 16px; height: 16px; }

.photo-item-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1rem 1.25rem;
  background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
  transform: translateY(100%); transition: transform 0.4s var(--ease-out);
  font-family: var(--serif); font-size: 0.92rem; font-style: italic;
  color: rgba(255,255,255,0.82);
}
.photo-item:hover .photo-item-caption { transform: translateY(0); }

/* ── Lightbox ────────────────────────────────────────────── */
.lightbox-backdrop {
  position: fixed; inset: 0;
  background: rgba(7, 7, 7, 0.97);
  z-index: 200; opacity: 0; pointer-events: none;
  transition: opacity 0.4s; backdrop-filter: blur(6px);
}
.lightbox {
  position: fixed; inset: 0; z-index: 201;
  display: flex; flex-direction: row;
  opacity: 0; pointer-events: none;
  transition: opacity 0.32s var(--ease-out);
  touch-action: none;
}
.lightbox.open,
.lightbox.open + .lightbox-backdrop { opacity: 1; pointer-events: all; }

/* ── Main image column ───────────────────────────────────── */
.lightbox-main {
  flex: 1; position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; min-width: 0;
}

/* Stage fills .lightbox-main */
.lightbox-stage {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  transform: scale(0.12);
  transform-origin: var(--lb-ox, 50%) var(--lb-oy, 50%);
  transition: transform 0.42s var(--ease-out);
  will-change: transform;
}
.lightbox.open .lightbox-stage { transform: scale(1); }
.lightbox-img {
  width: auto; height: auto; max-width: 100%; max-height: 100%;
  object-fit: contain;
  transform: scale(0.96); transition: transform 0.4s var(--ease-out), opacity 0.3s;
  cursor: pointer;
}
.lightbox.open .lightbox-img { transform: scale(1); }
.lightbox-img.switching { opacity: 0; transform: scale(0.94); }

/* Expand-to-fullscreen button (detail mode only) */
.lightbox-fullscreen-btn {
  position: absolute; bottom: 1.25rem; right: 1.25rem;
  width: 2.5rem; height: 2.5rem;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim); transition: color 0.2s; z-index: 10;
}
.lightbox-fullscreen-btn:hover { color: var(--text); }

/* ── Close and detail buttons ────────────────────────────── */
.lightbox-close {
  position: absolute; top: 1.5rem; right: 1.75rem;
  width: 3.5rem; height: 3.5rem;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim); transition: color 0.2s, transform 0.25s; z-index: 10;
}
.lightbox-close:hover { color: var(--text); transform: rotate(90deg); }

/* Return-to-detail button (full-screen mode only, hidden by default) */
.lightbox-detail-btn {
  position: absolute; top: 1.5rem; right: 5.5rem;
  width: 3rem; height: 3rem;
  display: none; align-items: center; justify-content: center;
  color: var(--text-dim); transition: color 0.2s; z-index: 10;
}
.lightbox-detail-btn:hover { color: var(--text); }

/* ── Nav buttons (wide zones, full-screen mode only) ─────── */
.lightbox-nav {
  position: absolute; top: 0; bottom: 0; height: auto;
  display: none; align-items: center; justify-content: center;
  width: 40%; cursor: pointer;
  color: var(--text); z-index: 5;
}
.lightbox-nav svg { opacity: 0; transition: opacity 0.25s; pointer-events: none; }
.lightbox-nav:hover svg { opacity: 0.45; }
.lightbox-prev { left: 0; }
.lightbox-next { right: 0; }

/* ── Right info panel ────────────────────────────────────── */
.lightbox-panel {
  width: 320px; flex-shrink: 0;
  display: flex; flex-direction: column;
  background: #0d0d0d; border-left: 1px solid var(--ink-3);
  overflow: hidden;
  opacity: 1;
  transition: width 0.25s ease, opacity 0.25s ease;
}
.lightbox-panel-prev,
.lightbox-panel-next {
  height: 180px; flex-shrink: 0;
  position: relative; cursor: pointer; overflow: hidden;
}
.lightbox-panel-prev { border-bottom: 1px solid var(--ink-3); }
.lightbox-panel-next { border-top: 1px solid var(--ink-3); }
.lightbox-panel-thumb {
  width: 100%; height: 100%; object-fit: cover;
  transition: opacity 0.3s;
}
.lightbox-panel-thumb.switching { opacity: 0; }
.lightbox-panel-label {
  position: absolute; bottom: 0.6rem; left: 0.75rem;
  font-size: 0.68rem; letter-spacing: 0.1em; color: rgba(255,255,255,0.6);
  opacity: 0; transition: opacity 0.2s; pointer-events: none;
}
.lightbox-panel-prev:hover .lightbox-panel-label,
.lightbox-panel-next:hover .lightbox-panel-label { opacity: 1; }
.lightbox-panel-prev.is-hidden,
.lightbox-panel-next.is-hidden { display: none; }

.lightbox-panel-info {
  flex: 1; overflow-y: auto;
  padding: 1.5rem 1.25rem;
  display: flex; flex-direction: column; gap: 0.75rem;
}
/* ── Mobile info bar (below image) ─────────────────────── */
.lightbox-info {
  display: none;
}
@media (max-width: 600px) {
  .lightbox-info {
    display: block;
    padding: 0.85rem var(--gutter) 0;
    z-index: 10;
  }
  .lightbox-info .lightbox-exif,
  .lightbox-info .lightbox-counter { display: none; }
}

.lightbox-title {
  font-family: var(--serif); font-size: 1.1rem; font-weight: 300;
}
.lightbox-caption {
  font-size: 0.78rem; color: var(--text-dim); font-style: italic; max-width: 50ch;
}
.lightbox-exif { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.exif-item { display: flex; flex-direction: column; gap: 0.15rem; }
.exif-label {
  font-size: 0.58rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-dimmer);
}
.exif-value { font-size: 0.7rem; color: var(--text-dim); }
.lightbox-counter {
  font-size: 0.68rem; letter-spacing: 0.12em; color: var(--text-dimmer); white-space: nowrap;
  margin-top: auto;
}

/* ── Full-screen mode overrides ──────────────────────────── */
.lightbox--fullscreen .lightbox-panel {
  width: 0; opacity: 0; pointer-events: none;
}
.lightbox--fullscreen .lightbox-nav { display: flex; }
.lightbox--fullscreen .lightbox-detail-btn { display: flex; }
.lightbox--fullscreen .lightbox-fullscreen-btn { display: none; }
.lightbox--fullscreen .lightbox-img { cursor: default; }

/* ── Lightbox swipe hint (mobile only) ───────────────────── */
.lightbox-swipe-hint {
  position: absolute;
  bottom: 7rem; left: 50%;
  transform: translateX(-50%);
  padding: 0.55rem 1.4rem;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 2rem;
  font-size: 0.72rem; letter-spacing: 0.16em;
  color: rgba(255,255,255,0.75);
  pointer-events: none; white-space: nowrap;
  opacity: 0;
}
.lightbox.open .lightbox-swipe-hint {
  animation: swipeHintFade 2.4s ease-out forwards;
}
@keyframes swipeHintFade {
  0%   { opacity: 0; }
  20%  { opacity: 1; }
  70%  { opacity: 1; }
  100% { opacity: 0; }
}
@media (min-width: 601px) {
  .lightbox-swipe-hint { display: none; }
}

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  padding: 2.5rem var(--gutter); border-top: 1px solid var(--ink-3);
  display: flex; justify-content: space-between; align-items: center;
  margin-top: var(--section);
}
.footer-copy, .footer-updated {
  font-size: 0.68rem; letter-spacing: 0.1em; color: var(--text-dimmer);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .albums-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; padding: 0 1.5rem; }
  .album-card { aspect-ratio: 3/2; }
  .photos-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .albums-grid { grid-template-columns: 1fr; gap: 1rem; padding: 0 1rem; }
  .album-card { aspect-ratio: 3/2; }
  .photos-grid { grid-template-columns: 1fr; padding: 0; gap: 1rem; margin-top: 1rem; }
  .photo-item, .photo-item.portrait, .photo-item.square { aspect-ratio: unset; }
  .lightbox { flex-direction: column; padding-top: 5.5rem; padding-bottom: 1.5rem; }
  .lightbox-stage { position: relative; inset: auto; flex: 1; width: 100%; padding: 0; }
  .lightbox-panel { display: none; }
  .lightbox-nav { display: none !important; }
  .lightbox-fullscreen-btn { display: none; }
  .lightbox-detail-btn { display: none; }
  .lightbox-counter { font-size: 0.78rem; color: var(--text-dim); letter-spacing: 0.14em; }
  .lightbox-close { width: 3rem; height: 3rem; top: 1.6rem; align-items: flex-start; }
}

/* ── Home: Hero image ────────────────────────────────────── */
.hero-image-wrap {
  width: 100%;
  overflow: hidden;
  margin-top: 1.5rem;
  margin-bottom: 4rem;
}

.hero-image-wrap img {
  
  
  object-fit: unset;
  filter: brightness(0.88) saturate(0.9);
  transition: transform 0.8s var(--ease-out);
}

.hero-image-wrap:hover img {
  transform: scale(1.02);
}
/* ── Admin mode ─────────────────────────────────────────────── */

#adminBar {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #1a1a1a;
  border: 1px solid var(--gold, #c8a96e);
  border-radius: 6px;
  padding: 0.75rem 1.25rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 24px rgba(0,0,0,0.6);
}

.admin-bar-label {
  color: var(--gold, #c8a96e);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
}

#adminBar button {
  background: transparent;
  border: 1px solid var(--gold, #c8a96e);
  color: var(--gold, #c8a96e);
  padding: 0.35rem 0.9rem;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  transition: background 0.15s, color 0.15s;
}

#adminBar button:hover {
  background: var(--gold, #c8a96e);
  color: #0d0d0d;
}

#adminBar button:disabled {
  opacity: 0.5;
  cursor: default;
}

/* Drag handles in admin mode */
.photo-item.draggable {
  cursor: grab;
  user-select: none;
}

.photo-item.draggable:active,
.photo-item.dragging {
  cursor: grabbing;
  opacity: 0.5;
  outline: 2px dashed var(--gold, #c8a96e);
  outline-offset: 3px;
}

.photo-item.drag-over {
  outline: 2px solid var(--gold, #c8a96e);
  outline-offset: 3px;
}
/* ── Admin mode ─────────────────────────────────────────────── */

#adminBar {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #1a1a1a;
  border: 1px solid var(--gold, #c8a96e);
  border-radius: 6px;
  padding: 0.75rem 1.25rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 24px rgba(0,0,0,0.6);
}

.admin-bar-label {
  color: var(--gold, #c8a96e);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
}

#adminBar button {
  background: transparent;
  border: 1px solid var(--gold, #c8a96e);
  color: var(--gold, #c8a96e);
  padding: 0.35rem 0.9rem;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  transition: background 0.15s, color 0.15s;
}

#adminBar button:hover {
  background: var(--gold, #c8a96e);
  color: #0d0d0d;
}

#adminBar button:disabled {
  opacity: 0.5;
  cursor: default;
}

/* Drag handles in admin mode */
.photo-item.draggable {
  cursor: grab;
  user-select: none;
}

.photo-item.draggable:active,
.photo-item.dragging {
  cursor: grabbing;
  opacity: 0.5;
  outline: 2px dashed var(--gold, #c8a96e);
  outline-offset: 3px;
}

.photo-item.drag-over {
  outline: 2px solid var(--gold, #c8a96e);
  outline-offset: 3px;
}
/* ── Admin mode ─────────────────────────────────────────────── */

#adminBar {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #1a1a1a;
  border: 1px solid var(--gold, #c8a96e);
  border-radius: 6px;
  padding: 0.75rem 1.25rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 24px rgba(0,0,0,0.6);
}

.admin-bar-label {
  color: var(--gold, #c8a96e);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
}

#adminBar button {
  background: transparent;
  border: 1px solid var(--gold, #c8a96e);
  color: var(--gold, #c8a96e);
  padding: 0.35rem 0.9rem;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  transition: background 0.15s, color 0.15s;
}

#adminBar button:hover {
  background: var(--gold, #c8a96e);
  color: #0d0d0d;
}

#adminBar button:disabled {
  opacity: 0.5;
  cursor: default;
}

/* Drag handles in admin mode */
.photo-item.draggable {
  cursor: grab;
  user-select: none;
}

.photo-item.draggable:active,
.photo-item.dragging {
  cursor: grabbing;
  opacity: 0.5;
  outline: 2px dashed var(--gold, #c8a96e);
  outline-offset: 3px;
}

.photo-item.drag-over {
  outline: 2px solid var(--gold, #c8a96e);
  outline-offset: 3px;
}
.site-header.scrolled::after {
  background: linear-gradient(to bottom, rgba(13,13,13,0.97) 0%, rgba(13,13,13,0.97) 100%);
  transition: background 0.3s ease;
}
.site-header::after {
  transition: background 0.3s ease;
}

.site-header.scrolled::after {
  background: linear-gradient(to bottom, rgba(13,13,13,0.97) 60%, transparent 100%);
}

/* ── Admin mode: inline meta field editing ───────────────── */
body.admin-mode [contenteditable='true'] {
  outline: 1px dashed rgba(200, 169, 110, 0.35);
  border-radius: 2px;
  padding: 0.1em 0.2em;
  margin: 0 -0.2em;
  cursor: text;
  min-height: 1.2em;
  transition: outline-color 0.15s, background 0.15s;
}
body.admin-mode [contenteditable='true']:hover {
  outline-color: rgba(200, 169, 110, 0.6);
}
body.admin-mode [contenteditable='true']:focus {
  outline: 1px solid var(--warm);
  background: rgba(200, 169, 110, 0.04);
}
body.admin-mode [contenteditable='true']:empty::before {
  content: attr(data-placeholder);
  color: var(--text-dimmer);
  font-style: italic;
  pointer-events: none;
}

/* ── Lightbox: album title (top-left) ───────────────────── */
.lightbox-album-title {
  position: absolute; top: 1.6rem; left: var(--gutter);
  font-family: var(--serif); font-size: 1.1rem; font-weight: 300;
  letter-spacing: 0.04em; color: var(--text-dim);
  z-index: 10; pointer-events: none;
}

/* ── Lightbox: story slide ──────────────────────────────── */
.lightbox-story {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  padding: 5rem var(--gutter) 4rem;
  isolation: isolate;
}
.lightbox-story-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  z-index: 0;
}
.lightbox-story::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(13,13,13,0.52);
  z-index: 1;
  pointer-events: none;
}
.lightbox-story-text {
  font-family: var(--serif); font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 300; font-style: italic;
  color: rgba(255,255,255,0.88); line-height: 1.7;
  max-width: 60ch; text-align: center;
  background: rgba(13,13,13,0.55);
  padding: 2rem 2.5rem;
  border-radius: 2px;
  position: relative; z-index: 2;
}

/* ── Card: description line ─────────────────────────────── */
.album-card-desc {
  font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-dim); margin-top: 0.35rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
