/* 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}}

/* 23 Flex grid: a 3 × 3 (or 3 × 2) grid of photos. The hovered or focused photo's column and row grow and its caption shows;
   with nothing hovered the centre one is big. Pure CSS (:has()), so Basic gets it too. Advanced: a click opens the photo large. */
.g-fx{container-type:size;--c1:1fr;--c2:2.3fr;--c3:1fr;--r1:1fr;--r2:2.3fr;--r3:1fr;display:grid;gap:10px;height:clamp(520px,82vh,800px);
  grid-template-columns:var(--c1) var(--c2) var(--c3);grid-template-rows:var(--r1) var(--r2) var(--r3);transition:grid-template-columns .75s var(--g-ease),grid-template-rows .75s var(--g-ease)}
.g-fx[data-n="6"]{--r2:1fr;grid-template-rows:var(--r1) var(--r2);height:clamp(440px,66vh,660px)}
.g-fx:has(.g-fx-i:is(:hover,:focus-within)){--c2:1fr;--r2:1fr}
.g-fx:has(.g-fx-i:nth-child(1):is(:hover,:focus-within)){--c1:2.3fr;--r1:2.3fr}
.g-fx:has(.g-fx-i:nth-child(2):is(:hover,:focus-within)){--c2:2.3fr;--r1:2.3fr}
.g-fx:has(.g-fx-i:nth-child(3):is(:hover,:focus-within)){--c3:2.3fr;--r1:2.3fr}
.g-fx:has(.g-fx-i:nth-child(4):is(:hover,:focus-within)){--c1:2.3fr;--r2:2.3fr}
.g-fx:has(.g-fx-i:nth-child(5):is(:hover,:focus-within)){--c2:2.3fr;--r2:2.3fr}
.g-fx:has(.g-fx-i:nth-child(6):is(:hover,:focus-within)){--c3:2.3fr;--r2:2.3fr}
.g-fx:has(.g-fx-i:nth-child(7):is(:hover,:focus-within)){--c1:2.3fr;--r3:2.3fr}
.g-fx:has(.g-fx-i:nth-child(8):is(:hover,:focus-within)){--c2:2.3fr;--r3:2.3fr}
.g-fx:has(.g-fx-i:nth-child(9):is(:hover,:focus-within)){--c3:2.3fr;--r3:2.3fr}
.g-fx-i{min-width:0;min-height:0}
.g-fx-f{position:relative;height:100%;border-radius:var(--g-radius);overflow:hidden;background:var(--g-surface)}
.g-fx-f:focus-visible{outline-offset:-4px}
.g-fx-cap{position:absolute;left:14px;bottom:14px;max-width:calc(100% - 28px);padding:9px 14px;border-radius:12px;background:color-mix(in oklab,var(--g-paper) 94%,transparent);color:var(--g-ink);
  opacity:0;translate:0 8px;transition:opacity .35s,translate .5s var(--g-ease)}
.g-fx-i:is(:hover,:focus-within) .g-fx-cap,.g-fx:not(:has(.g-fx-i:is(:hover,:focus-within))) .g-fx-i:nth-child(5) .g-fx-cap,.g-fx[data-n="6"]:not(:has(.g-fx-i:is(:hover,:focus-within))) .g-fx-i:nth-child(2) .g-fx-cap{opacity:1;translate:0 0}
@media (max-width:760px){
  .g-fx,.g-fx[data-n="6"]{height:auto;grid-template-columns:1fr 1fr;grid-template-rows:none;transition:none}
  .g-fx-i{aspect-ratio:1}.g-fx-i:first-child{grid-column:1/-1;aspect-ratio:4/3}
  .g-fx-i:last-child:nth-child(even){grid-column:1/-1;aspect-ratio:4/3} /* the first photo spans the row, so an even count leaves the last one alone */
  .g-fx-cap{opacity:1;translate:none;left:8px;bottom:8px;padding:6px 10px}.g-fx-cap small{display:none}
}
/* The photo keeps the size of the biggest cell and the cell only crops it, so the grid can change size without redrawing photos. */
.g-fx-f img{position:absolute;left:50%;top:50%;width:max(100%,54cqw);height:max(100%,72cqh);max-width:none;translate:-50% -50%;will-change:translate}
@media (max-width:760px){.g-fx{container-type:normal}.g-fx-f img{position:static;width:100%;height:100%;translate:none;will-change:auto}}
