/* ── GALLERY ARCHIVE ─────────────────────────────────────────── */
.gallery-archive-header {
  padding: 72px 0 48px;
  text-align: center;
}

.tax-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 36px;
}

.tax-filter-btn {
  font-family: var(--f-sans);
  text-transform: uppercase; /* Bebas was caps-only */
  font-size: 11px;
  letter-spacing: 0.135em;
  color: var(--mid);
  background: none;
  border: 1px solid rgba(0, 0, 0, 0.12);
  padding: 8px 18px;
  cursor: pointer;
  transition: all 0.18s;
  text-decoration: none;
  display: inline-block;
}

.tax-filter-btn:hover,
.tax-filter-btn.active {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}

/* Gallery grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  margin-top: 48px;
}

.gallery-card {
  position: relative;
  display: block;
  text-decoration: none;
  overflow: hidden;
}

.gallery-card-img-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--bone-mid);
}

.gallery-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s ease;
}

.gallery-card:hover .gallery-card-img {
  transform: scale(1.04);
}

.gallery-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.gallery-card:hover .gallery-card-overlay {
  opacity: 1;
}

.gallery-card-meta {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 18px;
  transform: translateY(8px);
  opacity: 0;
  transition: all 0.35s ease;
}

.gallery-card:hover .gallery-card-meta {
  transform: translateY(0);
  opacity: 1;
}

.gallery-card-title {
  font-family: var(--f-italiana);
  font-size: 20px;
  color: var(--white);
  line-height: 1;
  margin-bottom: 4px;
}

.gallery-card-sub {
  font-family: var(--f-sans);
  text-transform: uppercase; /* Bebas was caps-only */
  font-size: 11px;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.55);
}

/* ── SINGLE GALLERY ──────────────────────────────────────────── */
.gallery-header {
  padding: 64px 0 52px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.gallery-meta-strip {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.gallery-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gallery-meta-label {
  font-family: var(--f-sans);
  text-transform: uppercase; /* Bebas was caps-only */
  font-size: 11px;
  letter-spacing: 0.165em;
  color: var(--mid);
}

.gallery-meta-value {
  font-family: var(--f-cg);
  font-size: 16px;
  color: var(--ink-soft);
}

.gallery-story {
  max-width: 680px;
  margin: 48px auto 0;
}

.gallery-lede {
  font-family: var(--f-cg);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.48;
  color: var(--ink-soft);
  border-left: 2px solid var(--green);
  padding-left: 16px;
  margin-bottom: 24px;
}

/* Scrapbook layout */
.scrapbook-grid {
  column-count: 3;
  column-gap: 4px;
  margin-top: 48px;
}

.scrapbook-cell {
  break-inside: avoid;
  margin-bottom: 4px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.scrapbook-cell img {
  width: 100%;
  display: block;
  transition: transform 0.55s ease;
}

.scrapbook-cell:hover img {
  transform: scale(1.02);
}

/* Wide cells */
.scrapbook-cell.wide {
  column-span: all;
}

/* Gallery nav: previous / all stories / next, above the CTA */
.gallery-nav {
  padding: 28px var(--container-pad);
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  background: var(--bone, #FBF8F1);
}

.gallery-nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.gallery-nav-side--next { text-align: right; }

.gallery-nav a {
  font-family: var(--f-cg);
  font-style: italic;
  font-size: 16px;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.gallery-nav a:hover {
  color: var(--green);
  border-color: var(--green);
}

.gallery-nav-label {
  font-family: var(--f-sans);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-right: 4px;
}

.gallery-nav .gallery-nav-all {
  font-family: var(--f-sans);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

@media (max-width: 700px) {
  .gallery-nav-inner { grid-template-columns: 1fr 1fr; }
  .gallery-nav-all { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
}

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 8, 0.96);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.lightbox-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 82vh;
  object-fit: contain;
  display: block;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--f-italiana);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.lightbox-close:hover { color: var(--white); }

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 32px;
  cursor: pointer;
  padding: 16px;
  transition: color 0.2s;
}

.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }
.lightbox-prev:hover,
.lightbox-next:hover { color: var(--white); }

.lightbox-caption {
  margin-top: 12px;
  font-family: var(--f-cg);
  font-style: italic;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
}

.lightbox-thumbs {
  display: flex;
  gap: 6px;
  margin-top: 14px;
  max-width: 90vw;
  overflow-x: auto;
}

.lightbox-thumb {
  width: 52px;
  height: 52px;
  object-fit: cover;
  opacity: 0.45;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.2s;
}

.lightbox-thumb.active,
.lightbox-thumb:hover { opacity: 1; }

/* ── PORTFOLIO PAGES (archive + taxonomy) ────────────────────── */

/* Hero */
.port-hero {
  padding: 80px 0 64px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.port-hero-inner {
  max-width: 680px;
}

.port-headline {
  font-family: var(--f-italiana);
  font-size: clamp(48px, 7vw, 88px);
  letter-spacing: 0.03em;
  line-height: 0.95;
  color: var(--ink);
  margin: 12px 0 20px;
}

.port-intro {
  font-family: var(--f-cg);
  font-size: 18px;
  line-height: 1.82;
  color: var(--ink-soft);
  max-width: 540px;
  margin-bottom: 32px;
}

.port-hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

/* Sub-nav */
.port-subnav {
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  background: var(--bone);
}

.port-subnav-inner {
  display: flex;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.port-subnav-link {
  font-family: var(--f-sans);
  text-transform: uppercase; /* Bebas was caps-only */
  font-size: 11px;
  letter-spacing: 0.135em;
  color: var(--mid);
  padding: 14px 20px;
  border-bottom: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
  display: inline-block;
}

.port-subnav-link:hover,
.port-subnav-link.active {
  color: var(--ink);
  border-bottom-color: var(--green);
}

/* Portfolio card grid */
.port-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}

.port-card {
  display: block;
  text-decoration: none;
  overflow: hidden;
}

.port-card-img-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--bone-mid);
}

.port-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s ease;
}

.port-card:hover .port-card-img {
  transform: scale(1.04);
}

.port-card-placeholder {
  width: 100%;
  height: 100%;
  background: var(--bone-mid);
}

.port-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.35s ease;
  display: flex;
  align-items: flex-end;
}

.port-card:hover .port-card-overlay {
  opacity: 1;
}

.port-card-meta {
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateY(6px);
  transition: transform 0.35s ease;
}

.port-card:hover .port-card-meta {
  transform: translateY(0);
}

.port-card-cat {
  font-family: var(--f-sans);
  text-transform: uppercase; /* Bebas was caps-only */
  font-size: 11px;
  letter-spacing: 0.165em;
  color: var(--green-lt);
}

.port-card-title {
  font-family: var(--f-italiana);
  font-size: 20px;
  color: var(--white);
  line-height: 1.1;
}

.port-card-loc {
  font-family: var(--f-sans);
  text-transform: uppercase; /* Bebas was caps-only */
  font-size: 11px;
  letter-spacing: 0.135em;
  color: rgba(255, 255, 255, 0.5);
}

/* Category strip (archive index) */
.port-cat-strip-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.port-cat-desc {
  font-family: var(--f-cg);
  font-size: 16px;
  color: var(--mid);
  margin-top: 4px;
}

/* Process steps */
.port-process-section {
  background: var(--bone-mid);
}

.port-process-head {
  text-align: center;
  margin-bottom: 56px;
}

.port-process-head h2 {
  font-family: var(--f-italiana);
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing: 0.03em;
  margin-top: 10px;
}

.port-process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
}

.port-step {
  text-align: center;
}

.port-step-num {
  font-family: var(--f-italiana);
  font-size: 48px;
  letter-spacing: 0.03em;
  color: var(--green);
  line-height: 1;
  display: block;
  margin-bottom: 12px;
}

.port-step-title {
  font-family: var(--f-sans);
  text-transform: uppercase; /* Bebas was caps-only */
  font-size: 13px;
  letter-spacing: 0.15em;
  color: var(--ink);
  margin-bottom: 10px;
}

.port-step-body {
  font-family: var(--f-cg);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-soft);
}

/* Testimonials */
.port-testimonials-section {
  background: var(--ink);
}

.port-testimonials-head {
  text-align: center;
  margin-bottom: 52px;
}

.port-testimonials-head .eyebrow {
  color: var(--green-lt);
}

.port-testimonials-head h2 {
  font-family: var(--f-italiana);
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing: 0.03em;
  color: var(--white);
  margin-top: 10px;
}

.port-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.port-testimonial {
  border-left: 2px solid var(--green);
  padding-left: 20px;
}

.port-testimonial-quote {
  font-family: var(--f-cg);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.55;
  color: rgba(253, 252, 250, 0.75);
  margin-bottom: 16px;
}

.port-testimonial-cite {
  font-family: var(--f-sans);
  text-transform: uppercase; /* Bebas was caps-only */
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--green-lt);
  font-style: normal;
}

/* FAQ section */
.port-faq-section {
  background: var(--bone-mid);
}

.port-faq-inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 72px;
  align-items: start;
}

.port-faq-head h2 {
  font-family: var(--f-italiana);
  font-size: clamp(28px, 3.5vw, 44px);
  letter-spacing: 0.03em;
  margin-top: 10px;
}

.port-faq-list {
  padding-top: 4px;
}

/* Bottom CTA */
.port-bottom-cta {
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
}

.port-bottom-cta-inner {
  max-width: 560px;
  margin: 0 auto;
}

.port-cta-head {
  font-family: var(--f-italiana);
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: 0.03em;
  line-height: 1;
  color: var(--ink);
  margin: 12px 0 10px;
}

.port-cta-body {
  font-family: var(--f-cg);
  font-style: italic;
  font-size: 18px;
  color: var(--mid);
  margin-bottom: 32px;
}

/* Artist's note (Street & Travel) */
.port-artist-note-section {
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  padding-bottom: 0;
}

.port-artist-note {
  max-width: 640px;
  padding: 64px 0 56px;
}

.port-artist-note .eyebrow {
  margin-bottom: 18px;
  display: block;
}

.port-artist-note-body {
  font-family: var(--f-cg);
  font-style: italic;
  font-size: 18px;
  line-height: 1.85;
  color: var(--ink-soft);
}

/* What to expect (Couples) */
.port-expect-section {
  background: var(--bone-mid);
}

.port-expect-head {
  margin-bottom: 48px;
}

.port-expect-head h2 {
  font-family: var(--f-italiana);
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing: 0.03em;
  margin-top: 10px;
}

.port-expect-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.port-expect-item {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding-top: 24px;
}

.port-expect-title {
  font-family: var(--f-sans);
  text-transform: uppercase; /* Bebas was caps-only */
  font-size: 13px;
  letter-spacing: 0.15em;
  color: var(--ink);
  margin-bottom: 12px;
}

.port-expect-body {
  font-family: var(--f-cg);
  font-size: 16px;
  line-height: 1.78;
  color: var(--ink-soft);
}

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 860px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .scrapbook-grid {
    column-count: 2;
  }

  .gallery-meta-strip {
    gap: 16px;
  }

  .port-grid {
    grid-template-columns: 1fr 1fr;
  }

  .port-process-steps {
    grid-template-columns: 1fr 1fr;
  }

  .port-testimonials-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .port-faq-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .port-cat-strip-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .port-expect-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

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

  .scrapbook-grid {
    column-count: 1;
  }

  .port-grid {
    grid-template-columns: 1fr;
  }

  .port-process-steps {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .port-hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ── PORTFOLIO PAGES (/work/ + /work/{slug}/) ────────────────── */
/* Gallery-room look: warm light-grey wall, photographs in white frames. */
.page-template-page-portfolio,
.page-template-page-portfolio-index {
  --wall:  var(--bone);
  --frame: #FFFFFF;
  background: var(--wall);
}

.portfolio-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px 48px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 40px var(--container-pad) 8px;
}

.portfolio-head h1 {
  font-size: clamp(36px, 4vw, 54px);
  line-height: 1;
  margin: 6px 0 0;
}

.portfolio-intro {
  max-width: 520px;
  margin-top: 12px;
  font-family: var(--f-cg);
  font-style: italic;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* Portfolio switcher */
.portfolio-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 28px;
  padding-bottom: 6px;
}

.portfolio-tabs a {
  position: relative;
  font-family: var(--f-sans);
  text-transform: uppercase; /* Bebas was caps-only */
  font-size: 12px;
  letter-spacing: 0.135em;
  color: var(--mid);
  text-decoration: none;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.portfolio-tabs a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.portfolio-tabs a:hover,
.portfolio-tabs a[aria-current="page"] {
  color: var(--ink);
}

.portfolio-tabs a:hover::after,
.portfolio-tabs a[aria-current="page"]::after {
  transform: scaleX(1);
}

/* Gallery body + white frames on Modula images */
.portfolio-body {
  max-width: 1440px;
  margin: 0 auto;
  padding: 32px var(--container-pad) 72px;
}

.portfolio-body .modula-item img {
  box-sizing: border-box;
  border: 12px solid var(--frame);
  background: var(--frame);
  object-fit: cover;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

/* Framed portfolio cards (/work/ grid) */
.portfolio-index {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--container-pad) 88px;
}

.portfolio-index {
  padding-top: 32px;
}

.portfolio-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 32px;
}

.portfolio-card {
  display: block;
  color: var(--ink);
  text-decoration: none;
}

.portfolio-card-frame {
  display: block;
  aspect-ratio: 3 / 2;
  padding: 10px;
  background: var(--frame);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.portfolio-card-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.portfolio-card-title {
  display: block;
  margin-top: 16px;
  font-family: var(--f-italiana);
  font-size: clamp(22px, 2vw, 26px);
  line-height: 1.15;
}

.portfolio-card-cta {
  display: inline-block;
  margin-top: 6px;
  font-family: var(--f-sans);
  text-transform: uppercase; /* Bebas was caps-only */
  font-size: 11px;
  letter-spacing: 0.135em;
  color: var(--mid);
  transition: color 0.2s ease;
}

.portfolio-card-cta span {
  display: inline-block;
  transition: transform 0.25s ease;
}

.portfolio-card:hover .portfolio-card-frame,
.portfolio-card:focus-visible .portfolio-card-frame {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
}

.portfolio-card:hover .portfolio-card-frame img {
  transform: scale(1.03);
}

.portfolio-card:hover .portfolio-card-cta {
  color: var(--green);
}

.portfolio-card:hover .portfolio-card-cta span {
  transform: translateX(4px);
}

@media (max-width: 860px) {
  .portfolio-head,
  .portfolio-body,
  .portfolio-index {
    padding-left: 16px;
    padding-right: 16px;
  }

  .portfolio-head {
    padding-top: 28px;
    align-items: flex-start;
  }

  .portfolio-tabs {
    gap: 4px 20px;
  }

  .portfolio-body .modula-item img {
    border-width: 8px;
  }
}

/* Curated portfolio gallery (inc/portfolio-curated.php) */
.curated-gallery {
  display: grid;
  gap: 28px;
  max-width: 1180px;
  margin: 0 auto;
}

.curated-row--pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.curated-frame {
  display: block;
  padding: 12px;
  background: var(--frame, #fff);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.curated-frame img {
  display: block;
  width: 100%;
  object-fit: cover;
}

.curated-row--pair .curated-frame img {
  aspect-ratio: 2 / 3;
}

.curated-row--wide .curated-frame img {
  aspect-ratio: 3 / 2;
}

@media (max-width: 700px) {
  .curated-gallery,
  .curated-row--pair {
    gap: 14px;
  }

  .curated-frame {
    padding: 7px;
  }
}

/* ── ARRANGED GALLERY (template-parts/gallery/arranged.php) ──────
   Scrapbook: photos placed by --x/--y/--w (canvas-width units; --h = canvas height).
   Masonry and grid ignore positions and follow the photo order. */
.ga {
  max-width: 1240px;
  margin: 48px auto 0;
  padding: 0 var(--container-pad);
}

.ga-item {
  margin: 0;
}

.ga-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* 35mm film frames: a thin black border, like the rebate of a developed negative. */
.ga-item--film img {
  box-sizing: border-box;
  border: clamp(5px, 0.75vw, 9px) solid var(--ink);
}

.ga-item figcaption {
  margin-top: 8px;
}

.ga--scrapbook .ga-canvas {
  position: relative;
  aspect-ratio: 100 / var(--h);
}

.ga--scrapbook .ga-item {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) / var(--h) * 100%);
  width: calc(var(--w) * 1%);
}

.ga--masonry .ga-canvas {
  columns: 3;
  column-gap: 14px;
}

.ga--masonry .ga-item {
  break-inside: avoid;
  margin-bottom: 14px;
}

.ga--grid .ga-canvas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.ga--grid .ga-item img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

@media (max-width: 860px) {
  .ga--masonry .ga-canvas { columns: 2; }
  .ga--grid .ga-canvas { grid-template-columns: repeat(2, 1fr); }
}

/* Phones: a scrapbook this small would shrink every photo, so it reads as one column in order. */
@media (max-width: 600px) {
  .ga--scrapbook .ga-canvas {
    aspect-ratio: auto;
    display: grid;
    gap: 14px;
  }

  .ga--scrapbook .ga-item {
    position: static;
    width: 100%;
  }

  .ga--masonry .ga-canvas { columns: 1; }
}


/* ── GALLERY STORY: cover, paragraph spacing, film band ─────────── */
.gallery-cover {
  margin: 0;
}

.gallery-cover img {
  display: block;
  width: 100%;
  height: min(82vh, 58vw);
  object-fit: cover;
  object-position: 50% 58%;
}

@media (max-width: 700px) {
  .gallery-cover img {
    height: min(78vh, 150vw);
    object-position: 50% 60%;
  }
}

/* Paragraphs get an empty line between them, not just a new line. */
.gallery-story-body p {
  margin: 0 0 1.5em;
}

.gallery-story-body p:last-child {
  margin-bottom: 0;
}

/* "Moments On Film": a full-width band in a deeper paper tone, with a rule above the heading. */
.gallery-film {
  margin-top: clamp(72px, 10vw, 140px);
  padding: clamp(56px, 8vw, 110px) 0 clamp(64px, 9vw, 120px);
  background: #E8D6BD; /* warmer sand than the page */
  border-top: 1px solid var(--ink);
}

.gallery-film-head {
  text-align: center;
  padding: 0 var(--container-pad);
}

.gallery-film-head::before {
  content: "";
  display: block;
  width: 56px;
  height: 1px;
  margin: 0 auto 28px;
  background: var(--ink);
}

.gallery-film-head h2 {
  margin: 10px 0 0;
}

.gallery-film .ga {
  margin-top: clamp(32px, 5vw, 64px);
}


/* ── GALLERY STORY: dark header (.gt-*) ──────────────────────────── */
.gt {
  background: var(--ink);
  color: var(--bone);
  padding-bottom: clamp(64px, 9vw, 120px);
}

/* Info band: back link, gallery title, looks */
.gt-band {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 22px var(--container-pad);
  font-family: var(--f-sans);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.16em;
}

.gt-band-back {
  justify-self: start;
  color: rgba(251, 249, 244, 0.6);
  text-decoration: none;
}

.gt-band-back::before { content: "\2190\00a0\00a0"; }
.gt-band-back:hover { color: var(--bone); }

.gt-band-title {
  font-size: clamp(13px, 1.4vw, 16px);
  letter-spacing: 0.24em;
  text-align: center;
}

.gt-band-looks {
  justify-self: end;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}


.gt-pill {
  display: inline-block;
  padding: 3px 9px 2px;
  margin: 0 6px 6px 0;
  border: 1px solid rgba(251, 249, 244, 0.7);
  border-radius: 999px;
  font-family: var(--f-sans);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.3;
  color: var(--bone);
}

.gt-band .gt-pill { margin: 0; }

/* Cover with the venue set over it */
.gt-cover {
  position: relative;
  margin: 0 clamp(12px, 2.2vw, 32px);
  overflow: hidden;
  border-radius: 14px;
}

.gt-cover img {
  display: block;
  width: 100%;
  height: min(82vh, 56vw);
  object-fit: cover;
  object-position: 50% 58%;
}

.gt-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10, 10, 8, 0) 40%, rgba(10, 10, 8, 0.55) 100%);
  pointer-events: none;
}

.gt-cover-title {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: clamp(28px, 6vw, 80px);
  text-align: center;
  padding: 0 var(--container-pad);
  color: var(--white);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.gt-cover-title h1 {
  display: inline-block;
  margin: 0;
  padding-bottom: 0.22em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.75);
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: clamp(34px, 7vw, 92px);
  letter-spacing: 0.04em;
  line-height: 1.05;
  text-transform: uppercase;
  color: inherit;
}

.gt-cover-title p {
  margin: 0.9em 0 0;
  font-family: var(--f-sans);
  font-size: clamp(11px, 1.6vw, 18px);
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  text-transform: uppercase;
}

.gt-plain-title {
  margin: 0;
  padding: clamp(48px, 8vw, 100px) var(--container-pad);
  text-align: center;
  color: var(--bone);
}

@media (max-width: 700px) {
  .gt-band { grid-template-columns: 1fr; justify-items: center; gap: 10px; padding: 18px 20px; }
  .gt-band-back, .gt-band-looks { justify-self: center; }
  .gt-cover { margin: 0 10px; border-radius: 10px; }
  .gt-cover img { height: min(78vh, 150vw); object-position: 50% 60%; }
}

/* Facts board: split-flap tiles, black-on-white labels, white-on-black values */
.gt-board {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 40px;
  padding: clamp(28px, 4vw, 48px) var(--container-pad) 0;
}

.gt-board-row {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 3px;
  font-family: var(--f-sans);
  text-transform: uppercase;
}

.gt-board-label {
  align-self: center;
  padding: 7px 12px 6px;
  margin-right: 6px;
  background: var(--bone);
  color: var(--ink);
  font-size: 11px;
  letter-spacing: 0.18em;
}

.gt-board-value {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px 16px; /* wider gap between words than between letters */
  font-size: 15px;
  letter-spacing: 0.05em;
}

/* Before JS builds tiles, the value reads as plain text */
.gt-board-value:not(.is-built) { align-self: center; letter-spacing: 0.14em; }

.gt-word { display: inline-flex; gap: 3px; white-space: nowrap; }

/* Split-flap tile: fixed size so letters never change the layout.
   Four layers: static top (new letter), static bottom (old letter),
   and two flaps that fold over them (old top falls, new bottom lands). */
.gt-tile {
  position: relative;
  display: inline-block;
  width: 1.5em;
  height: 2.1em;
  background: #000;
  border: 1px solid rgba(251, 249, 244, 0.22);
  border-radius: 2px;
  color: var(--white);
  line-height: 1;
  box-sizing: border-box;
}

.gt-half {
  position: absolute;
  left: 0;
  right: 0;
  height: 50%;
  overflow: hidden;
  background: #000;
}
.gt-half--top    { top: 0;    border-radius: 2px 2px 0 0; }
.gt-half--bottom { bottom: 0; border-radius: 0 0 2px 2px; }

.gt-half i {
  position: absolute;
  left: 0;
  right: 0;
  height: 200%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
}
.gt-half--top i    { top: 0; }
.gt-half--bottom i { bottom: 0; }

/* the hinge line */
.gt-tile::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(251, 249, 244, 0.18);
  z-index: 4;
}

.gt-flap { z-index: 2; backface-visibility: hidden; }
.gt-flap--top    { transform-origin: 50% 100%; }
.gt-flap--bottom { transform-origin: 50% 0; transform: perspective(120px) rotateX(90deg); }

/* one flip = old top folds down, then the new bottom drops into place */
.gt-tile.is-flip .gt-flap--top    { animation: gt-fold-down var(--gt-flip, 70ms) ease-in forwards; }
.gt-tile.is-flip .gt-flap--bottom { animation: gt-fold-in   var(--gt-flip, 70ms) ease-out var(--gt-flip, 70ms) forwards; }

@keyframes gt-fold-down {
  from { transform: perspective(120px) rotateX(0); }
  to   { transform: perspective(120px) rotateX(-90deg); }
}
@keyframes gt-fold-in {
  from { transform: perspective(120px) rotateX(90deg); }
  to   { transform: perspective(120px) rotateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .gt-tile.is-flip .gt-flap { animation: none; }
}

@media (max-width: 700px) {
  .gt-board { flex-direction: column; align-items: center; gap: 12px; }
  .gt-board-row { justify-content: center; }
  .gt-board-value { justify-content: center; font-size: 14px; }
}

/* Lede left, story right */
.gt-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 8vw, 120px);
  align-items: start;
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(56px, 9vw, 120px) var(--container-pad) 0;
}

.gt-lede {
  margin: 0;
  font-family: var(--f-cg);
  font-weight: 500;
  font-size: clamp(28px, 3.6vw, 50px);
  line-height: 1.12;
  color: var(--bone);
}

.gt-body {
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.75;
  color: rgba(251, 249, 244, 0.72);
}

.gt-body a { color: var(--bone); text-underline-offset: 3px; }

@media (max-width: 800px) {
  .gt-story { grid-template-columns: 1fr; gap: 28px; }
}

/* Portrait beside the details table */
.gt-feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 8vw, 120px);
  align-items: end;
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(56px, 9vw, 120px) var(--container-pad) 0;
}

.gt-feature--stack { grid-template-columns: 1fr; max-width: 520px; gap: 28px; }
.gt-feature:not(.gt-feature--stack) { align-items: center; }
.gt-note { font-size: 0.8em; color: rgba(251, 249, 244, 0.6); }

.gt-portrait { margin: 0; border-radius: 10px; overflow: hidden; }
.gt-portrait img { display: block; width: 100%; height: auto; }

.gt-table { margin: 0; }

.gt-row {
  display: grid;
  grid-template-columns: minmax(110px, 34%) 1fr;
  gap: 16px;
  padding: 16px 0 14px;
  border-top: 1px solid rgba(251, 249, 244, 0.2);
}

.gt-row:last-child { border-bottom: 1px solid rgba(251, 249, 244, 0.2); }

.gt-row dt {
  font-family: var(--f-sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(251, 249, 244, 0.55);
  padding-top: 4px;
}

.gt-row dd {
  margin: 0;
  font-family: var(--f-cg);
  font-size: 20px;
  line-height: 1.35;
  color: var(--bone);
}

.gt-row dd a { color: inherit; text-decoration: underline; text-decoration-color: rgba(251, 249, 244, 0.4); text-underline-offset: 4px; }
.gt-row dd a:hover { text-decoration-color: var(--bone); }

@media (max-width: 800px) {
  .gt-feature { grid-template-columns: 1fr; }
  .gt-feature:not(.gt-feature--stack) .gt-portrait { max-width: 420px; }
}

/* Modula photos on the page's paper background */
.gt-photos {
  max-width: 1500px;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 100px) clamp(10px, 2.2vw, 32px);
}

.gallery-film .gt-photos { padding-top: clamp(32px, 5vw, 64px); padding-bottom: 0; }

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


/* Details sit last, above the call to action */
.gt--details { padding-top: 0; padding-bottom: clamp(56px, 8vw, 104px); }
.gt--details .gt-feature { padding-top: clamp(56px, 8vw, 104px); }

/* Call to action for gallery pages (the sitewide footer one is hidden here) */
.single-mt_gallery .foot-cta { display: none; }

.gt-cta {
  /* Original-theme forest green (the sitewide --green is clay) */
  --cta-green:    #3D5A47;
  --cta-green-lt: #7FA68D;
  background: var(--ink);
  border-top: 3px solid var(--cta-green);
  padding: clamp(56px, 8vw, 96px) var(--container-pad);
  text-align: center;
}

.gt-cta-ey {
  margin: 0 0 16px;
  font-family: var(--f-sans);
  font-size: 11px;
  letter-spacing: 0.195em;
  text-transform: uppercase;
  color: var(--cta-green-lt);
}

.gt-cta-h {
  margin: 0 0 14px;
  font-family: var(--f-italiana);
  font-size: clamp(34px, 5vw, 60px);
  letter-spacing: 0.03em;
  line-height: 1;
  color: var(--white);
}

.gt-cta-places {
  margin: 0 0 28px;
  font-family: var(--f-cg);
  font-style: italic;
  font-size: 18px;
  color: rgba(253, 252, 250, 0.62);
}

/* Long-form story below the main photos: photo + text beats, text-only, pull quote */
.gt--story { padding: clamp(64px, 9vw, 120px) var(--container-pad); }

.gt-story-head { max-width: 1100px; margin: 0 auto clamp(40px, 6vw, 80px); text-align: center; }

.gt-story-ey {
  margin: 0 0 16px;
  font-family: var(--f-sans);
  font-size: 11px;
  letter-spacing: 0.195em;
  text-transform: uppercase;
  color: #7FA68D;
}

.gt-story-rule { display: block; width: 56px; height: 1px; margin: 28px auto 0; background: #527A61; }

.gt-story-h {
  margin: 0 auto;
  max-width: 1100px;
  text-align: center;
  font-family: var(--f-italiana);
  font-size: clamp(32px, 4.6vw, 56px);
  letter-spacing: 0.03em;
  font-weight: 400;
  color: var(--bone);
}

.gt-block { max-width: 1100px; margin: 0 auto clamp(48px, 7vw, 96px); }
.gt-block--text { max-width: 640px; }
.gt-block p { margin: 0 0 1.1em; }
.gt-block p:last-child { margin-bottom: 0; }

.gt-block--beat {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 88px);
  align-items: center;
}
.gt-block--flip .gt-block-imgs { order: 2; }

.gt-block-imgs { display: grid; gap: 16px; }
.gt-block-imgs figure { margin: 0; }
.gt-block-imgs img { display: block; width: 100%; height: auto; }

.gt-aside {
  max-width: 760px;
  margin: 0 auto clamp(48px, 7vw, 96px);
  padding: 8px 0 8px clamp(20px, 3vw, 36px);
  border-left: 2px solid #527A61;
  font-family: var(--f-cg);
  font-style: italic;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.4;
  color: var(--bone);
}
.gt-aside p { margin: 0 0 0.9em; }
.gt-aside p:last-child { margin-bottom: 0; }

@media (max-width: 800px) {
  .gt-block--beat { grid-template-columns: 1fr; }
  .gt-block--flip .gt-block-imgs { order: 0; }
}

/* Facts board: tiles are clickable to replay their flip */
.gt-board-value.is-built { cursor: pointer; }
