/* Nine Inch Noize polaroid set — fixed 12-cell grid + zoom overlay.
   Black ground, white text; polaroids sit unframed on the page. */
body {
  background: #000;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
}

.np-header { padding: 48px 16px 0; text-align: center; }
.np-hero { display: block; width: 60%; max-width: 400px; height: auto; margin: 0 auto 24px; }
.np-title {
  margin: 0;
  color: #fff;
  font-size: clamp(1rem, 4vw, 1.4rem);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* 12 cells: 1 column on phones (12x1), 2 on tablet (6x2), 4 on desktop (3x4).
   Breakpoints match the Noize sticker gallery. */
.np-gallery { padding: 24px 16px 32px; }
.np-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}
@media (min-width: 600px)  { .np-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .np-grid { grid-template-columns: repeat(4, 1fr); } }

/* Every cell is the same polaroid-shaped box so the grid stays even whatever
   the photo's proportions; photos letterbox on black inside it. */
.np-cell {
  display: block;
  width: 100%;
  aspect-ratio: 88 / 107;
  padding: 0;
  box-sizing: border-box;
  background: #000;
  border: none;
  border-radius: 2px;
  cursor: pointer;
}
.np-cell img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.np-cell:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* Not-yet-submitted cell: a blank white polaroid with its number. */
.np-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  background: #f4f1ea;
  border: 10px solid #f4f1ea;
  border-bottom-width: 22%;
  color: #bbb;
  font-size: 2.5rem;
  font-weight: 700;
}

.np-footer { background: #000; text-align: center; padding: 8px 0; }
.np-footer img { display: inline-block; vertical-align: middle; max-width: 100%; }

/* Zoom overlay */
.np-zoom {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.94);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  touch-action: pan-y pinch-zoom;
  overscroll-behavior: contain;
  user-select: none;
  -webkit-user-select: none;
}
.np-zoom.open { display: flex; }
.np-zoom-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90vw;
  height: 75vh;
  cursor: pointer;
}
.np-zoom-img { max-width: 100%; max-height: 100%; object-fit: contain; }
.np-zoom-missing {
  display: none;
  align-items: center;
  justify-content: center;
  height: 70%;
  aspect-ratio: 88 / 107;
  max-width: 100%;
  border: 2px dashed rgba(255, 255, 255, 0.4);
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
}
.np-zoom.missing .np-zoom-img { display: none; }
.np-zoom.missing .np-zoom-missing { display: flex; }
.np-zoom-close {
  position: absolute;
  top: 12px;
  right: 16px;
  z-index: 1;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 2.4rem;
  padding: 12px;
}
.np-zoom-info { margin-top: 12px; text-align: center; padding: 0 16px; }
.np-zoom-name { font-weight: 700; }
.np-zoom-side { font-size: 0.85rem; opacity: 0.8; margin-top: 2px; }
.np-zoom-dots { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }
.np-zoom-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}
.np-zoom-dots span.active { background: #fff; }
body.np-zoom-open { overflow: hidden; }
