.sa-gallery-page{--gallery-muted:#abb9c1;--gallery-panel:#102632;--gallery-line:#2e4550;--gallery-ink:#f7f4ed;--gallery-bg:#091a25;background:var(--gallery-bg);color:var(--gallery-ink)}
html[data-theme="light"] .sa-gallery-page{--gallery-muted:#53646c;--gallery-panel:#fff;--gallery-line:#d9deda;--gallery-ink:#091a25;--gallery-bg:#f7f4ed}
.gallery-intro{padding-block:5rem 2rem;max-width:1050px;margin-inline:auto}.gallery-intro h1{font-size:clamp(2.8rem,6.5vw,6.2rem);line-height:1.02;letter-spacing:-.055em;margin:1rem 0 1.6rem}.gallery-intro h1 em{color:#d16f43}.gallery-intro .lead{max-width:760px;font-size:1.18rem;line-height:1.7}.gallery-eyebrow{font-size:.8rem;letter-spacing:.16em;text-transform:uppercase;font-weight:700;color:var(--gallery-muted)}
.gallery-hero{margin:2rem 0 4rem}.gallery-hero img{display:block;width:100%;height:auto}.gallery-hero figcaption{padding:1rem 0;font-size:.85rem;color:var(--gallery-muted)}
.gallery-toolbar{display:flex;gap:1rem;align-items:end;flex-wrap:wrap;margin-block:1.5rem 2rem;padding:1.4rem;border:1px solid var(--gallery-line);border-radius:12px;background:var(--gallery-panel)}.gallery-toolbar label{display:grid;gap:.4rem;font-size:.85rem;font-weight:600}.gallery-toolbar select{font:inherit;min-width:190px;max-width:100%;padding:.75rem 2rem .75rem .9rem;border:1px solid var(--gallery-line);border-radius:6px;background:var(--gallery-bg);color:var(--gallery-ink)}.gallery-toolbar output{margin-left:auto;align-self:center;color:var(--gallery-muted);font-size:.9rem}.gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2.3rem 1.4rem;align-items:start}.gallery-card{min-width:0;border:1px solid var(--gallery-line);border-radius:10px;overflow:hidden;background:var(--gallery-panel)}.gallery-card[hidden]{display:none}.gallery-card>a{display:block;position:relative}.gallery-card img{display:block;width:100%;height:auto}.gallery-card a:focus-visible,.gallery-page a:focus-visible{outline:3px solid #d16f43;outline-offset:4px}.gallery-card-copy{padding:1.2rem}.gallery-card h3{font-size:1.12rem;line-height:1.3;letter-spacing:-.02em;margin:.65rem 0}.gallery-card p{font-size:.88rem;line-height:1.55;color:var(--gallery-muted)}.gallery-card details{font-size:.8rem;line-height:1.55;margin-top:1rem;color:var(--gallery-muted)}.gallery-card summary{cursor:pointer;color:var(--gallery-ink)}.gallery-card details a{overflow-wrap:anywhere}.gallery-card .text-link{font-size:.83rem}.gallery-tag{display:inline-block;font-size:.65rem;letter-spacing:.06em;text-transform:uppercase;padding:.28rem .48rem;border:1px solid var(--gallery-line);border-radius:4px}.gallery-tag.latest{border-color:#d16f43;color:var(--gallery-ink)}.gallery-id{font-size:.7rem;color:var(--gallery-muted);float:right}.gallery-notes{margin-block:5rem 3rem;padding:2.5rem;border:1px solid var(--gallery-line);border-radius:14px;background:var(--gallery-panel)}.gallery-notes h2{font-size:clamp(2rem,4vw,3.5rem);line-height:1.1;max-width:760px;margin:0 0 1.4rem}.gallery-notes p{max-width:850px;line-height:1.7;color:var(--gallery-muted)}.gallery-notes details{margin-top:2rem;max-width:900px}.gallery-notes summary{cursor:pointer;font-weight:600}.gallery-disclosure{max-width:900px;padding-block:1rem 3rem;font-size:.85rem;line-height:1.65;color:var(--gallery-muted)}
.art-dialog{width:min(1240px,94vw);max-height:94vh;border:1px solid var(--gallery-line);border-radius:12px;padding:0;background:var(--gallery-bg);color:var(--gallery-ink)}.art-dialog::backdrop{background:rgba(3,12,18,.88)}.art-dialog header{position:sticky;top:0;display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 1.3rem;background:var(--gallery-bg);z-index:1}.art-dialog h2{font-size:1rem;margin:0}.art-dialog button{font:inherit;cursor:pointer;border:1px solid var(--gallery-line);background:var(--gallery-panel);color:var(--gallery-ink);padding:.65rem 1rem;border-radius:5px}.art-dialog img{display:block;width:100%;height:auto;max-height:70vh;object-fit:contain;background:var(--gallery-panel)}.art-dialog p,.art-dialog .dialog-action{margin:1rem 1.3rem;line-height:1.6}.art-dialog .dialog-action{display:inline-block}
@media(max-width:1000px){.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.gallery-intro{padding-top:3rem}.gallery-grid{grid-template-columns:1fr;gap:1.5rem}.gallery-toolbar{padding:1rem}.gallery-toolbar label,.gallery-toolbar select{width:100%}.gallery-toolbar output{margin-left:0}.gallery-notes{padding:1.4rem}.gallery-hero{margin-bottom:2rem}.art-dialog header{padding:.8rem}.gallery-card-copy{padding:1rem}}
.art-dialog header{flex-wrap:wrap;gap:.75rem}.art-dialog h2{flex:1;min-width:0}.art-dialog [data-art-close]{flex:none}.art-dialog-nav{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:.6rem;width:100%}.art-dialog-nav button{min-height:44px;max-width:100%;padding:.65rem .8rem}.art-dialog-nav [data-art-prev]{justify-self:start}.art-dialog-nav [data-art-next]{justify-self:end}.art-dialog-nav output{font-size:.85rem;white-space:nowrap;color:var(--gallery-muted);font-variant-numeric:tabular-nums}.art-dialog button:focus-visible,.art-dialog a:focus-visible{outline:3px solid #d16f43;outline-offset:3px}.art-dialog button:disabled{opacity:.45;cursor:default}.art-dialog .art-dialog-help{font-size:.8rem;color:var(--gallery-muted);margin-block:.7rem}
@media(max-width:380px){.art-dialog-nav{gap:.35rem}.art-dialog-nav button{font-size:.85rem;padding-inline:.6rem}.art-dialog-nav output{font-size:.75rem}}

/* Full-width artwork; text follows so the image is not squeezed by a sidebar. */
.art-dialog{width:calc(100vw - 24px);max-width:none;max-height:calc(100dvh - 24px)}.art-dialog img{max-height:none;width:100%;height:auto}.art-dialog header{padding:.65rem 1rem}.art-dialog-nav{width:auto;min-width:280px}.art-dialog p{max-width:1000px}.art-dialog button{min-height:44px}@media(max-width:700px){.art-dialog{width:calc(100vw - 12px)}.art-dialog-nav{width:100%;min-width:0}}
