/* ============================================================
   alexandermasters.com — Public CSS
   Font: Avenir LT Std (self-hosted)
   Palette: wrkflw design system
   ============================================================ */

/* ── Fonts ──────────────────────────────────────────────────── */
@font-face {
  font-family: 'Avenir LT Std';
  src: url('../fonts/AvenirLTStd-Book.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Avenir LT Std';
  src: url('../fonts/AvenirLTStd-55-oblique.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Avenir LT Std';
  src: url('../fonts/AvenirLTStd-95-black.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ── Variables ──────────────────────────────────────────────── */
:root {
  --gold:      #d5a63a;
  --gold-dk:   #b88c2f;
  --text:      #1a1a1a;
  --muted:     #777;
  --border:    #e0e0e0;
  --bg:        #ffffff;
  --surface:   #f9f9f9;
  --surface2:  #f0f0f0;

  --font:      'Avenir LT Std', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --gap:       12px;
  --header-h:  100px;
  --container-max: 1200px;
}

/* ── Per-category themes ────────────────────────────────────── */
body { transition: background-color 0.4s ease; }
/* All portfolio filter themes default to grey — weddings overrides to white */
body[class*="theme-"]  { --bg: #f6f6f6; --accent: var(--gold); }
body.theme-weddings    { --bg: #ffffff; }

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font-family: inherit; cursor: pointer; }

/* ── Layout ─────────────────────────────────────────────────── */
.site-main { flex: 1; padding-top: var(--header-h); }
.container {
  width: 92.6%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ── Header ─────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: #fff;
  min-height: var(--header-h);
}

.header-inner {
  display: flex;
  align-items: center;
  min-height: var(--header-h);
  width: 92.6%;
  max-width: 1200px;
  margin: 0 auto;
  gap: 36px;
  flex-wrap: wrap;
}

.site-logo {
  display: flex;
  align-items: center;
  margin-right: auto;
  line-height: 1;
}
.site-logo img {
  height: 37px;
  max-width: 180px;
  width: auto;
  display: block;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.nav-link {
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  position: relative;
  padding-bottom: 2px;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 100%;
  height: 1px;
  background: var(--gold);
  transition: right 0.25s ease;
}
.nav-link:hover::after,
.nav-link.active::after { right: 0; }
.nav-link.active { color: var(--text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.25s, opacity 0.25s;
}

/* ── Header filter group (in-nav job type filters) ──────────── */
.filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.filter-bracket {
  color: var(--gold);
  font-size: 15px;
  font-weight: 300;
  line-height: 1;
  display: flex;
  align-items: center;
  user-select: none;
}
.filter-sep {
  color: var(--gold);
  font-size: 11px;
  line-height: 1;
  display: flex;
  align-items: center;
  user-select: none;
}

/* ── Filter bar (work / weddings pages) ─────────────────────── */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 28px 0 20px;
}
.filter-btn {
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  background: none;
  border: none;
  padding: 0;
  position: relative;
  padding-bottom: 3px;
  transition: color 0.2s;
}
.filter-btn::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 100%;
  height: 1px;
  background: var(--gold);
  transition: right 0.2s;
}
.filter-btn.active,
.filter-btn:hover { color: var(--text); }
.filter-btn.active::after { right: 0; }

/* ── Masonry grid (Work / Weddings cards) ───────────────────── */
.masonry-grid {
  column-count: 3;
  column-gap: 30px;
  padding-bottom: 60px;
}
.masonry-card {
  break-inside: avoid;
  margin-bottom: 30px;
  cursor: pointer;
}
.masonry-card-img {
  display: block;
  width: 100%;
  height: auto;
  line-height: 0;
  position: relative;
}
.masonry-card-img img {
  width: 100%;
  height: auto;
  display: block;
}
/* Crossfade slideshow — both layers, locked container */
.masonry-card-img.is-sliding {
  overflow: hidden;
  background: #fff; /* shows while next image loads — no dark flash */
}
.masonry-card-img.is-sliding .card-slide-a,
.card-slide-b {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.card-slide-b {
  opacity: 0;
  /* transition is set dynamically by JS to keep duration in sync */
}
.masonry-card-badge {
  position: absolute;
  bottom: 8px; right: 8px;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.8);
  background: rgba(0,0,0,0.18);
}
.masonry-card-caption {
  background: #fff;
  padding: 15px;
}
.masonry-card-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text);
  margin: 0;
  line-height: 1.35;
}
.masonry-card-sub {
  font-size: 9px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin: 4px 0 0;
  line-height: 1.35;
}
.card-org {
  color: var(--gold);
}
.card-pub-link {
  color: inherit;
  cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}
.card-pub-link:hover,
.card-pub-link.active {
  border-color: currentColor;
}
.card-pub-ext {
  color: var(--muted);
  font-size: 8px;
  margin-left: 2px;
  text-decoration: none;
  vertical-align: super;
}
.card-pub-ext:hover { color: var(--text); }
.masonry-card[data-hidden="true"] {
  display: none;
}
.masonry-grid {
  transition: opacity 0.22s ease;
}
.masonry-grid.is-filtering {
  opacity: 0;
}

/* ── Wedding grid mode ──────────────────────────────────────
   Full-width, 4-col uniform grid, title on hover not below  */
body.theme-weddings .home-grid-section {
  padding-left: 3.7%;
  padding-right: 3.7%;
}
body.theme-weddings .home-grid-section .container {
  width: 100%;
  max-width: none;
  margin: 0;
}
body.theme-weddings .masonry-grid {
  column-count: unset;
  column-gap: unset;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
body.theme-weddings .masonry-card {
  break-inside: unset;
  margin-bottom: 0;
  position: relative;
}
body.theme-weddings .masonry-card-img {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  height: auto;
}
body.theme-weddings .masonry-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
body.theme-weddings .masonry-card-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 40px 24px 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.52) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
body.theme-weddings .masonry-card:hover .masonry-card-caption {
  opacity: 1;
}
body.theme-weddings .masonry-card-title {
  color: #fff;
  font-weight: 400;
  text-transform: none;
}
body.theme-weddings .masonry-card-sub {
  color: rgba(255,255,255,0.75);
}
@media (max-width: 1100px) {
  body.theme-weddings .masonry-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  body.theme-weddings .masonry-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  body.theme-weddings .home-grid-section { padding-left: 3%; padding-right: 3%; }
}
@media (max-width: 480px) {
  body.theme-weddings .masonry-grid { grid-template-columns: 1fr; }
}

/* ── Corporate page ─────────────────────────────────────────── */
.corporate-page {
  width: var(--container);
  max-width: var(--container-max);
  margin: 0 auto;
  background: #fff;
  padding-bottom: 60px;
}
.corp-hero {
  width: 100%;
  margin-bottom: var(--gap);
}
.corp-hero img {
  width: 100%;
  height: auto;
  display: block;
}
.corp-featured-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  margin-bottom: 40px;
}
.corp-featured-thumb {
  cursor: pointer;
}
.corp-featured-thumb img {
  width: 100%;
  height: auto;
  display: block;
}
.corp-index {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
}
.corp-accordion {}
.corp-subtype {
  border-bottom: 1px solid var(--border);
}
.corp-subtype-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
}
.corp-subtype-head .chevron {
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--muted);
  transition: transform 0.2s;
}
.corp-subtype.open .chevron { transform: rotate(180deg); }
.corp-subtype-list {
  display: none;
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
}
.corp-subtype.open .corp-subtype-list { display: block; }
.corp-subtype-list li {
  padding: 6px 0;
}
.corp-subtype-list a {
  font-size: 13px;
  color: var(--muted);
  transition: color 0.15s;
  cursor: pointer;
}
.corp-subtype-list a:hover,
.corp-subtype-list a.active { color: var(--text); }
.corp-preview {
  position: sticky;
  top: calc(var(--header-h) + 20px);
}
.corp-preview-img {
  width: 100%;
  background: #fff;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}
.corp-preview-img img {
  max-width: 100%;
  height: auto;
  display: block;
}
.corp-preview-title {
  margin-top: 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text);
}

/* ── Wedding single page ────────────────────────────────────── */
.wedding-page {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 60px;
  width: var(--container);
  max-width: var(--container-max);
  margin: 40px auto 60px;
  align-items: start;
}
.wedding-gallery {}
.gallery-row { margin-bottom: var(--gap); }
.gallery-row.single img {
  width: 100%;
  height: auto;
  display: block;
}
.gallery-row.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}
.gallery-row.pair img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.wedding-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
.wedding-names {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 20px;
}
.wedding-meta {}
.wedding-meta-row {
  margin-bottom: 10px;
}
.wedding-meta-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  display: block;
  margin-bottom: 2px;
}
.wedding-meta-value {
  font-size: 13px;
  color: var(--text);
}
.wedding-slideshow-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 8px 14px;
  transition: color 0.2s, border-color 0.2s;
}
.wedding-slideshow-btn:hover { color: var(--text); border-color: var(--text); }

/* ── Lead grid (per job type) ───────────────────────────────── */
.lead-grid {
  display: grid;
  margin-bottom: 32px;
  line-height: 0;
}
.lead-grid[data-cols="1"] { grid-template-columns: 1fr; }
.lead-grid[data-cols="2"] { grid-template-columns: repeat(2, 1fr); }
.lead-grid[data-cols="3"] { grid-template-columns: repeat(3, 1fr); }
.lead-grid[data-cols="4"] { grid-template-columns: repeat(4, 1fr); }
.lead-grid[data-gap="0"]  { gap: 0; }
.lead-grid[data-gap="sm"] { gap: var(--gap); }
.lead-grid[data-gap="md"] { gap: calc(var(--gap) * 2); }
.lead-grid img { width: 100%; height: auto; display: block; }

/* ── Lightbox ───────────────────────────────────────────────── */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-overlay[hidden] { display: none; }
.lightbox-stage {
  width: 90vw;
  height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--gap);
}
.lightbox-stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}
.lightbox-stage.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}
.lightbox-stage.pair img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 28px;
  line-height: 1;
  padding: 12px;
  transition: color 0.2s;
  z-index: 501;
}
.lightbox-close { top: 16px; right: 20px; font-size: 36px; }
.lightbox-prev  { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { color: #fff; }
.lightbox-counter {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
}

/* ── Wedding overlay ────────────────────────────────────────── */
.wedding-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: var(--bg);
  overflow-y: auto;
}
.wedding-overlay[hidden] { display: none; }
.wedding-overlay-close {
  position: fixed;
  top: 16px; right: 20px;
  background: none;
  border: none;
  font-size: 30px;
  color: var(--muted);
  z-index: 401;
  transition: color 0.2s;
}
.wedding-overlay-close:hover { color: var(--text); }
.wedding-overlay-inner {
  padding-top: var(--header-h);
}

/* ── About page ─────────────────────────────────────────────── */
/* ── Shared page layout (about / studio / contact) ──────────── */
.page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 40px 80px;
}

/* ── Page row layout ─────────────────────────────────────────── */
/* Each row is either solo (no grid) or multi-section CSS grid   */
.page-row {
  margin-bottom: 60px;
}
.page-row:last-child { margin-bottom: 0; }

.page-row--grid {
  display: grid;
  grid-template-columns: var(--row-cols, 1fr);
  gap: 60px;
  align-items: start;
}
.page-sec { min-width: 0; }
.page-sec-img {
  width: 100%;
  height: auto;
  display: block;
}
.page-col-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
  text-align: justify;
  text-align-last: left;
}
.page-col-text--solo {
  max-width: 740px;
}
.page-col-text p { margin: 0 0 1.2em; }

/* Legacy two-column helpers (kept for Studio / Contact) */
.page-cols {
  display: grid;
  grid-template-columns: var(--page-grid, 1fr 2fr);
  gap: 60px;
  align-items: start;
}
.page-cols--right {
  grid-template-columns: var(--page-grid, 2fr 1fr);
}
.page-img-top {
  width: 100%;
  margin-bottom: 40px;
}
.page-img-top img, .page-col-img img {
  width: 100%;
  height: auto;
  display: block;
}
.page-col-logos {
  align-self: start;
}
.page-col-right {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Responsive: stack rows below 768px */
@media (max-width: 768px) {
  .page-row--grid {
    grid-template-columns: 1fr !important;
    gap: 32px;
  }
  .page-row { margin-bottom: 40px; }
  .page-cols,
  .page-cols--right,
  .about-cols {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ── Client logos step-and-repeat ───────────────────────────── */
.client-logos-section {
  margin-top: 80px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}
.client-logos-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  margin: 0 auto;
}
.logo-cell {
  width: calc(100% / 5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 21px 28px;
  filter: grayscale(100%);
  opacity: 0.4;
  transition: filter 0.3s, opacity 0.3s;
}
.logo-cell:hover {
  filter: grayscale(0%);
  opacity: 1;
}
.logo-cell img {
  max-width: 100%;
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* "Name /for/ Publication" — bold name & pub, italic light connector */
.credit-for {
  font-style: italic;
  font-weight: 400;
  opacity: 0.55;
  margin: 0 0.15em;
}
.card-name,
.card-pub-name {
  font-weight: 700;
}

/* Legacy class kept for compatibility */
.about-page {
  width: var(--container);
  max-width: 800px;
  margin: 60px auto 80px;
}
.about-content {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
}
.about-content p { margin: 0 0 1.2em; }

/* ── Contact page ───────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-text-col {
  padding-top: 4px;
}
.contact-sidebar-text {
  font-size: 14px;
  line-height: 1.9;
  color: var(--text);
}
.contact-sidebar-text a { color: var(--text); border-bottom: 1px solid var(--border); }
.contact-sidebar-text a:hover { border-color: var(--gold); }
.contact-intro {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 40px;
  color: var(--text);
}
.contact-details {
  font-size: 14px;
  line-height: 2;
}
.contact-details a { color: var(--text); border-bottom: 1px solid var(--border); }
.contact-details a:hover { border-color: var(--gold); }
.contact-details p { margin: 0 0 4px; }

/* legacy — keep for any remaining refs */
.contact-page {
  max-width: 680px;
  margin: 60px auto 80px;
}
.contact-page h1 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 8px;
}
.contact-intro {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 32px;
  line-height: 1.65;
}
.contact-details {
  margin-bottom: 40px;
  font-size: 14px;
  line-height: 2;
}
.contact-details a { color: var(--text); border-bottom: 1px solid var(--border); }
.contact-details a:hover { border-color: var(--gold); }

/* Contact / booking form */
.contact-form .form-row { margin-bottom: 18px; }
.contact-form label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 6px;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: var(--font);
  font-size: 14px;
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { outline: none; border-color: var(--gold); }
.contact-form textarea { min-height: 120px; resize: vertical; }

/* Authorize.net hosted fields */
.authnet-section {
  margin-top: 24px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
}
.authnet-section h3 {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 16px;
}
.authnet-toggle-wrap {
  margin-bottom: 16px;
}
.authnet-toggle-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  cursor: pointer;
}
.authnet-fields {
  display: none;
}
.authnet-fields.is-open { display: block; }
.authnet-row { margin-bottom: 14px; }
.authnet-row label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 5px;
}
.authnet-input-wrap {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 10px 12px;
  background: #fff;
  height: 40px;
}
.authnet-amount-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  align-items: end;
}
.authnet-amount-row input[type="number"] {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 14px;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font);
}
.authnet-amount-row input:focus { outline: none; border-color: var(--gold); }

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  background: var(--gold);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: filter 0.2s;
  margin-top: 8px;
}
.btn-submit:hover { filter: brightness(1.08); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.form-notice {
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 13px;
  margin-bottom: 20px;
}
.form-notice.success { background: #e8f5e9; color: #2e7d32; }
.form-notice.error   { background: #ffebee; color: #c62828; }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid #fff;
  background: #fff;
  padding: 14px 0;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 16px;
}
.footer-col {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  line-height: 1.5;
}
.footer-col a { color: var(--muted); }
.footer-col a:hover { color: var(--text); }
.footer-sep { color: var(--border); margin: 0 4px; }

.footer-col--left {
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-col--center {
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-contact {
  display: inline-block;
  text-align: left;
  line-height: 1.6;
}
.footer-detail-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.footer-detail-label {
  font-weight: 700;
  white-space: nowrap;
}
.footer-detail-val a { color: var(--muted); }
.footer-detail-val a:hover { color: var(--text); }
.footer-col--right {
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-details {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}

.footer-parent-logo {
  max-height: 21px;
  width: auto;
  display: block;
  filter: grayscale(100%);
  opacity: 0.5;
  transition: filter 0.2s, opacity 0.2s;
}
.footer-parent-logo:hover { filter: grayscale(0%); opacity: 1; }
.footer-parent-name { color: var(--muted); }

.header-ig {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  margin-left: 2px;
}
.header-ig:hover { color: var(--text); }

/* ── Template shared ────────────────────────────────────────── */
.tpl-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 40px 80px;
}

/* Entry layout (small-images, small-slider) — 2/3 + 1/3 */
.entry-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  align-items: start;
}
.gallery-entry { display: flex; flex-direction: column; gap: 16px; }
.entry-row { display: flex; gap: 16px; align-items: flex-start; line-height: 0; }
.entry-row.single .entry-img { flex: 1; min-width: 0; }
.entry-row.single .entry-img img { width: 100%; height: auto; display: block; }
.entry-row.pair .entry-img { flex: 1; min-width: 0; aspect-ratio: 2/3; overflow: hidden; }
.entry-row.pair .entry-img img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.entry-img.mirrored img, .split-img.mirrored img { transform: scaleX(-1); }

/* Sidebar — shared */
.entry-sidebar { position: sticky; top: 120px; }
.project-title { font-size: 18px; font-weight: 700; letter-spacing: -.01em; margin: 0 0 6px; }
.project-credit { font-size: 12px; color: var(--muted); margin: 0 0 4px; }
.project-date { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 24px; }
.project-desc { font-size: 14px; line-height: 1.75; margin: 0 0 24px; }
.credit-org { color: var(--gold); }
.meta-table { width: 100%; border-collapse: collapse; }
.meta-table td { padding: 7px 0; font-size: 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.meta-table td:first-child { font-weight: 700; text-transform: uppercase; font-size: 10px;
  letter-spacing: .08em; color: var(--muted); width: 90px; padding-right: 12px; }
.meta-table tr:last-child td { border-bottom: none; }

/* Slider — shared */
.slider-wrap { position: relative; line-height: 0; background: #111; }
.slider-wrap.full-bleed { width: 100%; }
.slider-frame { position: relative; overflow: hidden; }
.slide { display: none; }
.slide.active { display: block; }
.slide img { width: 100%; height: auto; display: block; }
.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.45); color: #fff; border: none; font-size: 20px;
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 2; transition: background .2s; }
.slider-arrow:hover { background: rgba(0,0,0,.75); }
.slider-arrow.prev { left: 12px; }
.slider-arrow.next { right: 12px; }
.slider-counter { font-size: 11px; color: var(--muted); text-align: right;
  padding: 8px 0 0; letter-spacing: .05em; }
.slider-thumbs { display: flex; gap: 4px; margin-top: 8px; overflow-x: auto; scrollbar-width: none; }
.slider-thumbs::-webkit-scrollbar { display: none; }
.thumb { flex: 0 0 auto; width: 56px; height: 38px; overflow: hidden; cursor: pointer;
  opacity: .55; transition: opacity .2s; border: 2px solid transparent; }
.thumb.active { opacity: 1; border-color: var(--gold); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.ls-sub { max-width: 1200px; margin: 0 auto; padding: 0 40px; }

/* Large images / large slider footer */
.large-images-layout, .large-slider-layout { background: #fff; }
.li-block { line-height: 0; }
.li-block img { width: 100%; height: auto; display: block; }
.li-pair { display: flex; line-height: 0; }
.li-pair .li-cell { flex: 1; min-width: 0; }
.li-pair .li-cell img { width: 100%; height: auto; display: block; }
.li-footer { max-width: 1200px; margin: 0 auto; padding: 48px 40px 80px; }
.li-footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }

/* Split layout — full bleed, images touching */
.split-layout { display: grid; grid-template-columns: 2fr 1fr; align-items: start; }
.split-gallery { line-height: 0; }
.split-row { display: flex; }
.split-row.single .split-img { flex: 1; }
.split-row.single .split-img img { width: 100%; height: auto; display: block; }
.split-row.pair .split-img { flex: 1; aspect-ratio: 2/3; overflow: hidden; }
.split-row.pair .split-img img { width: 100%; height: 100%; object-fit: cover; }
.split-sidebar { padding: 48px 40px; position: sticky; top: 120px; }

/* Gallery layout — CSS masonry */
.gallery-layout { max-width: 1200px; margin: 0 auto; padding: 48px 40px 0; }
.gl-grid { columns: 3; column-gap: 12px; }
.gl-item { break-inside: avoid; margin-bottom: 12px; cursor: pointer; }
.gl-item img { width: 100%; height: auto; display: block; }

/* Responsive */
@media (max-width: 860px) {
  .entry-layout, .split-layout { grid-template-columns: 1fr; }
  .split-sidebar { position: static; }
  .li-footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .gl-grid { columns: 2; }
}
@media (max-width: 600px) {
  .tpl-container { padding: 32px 20px 60px; }
  .entry-row.pair { flex-direction: column; }
  .entry-row.pair .entry-img { aspect-ratio: unset; }
  .gl-grid { columns: 1; }
  .ls-sub { padding: 0 20px; }
  .li-footer { padding: 32px 20px 60px; }
}

/* ── Index page hero ────────────────────────────────────────── */
.home-hero {
  width: 100%;
  height: calc(100vh - var(--header-h));
  overflow: hidden;
  position: relative;
}
.home-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.home-hero-caption {
  position: absolute;
  bottom: 32px;
  left: 32px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.7);
}
.home-grid-section {
  padding: 40px 0 60px;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .masonry-grid { column-count: 2; }
  .corp-featured-row { grid-template-columns: repeat(2, 1fr); }
  .wedding-page { grid-template-columns: 1fr 260px; gap: 32px; }
}
@media (max-width: 768px) {
  .container, .header-inner { width: 94%; }
  .header-inner { gap: 16px; }
  .contact-layout { grid-template-columns: 1fr; gap: 40px; width: 94%; }
  .site-nav {
    display: none;
    position: fixed;
    top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    z-index: 99;
  }
  .site-nav.is-open { display: flex; }
  .nav-link { font-size: 14px; }
  .nav-toggle { display: flex; }
  .masonry-grid { columns: 1; }
  .corp-featured-row { grid-template-columns: repeat(2, 1fr); }
  .corp-index { grid-template-columns: 1fr; }
  .corp-preview { position: static; }
  .wedding-page { grid-template-columns: 1fr; }
  .wedding-sidebar { position: static; }
  .gallery-row.pair { grid-template-columns: 1fr 1fr; }
  .lightbox-stage { width: 96vw; height: 80vh; }
  .footer-inner { grid-template-columns: 1fr; padding: 0 20px; gap: 6px; text-align: center; }
  .footer-col--left, .footer-col--center, .footer-col--right { justify-content: center; text-align: center; }
  .logo-cell { width: calc(100% / 3); padding: 20px 16px; }
}
