/* Gallery sections: shared base. Tokens sit on :where() so a look's own values always win. */
:where(:root){--g-bg:transparent;--g-surface:#ece8e1;--g-ink:#171512;--g-muted:#6a645b;--g-line:#d6cfc3;--g-accent:#b4532a;--g-on-accent:#fff;--g-paper:#fff;
  --g-radius:16px;--g-fd:inherit;--g-ft:inherit;--g-fw:400;--g-ls:-.02em;--g-space:clamp(64px,9vw,128px);--g-pad:clamp(16px,4vw,56px);--g-max:1360px;--g-ease:cubic-bezier(.2,.75,.15,1);--g-top:84px}
.g-sec{background:var(--g-bg);color:var(--g-ink);font-family:var(--g-ft);padding:var(--g-space) 0;position:relative}
.g-sec *,.g-sec *::before,.g-sec *::after{box-sizing:border-box}
:where(.g-sec) :where(figure,p,h2,h3,ol,ul){margin:0}
:where(.g-sec) :where(ol,ul){list-style:none;padding:0}
/* class weight on purpose: a look's own reset (img{height:auto}) must not stretch gallery photos out of their frames */
.g-sec img{display:block;width:100%;height:100%;object-fit:cover}
.g-in{max-width:var(--g-max);margin-inline:auto;padding-inline:var(--g-pad)}
.g-head{display:grid;gap:14px;margin-bottom:clamp(28px,4vw,48px);max-width:60ch}
.g-title{font:var(--g-fw) clamp(34px,5.2vw,72px)/.98 var(--g-fd);letter-spacing:var(--g-ls);text-wrap:balance}
.g-intro{color:var(--g-muted);font-size:clamp(16px,1.3vw,18px);line-height:1.55;max-width:52ch;text-wrap:pretty}
.g-ctas{display:flex;flex-wrap:wrap;gap:10px;margin-top:6px}
.g-cta{display:inline-flex;align-items:center;gap:8px;padding:12px 20px;border-radius:999px;background:var(--g-ink);color:var(--g-paper);text-decoration:none;font-size:15px;font-weight:500}
.g-cta-2{background:none;color:var(--g-ink);box-shadow:inset 0 0 0 1.5px currentColor}
.g-cap{display:grid;gap:2px;font-size:14px;line-height:1.35}
.g-cap b{font-weight:600}.g-cap small{font-size:13px;color:var(--g-muted)}
.g-btn{display:inline-grid;place-items:center;width:48px;height:48px;border-radius:50%;border:0;background:var(--g-ink);color:var(--g-paper);cursor:pointer;transition:transform .2s var(--g-ease),opacity .2s}
.g-btn:hover{transform:scale(1.06)}.g-btn:disabled{opacity:.35;cursor:default;transform:none}
.g-btn[hidden],.g-sec [hidden]{display:none!important}
.g-pill{font:500 14px/1 var(--g-ft);padding:12px 18px;border-radius:999px;border:1.5px solid currentColor;background:none;color:inherit;cursor:pointer}
.g-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.g-sec :focus-visible{outline:2.5px solid var(--g-accent);outline-offset:3px}
@media (prefers-reduced-motion:reduce){.g-sec *,.g-sec *::before,.g-sec *::after{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}

/* Lightbox (Advanced, gallery.js builds it once per page) */
.g-lb{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;background:#0b0b0cf2;color:#fff;overscroll-behavior:contain}
.g-lb::backdrop{background:#0008}
.g-lb[open]{display:grid;grid-template:1fr auto/1fr}
.g-lb figure{margin:0;display:grid;place-items:center;padding:clamp(12px,4vw,56px) clamp(12px,7vw,96px) 8px;min-height:0}
.g-lb img{max-width:100%;max-height:calc(100dvh - 120px);width:auto;height:auto;object-fit:contain;border-radius:6px;animation:g-lb-in .35s var(--g-ease,ease)}
.g-lb footer{display:flex;align-items:center;gap:16px;padding:12px clamp(12px,4vw,40px) 20px;font:14px/1.4 system-ui,sans-serif}
.g-lb footer p{flex:1;margin:0;opacity:.85}
.g-lb button{width:48px;height:48px;border-radius:50%;border:1px solid #fff4;background:#fff1;color:#fff;cursor:pointer;display:grid;place-items:center}
.g-lb button:focus-visible{outline:2px solid #fff;outline-offset:2px}
.g-lb .g-lb-x{position:absolute;top:14px;right:14px}
@keyframes g-lb-in{from{opacity:0;transform:scale(.97)}}

/* A photo that opens large (Advanced): the same cue everywhere. Hover: a slow zoom and a round "expand" badge; no magnifier cursor. */
:where(.g-open){position:relative}
.g-open{cursor:pointer}
.g-open img{transition:transform .9s var(--g-ease)}
.g-open::after,.g-xb::after{content:"";position:absolute;z-index:4;top:12px;right:12px;width:40px;height:40px;border-radius:50%;pointer-events:none;opacity:0;scale:.7;transition:opacity .25s,scale .4s var(--g-ease);
  background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23161616' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6M10 20H4v-6M20 4l-6.5 6.5M4 20l6.5-6.5'/%3E%3C/svg%3E") center/18px no-repeat;box-shadow:0 6px 18px -6px rgb(0 0 0/.35)}
.g-open:focus-visible::after,.g-xb:focus-visible::after{opacity:1;scale:1}
@media (hover:hover){.g-open:hover::after,.g-xb:hover::after{opacity:1;scale:1}}

/* Shared by the round-2 carousels: header bar with controls, and the no-JS pause switch (a checkbox the CSS reads). */
.g-bar{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:end;gap:16px 32px;margin-bottom:clamp(24px,3.5vw,44px)}
.g-bar .g-head{margin:0}
.g-nav{display:flex;align-items:center;gap:10px}
.g-pause{position:relative;display:inline-flex;align-items:center;gap:9px}
.g-pause::before{content:"";width:3px;height:11px;border-inline:3px solid currentColor;padding-inline:1.5px}
.g-pause:has(:checked){background:var(--g-ink);color:var(--g-paper);border-color:var(--g-ink)}
.g-pause:has(:checked)::before{width:0;height:0;padding:0;border-inline:0;border-block:6px solid transparent;border-left:10px solid currentColor}
.g-pause:has(:focus-visible){outline:2.5px solid var(--g-accent);outline-offset:3px}
@media (prefers-reduced-motion:reduce){.g-pause{display:none}}

/* 9 Filmstrip rail: portrait and landscape frames in one snapping row, full-bleed to the right.
   Basic: swipe/scroll + scroll-linked progress line (CSS). Advanced: counter, arrows, mouse drag, parallax inside frames, lightbox. */
.g-rail{timeline-scope:--rl}
.g-rl-top{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:end;gap:16px 32px;margin-bottom:clamp(24px,3vw,44px)}
.g-rl-top .g-head{margin:0}
.g-rl-count{font-size:14px;color:var(--g-muted);font-variant-numeric:tabular-nums;margin-right:8px;min-width:0;overflow-wrap:anywhere}
.g-rl-count b{font-weight:600;color:var(--g-ink)}
.g-rail:not(.g-is-on) .g-rl-count{display:none}
.g-rl-nav{display:flex;align-items:center;gap:10px;max-width:100%}
.g-rl-track{--h:clamp(360px,60vh,620px);display:flex;align-items:flex-start;gap:clamp(12px,1.6vw,24px);overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain;
  padding-inline:max(var(--g-pad),calc((100% - var(--g-max)) / 2 + var(--g-pad)));scroll-padding-inline:max(var(--g-pad),calc((100% - var(--g-max)) / 2 + var(--g-pad)));scroll-timeline:--rl x}
.g-rl-track::-webkit-scrollbar{display:none}
.g-rl-track:focus-visible{outline:2.5px solid var(--g-accent);outline-offset:4px}
.g-rl-i{flex:none;scroll-snap-align:start}
.g-rl-i figure{display:grid;gap:12px}
.g-rl-f{position:relative;height:var(--h);aspect-ratio:var(--ar);max-width:calc(100vw - 2 * var(--g-pad) - 28px);border-radius:var(--g-radius);overflow:hidden;background:var(--g-surface)}
.g-rl-l .g-rl-f{height:calc(var(--h) * .74)}
/* landscape frames sit on the portrait frames' baseline only when the row has portraits; an all-landscape row starts at the top */
.g-rl-track:has(> .g-rl-p) > .g-rl-l .g-rl-f{margin-top:calc(var(--h) * .26)}
@media (max-width:900px){.g-rl-l .g-rl-f{height:var(--h)}.g-rl-track:has(> .g-rl-p) > .g-rl-l .g-rl-f{margin-top:0}}
.g-rl-i .g-cap{min-height:2.8em;max-width:32ch}
.g-rl-bar{position:relative;height:2px;margin-top:clamp(20px,3vw,36px);background:var(--g-line);overflow:hidden}
.g-rl-bar i{position:absolute;inset:0;background:var(--g-ink);transform-origin:0 50%;animation:g-rl-p linear both;animation-timeline:--rl}
@supports not (animation-timeline:scroll()){.g-rl-bar{display:none}}
@keyframes g-rl-p{from{scale:.1 1}to{scale:1 1}}
.g-rail.g-is-on .g-rl-track{cursor:grab;user-select:none}
.g-rail.g-is-on .g-rl-track.g-is-drag{cursor:grabbing}
.g-rail.g-is-on .g-rl-track.g-is-glide{scroll-snap-type:none}
.g-rail.g-is-on .g-rl-track.g-is-drag *{pointer-events:none}
.g-rail.g-is-on .g-rl-f{cursor:inherit}
@supports (animation-timeline:view()){@media (prefers-reduced-motion:no-preference){
  .g-rail[data-tier=advanced] .g-rl-f img{scale:1.16;animation:g-rl-par linear both;animation-timeline:view(x);animation-range:cover}
}}
@keyframes g-rl-par{from{translate:-6% 0}to{translate:6% 0}}
@media (max-width:760px){
  .g-rl-track{--h:440px}
}
