/* =========================================
   ARCHIVE PAGE — archive.css
   ========================================= */

/* ── Stage ── */
#arch-stage {
  position: fixed;
  inset: 0;
  overflow: visible;
  z-index: 2;
  pointer-events: none;
}

/* ── Card outer ── */
.arch-outer {
  position: absolute;
  left: 0;
  top: 0;
  cursor: none;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: all;
}

/* ── Card inner ── */
.arch-card {
  position: relative;
  display: inline-block;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.32);
  will-change: transform, filter, opacity;
  line-height: 0;
}

/* ── Media (작게) ── */
.arch-media {
  display: block;
  width: clamp(75px, 7vw, 120px);
  height: auto;
  max-height: 22vh;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* ── Lightbox overlay ── */
.arch-lightbox {
  position: fixed;
  inset: 0;
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
}

.arch-lightbox.is-open {
  pointer-events: all;
}

.arch-lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

/* ── Lightbox card ── */
.arch-lb-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.5);
  max-width: min(560px, 82vw);
  max-height: 86vh;
  overflow: hidden;
}

/* ── Lightbox media ── */
.arch-lb-media {
  display: block;
  width: 100%;
  max-height: 58vh;
  object-fit: contain;
  flex-shrink: 1;
  order: 1;
}

/* ── Lightbox label ── */
.arch-lb-label {
  background: var(--accent);
  color: var(--black);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  line-height: 1.7;
  padding: 12px 16px;
  white-space: pre-line;
  max-height: 200px;
  overflow-y: auto;
  flex-shrink: 0;
  order: 2;
}

.arch-lb-label::-webkit-scrollbar { width: 3px; }
.arch-lb-label::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.3); }

/* ── CLICK! 힌트 ── */
.arch-hint {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--black);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  padding: 3px 8px;
  white-space: nowrap;
  pointer-events: none;
  line-height: 1.4;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .arch-media {
    width: clamp(75px, 28vw, 120px);
  }
  .arch-lb-label {
    font-size: 11px;
    max-height: 160px;
  }
}
