/* ============================================================
   RETREATS LAB
   Four drafts of the retreats page, same type and colour as the
   rest of the site. Loaded after style.css, only on the drafts.
   Motion follows the playbook: three kinds of reveal, mask over
   clip-path, one easing, hover makes things stronger, and the
   page keeps moving on its own until you touch it.
   ============================================================ */

:root {
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --lab-radius: 2px;
}

/* ---- 1. REVEALS -------------------------------------------------- */

/* a. headline out from behind a mask */
/* the mask clips to its box, so leave room for the tails of g, y and p */
[data-rv="mask"] { overflow: hidden; display: block; padding-bottom: 0.3em; margin-bottom: -0.3em; }
[data-rv="mask"] > * {
  display: block;
  transform: translateY(110%);
  transition: transform 1.1s var(--ease);
}
[data-rv="mask"].is-in > * { transform: translateY(0); }

/* b. image settles out of a slow scale */
[data-rv="scale"] { overflow: hidden; }
[data-rv="scale"] img {
  transform: scale(1.12);
  transition: transform 1.6s var(--ease), opacity 1.2s var(--ease);
  opacity: 0;
}
[data-rv="scale"].is-in img { transform: scale(1); opacity: 1; }

/* c. a list that arrives one line at a time */
[data-rv="stagger"] > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-rv="stagger"].is-in > * { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-rv] > *, [data-rv] img { transition: none !important; transform: none !important; opacity: 1 !important; }
}

/* ---- 2. SCALE ON SCROLL ------------------------------------------ */
.lab-grow { overflow: hidden; }
.lab-grow img { display: block; width: 100%; height: 100%; object-fit: cover; will-change: transform; }

/* ---- 3. ROTATING WORDS ------------------------------------------- */
.lab-rotator {
  display: inline-grid;
  vertical-align: baseline;
  text-align: left;
}
.lab-rotator > span {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(0.35em);
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
  font-style: italic;
  color: var(--wild-fig);
  white-space: nowrap;
}
.lab-rotator > span.is-on { opacity: 1; transform: none; }

/* ---- 4. SELF-DRAWING LINE ---------------------------------------- */
.lab-draw path, .lab-draw line, .lab-draw polyline {
  stroke-dasharray: var(--len, 1200);
  stroke-dashoffset: calc(var(--len, 1200) * (1 - var(--progress, 0)));
}

/* ---- PAGE FURNITURE ---------------------------------------------- */
.lab-wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--sp-md); }

.lab-top {
  /* a slim green band that carries on from the nav */
  padding: calc(var(--nav-h) + 1.75rem) 0 1.75rem;
  background: var(--mosswood);
}
.lab-top .lab-title { color: var(--almond-cream); margin-top: 0; }
.lab-top .lab-title em { color: #E58FA5; }
.lab-eyebrow {
  font-size: 0.625rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.5;
  color: var(--mosswood);
}
.lab-title {
  font-family: var(--font-display);
  font-weight: 400;
  /* small, as asked: nowhere near the old hero size */
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--mosswood);
  margin-top: 0.6rem;
}
.lab-title em { font-style: italic; color: var(--wild-fig); }

/* ---- A. MAP ------------------------------------------------------- */
.lab-map-section { background: var(--almond-cream); padding-bottom: var(--sp-xl); }
.lab-map-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--sp-lg);
  align-items: start;
}
.lab-map-figure { position: relative; }
.lab-map svg { width: 100%; height: auto; display: block; overflow: hidden; }
.lab-coast {
  fill: none;
  stroke: var(--mosswood);
  stroke-width: 1.35;
  stroke-linejoin: round;
  stroke-linecap: round;
  opacity: 0.5;
}
.lab-route {
  fill: none;
  stroke: var(--wild-fig);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-dasharray: 5 7;
  opacity: 0.75;
}
.lab-map-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--mosswood);
  overflow: hidden;
  margin-bottom: var(--sp-md);
}
.lab-map-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.9s var(--ease), transform 1.4s var(--ease);
}
.lab-map-photo img.is-on { opacity: 1; transform: scale(1); }

/* ---- SHARED: the four entries as rows ----------------------------- */
.lab-rows { border-top: 1px solid rgba(71, 84, 64, 0.22); }
.lab-row {
  display: grid;
  grid-template-columns: 7.5rem 1fr auto;
  gap: 1rem;
  align-items: baseline;
  padding: 1.15rem 0.75rem 1.15rem 0;
  border-bottom: 1px solid rgba(71, 84, 64, 0.22);
  text-decoration: none;
  color: var(--text);
  transition: background 0.5s var(--ease), padding-left 0.5s var(--ease);
}
.lab-row:hover, .lab-row.is-active {
  background: rgba(71, 84, 64, 0.06);
  padding-left: 0.85rem;
}
.lab-row-when {
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.55;
}
.lab-row-name {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  line-height: 1.1;
}
.lab-row-name em { font-style: italic; color: var(--wild-fig); }
.lab-row-note {
  display: block;
  font-size: 0.875rem;
  font-weight: 300;
  opacity: 0.65;
  margin-top: 0.3rem;
  max-width: 44ch;
}
.lab-row-go {
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  white-space: nowrap;
}
.lab-row:hover .lab-row-go, .lab-row.is-active .lab-row-go { opacity: 0.8; transform: none; }
.lab-row--quiet { color: rgba(44, 40, 32, 0.6); }

/* ---- B. TIMELINE --------------------------------------------------- */
.lab-timeline { background: var(--almond-cream); padding-bottom: var(--sp-lg); }
.lab-tl-track { position: relative; margin: 3rem 0 0; }
.lab-tl-track svg { width: 100%; height: 86px; display: block; overflow: visible; }
.lab-tl-line { fill: none; stroke: var(--mosswood); stroke-width: 1; opacity: 0.35; }
.lab-tl-stops { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: -0.5rem; }
.lab-tl-stop {
  text-align: left;
  text-decoration: none;
  color: var(--text);
  padding-top: 1rem;
  border-top: 1px solid rgba(71, 84, 64, 0.22);
  transition: border-color 0.5s var(--ease);
}
.lab-tl-stop:hover, .lab-tl-stop.is-active { border-color: var(--wild-fig); }
.lab-tl-month {
  font-size: 0.625rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.5;
}
.lab-tl-place {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  margin-top: 0.35rem;
}
.lab-tl-figure {
  margin-top: var(--sp-md);
  position: relative;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  background: var(--mosswood);
}
.lab-tl-figure img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1s var(--ease), transform 1.6s var(--ease);
}
.lab-tl-figure img.is-on { opacity: 1; transform: scale(1); }

/* ---- C. FILMSTRIP -------------------------------------------------- */
.lab-strip-section { background: var(--almond-cream); padding: var(--sp-lg) 0; overflow: hidden; }
.lab-strip-section .lab-eyebrow { color: var(--mosswood); }
.lab-strip {
  display: flex;
  gap: 1rem;
  padding: 0 max(var(--sp-md), calc((100vw - var(--max-w)) / 2 + var(--sp-md)));
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}
.lab-strip::-webkit-scrollbar { display: none; }
.lab-strip:focus-visible { outline: 1px solid var(--almond-cream); outline-offset: -4px; }
.lab-strip.is-held { cursor: grabbing; }
.lab-slide {
  position: relative;
  flex: 0 0 min(46vw, 560px);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  text-decoration: none;
  color: var(--almond-cream);
  background: #000;
}
.lab-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
  transform: scale(1.02);
  transition: opacity 0.7s var(--ease), transform 1.2s var(--ease);
}
.lab-slide:hover img { opacity: 1; transform: scale(1.06); }
.lab-slide-body {
  position: absolute;
  inset: auto 0 0 0;
  padding: var(--sp-md);
  background: linear-gradient(180deg, rgba(28,26,23,0) 0%, rgba(28,26,23,0.8) 100%);
}
.lab-slide-when {
  font-size: 0.625rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.8;
}
.lab-slide-name {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  line-height: 1.05;
  margin-top: 0.4rem;
}
.lab-slide-name em { font-style: italic; color: #E58FA5; }
.lab-strip-hint {
  margin-top: 1.25rem;
  font-size: 0.625rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--almond-cream);
  opacity: 0.45;
}

/* ---- D. STICKY SWITCHER -------------------------------------------- */
.lab-switch { position: relative; background: var(--dark); }
.lab-switch-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}
.lab-switch-sticky img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.1s var(--ease), transform 2.4s var(--ease);
}
.lab-switch-sticky img.is-on { opacity: 1; transform: scale(1); }
.lab-switch-tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28,26,23,0.35) 0%, rgba(28,26,23,0.25) 45%, rgba(28,26,23,0.8) 100%);
}
.lab-switch-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12vh;
  color: var(--almond-cream);
}
.lab-switch-when {
  font-size: 0.625rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.7;
}
.lab-switch-place {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1;
  margin-top: 0.5rem;
}
.lab-switch-place em { font-style: italic; color: #E58FA5; }
.lab-switch-steps { position: relative; }
.lab-switch-step { height: 100vh; }
.lab-switch-ticks {
  position: absolute;
  right: var(--sp-md);
  bottom: 12vh;
  display: flex;
  gap: 0.5rem;
}
.lab-switch-ticks span {
  width: 26px;
  height: 1px;
  background: var(--almond-cream);
  opacity: 0.3;
  transition: opacity 0.5s var(--ease);
}
.lab-switch-ticks span.is-on { opacity: 1; }

/* ---- WHAT A RETREAT IS --------------------------------------------- */
.lab-what { background: var(--mosswood); color: var(--almond-cream); padding: var(--sp-xl) 0; }
.lab-what-head {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.6vw, 3rem);
  line-height: 1.1;
  max-width: 20ch;
}
.lab-what-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-md) var(--sp-lg);
  margin-top: var(--sp-lg);
}
.lab-what-item { border-top: 1px solid rgba(244, 234, 213, 0.25); padding-top: 0.9rem; }
.lab-what-item:nth-child(2) { margin-top: 2.5rem; }
.lab-what-item:nth-child(3) { margin-top: -1.5rem; }
.lab-what-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
}
.lab-what-text { font-size: 0.9375rem; font-weight: 300; line-height: 1.7; opacity: 0.8; margin-top: 0.4rem; }

/* ---- WAITLIST + CLASSES -------------------------------------------- */
.lab-end { background: var(--almond-cream); padding: var(--sp-xl) 0 var(--sp-lg); text-align: center; }
.lab-end-head {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  line-height: 1.1;
  color: var(--mosswood);
}
.lab-end-head em { font-style: italic; color: var(--wild-fig); }
.lab-end-sub { font-size: 0.9375rem; font-weight: 300; opacity: 0.7; margin: 1rem auto 1.75rem; max-width: 46ch; }
.lab-classes {
  background: var(--almond-cream);
  padding: 0 0 var(--sp-xl);
  text-align: center;
  font-size: 0.9375rem;
  font-weight: 300;
  opacity: 0.75;
}
.lab-classes a { color: var(--wild-fig); }

/* ---- RESPONSIVE ------------------------------------------------------ */
@media (max-width: 900px) {
  .lab-map-grid { grid-template-columns: 1fr; gap: var(--sp-md); }
  .lab-what-grid { grid-template-columns: 1fr; }
  .lab-what-item:nth-child(n) { margin-top: 0; }
  .lab-tl-stops { grid-template-columns: repeat(2, 1fr); row-gap: 1.5rem; }
  .lab-row { grid-template-columns: 1fr; gap: 0.25rem; }
  .lab-row-when { order: -1; }
  .lab-row-go { display: none; }
  .lab-slide { flex-basis: 78vw; }
  .lab-strip { padding-left: var(--sp-md); }
}


/* ---- THE FOUR, over a photo that fills the section ------------------ */
.lab-bleed {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;   /* anchored, so nothing slides under the cursor */
  overflow: hidden;
  background: var(--dark);
}
.lab-bleed-media { position: absolute; inset: 0; }
.lab-bleed-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.1s var(--ease);
  will-change: transform;
}
.lab-bleed-media img.is-on { opacity: 1; }
.lab-bleed-tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28,26,23,0.5) 0%, rgba(28,26,23,0.45) 30%, rgba(28,26,23,0.78) 62%, rgba(28,26,23,0.92) 100%);
}
.lab-bleed-inner { position: relative; width: 100%; padding: var(--sp-xl) 0 var(--sp-lg); }
.lab-eyebrow--light { color: var(--almond-cream); opacity: 0.6; }

.lab-rows--light { border-top-color: rgba(244, 234, 213, 0.28); margin-top: 1.25rem; }
.lab-rows--light .lab-row {
  border-bottom-color: rgba(244, 234, 213, 0.28);
  color: var(--almond-cream);
}
.lab-rows--light .lab-row:hover,
.lab-rows--light .lab-row.is-active { background: rgba(244, 234, 213, 0.1); }
.lab-rows--light .lab-row-name em { color: #E58FA5; }
.lab-rows--light .lab-row--quiet { color: rgba(244, 234, 213, 0.65); }

/* ---- the map, now its own full-width section ------------------------ */
.lab-map-head { max-width: 46ch; margin-bottom: var(--sp-md); }
.lab-map-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  line-height: 1.05;
  color: var(--mosswood);
  margin: 0.5rem 0 0.75rem;
}
.lab-map-title em { font-style: italic; color: var(--wild-fig); }
.lab-map-sub { font-size: 0.9375rem; font-weight: 300; line-height: 1.7; opacity: 0.7; }
.lab-map { position: relative; max-width: 620px; margin: 0 auto; }
.lab-land { fill: var(--mosswood); opacity: 0.14; stroke: none; }
.lab-land--main { opacity: 0.07; }
/* the frame cuts the continent off square, so fade it out at the edges */
.lab-map svg {
  /* the land is cut square by the frame, so it fades well before the edge */
  -webkit-mask-image: radial-gradient(104% 88% at 30% 62%, #000 38%, rgba(0,0,0,0.65) 62%, transparent 86%);
  mask-image: radial-gradient(104% 88% at 30% 62%, #000 38%, rgba(0,0,0,0.65) 62%, transparent 86%);
}
.lab-map-section { padding-top: var(--sp-xl); }

@media (max-width: 900px) {
  .lab-bleed { min-height: 0; }
  .lab-bleed-inner { padding: var(--sp-lg) 0 var(--sp-md); }
}


/* ---- MAP PINS: a dot you can actually hit, with a card above it ----- */
.lab-pin-hit {
  position: absolute;
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;   /* centred on its coordinate */
  display: grid;
  place-items: center;
  text-decoration: none;
  color: var(--mosswood);
}
.lab-pin-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--almond-cream);
  border: 1.6px solid var(--mosswood);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.lab-pin-label {
  position: absolute;
  left: 32px;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  opacity: 0.65;
  transition: opacity 0.4s var(--ease);
}
.lab-pin-card {
  position: absolute;
  bottom: calc(50% + 16px);
  left: 50%;
  width: max-content;
  max-width: 220px;
  transform: translate(-50%, 6px);
  opacity: 0;
  pointer-events: none;
  background: var(--almond-cream);
  border: 1px solid rgba(71, 84, 64, 0.3);
  padding: 0.6rem 0.75rem;
  display: grid;
  gap: 0.15rem;
  text-align: left;
  transition: opacity 0.35s var(--ease), transform 0.45s var(--ease);
  z-index: 3;
}
.lab-pin-card-name { font-family: var(--font-display); font-size: 1rem; line-height: 1.1; }
.lab-pin-card-when { font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.55; }
.lab-pin-card-go {
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--wild-fig);
  margin-top: 0.2rem;
}
.lab-pin-hit:hover, .lab-pin-hit:focus-visible { outline: none; z-index: 4; }
.lab-pin-hit:hover .lab-pin-dot,
.lab-pin-hit:focus-visible .lab-pin-dot { background: var(--wild-fig); border-color: var(--wild-fig); transform: scale(1.3); }
.lab-pin-hit:hover .lab-pin-label,
.lab-pin-hit:focus-visible .lab-pin-label { opacity: 1; }
.lab-pin-hit:hover .lab-pin-card,
.lab-pin-hit:focus-visible .lab-pin-card { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }

/* ---- HOMEPAGE ------------------------------------------------------ */
/* the hero steps aside sooner, so the retreats are the first thing you meet */
.hero--short { height: 78vh; min-height: 520px; }

.home-retreats { background: var(--almond-cream); padding: var(--sp-lg) 0; overflow: hidden; }
.home-retreats-head {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.75rem, 3.6vw, 3rem);
  line-height: 1.05;
  color: var(--mosswood);
  margin: 0.6rem 0 var(--sp-md);
  max-width: 18ch;
}
.home-retreats-head em { font-style: italic; color: var(--wild-fig); }
.home-retreats-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-top: var(--sp-md);
}
.home-retreats-foot p { max-width: 48ch; font-size: 0.9375rem; font-weight: 300; line-height: 1.7; opacity: 0.75; }

.home-classes { background: var(--almond-cream); padding: var(--sp-xl) 0; }
.home-classes-inner {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: var(--sp-lg);
  align-items: center;
}
.home-classes-head {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.8vw, 2.25rem);
  line-height: 1.1;
  color: var(--mosswood);
  margin: 0.6rem 0 1rem;
  max-width: 16ch;
}
.home-classes-head em { font-style: italic; color: var(--wild-fig); }
.home-classes-text { font-size: 0.9375rem; font-weight: 300; line-height: 1.75; opacity: 0.75; max-width: 46ch; margin-bottom: 1.5rem; }
.home-classes-media { aspect-ratio: 4 / 5; }

@media (max-width: 900px) {
  .home-classes-inner { grid-template-columns: 1fr; }
  .home-classes-media { aspect-ratio: 16 / 10; }
}

/* ---------------------------------------------------------------
   MOVING FOOTAGE ON A RETREAT PAGE
   A full width band and a row of three quiet portrait loops.
   --------------------------------------------------------------- */
.rt-film {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 78vh;
  overflow: hidden;
  background: var(--dark, #1A1F23);
}
.rt-film video,
.rt-film img.rt-film-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.rt-film-tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26,31,35,0.3) 0%, rgba(26,31,35,0) 40%, rgba(26,31,35,0.55) 100%);
  pointer-events: none;
}
.rt-film-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(1.25rem, 3vw, 2.5rem);
  padding: 0 clamp(1.25rem, 5vw, 4rem);
  color: var(--almond-cream, #E7E2D7);
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.85;
}

.rt-loops {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.5rem, 1.4vw, 1rem);
}
.rt-loop {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: var(--paper-deep, #DBD5C7);
}
.rt-loop video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 640px) {
  .rt-loops { grid-template-columns: 1fr 1fr; }
  .rt-loop:last-child { display: none; }
}

/* ---------------------------------------------------------------
   THE BIG RETREAT GALLERY
   Photographs open in the lightbox, clips sit in the same grid and
   play by themselves. Wide items take two columns.
   --------------------------------------------------------------- */
.rt-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}
.rt-gallery .gallery-item--wide,
.rt-gallery .gallery-film--wide {
  grid-column: span 2;
  aspect-ratio: 16 / 10;
}
.gallery-film {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--mosswood);
}
.gallery-film video,
.gallery-film img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-film-mark {
  position: absolute;
  left: 0.75rem;
  bottom: 0.7rem;
  z-index: 2;
  font-family: var(--font-body);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--almond-cream);
  opacity: 0.75;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}
@media (max-width: 768px) {
  .rt-gallery { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
  .rt-gallery .gallery-item--wide,
  .rt-gallery .gallery-film--wide { grid-column: span 2; aspect-ratio: 16 / 10; }
}
