:root {
  --bg: #0a0a0c;
  --bg-color: var(--bg);
  --surface: #121318;
  --bg-elev: var(--surface);
  --surface-color: var(--surface);
  --text: #f4f4f6;
  --text-color: var(--text);
  --muted: #8e929f;
  --muted-color: var(--muted);
  --accent: #d4af37;
  --accent-color: var(--accent);
  --border: #222530;
  --border-color: var(--border);
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-display: var(--font-serif);
  --font-sans: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --hdr-height: 72px;
  --hdr-bg: rgba(10, 10, 12, 0.92);
  --hdr-blur: 14px;
  --nav-size: 13px;
  --nav-gap: 28px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); background-color: var(--bg); color: var(--text); font-family: var(--font-sans); font-weight: 300; line-height: 1.65; -webkit-font-smoothing: antialiased; }
body { overflow-x: clip; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display, var(--font-serif)); font-weight: 400; color: var(--text); }
.hidden { display: none !important; }
.mono { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.06em; color: var(--muted); }

/* Constant Tenant-Configurable Header */
.site-header { position: sticky; top: 0; z-index: 60; background: var(--hdr-bg); backdrop-filter: blur(var(--hdr-blur)); border-bottom: 1px solid var(--border); min-height: var(--hdr-height); padding: 0.75rem 3.5vw; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; transition: background 0.25s; }
.site-header.is-sticky { position: sticky; top: 0; }
.site-header.centered-stack, .site-header.centered-atelier { flex-direction: column; justify-content: center; padding: 1.25rem 3.5vw; gap: 0.85rem; }
.site-header.minimal-bar, .site-header.minimal-top { min-height: 54px; padding: 0.5rem 2.5vw; }
.brand-wrap { display: flex; flex-direction: column; cursor: pointer; text-decoration: none; }
.brand-logo { display: block; width: auto; object-fit: contain; }
.brand-title { font-family: var(--font-display, var(--font-serif)); font-size: 1.6rem; font-weight: 400; letter-spacing: 0.16em; color: var(--text); text-decoration: none; text-transform: uppercase; line-height: 1.15; }
.brand-tagline { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.12em; text-transform: uppercase; margin-top: 2px; }
.nav-links { display: flex; align-items: center; gap: var(--nav-gap); list-style: none; flex-wrap: wrap; }
.nav-item-wrap { position: relative; }
.nav-link { color: var(--muted); text-decoration: none; font-size: var(--nav-size); letter-spacing: 0.12em; transition: color 0.2s; cursor: pointer; background: none; border: none; padding: 0.35rem 0; font-family: var(--font-sans); }
.nav-link.is-upper { text-transform: uppercase; }
.nav-link:hover { color: var(--text); }
.nav-link.active { color: var(--accent) !important; border-bottom: 2px solid var(--accent); font-weight: 600; }
.nav-dropdown { display: none; position: absolute; top: 100%; left: 0; min-width: 200px; background: var(--surface); border: 1px solid var(--border); padding: 0.5rem 0; z-index: 50; box-shadow: 0 14px 34px rgba(0,0,0,0.55); }
.nav-item-wrap:hover .nav-dropdown { display: flex; flex-direction: column; }
.nav-dropdown .nav-link { padding: 0.55rem 1.1rem; text-align: left; width: 100%; white-space: nowrap; }
.nav-dropdown .nav-link:hover { background: rgba(255,255,255,0.05); }
.btn-editorial { border: 1px solid var(--border); background: transparent; color: var(--text); padding: 0.55rem 1.2rem; font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; transition: all 0.2s; text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem; }
.btn-editorial:hover { border-color: var(--accent); color: var(--accent); }
.btn-full { width: 100%; justify-content: center; }

/* Hero & Slideshow Banner */
.site-hero { position: relative; width: 100%; height: 76vh; min-height: 440px; overflow: hidden; border-bottom: 1px solid var(--border); display: flex; align-items: flex-end; padding: 4vw; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transform: scale(1.02); transition: opacity 1s ease, transform 6s ease; }
.hero-slide.active { opacity: 0.78; transform: scale(1); }
.hero-overlay { position: relative; z-index: 2; max-width: 820px; }
.hero-eyebrow { font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.65rem; }
.hero-headline, .hero-title { font-family: var(--font-display, var(--font-serif)); font-size: clamp(2.2rem, 4.8vw, 4.4rem); font-weight: 400; line-height: 1.08; margin-bottom: 0.85rem; }
.hero-sub { color: var(--muted); font-size: 1.02rem; max-width: 580px; margin-bottom: 1.25rem; }

/* Page Container & Section Blocks */
.site-main { min-height: 70vh; width: 100%; margin: 0 auto; }
.site-main.width-full { max-width: 100%; }
.site-main.width-wide { max-width: 1680px; }
.site-main.width-standard { max-width: 1280px; }
.site-main.width-narrow { max-width: 920px; }
.section-block { padding: var(--sec-pad, 4rem) 3.5vw; border-bottom: 1px solid var(--border); }
.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 2.2rem; gap: 1rem; flex-wrap: wrap; }
.section-header.sticky-gallery-bar { position: sticky; top: var(--hdr-height, 72px); z-index: 45; background: var(--hdr-bg, rgba(10,10,12,0.92)); backdrop-filter: blur(var(--hdr-blur, 14px)); padding: 0.85rem 0; margin-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.section-title { font-family: var(--font-display, var(--font-serif)); font-size: clamp(1.75rem, 3vw, 2.65rem); font-weight: 400; }
.editorial-split { display: grid; grid-template-columns: 1fr 1fr; gap: 4vw; align-items: center; }
.editorial-split.img-left { direction: rtl; }
.editorial-split.img-left > * { direction: ltr; }
.editorial-split img { width: 100%; height: auto; display: block; }
.bio-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 4vw; align-items: start; }
.bio-grid img { width: 100%; height: auto; display: block; }
.faq-item { border-bottom: 1px solid var(--border); padding: 1.25rem 0; }
.faq-q { font-family: var(--font-display, var(--font-serif)); font-size: 1.35rem; margin-bottom: 0.4rem; }

/* Sub-Gallery Cover Cards & Directory Grid */
.subgallery-grid { display: grid; grid-template-columns: repeat(var(--sg-cols, 3), 1fr); gap: var(--sg-gap, 20px); margin-bottom: 2.75rem; }
.subgallery-card { position: relative; overflow: hidden; background: var(--bg-elev); border: 1px solid var(--border); cursor: pointer; group: card; border-radius: var(--img-radius, 0px); }
.subgallery-thumb-wrap { width: 100%; aspect-ratio: var(--sg-aspect, 4/3); overflow: hidden; background: #08090c; }
.subgallery-thumb-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1); }
.subgallery-card:hover .subgallery-thumb-wrap img { transform: scale(1.04); }
.subgallery-meta { padding: 0.9rem 1.1rem; display: flex; justify-content: space-between; align-items: center; }
.subgallery-title { font-family: var(--font-display, var(--font-serif)); font-size: 1.25rem; font-weight: 400; color: var(--text); }

/* Configurable Photography Layouts */
.gallery-layout-wrapper { width: 100%; }
.photo-card { position: relative; cursor: pointer; overflow: hidden; border-radius: var(--img-radius, 0px); background: var(--bg-elev); }
.photo-card img, .photo-card video { width: 100%; display: block; transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.zoom-on .photo-card:hover img { transform: scale(1.025); }
.photo-caption { padding: 0.45rem 0.2rem; font-size: 0.78rem; color: var(--muted); display: flex; justify-content: space-between; }

/* 1. Masonry Columns */
.layout-masonry { column-count: var(--g-cols, 3); column-gap: var(--g-gap, 16px); }
.layout-masonry .photo-card { break-inside: avoid; margin-bottom: var(--g-gap, 16px); }

/* 2. Uniform Aspect-Ratio Grid & Contact Sheet */
.layout-grid, .layout-contact-sheet { display: grid; grid-template-columns: repeat(var(--g-cols, 3), 1fr); gap: var(--g-gap, 16px); }
.layout-grid .photo-card img, .layout-grid .photo-card video, .layout-contact-sheet .photo-card img { aspect-ratio: var(--g-aspect, 1/1); object-fit: cover; height: 100%; }
.gallery-layout-wrapper[style*="--g-aspect:auto"] .layout-grid .photo-card img, .gallery-layout-wrapper[style*="--g-aspect:auto"] .layout-justified .photo-card img { object-fit: contain; height: auto; }

/* 3. Justified Rows */
.layout-justified { display: flex; flex-wrap: wrap; gap: var(--g-gap, 16px); }
.layout-justified .photo-card { flex: 1 1 calc((100% / var(--g-cols, 3)) - var(--g-gap, 16px)); min-width: 260px; max-height: 460px; }
.layout-justified .photo-card img, .layout-justified .photo-card video { width: 100%; height: 100%; object-fit: cover; }

/* 4. Editorial Spread */
.layout-editorial { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--g-gap, 24px); align-items: center; }
.ed-item.span-12 { grid-column: span 12; }
.ed-item.span-7 { grid-column: span 7; }
.ed-item.span-5 { grid-column: span 5; }
.ed-item.span-6 { grid-column: span 6; }

/* 5. Cinematic Horizontal Filmstrip Scroller */
.layout-scroller { display: flex; gap: var(--g-gap, 20px); overflow-x: auto; padding-bottom: 1.2rem; scroll-snap-type: x mandatory; }
.layout-scroller .photo-card { flex: 0 0 auto; height: 72vh; scroll-snap-align: center; }
.layout-scroller .photo-card img, .layout-scroller .photo-card video { height: 100%; width: auto; object-fit: cover; }

.fav-badge { position: absolute; top: 10px; right: 10px; background: rgba(0, 0, 0, 0.76); color: #f43f5e; font-size: 0.76rem; padding: 3px 9px; border-radius: 4px; pointer-events: none; z-index: 5; }

/* Lightbox & Proofing Portal */
.lightbox-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(6, 6, 8, 0.97); display: flex; flex-direction: column; }
.lightbox-topbar { height: 54px; padding: 0 2vw; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); }
.lb-actions { display: flex; gap: 0.75rem; }
.lb-btn { background: var(--surface); border: 1px solid var(--border); color: var(--text); padding: 0.4rem 0.9rem; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; text-decoration: none; }
.lb-btn.active { border-color: var(--accent); color: var(--accent); }
.lightbox-stage { flex: 1; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; padding: 2vh 5vw; }
.lb-media-wrap img, .lb-media-wrap video { max-width: 90vw; max-height: 84vh; object-fit: contain; display: block; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); background: transparent; border: none; color: var(--text); font-size: 3rem; cursor: pointer; padding: 1rem; opacity: 0.65; }
.lb-nav:hover { opacity: 1; }
.lb-prev { left: 1vw; }
.lb-next { right: 1vw; }
.lb-note-drawer { background: var(--surface); border-top: 1px solid var(--border); padding: 1rem 3.5vw; max-height: 220px; overflow-y: auto; }
.lb-note-form { display: grid; grid-template-columns: 180px 1fr auto; gap: 0.75rem; margin-bottom: 0.75rem; }
.lb-note-form input, .form-group input, .contact-form input, .contact-form textarea { background: var(--bg); border: 1px solid var(--border); color: var(--text); padding: 0.65rem 0.85rem; width: 100%; font-family: var(--font-sans); }

/* Modal & Footer */
.modal-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,0.8); display: flex; align-items: center; justify-content: center; }
.modal-card { width: 400px; max-width: 92vw; background: var(--surface); border: 1px solid var(--border); padding: 2rem; }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; font-family: var(--font-display); font-size: 1.35rem; }
#proofing-close, .modal-header .btn-icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: bold; color: var(--text);
  cursor: pointer; transition: all 0.2s ease; line-height: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
#proofing-close:hover, .modal-header .btn-icon:hover {
  background: #ef4444; border-color: #ef4444; color: #fff;
  transform: scale(1.08);
}
.search-modal-card { max-width: 640px !important; width: 92% !important; border-radius: 10px; overflow: hidden; }
.search-result-row:hover { background: rgba(255,255,255,0.08) !important; transform: translateX(2px); transition: all 0.15s ease; }
.search-result-photo:hover { opacity: 0.85; transform: scale(1.03); transition: all 0.15s ease; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 0.35rem; }
.form-error { color: #f87171; font-size: 0.82rem; margin-bottom: 0.75rem; }
.site-footer { padding: 3rem 3.5vw; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 0.82rem; flex-wrap: wrap; gap: 1.25rem; }
.footer-nav { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }

@media (max-width: 900px) {
  .editorial-split, .bio-grid { grid-template-columns: 1fr; }
  .layout-masonry { column-count: 2 !important; }
  .layout-grid, .subgallery-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .ed-item.span-7, .ed-item.span-5, .ed-item.span-6 { grid-column: span 12; }
}
@media (max-width: 560px) {
  .layout-masonry { column-count: 1 !important; }
  .layout-grid, .subgallery-grid { grid-template-columns: 1fr !important; }
}
