.card-gallery{text-align:center;border:1px solid var(--border-subtle);border-radius:var(--radius-card);background:radial-gradient(var(--surface-lilac),var(--surface-subtle));align-self:start;min-width:0;padding:28px 24px 22px}.card-gallery-main{border-radius:var(--radius-sm);cursor:zoom-in;justify-content:center;align-items:center;min-height:460px;padding-bottom:38px;display:flex;position:relative}.card-gallery-main picture{display:contents}.card-gallery-main img{object-fit:contain;width:auto;max-width:100%;height:auto;max-height:490px;filter:drop-shadow(0 18px 15px var(--shadow-slab));display:block}.card-gallery-zoom-hint{color:var(--text-brand);font-size:13px;font-weight:600;position:absolute;bottom:3px}.card-gallery-selectors{justify-content:center;gap:10px;margin-top:17px;display:flex}.card-gallery-selectors[hidden]{display:none}.card-gallery button,.card-photo-dialog button{border:1px solid var(--border-control);border-radius:var(--radius-sm);min-height:44px;color:var(--text-brand);background:var(--surface-card);font:inherit;cursor:pointer;padding:9px 18px;font-size:14px}.card-gallery button[aria-pressed=true],.card-photo-dialog button[aria-pressed=true]{color:var(--text-inverse);background:var(--surface-brand);border-color:var(--surface-brand)}.card-gallery button:hover,.card-photo-dialog button:hover{box-shadow:0 0 0 2px var(--accent-soft)}.card-gallery-caption,.card-gallery-missing{color:var(--text-muted);margin:14px 0 0;font-size:12px;line-height:1.6}.card-gallery-missing{margin-top:5px}.card-gallery-status{color:var(--text-brand);margin:8px 0 0;font-size:12px;line-height:1.5}.card-gallery-status:empty{display:none}:root:has(.card-photo-dialog[open]){overflow:hidden}.card-gallery .card-photo-dialog{box-sizing:border-box;width:100vw;max-width:none;height:100dvh;max-height:none;color:var(--text-primary);background:var(--surface-page);border:0;border-radius:0;margin:0;padding:0;position:fixed;inset:0;overflow:hidden}.card-gallery .card-photo-dialog[open]{grid-template-rows:auto minmax(0,1fr) auto;display:grid}.card-photo-dialog::backdrop{background:var(--surface-overlay)}.card-photo-toolbar{padding:max(12px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) 12px max(16px,env(safe-area-inset-left));border-bottom:1px solid var(--border-subtle);flex-wrap:wrap;align-items:center;gap:10px;display:flex}.card-photo-toolbar h2{font:600 18px var(--font-body);margin:0 auto 0 0}.card-photo-dialog-sides{gap:6px;display:flex}.card-photo-viewport{overscroll-behavior:contain;background:var(--surface-subtle);grid-template-rows:minmax(0,1fr);grid-template-columns:minmax(0,1fr);min-width:0;min-height:0;padding:16px;display:grid;overflow:auto}.card-photo-viewport img{object-fit:contain;width:100%;min-width:0;max-width:none;height:100%;min-height:0;max-height:none;margin:0;display:block}.card-photo-viewport.is-zoomed{display:block}.card-photo-viewport.is-zoomed img{object-fit:contain;width:200%;max-width:none;height:200%;max-height:none}.card-photo-viewport:focus-visible{outline:3px solid var(--focus-ring);outline-offset:-3px}.card-photo-footer{padding:10px max(16px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));border-top:1px solid var(--border-subtle)}.card-photo-help{color:var(--text-muted);margin:0;font-size:12px;line-height:1.5}@media (width<=760px){.card-gallery{padding:20px 16px}.card-gallery-main{min-height:370px}.card-gallery-main img{max-height:400px}.card-photo-toolbar{gap:8px}.card-photo-toolbar h2{flex-basis:100%;font-size:16px}.card-photo-dialog button{padding:8px 12px;font-size:13px}.card-photo-viewport{padding:10px}.card-photo-help{font-size:11px}}
