.art-page .gallery .work img { display:block;width:100%;max-width:100%;height:auto;aspect-ratio:auto;object-fit:contain; }
.art-page .gallery .work picture { display:block; }
.art-page .gallery .work a { cursor:zoom-in; }
.art-page .gallery-hint { margin:0 0 24px;color:#666;font-size:14px; }
#art-zoom { width:min(1440px,96vw);max-width:96vw;max-height:96vh;max-height:96dvh;padding:18px;border:0;border-radius:12px;background:#161616;color:#fff; }
#art-zoom::backdrop { background:rgba(0,0,0,.87); }
#art-zoom .art-zoom-bar { display:flex;align-items:center;justify-content:space-between;gap:12px; }
#art-zoom button,#art-zoom .art-zoom-open { font:inherit;color:inherit;border:1px solid #777;background:transparent;border-radius:6px;padding:8px 12px;min-height:44px;cursor:pointer;text-decoration:none; }
#art-zoom button:disabled { opacity:.45;cursor:default; }
#art-zoom button:focus-visible,#art-zoom a:focus-visible { outline:2px solid #fff;outline-offset:3px; }
#art-zoom-stage { display:flex;align-items:center;justify-content:center;height:72vh;height:72dvh;overflow:auto;margin:14px 0; }
#art-zoom-stage img { display:block;flex:none;width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain; }
#art-zoom-stage img[hidden] { display:none; }
#art-zoom-stage.is-zoomed { display:block; }
#art-zoom-stage.is-zoomed img { max-width:none;max-height:none; }
#art-zoom-caption { margin:0;max-width:900px;font-size:14px;line-height:1.45; }
#art-zoom-status { margin:8px 0;min-height:20px;font-size:13px;color:#ccc; }
#art-zoom .art-zoom-actions { display:flex;align-items:center;flex-wrap:wrap;gap:8px; }
@media(max-width:699px) {
  #art-zoom { padding:12px; }
  #art-zoom-stage { height:62vh;height:62dvh; }
  #art-zoom .art-zoom-bar { align-items:flex-start; }
}
