/* ══════════════════════════════════════
   ZOE YANG — Generative Art (Lightbox)
   ══════════════════════════════════════ */

/* ── Canvas (hidden by default, replaces img when art style active) ── */
#lightbox-canvas {
  max-width: 90vw;
  max-height: var(--lightbox-max-h);
  display: none;
  animation: lightbox-zoom-in 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

/* ── Override image max-height to make room for controls ── */
#lightbox img {
  max-height: var(--lightbox-max-h);
}

/* ── Override palette from absolute to flex flow (below photo) ── */
#lightbox .lightbox-palette {
  position: static;
  transform: none;
  margin-top: 12px;
}

/* ── Override counter from absolute to flex flow ── */
#lightbox .lightbox-counter {
  position: static;
  transform: none;
  margin-top: 8px;
}

/* ── Art style bar ── */
.lightbox-art-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 24px;
}

.lightbox-art-btn {
  background: none;
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text-muted);
  padding: 6px 14px;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s, border-color 0.2s;
  outline: none;
  white-space: nowrap;
}

.lightbox-art-btn:hover {
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.25);
}

.lightbox-art-btn.active {
  color: var(--accent);
  border-color: var(--accent);
}

.lightbox-art-btn:focus-visible {
  outline: 1px solid rgba(255,255,255,0.3);
  outline-offset: 2px;
}

/* ── Art tools row (slider, shuffle, save) ── */
.lightbox-art-tools {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lightbox-art-tools.disabled {
  opacity: 0.25;
}

/* ── Slider ── */
.lightbox-art-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 120px;
  height: 2px;
  background: rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  outline: none;
  cursor: pointer;
}

.lightbox-art-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: none;
}

.lightbox-art-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: none;
}

/* ── Action buttons (Shuffle / Save) ── */
.lightbox-art-action {
  background: none;
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text-muted);
  padding: 5px 12px;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s, border-color 0.2s;
  outline: none;
  white-space: nowrap;
}

.lightbox-art-action:hover {
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.25);
}

.lightbox-art-action:focus-visible {
  outline: 1px solid rgba(255,255,255,0.3);
  outline-offset: 2px;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .lightbox-art-bar { gap: 4px; }
  .lightbox-art-btn { padding: 5px 10px; font-size: 10px; }
  .lightbox-art-tools { gap: 8px; }
  .lightbox-art-slider { width: 80px; }

}
