.gallery-exhibit {
  --ink:#201d20; --muted:#685e63; --paper:#fcfaf9; --line:#dfd5d2; --gold:#af8965; --red:#7f1a2a;
  --serif:Georgia,"Noto Serif SC",SimSun,serif; --mono:ui-monospace,Consolas,monospace;
  container:exhibit / inline-size; margin:0; background:var(--paper); color:var(--ink);
  font:15px/1.5 system-ui,"Microsoft YaHei",sans-serif; letter-spacing:0; color-scheme:light;
}
body.gallery-exhibit {min-height:100vh;min-height:100svh}
.gallery-exhibit:has(.wall) {display:flex;flex-direction:column}
.gallery-exhibit *, .gallery-exhibit *::before, .gallery-exhibit *::after {box-sizing:border-box}
.gallery-exhibit :is(h1,h2,p,figure,ul) {margin:0}
.gallery-exhibit a:not(.btn) {color:inherit;text-decoration:none}
.gallery-exhibit a:focus-visible, .gallery-exhibit .work-search:focus-visible {outline:2px solid var(--red);outline-offset:3px}
.gallery-exhibit .inner {width:min(2120px,92%);margin-inline:auto}
.gallery-exhibit .bar {border-bottom:1px solid var(--line);background:white}
.gallery-exhibit :where(.bar .inner,.row,.shelf,.foot,.tag) {display:flex;align-items:center;justify-content:space-between;gap:16px}
.gallery-exhibit .bar .inner {min-height:64px}
.gallery-exhibit .brand img {display:block;height:36px;width:auto}
.gallery-exhibit .work-search {background:white;color:var(--ink);border:1px solid var(--line);border-radius:8px;padding:10px 14px;width:min(240px,48vw);font:14px/1.4 system-ui}
.gallery-exhibit .mast {padding:26px 0 22px;align-items:flex-end}
.gallery-exhibit :is(.mark,.index,.folio,.foot) {font:12px/1.5 var(--mono);color:var(--muted)}
.gallery-exhibit .mark {color:var(--red);display:flex;gap:10px;align-items:center}
.gallery-exhibit .mark::before {content:"";width:26px;border-top:3px double var(--gold)}
.gallery-exhibit .mast h1 {font:600 44px/1.18 var(--serif);margin-top:6px}
.gallery-exhibit .mast h1 em {font:italic 35px/1 Georgia,serif;color:var(--red);margin-left:8px}
.gallery-exhibit .folio {display:flex;align-items:baseline;gap:7px}
.gallery-exhibit .folio b {color:var(--red);font:32px/1 var(--serif);font-variant-numeric:tabular-nums}
.gallery-exhibit .shelf {border-top:3px double var(--gold);padding:10px 0}
.gallery-exhibit .shelf h2 {font:600 15px/1.5 system-ui,sans-serif}
.gallery-exhibit .index {font:italic 15px/1.4 var(--serif)}
.gallery-exhibit .wall {list-style:none;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:0 0 20px}
.gallery-exhibit .work {min-width:0;position:relative;border:1px solid var(--line);background:white;border-radius:8px;box-shadow:0 2px 7px #3325210b}
.gallery-exhibit .piece {display:block}
.gallery-exhibit .mount {overflow:hidden;border-radius:7px 7px 0 0}
.gallery-exhibit .plate {position:relative;aspect-ratio:16/10;background:#e8e2de;overflow:hidden}
.gallery-exhibit .plate iframe {position:absolute;inset:0;width:250%;height:250%;transform:scale(.4);transform-origin:top left;border:0;pointer-events:none}
.gallery-exhibit .caption {display:grid;align-content:start;gap:4px;padding:10px 12px}
body.gallery-exhibit .model-tag {display:inline-block;justify-self:start;max-width:100%;padding:2px 6px;border:1px solid #ecc6cc;border-radius:4px;background:#fbf3f4;color:var(--red);font-size:10px;font-weight:500;line-height:16px;overflow-wrap:anywhere}
.gallery-exhibit .caption h2 {font:600 17px/1.4 var(--serif);overflow-wrap:anywhere}
.gallery-exhibit .tag {border-top:1px solid var(--line);margin-top:4px;padding-top:6px;gap:4px;flex-wrap:wrap;color:var(--red)}
.gallery-exhibit .price {font:600 13px/1.4 var(--mono)}
.gallery-exhibit .open {display:inline-flex;align-items:center;justify-content:center;gap:4px;padding:5px 8px;border-radius:5px;background:#f6e4e7;color:var(--red);font:600 12px/1.4 system-ui}
.gallery-exhibit .work:hover .open {background:var(--red);color:white}
.gallery-exhibit .empty {grid-column:1/-1;text-align:center;padding:44px 16px;border-block:1px solid var(--line);color:var(--muted)}
.gallery-exhibit .foot {border-top:1px solid var(--line);padding:14px 0 18px}
@container exhibit (max-width:760px) {
  .gallery-exhibit .wall {grid-template-columns:repeat(2,minmax(0,1fr))}
  .gallery-exhibit .mast {padding:20px 0 16px}
  .gallery-exhibit .mast h1 {font-size:34px}.gallery-exhibit .mast h1 em {font-size:26px}
}
@container exhibit (max-width:580px) {
  .gallery-exhibit .wall {gap:10px}
  .gallery-exhibit .plate iframe {width:625%;height:625%;transform:scale(.16)}
  .gallery-exhibit .bar .inner {min-height:56px}.gallery-exhibit .brand img {height:30px}
  .gallery-exhibit .folio {font-size:11px}.gallery-exhibit .folio b {font-size:24px}
  .gallery-exhibit .mast h1 {font-size:30px}.gallery-exhibit .mast h1 em {font-size:22px;margin-left:2px}
  .gallery-exhibit .caption {padding:8px}.gallery-exhibit .caption h2 {font-size:15px}
}
@container exhibit (max-width:305px) { .gallery-exhibit .wall {grid-template-columns:minmax(0,1fr)} }
