/* ============================================================
   스크린샷 미리보기 (js/shot-preview.js) — 2026-10-06
   ============================================================ */

[data-shot] { cursor: zoom-in; }

.sp-tip {
  position: fixed;
  z-index: 9000;
  display: none;
  width: min(480px, 70vw);
  background: var(--panel);
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.6);
  pointer-events: none;
  padding: 4px;
}
.sp-tip.on { display: block; }
.sp-tip img { display: block; width: 100%; min-height: 120px; background: var(--bg-alt); }
.sp-tip .sp-cap { display: none; padding: 4px 4px 2px; color: var(--text); font-size: 0.8rem; line-height: 1.4; }
.sp-tip.has-cap .sp-cap { display: block; }

.sp-box {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: rgba(0, 0, 0, 0.85);
}
.sp-box.on { display: flex; }
.sp-box figure { margin: 0; max-width: min(1400px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.sp-box img { max-width: 100%; max-height: calc(100vh - 100px); object-fit: contain; border: 1px solid var(--border-strong); }
.sp-box figcaption { margin-top: 8px; color: var(--text); font-size: 0.9rem; text-align: center; }
.sp-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: var(--panel);
  color: var(--text-strong);
  font-size: 1.1rem;
  cursor: pointer;
}

/* 표 안 작은 썸네일 */
.sp-thumb {
  display: block;
  width: 72px;
  height: 46px;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--bg-alt);
}
