/* The photo opens above the page; the return bar never scrolls out of view. */
#swift-photo-viewer[hidden]{display:none!important}
#swift-photo-viewer{position:fixed;inset:0;z-index:2147483000;display:flex;align-items:center;justify-content:center;padding:12px;padding:max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));background:rgba(7,19,38,.9);overscroll-behavior:contain;box-sizing:border-box;color:#142443;font-family:system-ui,-apple-system,"Segoe UI",sans-serif}
#swift-photo-viewer *{box-sizing:border-box}
#swift-photo-viewer .spv-panel{display:flex;flex-direction:column;width:min(1120px,100%);height:calc(100vh - 40px);height:calc(100dvh - 40px);min-height:0;max-height:min(920px,100%);max-width:100%;overflow:hidden;background:#fff;border-radius:14px;box-shadow:0 20px 70px #0007}
#swift-photo-viewer .spv-header{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border-bottom:1px solid #e0e5ed;background:#fff}
#swift-photo-viewer .spv-title{margin:0;font-size:14px;line-height:1.3;font-weight:650;color:#536071}
#swift-photo-viewer button{font-family:inherit;cursor:pointer;touch-action:manipulation}
#swift-photo-viewer .spv-back{min-height:44px;padding:10px 16px;border:0;border-radius:9px;background:#0b2a6f;color:#fff;font-size:14px;font-weight:750;line-height:1.3;white-space:nowrap}
#swift-photo-viewer .spv-close{display:grid;place-items:center;min-width:44px;width:44px;min-height:44px;padding:0;border:1px solid #dce2eb;border-radius:9px;background:#f4f6f9;color:#0b2a6f;font-size:28px;line-height:1}
#swift-photo-viewer .spv-stage{position:relative;flex:1 1 auto;min-height:0;display:flex;align-items:center;justify-content:center;overflow:hidden;background:#f7f7f6;touch-action:pan-y pinch-zoom}
#swift-photo-viewer .spv-image{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;user-select:none;-webkit-user-drag:none}
#swift-photo-viewer .spv-status{position:absolute;left:14px;right:14px;bottom:12px;margin:0;padding:9px 12px;border-radius:8px;background:#fffffff2;color:#34445d;font-size:13px;text-align:center}
#swift-photo-viewer .spv-status[hidden],#swift-photo-viewer button[hidden]{display:none!important}
#swift-photo-viewer .spv-arrow{position:absolute;top:50%;transform:translateY(-50%);width:44px;height:44px;padding:0;border:1px solid #dce2eb;border-radius:50%;background:#fffffff2;color:#0b2a6f;box-shadow:0 2px 10px #0002;font-size:29px;line-height:1}
#swift-photo-viewer .spv-prev{left:10px}
#swift-photo-viewer .spv-next{right:10px}
#swift-photo-viewer .spv-footer{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 14px;border-top:1px solid #e0e5ed;background:#fff}
#swift-photo-viewer .spv-caption{margin:0;max-height:3em;overflow:auto;font-size:12px;line-height:1.5;color:#536071}
#swift-photo-viewer .spv-counter{flex-shrink:0;font-size:12px;font-weight:650;font-variant-numeric:tabular-nums;color:#0b2a6f}
#swift-photo-viewer button:focus-visible{outline:3px solid #f97316;outline-offset:2px}
dialog .swift-photo-return-control{width:auto!important;min-width:130px!important;height:auto!important;min-height:44px!important;padding:10px 12px!important;border:0!important;border-radius:8px!important;background:#0b2a6f!important;color:#fff!important;font:750 13px/1.3 system-ui,-apple-system,"Segoe UI",sans-serif!important;white-space:nowrap;cursor:pointer}
dialog .swift-photo-return-control:focus-visible{outline:3px solid #f97316;outline-offset:2px}
@media(max-width:600px){#swift-photo-viewer .spv-title{display:none}#swift-photo-viewer .spv-header{padding:8px 10px}#swift-photo-viewer .spv-panel{border-radius:12px}#swift-photo-viewer .spv-back{font-size:13px;padding:10px 13px}#swift-photo-viewer .spv-footer{padding:10px 12px}}
@media(max-height:450px){#swift-photo-viewer{padding:6px}#swift-photo-viewer .spv-panel{height:calc(100vh - 12px);height:calc(100dvh - 12px)}#swift-photo-viewer .spv-header{padding:5px 9px}#swift-photo-viewer .spv-footer{padding:5px 10px}}
