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

/* 28 Photo book: an open book of photos. Basic: its pages in a row you swipe.
   Advanced (from 761 px): pages turn in 3D around the spine; click the right page for the next, the left for the previous; arrows, keys, swipe.
   The last right-hand page carries the title, text and button. */
.g-bk-wrap{display:grid;gap:22px;justify-items:center}
.g-bk{display:flex;gap:14px;width:100%;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding:6px 2px 18px}
.g-bk::-webkit-scrollbar{display:none}
.g-bk:focus-visible{outline:2.5px solid var(--g-accent);outline-offset:4px}
.g-bk-ls,.g-bk-l{display:contents}
.g-bk-p{flex:none;width:min(78vw,380px);aspect-ratio:3/4;scroll-snap-align:center;margin:0;display:grid;grid-template-rows:minmax(0,1fr) auto;gap:12px;
  padding:clamp(14px,1.8vw,26px) clamp(14px,1.8vw,26px) clamp(12px,1.4vw,20px);background:#fbf9f4;color:#2b2722;border-radius:4px;box-shadow:0 1px 2px rgb(0 0 0/.12),0 18px 40px -22px rgb(0 0 0/.4)}
.g-bk-p img{border-radius:2px}
.g-bk-p figcaption{font-size:14px;line-height:1.35}.g-bk-p figcaption b{font-weight:600}.g-bk-p figcaption small{color:#7a7268;font-size:13px}
.g-bk-blank{display:none}
.g-bk-end{grid-template-rows:none;align-content:center;gap:16px;padding:clamp(24px,3.4vw,48px)}
.g-bk-end .g-title{font-size:clamp(34px,3.6vw,54px);color:#2b2722}.g-bk-end .g-intro{color:#6b6359}
.g-bk-end .g-cta{background:#2b2722;color:#fbf9f4}.g-bk-end .g-cta-2{background:none;color:#2b2722}
.g-bk-nav{justify-content:center}
@media (min-width:761px){
  .g-book.g-is-on .g-bk{display:block;position:relative;overflow:visible;width:min(100%,1080px);aspect-ratio:3/2;padding:0;perspective:2600px;scroll-snap-type:none;cursor:pointer}
  .g-book.g-is-on .g-bk-p{position:absolute;top:0;width:50%;height:100%;border-radius:0;box-shadow:none}
  .g-book.g-is-on .g-bk-base{left:0;border-radius:6px 0 0 6px;box-shadow:-10px 18px 40px -26px rgb(0 0 0/.45)}
  .g-book.g-is-on .g-bk-end{right:0;display:grid;border-radius:0 6px 6px 0;box-shadow:10px 18px 40px -26px rgb(0 0 0/.45)}
  .g-book.g-is-on .g-bk-ls{display:block;position:absolute;z-index:1;inset:0 0 0 50%;perspective:2600px;perspective-origin:0 50%}
  .g-book.g-is-on .g-bk-l{display:block;position:absolute;inset:0;z-index:var(--z,1);transform-origin:0 50%;transition:transform 1.1s cubic-bezier(.45,.05,.55,.95)}
  .g-book.g-is-on .g-bk-l.g-is-turned{transform:rotateY(-180deg)}
  .g-book.g-is-on .g-bk-fr,.g-book.g-is-on .g-bk-bk{display:grid;left:0;width:100%}
  .g-book.g-is-on .g-bk-fr{border-radius:0 6px 6px 0;transition:visibility 0s .55s}
  .g-book.g-is-on .g-bk-bk{scale:-1 1;border-radius:6px 0 0 6px;visibility:hidden;transition:visibility 0s .55s}
  /* Flat leaves: the back page is mirrored inside the leaf and shown from halfway through the turn, so it reads the right way round on the left */
  .g-book.g-is-on .g-is-turned .g-bk-fr{visibility:hidden}.g-book.g-is-on .g-is-turned .g-bk-bk{visibility:visible}
  /* The face turned away is not rendered at all (a full-page capture drew the hidden mirrored back page over the front one); display flips with the same .55s delay as visibility, halfway through the turn */
  @supports (transition-behavior:allow-discrete){
    .g-book.g-is-on .g-bk-bk{display:none;transition:visibility 0s .55s,display 0s .55s allow-discrete}
    .g-book.g-is-on .g-bk-fr{transition:visibility 0s .55s,display 0s .55s allow-discrete}
    .g-book.g-is-on .g-is-turned .g-bk-bk{display:grid}
    .g-book.g-is-on .g-is-turned .g-bk-fr{display:none}
  }
  .g-book.g-is-on .g-bk-p::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,rgb(0 0 0/.16),transparent 9%)}
  .g-book.g-is-on :is(.g-bk-base,.g-bk-bk)::after{background:linear-gradient(270deg,rgb(0 0 0/.16),transparent 9%)}
}
