.gallery-main{cursor:zoom-in}.gallery-expand{position:absolute;left:12px;top:12px;min-height:44px;padding:10px 14px;border:1px solid #ffffff50;background:#000c;color:white;font-size:10px;letter-spacing:1px}.gallery-expand:hover{background:var(--red)}
dialog.photo-viewer{position:fixed;inset:0;width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;padding:0;border:0;background:#050505;color:white;overflow:hidden;overscroll-behavior:none;box-sizing:border-box}dialog.photo-viewer[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto}.photo-viewer::backdrop{background:#000}.photo-toolbar{display:flex;align-items:center;justify-content:space-between;padding:calc(10px + env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) 10px max(16px,env(safe-area-inset-left));border-bottom:1px solid #222;gap:10px;background:#0c0c0c}.photo-toolbar>div{display:flex;gap:7px}.photo-viewer button{min-width:44px;min-height:44px;border:1px solid #444;background:#171717;color:white;font-size:23px;touch-action:manipulation}.photo-viewer button:disabled{opacity:.3;cursor:default}.photo-viewer [data-zoom="reset"]{font:12px var(--font);min-width:58px}.photo-toolbar .photo-close{margin-left:8px}.photo-position{font-size:11px;letter-spacing:1px}.photo-canvas{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center;touch-action:none;user-select:none;cursor:zoom-in;min-height:0}.photo-canvas.zoomed{cursor:grab}.photo-canvas.zoomed:active{cursor:grabbing}.photo-viewer .photo-canvas img{width:100%;height:100%;max-height:none;object-fit:contain;transform-origin:center;pointer-events:none;user-select:none;will-change:transform}.photo-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px max(12px,env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));border-top:1px solid #222;background:#0c0c0c}.photo-bottom>div{text-align:center;min-width:0}.photo-viewer p.photo-caption{font-size:12px;color:#eee;margin:0 0 5px;line-height:1.4}.photo-bottom small{font-size:9px;color:#aaa;line-height:1.5}.photo-bottom button{flex-shrink:0}.photo-viewer button:focus-visible{outline:2px solid var(--red);outline-offset:2px}
