/* The reel — just the pictures, moving */

.page-reel {
  --bg: #111111;
  --accent: #ffd93d;
  --line: #2a2a2a;
  --ink-soft: #cfcfcf;
  --muted: #9a9a9a;
  background: var(--bg);
  color: #fff;
}

/* Keep the shared header and footer light */
.page-reel .site-header,
.page-reel .site-footer {
  --bg: #f8f7f3;
  --line: #e6e3da;
  --ink-soft: #3d3d3d;
  --muted: #6b6b6b;
  color: var(--ink);
}

.page-reel main { overflow-x: clip; }

.reel-hero { padding: clamp(40px, 7vw, 80px) 0 clamp(24px, 4vw, 40px); }

.reel-hero .eyebrow {
  font-family: "Caveat", cursive;
  font-size: 30px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--accent);
}

.reel-hero .page-title { color: #fff; margin: 0; }

.reel {
  display: grid;
  gap: 24px;
  padding-bottom: clamp(40px, 6vw, 72px);
}

/* Each row scrolls sideways: js/reel.js drifts it slowly, and visitors can drag, swipe or trackpad-scroll it */
.reel-row {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 16px 0;
  scrollbar-width: none;
  cursor: grab;
  touch-action: pan-x pan-y;
}

.reel-row::-webkit-scrollbar { display: none; }

.reel-row.is-dragging { cursor: grabbing; user-select: none; }

.reel-row.is-dragging img { pointer-events: none; }

.reel-track {
  display: flex;
  gap: 24px;
  width: max-content;
  padding: 0 24px;
}

.reel-track img { -webkit-user-drag: none; }

.frame {
  position: relative;
  margin: 0;
  flex: none;
  background: #f8f7f3;
  padding: 12px 12px 0;
  border-radius: 4px;
  transform: rotate(-1deg);
  outline: none;
  transition: transform 0.25s;
}

.frame:nth-child(even) { transform: rotate(1.2deg); }

.frame:hover,
.frame:focus-visible,
.frame.is-open { transform: rotate(0deg) scale(1.03); z-index: 1; }

.frame-photo {
  height: clamp(240px, 34vw, 360px);
  min-width: 220px;
  overflow: hidden;
  background: #e7e3d8;
}

.frame-photo img {
  display: block;
  height: 100%;
  width: auto;
  min-width: 100%;
  object-fit: cover;
}

.frame figcaption {
  font-family: "Caveat", cursive;
  font-size: 24px;
  color: #111;
  text-align: center;
  padding: 8px 4px 12px;
  /* Let the photo, not the caption, set the frame's width */
  width: 0;
  min-width: 100%;
  box-sizing: border-box;
}

/* The story behind each photo, shown on hover, keyboard focus or tap */
.frame-note {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 12px;
  bottom: 50px;
  margin: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 18px;
  font-size: 15px;
  line-height: 1.5;
  color: #fff;
  background: rgba(17, 17, 17, 0.86);
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.frame:hover .frame-note,
.frame.is-open .frame-note { pointer-events: auto; }

/* Sits at the bottom when short; scrolls from the top when a story is long */
.frame-note span { margin-top: auto; }

.frame:hover .frame-note,
.frame:focus-visible .frame-note,
.frame.is-open .frame-note { opacity: 1; }

.reel-hint { color: var(--muted); margin: 12px 0 0; }

.reel-back { color: var(--muted); padding-bottom: clamp(40px, 6vw, 72px); }
.reel-back a { color: #fff; }
