/* photo-viewer.css - common/photo-viewer.js 의 CSS 와 같은 내용 (2026-10-29)
   인라인 <style> 을 막는 보안 정책(CSP)을 쓰는 페이지에서 <link rel="stylesheet" href="/common/photo-viewer.css"> 로 연결
   → 연결돼 있으면 photo-viewer.js 가 <style> 을 넣지 않음. photo-viewer.js 의 CSS 를 고치면 이 파일도 같이 고칠 것 */
.pv-lock,.pv-lock body{overflow:hidden!important}
[data-viewer]{cursor:zoom-in}
.pv{position:fixed;inset:0;z-index:10000;display:flex;flex-direction:column;background:var(--pv-bg,rgba(8,8,10,.92));color:var(--pv-fg,#fff);font:14px/1.5 system-ui,-apple-system,"Segoe UI","Noto Sans KR","Malgun Gothic",sans-serif;overscroll-behavior:contain;-webkit-tap-highlight-color:transparent;animation:pv-in .18s ease}
.pv[hidden]{display:none}
@keyframes pv-in{from{opacity:0}
to{opacity:1}
}
.pv button{font:inherit;color:var(--pv-btn-color,#fff);background:var(--pv-btn-bg,rgba(255,255,255,.14));border:0;cursor:pointer}
.pv button:focus-visible{outline:2px solid var(--pv-accent,#fff);outline-offset:2px}
.pv-top{display:flex;align-items:center;gap:10px;min-height:60px;padding:8px 10px 8px 18px}
.pv-title{flex:1;min-width:0;font-weight:600;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pv-count{flex:none;font-size:13px;opacity:.85;white-space:nowrap}
.pv-infobtn{flex:none;height:34px;padding:0 14px;border-radius:17px;font-size:13px}
.pv-infobtn[aria-pressed="true"]{background:var(--pv-accent,#fff);color:#111}
.pv-save{flex:none;display:inline-flex;align-items:center;height:34px;padding:0 14px;border-radius:17px;font-size:13px;color:var(--pv-btn-color,#fff);background:var(--pv-btn-bg,rgba(255,255,255,.14));text-decoration:none}
.pv-save[hidden]{display:none}
.pv-close{flex:none;width:44px;height:44px;border-radius:50%;font-size:28px;line-height:1}
.pv-stage{position:relative;flex:1;min-height:0;overflow:hidden;touch-action:none;user-select:none;-webkit-user-select:none}
.pv-img{position:absolute;inset:0;margin:auto;max-width:calc(100% - 24px);max-height:calc(100% - 16px);object-fit:contain;transform-origin:50% 50%;will-change:transform;transition:opacity .2s;-webkit-user-drag:none}
.pv-img.loading{opacity:.25}
.pv-stage.zoomed .pv-img{cursor:grab}
.pv-stage.dragging .pv-img{cursor:grabbing}
.pv-msg{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;margin:0;opacity:.8}
.pv-nav{position:absolute;top:50%;z-index:2;width:50px;height:50px;margin-top:-25px;border-radius:50%;font-size:32px;line-height:1;padding-bottom:4px}
.pv-prev{left:12px}
.pv-next{right:12px}
.pv-info{position:absolute;left:0;right:0;bottom:0;z-index:3;max-height:34%;overflow-y:auto;margin:0;padding:14px 18px 16px;background:rgba(0,0,0,.72);white-space:pre-line;word-break:keep-all;overflow-wrap:anywhere}
.pv-strip{display:flex;gap:8px;justify-content:safe center;overflow-x:auto;padding:8px 12px calc(10px + env(safe-area-inset-bottom));scrollbar-width:thin}
.pv-strip button{flex:none;width:58px;height:58px;padding:0;border-radius:6px;overflow:hidden;opacity:.55;outline:2px solid transparent;outline-offset:-2px;transition:opacity .2s}
.pv-strip button.on{opacity:1;outline-color:var(--pv-accent,#fff)}
.pv-strip img{display:block;width:100%;height:100%;object-fit:cover}
@media (max-width:640px){.pv-top{min-height:52px;padding-left:14px}
.pv-nav{width:40px;height:40px;margin-top:-20px;font-size:26px}
.pv-prev{left:6px}
.pv-next{right:6px}
.pv-strip button{width:48px;height:48px}
}
@media (hover:none){.pv-nav{opacity:.75}
}
@media (prefers-reduced-motion:reduce){.pv{animation:none}
.pv-img{transition:none}
}
