#illustration-page {
  padding-top: var(--nav-height, 56px);
  height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-logo {
  font-family: var(--font-ui);
  font-size: 13px;
  letter-spacing: .12em;
  color: var(--white);
  text-decoration: none;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── CAROUSEL ── */

#carousel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
}

#carousel-track {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 0;
  overflow: hidden;
}

.carousel-item {
  position: relative;
  flex-shrink: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.carousel-item.is-centre {
  width: min(460px, 70vw);
  aspect-ratio: 3 / 4;
  z-index: 2;
  cursor: pointer;
  opacity: 1;
  transform: scale(1);
}

.carousel-item.is-neighbour {
  width: min(200px, 22vw);
  aspect-ratio: 3 / 4;
  z-index: 1;
  opacity: 0.5;
  cursor: pointer;
}

.carousel-item.is-neighbour[data-side="left"] {
  transform: translateX(40px) scale(0.85);
}

.carousel-item.is-neighbour[data-side="right"] {
  transform: translateX(-40px) scale(0.85);
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.glitch-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
}

/* ── DATE ── */

#carousel-date {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ── CONTROLS ── */

#carousel-controls {
  display: flex;
  gap: 2rem;
  align-items: center;
}

#carousel-prev,
#carousel-next {
  background: none;
  border: 1px solid var(--border);
  color: var(--white);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: border-color 0.2s;
}

#carousel-prev:hover,
#carousel-next:hover {
  border-color: var(--dim);
}

/* ── TOAST ── */

#toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .12em;
  color: var(--white);
  background: rgba(9,9,9,0.92);
  border: 1px solid var(--border);
  padding: 10px 16px;
  z-index: 200;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

#toast.visible {
  opacity: 1;
}

/* ── LIGHTBOX ── */

#lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

#lightbox.hidden {
  display: none;
}

#lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 0;
}

#lightbox-close {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 102;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
}

#lightbox-img-wrap {
  position: relative;
  z-index: 1;
  max-height: 80svh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#lightbox-img {
  max-height: 80svh;
  max-width: 90vw;
  object-fit: contain;
  display: block;
  cursor: crosshair;
}

#magnifier {
  position: fixed;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 103;
  display: none;
}

#lightbox-meta {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
}

#lightbox-date {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--dim);
}

#lightbox-info-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--dim);
  width: 22px;
  height: 22px;
  font-family: var(--font-mono);
  font-size: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s;
}

#lightbox-info-btn:hover {
  border-color: var(--white);
  color: var(--white);
}

#lightbox-info {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: center;
}

#lightbox-info.hidden {
  display: none;
}

#info-medium {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--dimmer);
}

#info-description {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--dim);
  line-height: 1.8;
  max-width: 400px;
}

/* ── MOBILE ── */

@media (max-width: 640px) {
  .carousel-item.is-neighbour {
    display: none;
  }

  .carousel-item.is-centre {
    width: min(340px, 90vw);
  }
}