/* ---------- image viewer ---------- */

.shot img { cursor: zoom-in; }
body.iv-open { overflow: hidden; }
.iv-back {
  position: fixed; inset: 0; z-index: 70;
  background: var(--overlay);
  display: flex; flex-direction: column;
}
.iv-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 12px;
  background: var(--surface); border-bottom: 1px solid var(--border-hi);
}
.iv-title { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iv-pct { min-width: 52px; }
.iv-stage {
  flex: 1; min-height: 0; position: relative; overflow: hidden;
  display: grid; place-items: center;
  cursor: grab; touch-action: none; user-select: none;
}
.iv-stage.grabbing { cursor: grabbing; }
.iv-img {
  max-width: none; max-height: none;
  transform-origin: center center; will-change: transform;
  background: var(--img-bg);
}
