/* ===========================================================
   Code Olympiad 2081 - Output prediction galleries
   Shared shell for the round photos: folder sections with
   responsive grids. Token-driven only.
   =========================================================== */

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(var(--space-4xl), 9vw, var(--space-6xl)) var(--space-3xl);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -260px;
  left: 50%;
  transform: translateX(-50%);
  width: 720px;
  height: 560px;
  border-radius: var(--radius-full);
  background: radial-gradient(closest-side, var(--color-phosphor), transparent 72%);
  opacity: 0.06;
  pointer-events: none;
  z-index: -1;
}

.section-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-mono);
  font-size: var(--text-kicker);
  letter-spacing: 0.04em;
  color: var(--color-text-tertiary);
  padding: var(--space-2xs) var(--space-sm);
  border: 1px solid var(--color-border-hairline);
  border-radius: var(--radius-full);
  background: var(--color-surface);
}

.section-chip__dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--color-phosphor);
  box-shadow: 0 0 10px color-mix(in srgb, var(--color-phosphor) 60%, transparent);
}

.hero__title {
  margin-top: var(--space-md);
  font-family: var(--font-display);
  font-size: var(--text-heading);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
}

.hero__accent {
  color: var(--color-phosphor);
}

/* ---------- Gallery ---------- */
.gallery {
  padding-bottom: var(--space-3xl);
}

.folder {
  margin-bottom: var(--space-3xl);
}

.folder:last-child {
  margin-bottom: 0;
}

.folder h2 {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-mono);
  font-size: var(--text-kicker);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-primary);
  padding: var(--space-xs) var(--space-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border-hairline);
  border-radius: var(--radius-full);
}

.folder h2::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--color-accent-strong) 70%, var(--color-phosphor));
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.photo-grid img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border-hairline);
  box-shadow: var(--shadow-card);
  cursor: zoom-in;
  transition: transform var(--motion-base) var(--ease-touch),
    border-color var(--motion-base) var(--ease-touch),
    box-shadow var(--motion-base) var(--ease-touch);
}

@media (hover: hover) {
  .photo-grid img:hover {
    transform: scale(1.03);
    border-color: var(--color-border-strong);
    box-shadow: var(--shadow-float);
  }
}

/* ---------- Fullscreen viewer ---------- */
body.is-lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: var(--space-md);
  background: color-mix(in srgb, var(--color-bg) 92%, transparent);
  backdrop-filter: blur(6px);
  cursor: zoom-out;
}

.lightbox[hidden] {
  display: none;
}

.lightbox__img {
  display: block;
  max-width: 96vw;
  max-height: 94vh;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-hairline);
  background: var(--color-bg-soft);
  box-shadow: var(--shadow-float);
  cursor: default;
}

.lightbox__close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  z-index: 1;
}