.photo-expand{display:block;position:relative;width:100%;padding:0;border:0;background:transparent;color:white;text-align:inherit;cursor:zoom-in;font:inherit}
.photo-expand-hint{position:absolute;bottom:12px;right:12px;padding:5px 9px;background:rgba(0,0,0,.75);color:#fff;font:13px/1.4 Arial,Helvetica,sans-serif;pointer-events:none}
.photo-expand:focus-visible{outline:3px solid white;outline-offset:4px}
.crop>.photo-expand{height:100%}
.image-viewer-open{overflow:hidden}
.image-viewer{box-sizing:border-box;width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;padding:16px 24px;border:0;background:rgba(15,15,15,.98);color:#fff}
.image-viewer[open]{display:flex;flex-direction:column;gap:12px}
.image-viewer::backdrop{background:#111}
.image-viewer-toolbar{display:flex;justify-content:flex-end;align-items:center;gap:24px;flex-shrink:0}
.image-viewer-toolbar a{color:#fff;font:14px/1.5 Arial,Helvetica,sans-serif;text-underline-offset:4px}
.image-viewer-toolbar button{min-width:70px;min-height:44px;padding:8px 14px;border:1px solid #888;background:#222;color:white;cursor:pointer;font:16px/1.5 Arial,Helvetica,sans-serif}
.image-viewer-stage{flex:1;min-height:0;display:flex;justify-content:center;align-items:center}
.image-viewer-stage img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}
.image-viewer-caption{margin:0;text-align:center;color:#ccc;font:14px/1.45 Arial,Helvetica,sans-serif;flex-shrink:0;max-height:20vh;overflow:auto}
@media(max-width:600px){.image-viewer{padding:12px}.photo-expand-hint{bottom:8px;right:8px}}
