.gallery-viewer{width:min(1100px,92vw);max-height:92dvh;padding:20px;border:1px solid #aaa393;color:#252820;background:#e8e5e1}.gallery-viewer::backdrop{background:#0c0f0ccc}.gallery-viewer header,.gallery-viewer footer{display:flex;align-items:center;justify-content:space-between;gap:16px}.gallery-viewer button,.gallery-viewer a{color:inherit;background:transparent;border:0;padding:12px;font:inherit;cursor:pointer}.gallery-viewer figure{margin:12px 0;text-align:center}.gallery-viewer img{max-width:100%;max-height:68dvh;object-fit:contain}.gallery-viewer figcaption{padding:12px;font-size:14px}.gallery-viewer[open]{animation:gallery-enter .18s ease-out}@keyframes gallery-enter{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}@media(prefers-reduced-motion:reduce){.gallery-viewer[open]{animation:none}}.gallery-viewer img{touch-action:pan-y pinch-zoom;transition:opacity .18s ease-out}.gallery-viewer[data-image-state=loading] img{opacity:.35}@media(max-width:600px){.gallery-viewer{box-sizing:border-box;width:calc(100vw - 16px);padding:12px}.gallery-viewer button,.gallery-viewer a{min-height:44px}}@media(prefers-reduced-motion:reduce){.gallery-viewer img{transition:none}}
