/* Eye and Eye - Complete Responsive Stylesheet */

/* ========================================
   CSS Variables
   ======================================== */
:root {
  color-scheme: dark;
  --bg: #2E2E2E;
  --bg-dark: #1a1a1a;
  --ink: #fdfdfd;
  --ink-muted: #a0a0a0;
  --rule: #e8e2db;
  --accent: #c4a77d;

  /* Modern UI surfaces */
  --surface: rgba(0, 0, 0, 0.22);
  --surface-2: rgba(0, 0, 0, 0.34);
  --border: rgba(255, 255, 255, 0.14);
  --border-strong: rgba(255, 255, 255, 0.22);
  --shadow-sm: 0 6px 16px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 18px 42px rgba(0, 0, 0, 0.45);
  --radius-xs: 2px;
  --radius-sm: 6px;
  
  --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  /* Editorial serif (New Yorker-ish), and geometric sans (Bauhaus-ish) */
  --font-editorial: 'Baskerville', 'Baskerville Old Face', 'Hoefler Text', 'Palatino Linotype', Palatino, Georgia, serif;
  --font-geo: 'Avenir Next', Avenir, Futura, 'Century Gothic', 'Trebuchet MS', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --font-size-base: 16px;
  --line-height: 1.55;
  
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 40px;
  --spacing-xl: 60px;
  
  --max-width: 1400px;
  --header-height: 70px;
  
  --transition: 0.2s ease;
}

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

html {
  font-size: var(--font-size-base);
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(1200px 600px at 15% 10%, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.00) 55%),
    radial-gradient(900px 500px at 90% 35%, rgba(196, 167, 125, 0.08), rgba(196, 167, 125, 0.00) 55%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: var(--line-height);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

a:hover {
  color: var(--accent);
}

/* Accessible focus styles */
:focus-visible {
  outline: 2px solid rgba(196, 167, 125, 0.85);
  outline-offset: 3px;
}

/* ========================================
   Layout
   ======================================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

main {
  flex: 1;
}

@media (max-width: 1024px) {
  .container {
    padding: 0 var(--spacing-lg);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--spacing-md);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--spacing-sm);
  }
}

/* ========================================
   Header & Navigation
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(46, 46, 46, 0.86);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
  z-index: 100;
  /* Keep masthead typography consistent with the site's geometric (Bauhaus-ish) type */
  font-family: var(--font-geo);
}

/* Home: let the hero image run all the way to the top (no grey header bar) */
body.page-home .header {
  background: transparent;
  border-bottom: none;
}

/* Keep masthead readable over photography */
body.page-home .logo,
body.page-home .nav a {
  text-shadow: none;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-xl);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.5px;
}

.logo:hover {
  color: var(--ink);
}

.nav {
  display: flex;
  gap: var(--spacing-md);
  align-items: center;
}

.nav a {
  font-family: var(--font-geo);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 0;
  position: relative;
  line-height: 1;
}

.nav a.nav-link--placeholder {
  /* Placeholder links: match masthead typography exactly (do NOT use inherit here) */
  font-family: var(--font-geo);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: inherit;
}

.nav a.nav-link--placeholder::after {
  display: block;
}

.nav a.nav-link--placeholder:hover {
  color: var(--ink);
}

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

.nav a:hover::after,
.nav a.active::after {
  transform: scaleX(1);
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

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

@media (max-width: 768px) {
  .header-inner {
    padding: 0 var(--spacing-md);
  }
  
  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-lg);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }
  
  .nav.open {
    opacity: 1;
    visibility: visible;
  }
  
  .nav a {
    font-size: 18px;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }
  
  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
  position: relative;
  height: 100vh;
  height: 100dvh; /* Dynamic viewport height for mobile */
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: calc(-1 * var(--header-height)); /* Account for fixed header */
  padding-top: var(--header-height);
}

.page-home .hero {
  /* Ensure page grey can show under the hero image where needed */
  background: var(--bg);
  /* The hero is pulled up by -header-height; extend its height so it still reaches the viewport bottom */
  height: calc(100vh + var(--header-height));
  height: calc(100dvh + var(--header-height));
  /* Bottom mat: pushes the image up (can be larger than the top/header mat) */
  --home-hero-bottom-mat: 0px;
}

.page-home .hero::after {
  /* No “wash” on home: keep photo looking like the original */
  content: none;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.page-home .hero-image {
  /*
    Show the page grey *under* the photo so the photo’s own bottom black line becomes the edge.
    We are not drawing any new line — we’re just letting the page background meet the image.
  */
  bottom: var(--home-hero-bottom-mat, 0px);
  /* Drop shadow under the image into the bottom mat */
  box-shadow: 0 18px 28px rgba(0, 0, 0, 0.50);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: grayscale(100%);
  /* Keep crop subtle */
  transform: scale(1.02);
  transform-origin: center center;
}

.page-home .hero-image img {
  /* No filter on home: keep photo looking like the original */
  filter: none;
  /* Let the bottom mat do the “push up”; keep crop gentle */
  object-position: center 35%;
  transform: scale(1.05);
}

.hero-overlay {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--spacing-lg);
  background: rgba(0, 0, 0, 0.5);
}

.page-home .hero-overlay {
  /* Overlay becomes a full-height layout layer: title box at top, meta box at bottom */
  position: absolute;
  inset: 0;
  background: transparent;
  border: none;
  padding: 0;
}

.page-home .hero-box {
  background: rgba(0, 0, 0, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.16);
  width: min(760px, calc(100% - 2 * var(--spacing-md)));
  margin-left: auto;
  margin-right: auto;
}

.page-home .hero-box--title {
  position: absolute;
  /* Hero is shifted up by -header-height; account for that so the box sits *below* the masthead, inside the image */
  top: calc((2 * var(--header-height)) + 22px);
  left: 0;
  right: 0;
  /* Symmetric margins around the letters */
  padding: 0;
  /* Remove the visible box around the name */
  background: transparent;
  border: none;
  width: fit-content;
  max-width: calc(100% - 2 * var(--spacing-md));
}

.page-home .hero-box--title .hero-title {
  margin: 0;
  font-size: clamp(44px, 7.5vw, 92px);
  line-height: 0.95;
}

.page-home .hero-box--meta {
  position: absolute;
  left: 0;
  right: 0;
  /* Sit on the photo area, not in the bottom mat */
  bottom: 118px;
  z-index: 2;
  /* Option A: masthead-aligned scrim band (full-bleed background, aligned content) */
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  border-left: none;
  border-right: none;
  padding: 0; /* content padding is handled by .hero-box-inner */
  /* No banner: just the written graphics */
  background: transparent;
  border-top: none;
  border-bottom: none;
  /* Make the bottom “graphics” read as true white like the main title */
  color: var(--ink);
}

.page-home .hero-box--meta .hero-subtitle,
.page-home .hero-box--meta .hero-intro {
  color: var(--ink);
}

.page-home .hero-box--meta .btn {
  color: var(--ink);
  border-color: var(--ink);
}

/* Home: About button should read clearly over the image */
.page-home .hero-box--meta .btn.btn-about {
  /* Back to white letters, with a subtle dark mask behind (like the old banner density) */
  color: var(--ink);
  background: rgba(0, 0, 0, 0.38);
  border-color: rgba(255, 255, 255, 0.70);
}

.page-home .hero-box--meta .btn.btn-about:hover {
  background: rgba(0, 0, 0, 0.52);
  border-color: rgba(255, 255, 255, 0.92);
}

.page-home .hero-box--meta .btn.btn-outline:hover:not(.btn-about) {
  /* Restore original View Galleries rollover (invert: white fill + dark text) */
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.page-home .hero-box--meta .btn.btn-about:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.95);
  outline-offset: 3px;
}

/* Home: enlarge the bottom “graphics” (subtitle, intro, buttons) */
.page-home .hero-box--meta .hero-subtitle,
.page-home .hero-box--meta .hero-intro {
  /* Keep buttons the same, but increase the “graphic” type above them */
  font-size: 1.39em; /* 1.21 * 1.15 ≈ +15% from the current size */
}

.page-home .hero-box--meta .btn {
  font-size: 1.21em; /* keep buttons the same size as before */
}

.page-home .hero-box--meta::before {
  content: none;
}

.page-home .hero-box--meta::after {
  content: none;
}

.page-home .hero-box--meta .hero-box-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: calc(var(--spacing-lg) - 6px) var(--spacing-xl);
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .page-home .hero-box--meta .hero-box-inner {
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
  }
}

/* With the box back, remove extra text shadow */
.page-home .hero-box--meta .hero-subtitle,
.page-home .hero-box--meta .hero-intro,
.page-home .hero-box--meta .btn {
  text-shadow: none;
}

/* Home: keep the name on one line */
.page-home .hero-title {
  white-space: nowrap;
}

@media (max-width: 520px) {
  /* On very small screens, allow wrapping rather than overflow */
  .page-home .hero-title {
    white-space: normal;
  }
}

.hero-title {
  font-size: clamp(32px, 8vw, 72px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--spacing-xs);
}

.page-home .hero-title {
  font-family: var(--font-geo);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.10em;
}

.hero-subtitle {
  font-size: clamp(14px, 2.5vw, 20px);
  color: var(--rule);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.page-home .hero-subtitle {
  font-family: var(--font-geo);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
}

.hero-intro {
  margin-top: var(--spacing-sm);
  max-width: 58ch;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.7;
}

.page-home .hero-intro {
  font-family: var(--font-geo);
  letter-spacing: 0.01em;
}

.hero-actions {
  margin-top: var(--spacing-md);
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .hero {
    min-height: 500px;
    height: 80vh;
  }
}

/* ========================================
   Featured Section (Homepage)
   ======================================== */
.featured-section {
  padding: var(--spacing-xl) 0;
  background: var(--bg-dark);
}

.page-home .featured-section {
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: var(--spacing-lg);
}

.section-title {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--spacing-lg);
  color: var(--ink-muted);
}

.section-title a {
  color: inherit;
  display: inline-block;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.section-title a:hover {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.page-home .section-title {
  font-family: var(--font-geo);
  letter-spacing: 0.14em;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-md);
}

.page-home .featured-grid {
  gap: var(--spacing-lg);
}

@media (max-width: 1024px) {
  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .featured-grid {
    grid-template-columns: 1fr;
  }
}

.featured-card {
  display: block;
  overflow: hidden;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.page-home .featured-card:hover {
  transform: translateY(-2px);
}

.featured-thumb {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg);
  border: 2px solid var(--ink);
  margin-bottom: var(--spacing-sm);
}

.page-home .featured-thumb {
  border-color: rgba(255, 255, 255, 0.18);
}

.featured-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: grayscale(100%);
  /* Aggressive crop for thumbnail images */
  transform: scale(1.45);
  transform-origin: center center;
  transition: transform var(--transition), filter var(--transition);
}

.featured-card:hover .featured-thumb img {
  transform: scale(1.48);
  filter: none;
}

/* Crop modifiers for featured thumbnails */
.featured-thumb.crop-none img { transform: scale(1); }
.featured-card:hover .featured-thumb.crop-none img { transform: scale(1.03); }

.featured-thumb.crop-light img { transform: scale(1.15); }
.featured-card:hover .featured-thumb.crop-light img { transform: scale(1.18); }

.featured-info h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.page-home .featured-info h3 {
  font-family: var(--font-geo);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Home page buttons: geometric + slightly tighter */
.page-home .btn {
  font-family: var(--font-geo);
  letter-spacing: 0.12em;
}

.featured-count {
  font-size: 13px;
  color: var(--ink-muted);
}

.featured-cta {
  margin-top: var(--spacing-lg);
  text-align: center;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 2px solid var(--ink);
  border-radius: var(--radius-xs);
  transition: all var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: var(--ink);
  color: var(--bg);
}

.btn-primary:hover {
  background: transparent;
  color: var(--ink);
}

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

.btn-outline:hover {
  background: var(--ink);
  color: var(--bg);
}

/* ========================================
   Galleries Page
   ======================================== */
.page-header {
  padding-top: calc(var(--header-height) + var(--spacing-xl));
  padding-bottom: var(--spacing-lg);
}

.page-title {
  font-size: clamp(24px, 5vw, 36px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--spacing-xs);
}

.page-subtitle {
  font-size: 14px;
  color: var(--ink-muted);
}

/* Gallery Grid (for galleries listing page) */
.galleries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-md);
  padding-bottom: var(--spacing-xl);
}

/* ========================================
   Start Page (gateway)
   ======================================== */
.start-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--spacing-lg);
  padding-bottom: var(--spacing-xl);
}

@media (max-width: 900px) {
  .start-grid {
    grid-template-columns: 1fr;
  }
}

.start-card {
  position: relative;
  display: block;
  border: 2px solid rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.18);
  overflow: hidden;
  min-height: 280px;
  padding: 0;
}

.start-card-bg {
  position: absolute;
  inset: -2px;
  background:
    radial-gradient(1200px 420px at 20% 30%, rgba(255,255,255,0.18), rgba(0,0,0,0.00) 55%),
    radial-gradient(1000px 420px at 90% 70%, rgba(196,167,125,0.16), rgba(0,0,0,0.00) 55%);
  transform: scale(1.02);
  transition: transform 260ms ease, filter 260ms ease;
  filter: saturate(0.9);
}

.start-card-inner {
  position: relative;
  z-index: 1;
  padding: var(--spacing-xl);
}

.start-card-kicker {
  font-family: var(--font-geo);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(253,253,253,0.78);
  margin-bottom: 10px;
}

.start-card-title {
  font-family: var(--font-geo);
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 10px;
}

.start-card-meta {
  font-family: var(--font-geo);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(253,253,253,0.70);
}

/* Subtle rollover animation */
.start-card:hover .start-card-bg {
  transform: scale(1.08) translateY(-6px);
  filter: saturate(1.05) contrast(1.02);
}

.start-card:hover {
  border-color: rgba(255, 255, 255, 0.98);
}

.start-card:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.95);
  outline-offset: 3px;
}

@media (max-width: 1200px) {
  .galleries-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .galleries-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
  }
}

@media (max-width: 480px) {
  .galleries-grid {
    grid-template-columns: 1fr;
  }
}

.gallery-card {
  display: block;
}

.gallery-thumb {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-dark);
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: var(--radius-sm);
  margin-bottom: var(--spacing-sm);
}

.gallery-thumb img {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: grayscale(100%);
  /* Aggressive crop for thumbnail images */
  transform: scale(1.45);
  transform-origin: center center;
  transition: transform var(--transition), filter var(--transition);
}

.gallery-card--films .gallery-thumb {
  position: relative;
}

/* Films (hover-to-play): mimic the v19 tile behavior (still fades out, video fades in) */
.gallery-card--films .films-still {
  transition: opacity 240ms ease;
  z-index: 2;
}

.gallery-card--films.playing .films-still {
  opacity: 0;
}

.gallery-card--films .films-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* Wide-screen matte: show full 16:9 video with top/bottom bars in the 4:3 tile */
  object-fit: contain;
  object-position: left center;
  background: #000;
  opacity: 0;
  transition: opacity 240ms ease;
  pointer-events: none;
  z-index: 1;
}

.gallery-card--films.playing .films-video {
  opacity: 1;
}

.gallery-card:hover .gallery-thumb img {
  transform: scale(1.48);
  filter: none;
}

.gallery-card:hover .gallery-thumb {
  box-shadow: var(--shadow-sm);
}

/* Films still: match reference framing and the video window */
.gallery-card--films .gallery-thumb img.films-still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* No crop; fill width, add only top/bottom bars if needed */
  object-fit: contain;
  /* Touch the left frame line */
  object-position: left center;
  background: #000;
  transform: none;
}

.gallery-card--films:hover .gallery-thumb img.films-still {
  transform: translateY(-2px);
}

/* Crop modifiers for gallery thumbnails */
.gallery-thumb.crop-none img { transform: scale(1); }
.gallery-card:hover .gallery-thumb.crop-none img { transform: scale(1.02); }

.gallery-thumb.crop-light img { transform: scale(1.15); }
.gallery-card:hover .gallery-thumb.crop-light img { transform: scale(1.18); }

.gallery-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.gallery-card .count {
  font-size: 12px;
  color: var(--ink-muted);
}

/* ========================================
   Gallery Detail Page
   ======================================== */
.breadcrumb {
  display: flex;
  gap: var(--spacing-xs);
  font-size: 12px;
  margin-bottom: var(--spacing-sm);
}

.breadcrumb a {
  color: var(--ink-muted);
}

.breadcrumb a:hover {
  color: var(--ink);
}

.breadcrumb span {
  color: var(--ink-muted);
}

.gallery-header {
  padding-top: calc(var(--header-height) + var(--spacing-lg));
  padding-bottom: var(--spacing-md);
}

.gallery-title {
  font-size: clamp(20px, 4vw, 28px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--spacing-xs);
}

.gallery-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.gallery-actions--top {
  margin-top: 10px;
  margin-bottom: 6px;
}

.gallery-actions--bottom {
  padding: 0 0 var(--spacing-xl);
  justify-content: center;
}

.btn.btn-small {
  padding: 10px 18px;
  font-size: 12px;
  letter-spacing: 0.10em;
}

.gallery-meta {
  font-size: 13px;
  color: var(--ink-muted);
}

/* ========================================
   Films page (embedded video grid)
   ======================================== */
.page-films .container {
  /* Use as much canvas as the site supports */
  max-width: 1960px;
}

/* Reference layout: old films.html grid, but with site masthead/colors */
.page-films .films-wrap {
  max-width: 1560px;
  margin: 0 auto;
  padding-bottom: var(--spacing-xl);
}

.page-films .section-head { margin: 24px 0 16px; }
.page-films .section-head h2 {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.page-films .video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(360px, 1fr));
  gap: 18px;
}

.page-films .card {
  border: 0;              /* no white borders */
  border-radius: 0;
  overflow: visible;
  background: transparent;
}

.page-films .thumb {
  aspect-ratio: 16 / 9;
  background: #000;
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden; /* hard-mask player edges */
}

.page-films .thumb iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #000;
  /* Hide occasional 1px light edge inside some players */
  transform: scale(1.012);
  transform-origin: center center;
  clip-path: inset(1px); /* extra seam guard */
}

.page-films .caption {
  padding: 10px 2px 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.70);
}

@media (max-width: 1024px) {
  .page-films .films-wrap { max-width: none; }
  .page-films .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .page-films .video-grid { grid-template-columns: 1fr; gap: 14px; }
}

/* ========================================
   Buy Prints page
   ======================================== */
.page-buy-prints .bp-section {
  margin: var(--spacing-lg) 0;
}

.page-buy-prints .bp-h2 {
  font-family: var(--font-geo);
  font-size: 13px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.page-buy-prints .bp-h2.bp-h2--deal {
  font-size: 14px;
  letter-spacing: 0.10em;
  margin-bottom: 10px;
}

.page-buy-prints .bp-deal-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(196,167,125,0.55);
  background: rgba(196,167,125,0.14);
  color: rgba(255,255,255,0.92);
  font-size: 12px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.page-buy-prints .bp-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.page-buy-prints .bp-step {
  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  padding: 16px 16px 14px;
}

.page-buy-prints .bp-step h3 {
  font-family: var(--font-geo);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.page-buy-prints .bp-step p {
  margin: 0 0 10px;
  color: rgba(255,255,255,0.82);
  font-size: 14px;
  line-height: 1.6;
}
.page-buy-prints .bp-step p:last-child { margin-bottom: 0; }

.page-buy-prints .bp-callout {
  background: radial-gradient(900px 320px at 10% 10%, rgba(196,167,125,0.22), rgba(0,0,0,0.16) 55%),
              linear-gradient(180deg, rgba(196,167,125,0.10), rgba(0,0,0,0.30));
  border: 1px solid rgba(196,167,125,0.38);
  border-radius: var(--radius-sm);
  padding: 20px;
  box-shadow: 0 18px 42px rgba(0,0,0,0.40);
}

.page-buy-prints .bp-callout-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.page-buy-prints .bp-price {
  margin: 0;
  color: rgba(255,255,255,0.92);
  font-size: 17px;
  line-height: 1.5;
}

.page-buy-prints .bp-callout-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.page-buy-prints .bp-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  max-width: 820px;
}
.page-buy-prints .bp-list li {
  padding: 0;
}

.page-buy-prints .bp-item {
  width: 100%;
  text-align: left;
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: rgba(255,255,255,0.82);
  cursor: pointer;
}
.page-buy-prints .bp-item:hover { border-color: rgba(196,167,125,0.45); }
.page-buy-prints .bp-item strong { color: rgba(255,255,255,0.92); }

.page-buy-prints .bp-hint {
  margin: -6px 0 12px;
  color: rgba(255,255,255,0.62);
  font-size: 13px;
}

.page-buy-prints .bp-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
}
.page-buy-prints .bp-modal.is-open { display: block; }
.page-buy-prints .bp-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.62);
  backdrop-filter: blur(6px);
}
.page-buy-prints .bp-modal__card {
  position: relative;
  width: min(640px, calc(100vw - 24px));
  margin: calc(var(--header-height) + 18px) auto 18px;
  background: rgba(20,20,20,0.96);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  box-shadow: 0 30px 70px rgba(0,0,0,0.55);
  overflow: hidden;
}
.page-buy-prints .bp-modal__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  background: radial-gradient(900px 260px at 10% 0%, rgba(196,167,125,0.18), rgba(0,0,0,0.0) 55%);
}
.page-buy-prints .bp-modal__title {
  font-family: var(--font-geo);
  font-size: 12px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
}
.page-buy-prints .bp-modal__close {
  background: transparent;
  border: 0;
  color: rgba(255,255,255,0.75);
  font-size: 26px;
  line-height: 1;
  padding: 0 2px;
  cursor: pointer;
}
.page-buy-prints .bp-modal__close:hover { color: rgba(255,255,255,0.92); }

.page-buy-prints .bp-modal__body {
  padding: 16px;
  display: grid;
  gap: 12px;
}
.page-buy-prints .bp-modal__field { display: grid; gap: 8px; }
.page-buy-prints .bp-modal__field span {
  font-family: var(--font-geo);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}
.page-buy-prints .bp-modal__field input {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.32);
  color: rgba(255,255,255,0.92);
  padding: 12px 12px;
  font-size: 14px;
  outline: none;
}
.page-buy-prints .bp-modal__actions {
  padding: 0 16px 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.page-buy-prints .bp-modal__fine {
  padding: 0 16px 16px;
  color: rgba(255,255,255,0.58);
  font-size: 12px;
}

@media (max-width: 980px) {
  .page-buy-prints .bp-steps { grid-template-columns: 1fr; }
}

/* Image Grid (within gallery) */
.image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-sm);
  padding-bottom: var(--spacing-xl);
  width: 100%;
}

/* Matte presentation (white surround + contain) */
.image-grid--matted .image-cell {
  background: rgba(255, 255, 255, 0.98);
  border: 2px solid rgba(255, 255, 255, 0.9);
  padding: clamp(14px, 2vw, 26px);
}

.image-grid--matted .image-cell img {
  object-fit: contain;
  background: #fff;
  transform: translateY(0) scale(1);
}

.image-grid--matted .image-cell:hover img {
  transform: translateY(-2px) scale(1);
}

@media (min-width: 1400px) {
  .image-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1024px) {
  .image-grid {
    gap: 12px;
  }
}

@media (max-width: 768px) {
  .image-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .image-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
  }
}

.image-cell {
  position: relative;
  background: #000;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  /* Image scaling defaults (edit-page / “print sizing”) */
  --img-scale: 1;
  --img-scale-hover: 1.03;
}

.image-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: grayscale(100%);
  transform-origin: center center;
  transform: translateY(0) scale(var(--img-scale));
  transition: transform 0.16s ease, filter var(--transition);
  display: block;
}

.image-cell:hover img {
  transform: translateY(-2px) scale(var(--img-scale-hover));
  filter: none;
}

.image-cell:hover {
  box-shadow: var(--shadow-sm);
}

/* Crop modifier classes - apply to .image-cell */
.image-cell.crop-none { --img-scale: 1; --img-scale-hover: 1.03; }

.image-cell.crop-light { --img-scale: 1.12; --img-scale-hover: 1.15; }

.image-cell.crop-medium { --img-scale: 1.25; --img-scale-hover: 1.28; }

.image-cell.crop-heavy { --img-scale: 1.42; --img-scale-hover: 1.45; }

.image-cell.crop-extreme { --img-scale: 1.60; --img-scale-hover: 1.63; }

/* If a gallery page provides data-position, show it (used by Reportage page) */
.image-cell[data-position]::after {
  content: attr(data-position);
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 3px;
  z-index: 10;
  pointer-events: none;
}

/* Hide data-position overlays for “clean” gallery grids (lightbox counter still shows order). */
.image-grid--no-position .image-cell[data-position]::after {
  display: none;
  content: none;
}

/* “White top/bottom border” prints (ported from the edit template) */
.image-cell.cell--white-top-bottom { background: #fff !important; }
.image-cell.cell--white-top-bottom img {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 98.5% !important;
  height: auto !important;
  max-height: 98.5% !important;
  object-fit: contain !important;
  background: #fff !important;
  filter: grayscale(100%);
}
.image-cell.cell--white-top-bottom:hover img { filter: none; }

/* “Print view” grid: do not crop images (show full frame/borders). */
.image-grid--print .image-cell {
  /* Remove the outer thumbnail frame so only the photograph's own borders/matts show */
  border: none;
  /* Remove the dark “backing tiles” behind prints */
  background: var(--bg);
}

.image-grid--print .image-cell[data-position]::after {
  /* Keep position numbers out of the main grid; lightbox counter stays */
  display: none;
  content: none;
}

.image-grid--print .image-cell img {
  object-fit: contain;
  background: var(--bg);
  /* Keep borders visible by avoiding zoom */
  transform: translateY(0) scale(1);
}
.image-grid--print .image-cell:hover img {
  transform: translateY(-2px) scale(1);
}

/* ========================================
   Lightbox
   ======================================== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.96);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.lightbox.open {
  display: flex;
}

.lightbox-image {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 24px;
  padding: 12px 16px;
  cursor: pointer;
  transition: all var(--transition);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: transparent;
}

.lightbox-close {
  top: 20px;
  right: 20px;
}

.lightbox-prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-counter {
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.01em;
  background: transparent;
  border: 0;
  padding: 0;
  border-radius: 0;
  pointer-events: none;
}

.lightbox-inner {
  max-width: 92vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.lightbox-title {
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  letter-spacing: 0.01em;
  text-align: center;
  max-width: min(900px, 92vw);
  padding: 0 12px;
}

@media (max-width: 768px) {
  .lightbox-prev,
  .lightbox-next {
    top: auto;
    bottom: 20px;
    transform: none;
  }
  
  .lightbox-prev {
    left: 20px;
  }
  
  .lightbox-next {
    right: 20px;
  }
  
  .lightbox-counter {
    bottom: 10px;
  }
}

/* ========================================
   Footer
   ======================================== */
.footer {
  padding: var(--spacing-lg) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: auto;
}

/* Home: copyright sits unobtrusively at bottom-right of the viewport */
.page-home .footer {
  position: fixed;
  right: 18px;
  bottom: 14px;
  padding: 0;
  border-top: none;
  background: transparent;
  z-index: 5; /* above hero image, below header */
}

.page-home .footer .container {
  padding: 0;
}

.page-home .footer-content {
  justify-content: flex-end;
}

.page-home .footer-brand {
  display: none;
}

.page-home .footer-copy {
  font-size: 11px;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.55);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  font-weight: 600;
  font-size: 14px;
}

.footer-copy {
  font-size: 12px;
  color: var(--ink-muted);
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    gap: var(--spacing-sm);
    text-align: center;
  }
}

/* ========================================
   About / Info Page
   ======================================== */
.about-content {
  max-width: 720px;
  padding: var(--spacing-xl) 0;
}

.about-content h2 {
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--spacing-md);
}

.about-content p {
  margin-bottom: var(--spacing-md);
  color: var(--rule);
  line-height: 1.7;
}

.about-content p:last-child {
  margin-bottom: 0;
}

/* ========================================
   Utility Classes
   ======================================== */
.text-center { text-align: center; }
.text-muted { color: var(--ink-muted); }
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }

/* Hide on specific breakpoints */
@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
}
@media (min-width: 769px) {
  .hide-desktop { display: none !important; }
}
