/* Fernhill — tokeni templata, scopovani na .sec-fernhill-gallery. */

/* ============================================================
   DESIGN TOKENS — Template 18 "Fernhill"
   Niche variant: Q — dental treatment under general anaesthetic,
   for people with disabilities or in care.
   >>> NEW variant, not in the original style guide. Rules and
       reasoning live in the BUILDER-LOG, §4n. <<<

   The reader here is often not the patient but a guardian or a
   carer, and the subject is a procedure with real medical risk.
   The palette is warm and low-contrast on purpose — calm without
   being soft-spoken, because the copy has to say difficult things
   plainly and the page should not fight it.

   Shape language: a colour bar across the TOP of a card.
   Change ONLY this file to re-skin the whole template.
   ============================================================ */

.sec-fernhill-gallery {
  /* ---------- Color ---------- */
  --c-bg:          #F6F4F1;   /* warm greige */
  --c-bg-alt:      #EDEAE4;
  --c-white:       #FFFFFF;
  --c-surface:     #E3E0D8;   /* indigo tint for cards / fills */

  --c-primary:     #40584F;   /* deep pine grey-green — 6.9:1 on --c-bg */
  --c-primary-dk:  #2A3B34;   /* headings, dark sections */
  --c-primary-lt:  #93A199;
  --c-primary-08:  rgba(64, 88, 79, 0.08);
  --c-primary-14:  rgba(64, 88, 79, 0.14);

  /* Caramel is the only warm colour and never covers a large
     surface. White on it clears about 3.6:1 — enough for large text
     and UI, never for body copy. For caramel TEXT use --c-accent-dk,
     and for a small chip use --c-accent-dk as the BACKGROUND.
     (T16 shipped that bug and had to measure its way out of it.) */
  --c-accent:      #C08552;
  --c-accent-dk:   #8A5626;   /* 6.5:1 on --c-bg */
  --c-accent-soft: #F3E4D3;
  --c-accent-tint: rgba(192, 133, 82, 0.16);

  --c-text:        #232823;
  --c-text-muted:  #5C625B;   /* 5.8:1 on --c-bg */
  --c-on-dark:     #F1F3EF;
  --c-on-dark-mu:  rgba(241, 243, 239, 0.78);

  --c-line:        rgba(35, 40, 35, 0.12);
  --c-line-strong: rgba(35, 40, 35, 0.24);
  --c-line-dark:   rgba(241, 243, 239, 0.24);

  --c-whatsapp:    #128C7E;
  --c-whatsapp-dk: #0E6F63;
  --c-star:        #C98A22;

  /* ---------- Elevation ---------- */
  --sh-sm: 0 4px 14px -8px rgba(42, 59, 52, 0.20);
  --sh-md: 0 14px 32px -16px rgba(42, 59, 52, 0.28);
  --sh-lg: 0 26px 56px -22px rgba(42, 59, 52, 0.32);
  --sh-xl: 0 44px 90px -32px rgba(42, 59, 52, 0.36);

  /* ---------- Radius ----------
     The window shape is a single shorthand so a card only needs
     one class. Everything else uses the plain scale. */
  --r-xs:  8px;
  --r-sm:  12px;
  --r-md:  16px;
  --r-lg:  20px;
  --r-xl:  28px;
  --r-pill: 999px;
  --r-circle: 50%;

  /* One radius everywhere. The card device is the 4px bar on top,
     not the corner, so the corners stay quiet. */
  --r-card:    16px;
  --r-card-lg: 24px;

  /* Gallery tiles are pinned at 12px: the brief asks for 10–15px
     there, and it keeps a grid of pictures from reading as arches. */
  --r-gallery: 12px;

  /* ---------- Spacing — 8px base ---------- */
  --sp-1:   4px;
  --sp-2:   8px;
  --sp-3:  16px;
  --sp-4:  24px;
  --sp-5:  32px;
  --sp-6:  48px;
  --sp-7:  64px;
  --sp-8:  96px;

  --section-y: clamp(64px, 8vw, 112px);
  --gutter:    clamp(20px, 5vw, 48px);
  --maxw:      1200px;

  /* ---------- Typography ---------- */
  --ff-display: "Fira Sans", "Segoe UI", system-ui, sans-serif;
  --ff-body:    "Mukta", "Segoe UI", system-ui, -apple-system, sans-serif;

  --fs-xs:   0.875rem;
  --fs-sm:   0.9375rem;
  --fs-base: 1rem;
  --fs-md:   1.0625rem;
  --fs-lg:   clamp(1.125rem, 0.4vw + 1.05rem, 1.25rem);
  --fs-h4:   clamp(1.1875rem, 0.6vw + 1.05rem, 1.375rem);
  --fs-h3:   clamp(1.375rem, 0.9vw + 1.15rem, 1.75rem);
  --fs-h2:   clamp(1.875rem, 2.1vw + 1.35rem, 2.875rem);
  --fs-h1:   clamp(2.25rem, 3.2vw + 1.4rem, 3.75rem);

  --lh-tight: 1.1;
  --lh-snug:  1.22;
  --lh-body:  1.64;

  --ls-tight: -0.02em;
  --ls-label:  0.14em;

  /* ---------- Motion ---------- */
  --ease:     cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 150ms;
  --t-base: 260ms;

  /* ---------- Layout ---------- */
  --header-h:  72px;
  --z-header: 100;
  --z-mobilebar: 90;
  --z-menu: 95;
  --z-lightbox: 200;

  --tap: 44px;
}

@media (max-width: 900px) {
  .sec-fernhill-gallery { --header-h: 62px; }
}

/* Fernhill — reset i zajedničke primitive (base.css). */

/* ============================================================
   BASE — Template 18 "Fernhill"
   Signature device: .u-card — a 4px colour bar across the top of a card.
   corners only. One rule, used on every card on the page. That is
   the whole shape language, on purpose: this template was ordered
   simple and a second device would only compete with it.
   ============================================================ */

.sec-fernhill-gallery *, .sec-fernhill-gallery *::before, .sec-fernhill-gallery *::after { box-sizing: border-box; }

.sec-fernhill-gallery {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

.sec-fernhill-gallery {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--ff-body);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-x: clip;
}

.sec-fernhill-gallery img, .sec-fernhill-gallery svg, .sec-fernhill-gallery video { display: block; max-width: 100%; }
.sec-fernhill-gallery img { height: auto; }

.sec-fernhill-gallery h1, .sec-fernhill-gallery h2, .sec-fernhill-gallery h3, .sec-fernhill-gallery h4 {
  font-family: var(--ff-display);
  font-weight: 600;
  color: var(--c-primary-dk);
  letter-spacing: var(--ls-tight);
  line-height: var(--lh-snug);
  margin: 0;
  text-wrap: balance;
}
.sec-fernhill-gallery h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); font-weight: 700; }
.sec-fernhill-gallery h2 { font-size: var(--fs-h2); line-height: 1.14; font-weight: 600; }
.sec-fernhill-gallery h3 { font-size: var(--fs-h3); }
.sec-fernhill-gallery h4 { font-size: var(--fs-h4); }

.sec-fernhill-gallery p { margin: 0; text-wrap: pretty; }
.sec-fernhill-gallery ul, .sec-fernhill-gallery ol { margin: 0; padding: 0; list-style: none; }

.sec-fernhill-gallery a { color: inherit; text-decoration: none; transition: color var(--t-fast) var(--ease); }
.sec-fernhill-gallery button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }

.sec-fernhill-gallery :focus-visible { outline: 3px solid var(--c-primary); outline-offset: 3px; border-radius: var(--r-xs); }
.sec-fernhill-gallery :focus:not(:focus-visible) { outline: none; }
.sec-fernhill-gallery ::selection { background: var(--c-accent-soft); color: var(--c-primary-dk); }

.sec-fernhill-gallery .u-num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

/* ---------- Layout primitives ---------- */

.sec-fernhill-gallery .u-container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.sec-fernhill-gallery .u-section { position: relative; padding-block: var(--section-y); }
.sec-fernhill-gallery .u-section--alt { background: var(--c-bg-alt); }

.sec-fernhill-gallery .u-sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}

.sec-fernhill-gallery .u-skip-link {
  position: absolute; top: 8px; left: 8px; z-index: 999;
  transform: translateY(-200%);
  background: var(--c-primary-dk); color: var(--c-white);
  padding: 12px 22px; border-radius: var(--r-pill);
  font-size: var(--fs-sm); font-weight: 700;
}
.sec-fernhill-gallery .u-skip-link:focus { transform: translateY(0); }

/* ============================================================
   DARK SCOPE
   A section on a brand-coloured background inherits the wrong
   text colours: h2 defaults to --c-primary-dk and .u-label to
   --c-accent-dk, both tuned for light backgrounds. Put .u-dark on
   the section and the whole subtree is corrected in one place.
   (BUILDER-LOG section 4 — missed in T6, fixed from a screenshot.)
   ============================================================ */
.sec-fernhill-gallery .u-dark { color: var(--c-on-dark); }
.sec-fernhill-gallery .u-dark h1, .sec-fernhill-gallery .u-dark h2, .sec-fernhill-gallery .u-dark h3, .sec-fernhill-gallery .u-dark h4 { color: var(--c-on-dark); }
.sec-fernhill-gallery .u-dark p { color: var(--c-on-dark-mu); }
.sec-fernhill-gallery .u-dark .u-label { color: var(--c-accent-soft); }
.sec-fernhill-gallery .u-dark .u-head p { color: var(--c-on-dark-mu); }

/* ---------- Eyebrow + section head ---------- */

.sec-fernhill-gallery .u-label {
  display: inline-block;
  font-family: var(--ff-display);
  font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: var(--ls-label); text-transform: uppercase;
  color: var(--c-accent-dk);
}

.sec-fernhill-gallery .u-head > * + * { margin-top: var(--sp-3); }
.sec-fernhill-gallery .u-head--center { text-align: center; margin-inline: auto; }
.sec-fernhill-gallery .u-head h2 { max-width: 20ch; }
.sec-fernhill-gallery .u-head--center h2 { margin-inline: auto; }
.sec-fernhill-gallery .u-head p { color: var(--c-text-muted); font-size: var(--fs-lg); max-width: 60ch; }
.sec-fernhill-gallery .u-head--center p { margin-inline: auto; }

/* The "smile arc" the style guide suggests, drawn as a soft curve
   under one word rather than a straight rule. */
.sec-fernhill-gallery .u-arc { position: relative; white-space: nowrap; }
.sec-fernhill-gallery .u-arc::after {
  content: "";
  position: absolute; left: -2%; right: -2%; bottom: -0.14em;
  height: 0.3em;
  border-radius: 0 0 var(--r-pill) var(--r-pill);
  border-bottom: 5px solid var(--c-accent);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
}

/* ---------- Signature: the top bar card ----------
   The bar is a pseudo-element rather than a border-top so the card
   can still have its own border without the two doubling up. */

.sec-fernhill-gallery .u-card {
  position: relative;
  border-radius: var(--r-card);
  overflow: hidden;          /* keeps the bar inside the radius */
}
.sec-fernhill-gallery .u-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--bar, var(--c-accent));
}
.sec-fernhill-gallery .u-card--lg { border-radius: var(--r-card-lg); }
/* Second and third tones, so a row of cards is not four identical
   stripes. Nothing else changes between them. */
.sec-fernhill-gallery .u-card--alt { --bar: var(--c-primary); }
.sec-fernhill-gallery .u-card--calm { --bar: var(--c-primary-lt); }

/* ---------- Pills ---------- */

.sec-fernhill-gallery .u-pill {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 36px;
  padding: 7px 15px;
  border-radius: var(--r-pill);
  background: var(--pill-bg, var(--c-white));
  color: var(--pill-fg, var(--c-primary-dk));
  border: 1px solid var(--pill-bd, var(--c-line));
  font-family: var(--ff-display);
  font-size: var(--fs-sm); font-weight: 500;
  white-space: nowrap;
}
.sec-fernhill-gallery .u-pill--accent { --pill-bg: var(--c-accent-soft); --pill-bd: transparent; --pill-fg: var(--c-accent-dk); }
.sec-fernhill-gallery .u-pill--indigo { --pill-bg: var(--c-surface); --pill-bd: transparent; --pill-fg: var(--c-primary-dk); }

/* ---------- Stars ---------- */

.sec-fernhill-gallery .u-stars { display: inline-flex; gap: 2px; }
.sec-fernhill-gallery .u-stars svg { width: 17px; height: 17px; color: var(--c-star); }
.sec-fernhill-gallery .u-stars--lg svg { width: 21px; height: 21px; }

/* ---------- Buttons ---------- */

.sec-fernhill-gallery .u-btn {
  --btn-bg: var(--c-primary);
  --btn-fg: var(--c-white);
  --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px;
  padding: 13px 26px;
  border: 2px solid var(--btn-bd);
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--ff-display);
  font-size: var(--fs-md); font-weight: 600;
  line-height: 1.1;
  text-align: center;
  cursor: pointer;
  transition: transform var(--t-base) var(--ease-out),
              background-color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease);
}
.sec-fernhill-gallery .u-btn svg { flex: none; width: 20px; height: 20px; }
.sec-fernhill-gallery .u-btn:hover { transform: translateY(-2px); }
.sec-fernhill-gallery .u-btn:active { transform: none; transition-duration: 60ms; }

.sec-fernhill-gallery .u-btn--solid:hover { --btn-bg: var(--c-primary-dk); }
.sec-fernhill-gallery .u-btn--line { --btn-bg: transparent; --btn-fg: var(--c-primary-dk); --btn-bd: var(--c-line-strong); }
.sec-fernhill-gallery .u-btn--line:hover { --btn-bd: var(--c-primary); --btn-bg: var(--c-white); }
.sec-fernhill-gallery .u-btn--white { --btn-bg: var(--c-white); --btn-fg: var(--c-primary-dk); }
.sec-fernhill-gallery .u-btn--white:hover { --btn-bg: var(--c-bg-alt); }
.sec-fernhill-gallery .u-btn--ghost { --btn-bg: transparent; --btn-fg: var(--c-on-dark); --btn-bd: var(--c-line-dark); }
.sec-fernhill-gallery .u-btn--ghost:hover { --btn-bg: rgba(242, 243, 248, 0.14); --btn-bd: rgba(242, 243, 248, 0.5); }
.sec-fernhill-gallery .u-btn--wa { --btn-bg: var(--c-whatsapp); --btn-fg: #fff; }
.sec-fernhill-gallery .u-btn--wa:hover { --btn-bg: var(--c-whatsapp-dk); }
.sec-fernhill-gallery .u-btn--lg { min-height: 58px; padding: 17px 32px; font-size: var(--fs-lg); }
.sec-fernhill-gallery .u-btn--block { width: 100%; }

/* ---------- Scroll reveal ---------- */

/* Hidden start state gated on .has-js (set by app.js) so a script
   failure can never leave a blank hole where content should be. */
.sec-fernhill-gallery.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 620ms var(--ease-out), transform 620ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.sec-fernhill-gallery.has-js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .sec-fernhill-gallery { scroll-behavior: auto; }
  .sec-fernhill-gallery *, .sec-fernhill-gallery *::before, .sec-fernhill-gallery *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .sec-fernhill-gallery.has-js [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  .sec-fernhill-gallery .site-head, .sec-fernhill-gallery .mobile-bar, .sec-fernhill-gallery .stage { display: none !important; }
  .sec-fernhill-gallery { background: #fff; }
}

/* ============================================================
   MEDIA SLOTS — every image slot also takes a <video>

   Each slot rule is written as `:is(img,video)`, so swapping the
   tag is the whole job — sizing, crop and radius stay identical:

     <img   src="_shared/img/hero.svg" width="1800" height="1100" alt="...">
     <video src="_shared/video/hero.mp4" poster="_shared/img/hero.svg"
            width="1800" height="1100" data-inline muted loop playsinline
            aria-label="..."></video>

   `data-inline` hands the element to app.js: it plays only while on
   screen, pauses when the tab is hidden, gets a pause control (WCAG
   2.2.2), and under prefers-reduced-motion the file is never
   fetched — the poster stays.

   NOTE: the parallax section is the one slot this does NOT cover.
   It uses a CSS background-image (that is what a fixed-attachment
   parallax is), and a background cannot be a video. To put a video
   there, rebuild that section as a positioned <video> — and you
   lose the fixed effect, because the two techniques are different
   things. See parallax/parallax.css.
   ============================================================ */

.sec-fernhill-gallery video { width: 100%; height: auto; }
.sec-fernhill-gallery .has-inline-video { position: relative; }

.sec-fernhill-gallery .u-mediactl {
  position: absolute;
  right: 12px; bottom: 12px;
  z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: var(--tap);
  padding: 10px 16px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--sh-sm);
  color: var(--c-text);
  font-family: var(--ff-display);
  font-size: var(--fs-xs); font-weight: 600;
  cursor: pointer;
}
.sec-fernhill-gallery .u-mediactl:hover { background: #fff; }
.sec-fernhill-gallery .u-mediactl__ic { position: relative; width: 12px; height: 12px; flex: none; }
.sec-fernhill-gallery .u-mediactl__ic::before, 
.sec-fernhill-gallery .u-mediactl__ic::after {
  content: "";
  position: absolute; top: 0;
  width: 4px; height: 12px;
  border-radius: 1px;
  background: currentColor;
}
.sec-fernhill-gallery .u-mediactl__ic::before { left: 0; }
.sec-fernhill-gallery .u-mediactl__ic::after { right: 0; }
.sec-fernhill-gallery .u-mediactl[aria-pressed="true"] .u-mediactl__ic::before {
  left: 1px;
  width: 0; height: 0;
  border-radius: 0;
  background: none;
  border-left: 11px solid currentColor;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}
.sec-fernhill-gallery .u-mediactl[aria-pressed="true"] .u-mediactl__ic::after { opacity: 0; }
.sec-fernhill-gallery .u-mediactl--compact { padding: 0; width: var(--tap); justify-content: center; }
.sec-fernhill-gallery .u-mediactl--compact .u-mediactl__tx { display: none; }

/* Sekcija gallery. */

/* ============================================================
   GALLERY — one lead picture, four smaller ones, plus a lightbox
   Radius is 12px throughout (--r-gallery), per the brief.
   ============================================================ */

.sec-fernhill-gallery .gal { scroll-margin-top: calc(var(--header-h) + 16px); }
.sec-fernhill-gallery .gal__head { margin-bottom: clamp(28px, 3.4vw, 48px); }

.sec-fernhill-gallery .gal__set { display: grid; gap: clamp(12px, 1.6vw, 20px); }

.sec-fernhill-gallery .gal__row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
}

/* The lead picture is the establishing shot, so it gets a wider crop
   and reads as the room rather than as a bigger thumbnail. */
.sec-fernhill-gallery .tile--lead { position: relative; }
.sec-fernhill-gallery .tile--lead :is(img, video) { aspect-ratio: 16 / 7; }

/* The caption sits on a scrim strong enough for white text over a
   photograph nobody has taken yet: it reaches 0.95 before the text
   starts. At 0.8 it passes on the placeholder and fails on a bright
   picture — the bug T11 shipped and had to measure its way out of. */
.sec-fernhill-gallery .tile__cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 40px 16px 13px;
  background: linear-gradient(180deg, transparent 0%, rgba(30, 34, 30, 0.55) 34%, rgba(30, 34, 30, 0.95) 66%);
  text-shadow: 0 1px 3px rgba(16, 20, 16, 0.5);
  color: #fff;
  font-family: var(--ff-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-align: left;
}

.sec-fernhill-gallery .tile {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border-radius: var(--r-gallery);
  background: var(--c-surface);
  cursor: zoom-in;
  transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease);
}
.sec-fernhill-gallery .tile :is(img, video) {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  display: block;
}
.sec-fernhill-gallery .tile:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }

/* ---------- Lightbox ---------- */

.sec-fernhill-gallery .lbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-lightbox);
  display: grid;
  place-items: center;
  padding: clamp(12px, 3vw, 40px);
}
.sec-fernhill-gallery .lbox[hidden] { display: none; }
.sec-fernhill-gallery .lbox__scrim { position: absolute; inset: 0; background: rgba(30, 34, 30, 0.9); }

.sec-fernhill-gallery .lbox__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(8px, 2vw, 22px);
  max-width: min(1080px, 100%);
}
.sec-fernhill-gallery .lbox__fig { margin: 0; min-width: 0; display: grid; gap: 12px; }
.sec-fernhill-gallery .lbox__fig :is(img, video) {
  max-width: 100%;
  max-height: min(70vh, 660px);
  width: auto;
  border-radius: var(--r-gallery);
  background: var(--c-surface);
}
.sec-fernhill-gallery .lbox__fig figcaption { color: var(--c-on-dark); font-size: var(--fs-sm); text-align: center; }

.sec-fernhill-gallery .lbox__x, .sec-fernhill-gallery .lbox__nav {
  display: grid;
  place-items: center;
  width: 50px; height: 50px;
  flex: none;
  border-radius: var(--r-circle);
  background: rgba(241, 243, 239, 0.16);
  color: var(--c-on-dark);
}
.sec-fernhill-gallery .lbox__x:hover, .sec-fernhill-gallery .lbox__nav:hover { background: rgba(241, 243, 239, 0.3); }
.sec-fernhill-gallery .lbox__x svg, .sec-fernhill-gallery .lbox__nav svg { width: 23px; height: 23px; }
.sec-fernhill-gallery .lbox__x { position: absolute; top: -12px; right: -4px; z-index: 2; }
/* Named separately so the two arrows can be reordered on mobile. */
.sec-fernhill-gallery .lbox__nav--prev { order: 1; }
.sec-fernhill-gallery .lbox__nav--next { order: 2; }

@media (max-width: 700px) {
  .sec-fernhill-gallery .gal__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sec-fernhill-gallery .tile--lead :is(img, video) { aspect-ratio: 4 / 3; }
}
@media (max-width: 480px) {
  /* Picture first, then the arrows side by side under it. */
  .sec-fernhill-gallery .lbox__inner { flex-wrap: wrap; justify-content: center; padding-top: 44px; }
  .sec-fernhill-gallery .lbox__fig { order: -1; flex: 1 0 100%; }
  .sec-fernhill-gallery .lbox__x { top: -4px; right: 0; }
}