:lang(zh){font-family:"Songti SC","Songti TC",SimSun,"Noto Serif CJK SC",serif}
:lang(zh) h1,:lang(zh) h2,:lang(zh) h3,button:lang(zh){font-family:inherit}
.gallery figure{display:grid;grid-template-rows:auto 1fr;height:100%}
.gallery figure img{width:100%;object-fit:contain;vertical-align:middle}
.catalogue-group .gallery figure a{display:block;aspect-ratio:1}
.catalogue-group .gallery img{height:100%;aspect-ratio:1}
.gallery figcaption{min-block-size:3em;line-height:1.35}
#photo-viewer{border:0;border-radius:12px;padding:0;max-width:min(96vw,1050px);width:100%;color:#fff;background:#111926;overscroll-behavior:contain}
#photo-viewer::backdrop{background:#101822dc}html:has(#photo-viewer[open]){overflow:hidden}
.viewer-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 12px}
.viewer-bar button{font:inherit;font-weight:700;min-height:44px;border:1px solid #708095;border-radius:6px;background:#243246;color:white;padding:0 13px;cursor:pointer}
.viewer-bar button:disabled{opacity:.45;cursor:default}
.viewer-stage{display:grid;place-items:center;height:min(72dvh,730px);touch-action:pan-y pinch-zoom;user-select:none;overflow:hidden;cursor:grab}
.viewer-stage img{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none}
.viewer-caption{color:#fff;margin:0;text-align:center}
