/* Photos open immediately at their decoded size, then sharpen without moving. */
.photo-expandable{cursor:zoom-in}
.photo-expandable:focus-visible{outline:2px solid #d1f8ff;outline-offset:4px}
.photo-viewer{width:min(1120px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:calc(100svh - 24px);padding:60px 20px 18px;background:#090b0f;color:#f4f2f6;border:1px solid transparent;border-image:linear-gradient(130deg,#00d9ff,#ff00b7 52%,#ff6600) 1;box-shadow:0 24px 100px #000;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.photo-viewer::backdrop{background:#000d}
.photo-viewer figure{margin:0;display:flex;flex-direction:column;align-items:center;gap:12px}
.photo-viewer-image{display:block;width:min(100%,calc((100svh - 146px) * var(--viewer-photo-ratio,1)));aspect-ratio:var(--viewer-photo-ratio,1);max-width:100%;height:auto;max-height:calc(100svh - 146px);object-fit:contain;border:1px solid transparent;border-image:linear-gradient(130deg,#00d9ff,#ff00b7 52%,#ff6600) 1}
.photo-viewer-caption{text-align:center;color:#d1f8ff;font-size:.875rem;line-height:1.45;text-shadow:0 0 5px #00d9ff,0 0 12px #00d9ff80;margin:0;min-height:1.45em}
.photo-viewer .close{position:absolute;inset:10px 12px auto auto;width:42px;height:42px;display:grid;place-items:center;padding:0;border:1px solid transparent;border-radius:50%;background:#090b0f;font-size:1.75rem;line-height:1;cursor:pointer}
.photo-viewer[open]{animation:photo-viewer-in .16s ease-out}
@keyframes photo-viewer-in{from{opacity:.5}to{opacity:1}}
@media(max-width:600px){.photo-viewer{padding:58px 10px 16px}}
@media(prefers-reduced-motion:reduce){.photo-viewer[open]{animation:none}}
@media(forced-colors:active){.photo-viewer,.photo-viewer-image{border:1px solid CanvasText;border-image:none}.photo-viewer-caption{color:CanvasText;text-shadow:none}}
