/* Studio Blocks: galleries. Generated by tools/studio-blocks/extract.mjs from the Studio block library; edit the library, then re-run. */
body .sb-galleries h1,body .sb-galleries h2,body .sb-galleries h3,body .sb-galleries h4,body .sb-galleries h5,body .sb-galleries h6,body .sb-galleries a{color:inherit}
body .sb-galleries h1,body .sb-galleries h2,body .sb-galleries h3,body .sb-galleries h4,body .sb-galleries h5,body .sb-galleries h6{text-transform:none}
body .sb-galleries p,body .sb-galleries li{font-size:inherit !important;line-height:inherit !important}

/* ---------- Theme tokens (neutral premium demo theme; every site swaps these) ---------- */
body .sb-galleries{               /* per-site choice: 0 square, 12px rounded, arch handled per block */
  --st-space:var(--section-padding); /* 40px on phones, 120px at 1400+ */
  --st-stack-gap:var(--st-gap-stack);
  --gutter:clamp(16px, 4vw, 40px);
  --overlay:var(--st-scrim);
}
body .sb-galleries *{box-sizing:border-box}
body .sb-galleries{-webkit-text-size-adjust:100%}
body .sb-galleries{margin:0;background:var(--pb-bg);color:var(--pb-text);font:400 var(--st-type-body)/var(--st-lh-body) var(--pb-body-font);overflow-x:clip}
body .sb-galleries img{display:block;width:100%;height:100%;object-fit:cover}
body .sb-galleries figure{margin:0}
body .sb-galleries p{margin:0}
body .sb-galleries a{color:inherit}
body .sb-galleries button{font:inherit;color:inherit}
body .sb-galleries .sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
body .sb-galleries :focus-visible{outline:var(--st-focus-w) solid var(--st-focus-color);outline-offset:var(--st-focus-offset)}

/* ---------- Doc chrome (not part of the blocks) ---------- */
body .sb-galleries .doc-top{padding:28px var(--gutter);background:var(--pb-ink);color:var(--pb-on-dark);display:flex;flex-wrap:wrap;gap:16px 32px;align-items:center;justify-content:space-between;font-size:var(--st-type-small) !important}
body .sb-galleries .doc-top h1{font:600 22px/1.2 var(--pb-body-font);margin:0}
body .sb-galleries .doc-top p{max-width:70ch;color:#bdbdbd}
body .sb-galleries .doc-top .r{display:flex;gap:8px;align-items:center}
body .sb-galleries .doc-top button{min-height:44px;padding:0 16px;background:transparent;border:1px solid #555;color:var(--pb-on-dark);cursor:pointer}
body .sb-galleries .doc-top button[aria-pressed=true]{background:var(--pb-tint);color:var(--pb-text)}

/* ---------- Shared block parts ---------- */
body .sb-galleries .sec{padding-block:var(--st-space);overflow-x:clip}
body .sb-galleries .wrap{width:min(100% - 2*var(--gutter), 1280px);margin-inline:auto}
body .sb-galleries .eyebrow{font:var(--pb-ui-weight) var(--st-type-label)/1.3 var(--pb-body-font);letter-spacing:var(--st-track-label);text-transform:var(--small-titles-caps);color:var(--pb-eyebrow);margin-bottom:16px}
body .sb-galleries .h2{font:var(--pb-heading-weight) var(--st-type-h2)/var(--st-lh-head) var(--pb-heading-font);letter-spacing:var(--st-track-head);margin:0;text-wrap:balance}
body .sb-galleries .h3{font:400 var(--st-type-h3)/var(--st-lh-h3) var(--pb-heading-font);margin:0;text-wrap:balance}
body .sb-galleries .lead{font-size:var(--st-type-lead) !important;line-height:var(--st-lh-body) !important;color:var(--pb-muted);max-width:52ch;text-wrap:pretty}
body .sb-galleries .btn{display:inline-flex;align-items:center;gap:10px;min-height:var(--st-btn-h);padding:0 var(--st-btn-px);background:var(--pb-primary);color:var(--pb-on-dark);font-weight:var(--pb-ui-weight);text-decoration:none;border:0;cursor:pointer}
body .sb-galleries .tlink{display:inline-flex;align-items:center;min-height:var(--st-btn-h-sm);font-weight:var(--pb-ui-weight);text-decoration:underline;text-underline-offset:6px;text-decoration-thickness:1px}
body .sb-galleries .ph{position:relative;overflow:hidden;border-radius:var(--st-photo-r);background:var(--pb-surface)}
body .sb-galleries .cap-t{display:block;font:500 var(--st-type-body)/1.35 var(--pb-body-font)}
body .sb-galleries .cap-c{display:block;font-size:var(--st-type-small) !important;line-height:1.5 !important;color:var(--pb-muted)}
body .sb-galleries .dark{background:var(--pb-text);color:var(--pb-on-dark)}
body .sb-galleries .dark .cap-c,body .sb-galleries .dark .lead{color:var(--pb-muted-on-dark)}
body .sb-galleries .dark .eyebrow{color:var(--pb-on-dark)}
body .sb-galleries .cbtn{width:48px;height:48px;display:grid;place-items:center;border:var(--st-line-w) solid currentColor;background:transparent;cursor:pointer;font-size:var(--st-type-lead) !important;line-height:1 !important;border-radius:var(--st-photo-r)}
body .sb-galleries .cbtn:disabled{opacity:.35;cursor:default}
body .sb-galleries .count{font:500 var(--st-type-small)/1 var(--pb-body-font);font-variant-numeric:var(--st-numerals)}

/* 01 Masonry columns */
body .sb-galleries .g1-hd{display:grid;grid-template-columns:1.25fr 1fr;gap:var(--st-stack-gap) 64px;align-items:end;margin-bottom:56px}
body .sb-galleries .g1-hd .lead{margin-bottom:8px}
body .sb-galleries .g1-cols{columns:3;column-gap:var(--st-gap-grid)}
body .sb-galleries .g1-cols figure{break-inside:avoid;margin-bottom:32px}
body .sb-galleries .g1-cols figure:nth-child(4n+1) .ph{aspect-ratio:var(--pb-ar-portrait)}
body .sb-galleries .g1-cols figure:nth-child(4n+2) .ph{aspect-ratio:1}
body .sb-galleries .g1-cols figure:nth-child(4n+3) .ph{aspect-ratio:var(--pb-ar-landscape)}
body .sb-galleries .g1-cols figure:nth-child(4n) .ph{aspect-ratio:var(--pb-ar-portrait)}
body .sb-galleries .g1-cols figcaption{padding-top:12px}

/* 02 Staggered wall */
body .sb-galleries .g2-hd{display:flex;justify-content:space-between;align-items:end;gap:var(--st-gap-stack) 48px;flex-wrap:wrap;margin-bottom:48px}
body .sb-galleries .g2-hd .h2{max-width:16ch}
body .sb-galleries .g2-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:var(--st-gap-grid)}
body .sb-galleries .g2-grid figure:nth-child(even){margin-top:96px}
body .sb-galleries .g2-grid .ph{aspect-ratio:var(--pb-ar-portrait)}
body .sb-galleries .g2-grid figcaption{padding-top:14px;border-top:var(--st-line-w) solid var(--pb-border);margin-top:14px}

/* 03 Captioned plates */
body .sb-galleries .g3-hd{max-width:640px;margin-bottom:64px}
body .sb-galleries .g3-hd .lead{margin-top:20px}
body .sb-galleries .g3-row{display:grid;grid-template-columns:7fr 5fr;gap:32px;align-items:start}
body .sb-galleries .g3-row.rev{grid-template-columns:5fr 7fr}
body .sb-galleries .g3-row + .g3-row{margin-top:96px}
body .sb-galleries .g3-row figure:nth-child(2){margin-top:72px}
body .sb-galleries .g3-row .ph{height:clamp(280px, 32vw, 480px)}
body .sb-galleries .g3-row figcaption{display:grid;gap:8px;padding-top:18px;max-width:46ch}
body .sb-galleries .g3-row .h3{font-size:var(--st-type-h3) !important}

/* 04 Pinned collage */
body .sb-galleries .g4{background:var(--pb-surface)}
body .sb-galleries .g4-in{display:grid;grid-template-columns:5fr 7fr;gap:48px 72px;align-items:center}
body .sb-galleries .g4-text .lead{margin:20px 0 32px}
body .sb-galleries .g4-board{position:relative;aspect-ratio:1/.9}
body .sb-galleries .g4-print{position:absolute;margin:0;background:var(--pb-bg);padding:10px 10px 0;box-shadow:0 1px 2px rgba(0,0,0,.14),0 14px 30px rgba(0,0,0,.16);transform:rotate(var(--rot));transition:transform .35s ease;z-index:var(--z)}
body .sb-galleries .g4-print .ph{aspect-ratio:var(--pb-ar-landscape);border-radius:0}
body .sb-galleries .g4-print figcaption{padding:10px 2px 12px;font:500 var(--st-type-small)/1.3 var(--pb-body-font)}
body .sb-galleries .g4-print::before{content:"";position:absolute;top:-7px;left:50%;width:14px;height:14px;margin-left:-7px;border-radius:50%;background:var(--pb-secondary);box-shadow:0 2px 3px rgba(0,0,0,.3);z-index:2}
body .sb-galleries .g4-print:hover,body .sb-galleries .g4-print:focus-within{transform:rotate(0) scale(1.03);z-index:9}
body .sb-galleries .g4-print:nth-child(1){left:1%;top:3%;width:45%;--rot:-4deg;--z:2}
body .sb-galleries .g4-print:nth-child(2){left:53%;top:0;width:42%;--rot:3deg;--z:6}
body .sb-galleries .g4-print:nth-child(3){left:27%;top:31%;width:44%;--rot:-1.5deg;--z:4}
body .sb-galleries .g4-print:nth-child(4){left:0;top:58%;width:38%;--rot:2.5deg;--z:3}
body .sb-galleries .g4-print:nth-child(5){left:59%;top:54%;width:40%;--rot:-3deg;--z:7}

/* 05 Filmstrip */
body .sb-galleries .g5-top{display:flex;justify-content:space-between;align-items:end;gap:var(--st-gap-grid);flex-wrap:wrap;margin-bottom:40px}
body .sb-galleries .g5-top .lead{margin-top:16px}
body .sb-galleries .ctrls{display:flex;align-items:center;gap:12px}
body .sb-galleries .ctrls .count{margin-right:12px}
body .sb-galleries .g5-track{display:grid;grid-auto-flow:column;grid-auto-columns:clamp(250px, 34vw, 520px);gap:6px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding-inline:max(var(--gutter), (100% - 1280px)/2);scroll-padding-inline:max(var(--gutter), (100% - 1280px)/2);overscroll-behavior-x:contain}
body .sb-galleries .g5-track::-webkit-scrollbar{display:none}
body .sb-galleries .g5-track figure{scroll-snap-align:start}
body .sb-galleries .g5-frame{padding:24px 0;--hole:color-mix(in srgb, var(--pb-on-dark) 26%, transparent);background:
  repeating-linear-gradient(90deg, transparent 0 9px, var(--hole) 9px 21px, transparent 21px 30px) 0 7px/100% 9px no-repeat,
  repeating-linear-gradient(90deg, transparent 0 9px, var(--hole) 9px 21px, transparent 21px 30px) 0 calc(100% - 7px)/100% 9px no-repeat,
  color-mix(in srgb, var(--pb-on-dark) 6%, transparent)}
body .sb-galleries .g5-frame .ph{aspect-ratio:var(--pb-ar-landscape);border-radius:0}
body .sb-galleries .g5-track figcaption{padding:16px 4px 0}

/* 06 Before / after */
body .sb-galleries .g6-in{display:grid;grid-template-columns:4fr 7fr;gap:40px 80px;align-items:center}
body .sb-galleries .g6-in .lead{margin:20px 0 24px}
body .sb-galleries .ba{position:relative;aspect-ratio:var(--pb-ar-landscape);--x:50%;touch-action:pan-y;user-select:none}
body .sb-galleries .ba .ph{position:absolute;inset:0}
body .sb-galleries .ba .before img{filter:grayscale(1) sepia(.35) brightness(.86)} /* demo only: real use takes two photos */
body .sb-galleries .ba .after{clip-path:inset(0 0 0 var(--x))}
body .sb-galleries .ba-line{position:absolute;top:0;bottom:0;left:var(--x);width:2px;margin-left:-1px;background:var(--pb-on-dark);pointer-events:none}
body .sb-galleries .ba-grip{position:absolute;top:50%;left:50%;width:52px;height:52px;margin:-26px 0 0 -26px;border-radius:50%;background:var(--pb-on-dark);color:var(--pb-text);display:grid;place-items:center;font-size:var(--st-type-body) !important;letter-spacing:2px;box-shadow:0 4px 16px rgba(0,0,0,.25)}
body .sb-galleries .ba-tag{position:absolute;top:16px;padding:8px 12px;background:var(--pb-bg);font:var(--pb-ui-weight) var(--st-type-small)/1 var(--pb-body-font);pointer-events:none}
body .sb-galleries .ba-tag.l{left:16px}body .sb-galleries .ba-tag.r{right:16px}
body .sb-galleries .ba input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:ew-resize}
body .sb-galleries .ba:has(input:focus-visible){outline:var(--st-focus-w) solid var(--st-focus-color);outline-offset:var(--st-focus-offset)}
body .sb-galleries .g6 figcaption{margin-top:14px}

/* 07 Lightbox grid */
body .sb-galleries .g7-hd{text-align:center;margin:0 auto 48px;max-width:720px}
body .sb-galleries .g7-hd .lead{margin:16px auto 0}
body .sb-galleries .g7-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
body .sb-galleries .g7-grid a{display:block}
body .sb-galleries .g7-grid .ph{aspect-ratio:1}
body .sb-galleries .g7-grid img{transition:transform .5s ease}
body .sb-galleries .g7-grid a:hover img,body .sb-galleries .g7-grid a:focus-visible img{transform:scale(var(--st-img-zoom))}
body .sb-galleries .g7-grid .zoom::before{content:"+"}
body .sb-galleries .g7-grid .zoom{position:absolute;right:12px;bottom:12px;width:44px;height:44px;display:grid;place-items:center;background:var(--pb-bg);font-size:22px !important;opacity:0;transition:opacity .25s}
body .sb-galleries .g7-grid a:hover .zoom,body .sb-galleries .g7-grid a:focus-visible .zoom{opacity:1}
body .sb-galleries .g7-foot{text-align:center;margin-top:24px}

/* 08 Social strip */
body .sb-galleries .g8{padding-bottom:0}
body .sb-galleries .g8-hd{text-align:center;margin:0 auto 40px;max-width:640px}
body .sb-galleries .g8-hd .h3{font-size:var(--st-type-h2) !important;line-height:var(--st-lh-head) !important}
body .sb-galleries .g8-hd p{margin-top:12px;color:var(--pb-muted)}
body .sb-galleries .g8-strip{display:grid;grid-template-columns:repeat(6,1fr)}
body .sb-galleries .g8-strip a{position:relative;display:block;aspect-ratio:1;overflow:hidden}
body .sb-galleries .g8-strip a::after{content:"";position:absolute;inset:0;background:var(--overlay);opacity:0;transition:opacity .25s}
body .sb-galleries .g8-strip a:hover::after,body .sb-galleries .g8-strip a:focus-visible::after{opacity:1}
body .sb-galleries .g8-strip a:focus-visible{outline-offset:-4px}

/* 09 Feature mosaic */
body .sb-galleries .g9-hd{display:flex;justify-content:space-between;align-items:end;gap:16px 40px;flex-wrap:wrap;margin-bottom:40px}
body .sb-galleries .g9-grid{display:grid;grid-template-columns:repeat(4,1fr);grid-template-rows:repeat(2, clamp(180px, 19vw, 290px));gap:16px}
body .sb-galleries .g9-grid figure:first-child{grid-column:span 2;grid-row:span 2}
body .sb-galleries .g9-grid .ph{height:100%}
body .sb-galleries .g9-chip{position:absolute;left:20px;bottom:20px;max-width:calc(100% - 40px);padding:14px 18px;background:var(--pb-bg);color:var(--pb-text)}
body .sb-galleries .g9-grid figure:not(:first-child) figcaption{position:absolute;left:12px;bottom:12px;padding:8px 12px;background:var(--pb-bg);color:var(--pb-text);font:var(--pb-ui-weight) var(--st-type-small)/1.3 var(--pb-body-font)}

/* 10 Sticky index */
body .sb-galleries .g10-in{display:grid;grid-template-columns:4fr 8fr;gap:48px 80px;align-items:start}
body .sb-galleries .g10-side{position:sticky;top:32px}
body .sb-galleries .g10-side .lead{margin:20px 0 24px}
body .sb-galleries .g10-side .count{display:block;margin-top:24px;padding-top:16px;border-top:var(--st-line-w) solid var(--pb-border);color:var(--pb-muted)}
body .sb-galleries .g10-grid{display:grid;grid-template-columns:1fr 1fr;gap:48px var(--st-gap-grid)}
body .sb-galleries .g10-grid .ph{aspect-ratio:var(--pb-ar-portrait)}
body .sb-galleries .g10-grid figcaption{padding-top:14px}

/* 11 Magazine spread */
body .sb-galleries .g11-top{display:grid;grid-template-columns:7fr 5fr;gap:32px 48px;align-items:stretch}
body .sb-galleries .g11-big{min-height:420px}
body .sb-galleries .g11-big .ph{height:100%}
body .sb-galleries .g11-side{display:flex;flex-direction:column;gap:28px}
body .sb-galleries .g11-side .lead{margin-top:-8px}
body .sb-galleries .g11-side figure{margin-top:auto}
body .sb-galleries .g11-side .ph{aspect-ratio:var(--pb-ar-landscape)}
body .sb-galleries .g11-side figcaption,body .sb-galleries .g11-row figcaption{padding-top:12px}
body .sb-galleries .g11-row{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--st-gap-grid);margin-top:48px}
body .sb-galleries .g11-row .ph{aspect-ratio:var(--pb-ar-landscape)}
body .sb-galleries .g11-big figcaption{padding-top:12px}

/* 12 Contact sheet */
body .sb-galleries .g12-info{display:grid;grid-template-columns:1.2fr 1fr auto;border-block:var(--st-line-w) solid var(--pb-text);margin-bottom:32px}
body .sb-galleries .g12-info > *{padding:24px 24px 24px 0}
body .sb-galleries .g12-info > * + *{padding-left:24px;border-left:var(--st-line-w) solid var(--pb-border)}
body .sb-galleries .g12-info .side{display:flex;flex-direction:column;justify-content:space-between;gap:12px}
body .sb-galleries .g12-sheet{display:grid;grid-template-columns:repeat(6,1fr);gap:1px;background:var(--pb-border);border:var(--st-line-w) solid var(--pb-border)}
body .sb-galleries .g12-sheet figure{background:var(--pb-bg);padding:12px 12px 16px}
body .sb-galleries .g12-sheet .ph{aspect-ratio:1;border-radius:0}
body .sb-galleries .g12-sheet figcaption{padding-top:12px}
body .sb-galleries .g12-sheet .cap-t{font-size:var(--st-type-small) !important;font-weight:var(--pb-ui-weight)}

/* 13 Tilted strip */
body .sb-galleries .g13{background:var(--pb-surface)}
body .sb-galleries .g13-hd{text-align:center;max-width:720px;margin:0 auto 56px}
body .sb-galleries .g13-hd .lead{margin:16px auto 0}
body .sb-galleries .g13-strip{display:flex;justify-content:center;align-items:center;padding-block:16px}
body .sb-galleries .g13-strip figure{flex:0 0 auto;width:clamp(150px, 19vw, 300px);margin-inline:-1.2vw;transform:rotate(var(--rot));box-shadow:var(--st-shadow-pop)}
body .sb-galleries .g13-strip figure:nth-child(odd) .ph{aspect-ratio:var(--pb-ar-portrait)}
body .sb-galleries .g13-strip figure:nth-child(even){width:clamp(180px, 23vw, 360px)}
body .sb-galleries .g13-strip figure:nth-child(even) .ph{aspect-ratio:var(--pb-ar-landscape)}
body .sb-galleries .g13-strip figure:nth-child(1){--rot:-3deg}body .sb-galleries .g13-strip figure:nth-child(2){--rot:2.5deg;z-index:2}body .sb-galleries .g13-strip figure:nth-child(3){--rot:-1.5deg;z-index:1}
body .sb-galleries .g13-strip figure:nth-child(4){--rot:2deg;z-index:3}body .sb-galleries .g13-strip figure:nth-child(5){--rot:-2.5deg;z-index:2}body .sb-galleries .g13-strip figure:nth-child(6){--rot:3deg;z-index:1}body .sb-galleries .g13-strip figure:nth-child(7){--rot:-2deg}
body .sb-galleries .g13-foot{text-align:center;margin-top:48px}

/* 14 Woven grid */
body .sb-galleries .g14-hd{display:grid;grid-template-columns:1fr 1fr;gap:16px 64px;align-items:end;margin-bottom:48px}
body .sb-galleries .g14-grid{display:grid;grid-template-columns:repeat(3,1fr);border-radius:var(--st-photo-r);overflow:hidden}
body .sb-galleries .g14-p{position:relative;aspect-ratio:1;margin:0}
body .sb-galleries .g14-p img{position:absolute;inset:0}
body .sb-galleries .g14-t{display:flex;flex-direction:column;justify-content:flex-end;gap:10px;padding:clamp(24px, 3vw, 44px);background:var(--pb-surface)}
body .sb-galleries .g14-t:nth-child(4n){background:var(--pb-primary);color:var(--pb-on-dark)}
body .sb-galleries .g14-t:nth-child(4n) .cap-c{color:var(--pb-muted-on-dark)}
body .sb-galleries .g14-t .h3{font-size:clamp(24px, 19.2px + 1vw, 34px) !important}

/* 15 Index hover */
body .sb-galleries .g15-in{display:grid;grid-template-columns:7fr 5fr;gap:48px 72px;align-items:start}
body .sb-galleries .g15-in .h2{margin-bottom:40px}
body .sb-galleries .g15-list{list-style:none;margin:0;padding:0;border-top:var(--st-line-w) solid var(--pb-text)}
body .sb-galleries .g15-list li{border-bottom:var(--st-line-w) solid var(--pb-border)}
body .sb-galleries .g15-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;gap:16px;padding:22px 0;text-decoration:none;transition:padding .3s ease, color .3s}
body .sb-galleries .g15-row .t{font:400 clamp(24px, 17.6px + 1.6vw, 40px)/1.1 var(--pb-heading-font)}
body .sb-galleries .g15-row .m{font-size:var(--st-type-small) !important;color:var(--pb-muted);text-align:right}
body .sb-galleries .g15-row .thumb{display:none}
body .sb-galleries .g15-row.on{padding-left:16px;color:var(--pb-primary)}
body .sb-galleries .g15-pane{position:sticky;top:32px;aspect-ratio:var(--pb-ar-portrait)}
body .sb-galleries .g15-pane img{position:absolute;inset:0;opacity:0;transition:opacity .45s ease}
body .sb-galleries .g15-pane img.on{opacity:1}

/* 16 Headline cascade */
body .sb-galleries .g16-h{font:var(--pb-heading-weight) calc(var(--st-type-display) * 1.45)/.9 var(--pb-heading-font);letter-spacing:-.035em;margin:0 0 clamp(32px, 4vw, 56px);text-wrap:balance}
body .sb-galleries .g16-row{display:grid;grid-template-columns:repeat(5,1fr);gap:16px;align-items:start}
body .sb-galleries .g16-row figure:nth-child(1) .ph{aspect-ratio:var(--pb-ar-portrait)}
body .sb-galleries .g16-row figure:nth-child(2){margin-top:72px}body .sb-galleries .g16-row figure:nth-child(2) .ph{aspect-ratio:var(--pb-ar-portrait)}
body .sb-galleries .g16-row figure:nth-child(3){margin-top:24px}body .sb-galleries .g16-row figure:nth-child(3) .ph{aspect-ratio:2/3}
body .sb-galleries .g16-row figure:nth-child(4){margin-top:112px}body .sb-galleries .g16-row figure:nth-child(4) .ph{aspect-ratio:1}
body .sb-galleries .g16-row figure:nth-child(5){margin-top:40px}body .sb-galleries .g16-row figure:nth-child(5) .ph{aspect-ratio:var(--pb-ar-portrait)}
body .sb-galleries .g16-row figcaption{padding-top:10px}
body .sb-galleries .g16-foot{display:grid;grid-template-columns:1fr auto;gap:16px 48px;align-items:center;margin-top:56px;padding-top:24px;border-top:var(--st-line-w) solid var(--pb-border)}

/* 17 Split diptych */
body .sb-galleries .g17{padding-bottom:0}
body .sb-galleries .g17-hd{text-align:center;margin:0 auto 40px;max-width:720px}
body .sb-galleries .g17-pair{display:grid;grid-template-columns:1fr 1fr}
body .sb-galleries .g17-pair a{position:relative;display:flex;align-items:flex-end;min-height:clamp(420px, 52vw, 760px);color:var(--pb-on-dark);text-decoration:none;overflow:hidden}
body .sb-galleries .g17-pair img{position:absolute;inset:0;transition:transform .8s ease}
body .sb-galleries .g17-pair a:hover img{transform:scale(var(--st-img-zoom))}
body .sb-galleries .g17-pair a::before{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(to top, rgba(0,0,0,.78), rgba(0,0,0,.25) 65%, rgba(0,0,0,0)), var(--overlay)}
body .sb-galleries .g17-cap{position:relative;z-index:2;padding:clamp(24px, 4vw, 56px);max-width:520px}
body .sb-galleries .g17-cap .h3{font-size:var(--st-type-h2) !important;line-height:var(--st-lh-head) !important}
body .sb-galleries .g17-cap p{margin:12px 0 8px;color:var(--pb-on-dark)}
body .sb-galleries .g17-cap .tlink{color:var(--pb-on-dark)}

/* 18 Museum wall */
body .sb-galleries .g18{background:var(--pb-surface)}
body .sb-galleries .g18-hd{text-align:center;max-width:640px;margin:0 auto 64px}
body .sb-galleries .g18-hd .lead{margin:16px auto 0}
body .sb-galleries .g18-wall{display:flex;flex-wrap:wrap;justify-content:center;align-items:flex-start;gap:56px 40px}
body .sb-galleries .g18-wall figure{flex:0 0 auto}
body .sb-galleries .g18-frame{padding:clamp(16px, 1.7vw, 24px);background:var(--pb-bg);border:8px solid var(--pb-text);box-shadow:var(--st-shadow-pop)}
body .sb-galleries .g18-frame .ph{height:clamp(200px, 21vw, 300px);border-radius:0}
body .sb-galleries .g18-wall figure:nth-child(1) .ph{aspect-ratio:var(--pb-ar-portrait)}
body .sb-galleries .g18-wall figure:nth-child(2) .ph{aspect-ratio:var(--pb-ar-landscape)}
body .sb-galleries .g18-wall figure:nth-child(3) .ph{aspect-ratio:1}
body .sb-galleries .g18-label{margin-top:28px;max-width:260px;padding:12px 16px;background:var(--pb-bg);border:var(--st-line-w) solid var(--pb-border)}

/* 19 Expanding panels */
body .sb-galleries .g19-hd{display:grid;grid-template-columns:1fr 1fr;gap:16px 64px;align-items:end;margin-bottom:40px}
body .sb-galleries .g19-row{display:flex;gap:12px;height:clamp(440px, 44vw, 620px)}
body .sb-galleries .g19-p{position:relative;flex:1 1 0;min-width:0;padding:0;border:0;overflow:hidden;cursor:pointer;text-align:left;color:var(--pb-on-dark);border-radius:var(--st-photo-r);transition:flex-grow .6s cubic-bezier(.2,.7,.2,1);background:var(--pb-text)}
body .sb-galleries .g19-p.on{flex-grow:6}
body .sb-galleries .g19-p img{position:absolute;inset:0}
body .sb-galleries .g19-p::after{content:"";position:absolute;inset:0;background:linear-gradient(to top, rgba(0,0,0,.75), rgba(0,0,0,.2) 65%, rgba(0,0,0,0)), var(--overlay)}
body .sb-galleries .g19-v{position:absolute;left:50%;bottom:28px;z-index:1;writing-mode:vertical-rl;transform:translateX(-50%) rotate(180deg);font:500 var(--st-type-body)/1 var(--pb-body-font);white-space:nowrap;transition:opacity .3s}
body .sb-galleries .g19-c{position:absolute;left:0;bottom:0;z-index:1;width:min(100%, 560px);padding:clamp(24px, 3vw, 40px);opacity:0;visibility:hidden;transform:translateY(12px);transition:opacity .4s .15s, transform .4s .15s, visibility 0s .4s}
body .sb-galleries .g19-c .h3{font-size:var(--st-type-h2) !important;line-height:var(--st-lh-head) !important}
body .sb-galleries .g19-c p{margin-top:12px;color:var(--pb-on-dark)}
body .sb-galleries .g19-p.on .g19-v{opacity:0}
body .sb-galleries .g19-p.on .g19-c{opacity:1;visibility:visible;transform:none;transition:opacity .4s .15s, transform .4s .15s}
body .sb-galleries .g19-p.on .g19-v{visibility:hidden}

/* 20 Album stack */
body .sb-galleries .g20-in{display:grid;grid-template-columns:1fr 1fr;gap:56px 96px;align-items:center}
body .sb-galleries .g20-album{position:relative;display:block;width:100%;padding:0;border:0;background:none;cursor:pointer;aspect-ratio:5/4}
body .sb-galleries .g20-album .ph{position:absolute;inset:6% 6% 6% 6%;box-shadow:var(--st-shadow-pop)}
body .sb-galleries .g20-album .ph:nth-child(1){transform:rotate(-8deg) translate(-7%, 3%)}
body .sb-galleries .g20-album .ph:nth-child(2){transform:rotate(6deg) translate(7%, -2%)}
body .sb-galleries .g20-album .ph:nth-child(3){transform:none}
body .sb-galleries .g20-album .g20-n{position:absolute;right:10%;bottom:10%;padding:12px 16px;background:var(--pb-bg);color:var(--pb-text);font:var(--pb-ui-weight) var(--st-type-small)/1 var(--pb-body-font)}
body .sb-galleries .g20-text .lead{margin:20px 0 32px;padding-bottom:32px;border-bottom:var(--st-line-w) solid var(--pb-border)}
body .sb-galleries .g20-meta{display:grid;grid-template-columns:auto 1fr;gap:8px var(--st-gap-grid);margin:0 0 32px;padding:20px 0;border-block:var(--st-line-w) solid var(--pb-border);font-size:var(--st-type-small) !important}
body .sb-galleries .g20-meta dt{color:var(--pb-muted)}body .sb-galleries .g20-meta dd{margin:0}
body .sb-galleries .g20-hidden{display:none}

/* Lightbox */
body .sb-galleries .lbx{width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:72px 16px 24px;border:0;background:rgba(14,13,12,.94);color:#f5f2ec}
body .sb-galleries .lbx[open]{display:grid;grid-template-rows:1fr auto;place-items:center}
body .sb-galleries .lbx::backdrop{background:transparent}
body .sb-galleries .lbx img{max-width:min(100%, 1400px);max-height:calc(100dvh - 190px);width:auto;height:auto;object-fit:contain}
body .sb-galleries .lbx-cap{text-align:center;margin-top:16px;font-size:var(--st-type-small) !important}
body .sb-galleries .lbx-cap b{font-weight:var(--pb-ui-weight)}
body .sb-galleries .lbx button{position:absolute;width:52px;height:var(--st-btn-h);border:1px solid rgba(245,242,236,.5);background:rgba(14,13,12,.5);color:#f5f2ec;font-size:22px !important;cursor:pointer}
body .sb-galleries .lbx-x{top:12px;right:12px}
body .sb-galleries .lbx-p{left:16px;top:50%;margin-top:-26px}
body .sb-galleries .lbx-n{right:16px;top:50%;margin-top:-26px}

/* ---------- Tablet ---------- */
@media (max-width:1024px){
  body .sb-galleries .g1-cols{columns:2}
  body .sb-galleries .g10-in{grid-template-columns:1fr}
  body .sb-galleries .g10-side{position:static}
  body .sb-galleries .g12-sheet{grid-template-columns:repeat(4,1fr)}
  body .sb-galleries .g12-sheet figure:nth-child(n+9){display:none}
  body .sb-galleries .g18-frame .ph{height:clamp(200px, 26vw, 260px)}
}
/* ---------- Phone ---------- */
@media (max-width:760px){
  body .sb-galleries .g1-hd,body .sb-galleries .g14-hd,body .sb-galleries .g19-hd,body .sb-galleries .g4-in,body .sb-galleries .g6-in,body .sb-galleries .g20-in,body .sb-galleries .g15-in,body .sb-galleries .g11-top{grid-template-columns:1fr}
  body .sb-galleries .g1-hd{margin-bottom:32px}
  body .sb-galleries .g1-cols{column-gap:16px}
  body .sb-galleries .g1-cols figure{margin-bottom:24px}
  body .sb-galleries .g2-grid{grid-template-columns:1fr 1fr;gap:16px}
  body .sb-galleries .g2-grid figure:nth-child(even){margin-top:48px}
  body .sb-galleries .g2-hd{margin-bottom:32px}
  body .sb-galleries .g3-hd{margin-bottom:32px}
  body .sb-galleries .g3-row,body .sb-galleries .g3-row.rev{grid-template-columns:1fr;gap:var(--st-gap-grid)}
  body .sb-galleries .g3-row + .g3-row{margin-top:24px}
  body .sb-galleries .g3-row figure:nth-child(2){margin-top:0}
  body .sb-galleries .g3-row .ph{height:auto;aspect-ratio:var(--pb-ar-landscape)}
  body .sb-galleries .g3-row figcaption{grid-template-columns:1fr}
  body .sb-galleries .g4-board{display:grid;grid-template-columns:1fr 1fr;gap:28px 16px;aspect-ratio:auto;margin-top:16px;padding-top:8px}
  body .sb-galleries .g4-print{position:relative;left:auto!important;top:auto!important;width:auto!important}
  body .sb-galleries .g4-print:nth-child(5){grid-column:1/-1;width:62%!important;justify-self:center}
  body .sb-galleries .g5-top{margin-bottom:24px}
  body .sb-galleries .g5-track{grid-auto-columns:82%}
  body .sb-galleries .g7-grid{grid-template-columns:1fr 1fr;gap:6px}
  body .sb-galleries .g7-hd{margin-bottom:32px}
  body .sb-galleries .g7-grid .zoom{display:none}
  body .sb-galleries .g8-strip{grid-template-columns:repeat(3,1fr)}
  body .sb-galleries .g8-hd{margin-bottom:28px}
  body .sb-galleries .g9-grid{grid-template-columns:1fr 1fr;grid-template-rows:auto;gap:12px}
  body .sb-galleries .g9-grid figure:first-child{grid-row:auto}
  body .sb-galleries .g9-grid figure:first-child{aspect-ratio:var(--pb-ar-landscape)}
  body .sb-galleries .g9-grid .ph{height:auto}
  body .sb-galleries .g9-grid figure:not(:first-child){aspect-ratio:1}
  body .sb-galleries .g9-chip{left:12px;bottom:12px;padding:12px 14px}
  body .sb-galleries .g10-grid{gap:32px 16px}
  body .sb-galleries .g11-big{min-height:0}
  body .sb-galleries .g11-big .ph{aspect-ratio:var(--pb-ar-portrait);height:auto}
  body .sb-galleries .g11-row{grid-template-columns:1fr;gap:var(--st-gap-grid);margin-top:24px}
  body .sb-galleries .g12-info{grid-template-columns:1fr}
  body .sb-galleries .g12-info > *{padding:20px 0}
  body .sb-galleries .g12-info > * + *{padding-left:0;border-left:0;border-top:var(--st-line-w) solid var(--pb-border)}
  body .sb-galleries .g12-sheet{grid-template-columns:1fr 1fr}
  body .sb-galleries .g12-sheet figure:nth-child(n+7){display:none}
  body .sb-galleries .g13-hd{margin-bottom:32px}
  body .sb-galleries .g13-strip figure{width:50vw;margin-inline:-4vw}
  body .sb-galleries .g13-strip figure:nth-child(even){width:58vw}
  body .sb-galleries .g13-foot{margin-top:32px}
  body .sb-galleries .g14-grid{grid-template-columns:1fr}
  body .sb-galleries .g14-p{aspect-ratio:var(--pb-ar-landscape)}
  body .sb-galleries .g14-t,body .sb-galleries .g14-t:nth-child(4n){background:var(--pb-surface);color:var(--pb-text)}
  body .sb-galleries .g14-t:nth-child(4n) .cap-c{color:var(--pb-muted)}
  body .sb-galleries .g14-hd{margin-bottom:32px}
  body .sb-galleries .g15-pane{display:none}
  body .sb-galleries .g15-in .h2{margin-bottom:24px}
  body .sb-galleries .g15-row{grid-template-columns:72px minmax(0,1fr);gap:4px 16px;padding:16px 0;align-items:center}
  body .sb-galleries .g15-row .t{align-self:end}
  body .sb-galleries .g15-row .thumb{display:block;grid-row:span 2;width:72px;height:72px;border-radius:var(--st-photo-r);overflow:hidden}
  body .sb-galleries .g15-row .m{grid-column:2;text-align:left;align-self:start}
  body .sb-galleries .g15-row.on{padding-left:0}
  body .sb-galleries .g16-row{grid-template-columns:1fr 1fr;gap:16px}
  body .sb-galleries .g16-row figure:nth-child(n){margin-top:0}
  body .sb-galleries .g16-row figure:nth-child(even){margin-top:40px}
  body .sb-galleries .g16-row figure:nth-child(5){grid-column:1/-1;margin-top:8px}
  body .sb-galleries .g16-row figure:nth-child(5) .ph{aspect-ratio:var(--pb-ar-landscape)}
  body .sb-galleries .g16-foot{grid-template-columns:1fr;margin-top:32px}
  body .sb-galleries .g17-pair{grid-template-columns:1fr}
  body .sb-galleries .g17-pair a{min-height:420px}
  body .sb-galleries .g17-hd{margin-bottom:28px}
  body .sb-galleries .g18-hd{margin-bottom:40px}
  body .sb-galleries .g18-wall{flex-direction:column;align-items:stretch;gap:40px}
  body .sb-galleries .g18-frame .ph{height:auto;width:100%}
  body .sb-galleries .g18-label{max-width:none;margin-top:20px}
  body .sb-galleries .g19-row{flex-direction:column;height:auto;gap:8px}
  body .sb-galleries .g19-p{flex:none;height:76px;transition:height .5s cubic-bezier(.2,.7,.2,1)}
  body .sb-galleries .g19-p.on{height:400px}
  body .sb-galleries .g19-v{writing-mode:horizontal-tb;transform:translateY(50%);left:20px;bottom:50%}
  body .sb-galleries .g20-in{gap:40px}
}
@media (prefers-reduced-motion: reduce){
  body .sb-galleries *,body .sb-galleries *::before,body .sb-galleries *::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}
}

body .sb-galleries .sbi1{--p: 0.000;}
body .sb-galleries .sbi2{text-decoration:none}
body .sb-galleries .sbi3{margin:0}
body .sb-galleries .sbi4{align-self:center}