.zv{position:fixed;inset:0;z-index:90;touch-action:none;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}
.zv[hidden]{display:none}
.zv-bg{position:absolute;inset:0;background:var(--bg);opacity:0;transition:opacity .45s ease}
.zv.on .zv-bg{opacity:1}
.zv-top{position:absolute;left:0;right:0;top:0;z-index:3;height:var(--hh);display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 var(--gut);opacity:0;transition:opacity .25s ease}
.zv-bot{position:absolute;left:0;right:0;bottom:0;z-index:3;display:flex;justify-content:center;align-items:center;gap:22px;padding:14px var(--gut) calc(18px + env(safe-area-inset-bottom));opacity:0;transition:opacity .25s ease}
.zv.on .zv-top,.zv.on .zv-bot{opacity:1;transition:opacity .4s ease .24s}
.zv.zoomed .zv-top,.zv.zoomed .zv-bot{opacity:0;pointer-events:none;transition-delay:0s}
.zv:not(.multi) .zv-bot{display:none}
.zv-t{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.zv-x{flex:none;display:inline-flex;align-items:center;gap:12px;height:44px;font:500 12px/1 var(--f-body);letter-spacing:.12em;text-transform:uppercase}
.zv-x svg{width:13px;height:13px;stroke:var(--ink);stroke-width:1.3;fill:none;transition:transform .45s var(--ease)}
.zv-x:hover svg{transform:rotate(90deg)}
.zv-bot button{width:48px;height:48px;border-radius:50%;border:1px solid var(--line);background:var(--bg);display:grid;place-items:center;transition:border-color .3s,background .3s,color .3s}
.zv-bot button:hover{border-color:var(--ink);background:var(--ink);color:var(--bg)}
.zv-bot svg{width:18px;height:10px;stroke:currentColor;fill:none;stroke-width:1.3}
.zv-p svg{transform:scaleX(-1)}
.zv-c{min-width:52px;text-align:center;font-size:13px;color:var(--mute);font-variant-numeric:tabular-nums}
.zv-img{position:absolute;left:0;top:0;z-index:2;max-width:none;transform-origin:0 0;box-shadow:0 1px 2px rgba(0,0,0,.06),0 30px 60px -30px rgba(0,0,0,.4);cursor:default}
.zv.zoomable .zv-img{cursor:zoom-in}
.zv.zoomed .zv-img{cursor:zoom-out;box-shadow:none}
@media (max-width:900px){.zv-img{box-shadow:0 1px 2px rgba(0,0,0,.06),0 16px 28px -18px rgba(0,0,0,.35)}}
@media (min-width:901px){
.zv-bot{top:0;padding:0;pointer-events:none}
.zv-bot button{position:absolute;top:50%;margin-top:-28px;width:56px;height:56px;pointer-events:auto}
.zv-p{left:var(--gut)}
.zv-n{right:var(--gut)}
.zv-c{position:absolute;left:50%;bottom:24px;transform:translateX(-50%)}
}
