/* ============================================================
   TTCC — RETROSPECTIVE STRIP
   Dark card: heading + intro + item count, a horizontal
   auto-scrolling / drag-to-scroll strip that bleeds past the
   card's own side padding (clipped by the card's rounded
   corners), and a "show more" button opening a full grid
   overlay of the same items.
   Static placeholder items live in js/strip.js.
   ============================================================ */

.strip-wrap {
  margin-top: 90px;
  padding: 0 var(--gutter);
}

.strip-card {
  position: relative;
  max-width: 2000px;
  margin: 0 auto;
  padding: 64px var(--gutter) 60px;
  background: #1a1a1a;
  border-radius: 0;
  /* Clips the strip's bleed at the card's own edge — the strip itself
     stays overflow: visible in the sense that nothing about IT hides
     content; this is what actually does the clipping. */
  overflow: hidden;
}

.strip-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.strip-card__title {
  font-size: 42px;
  font-weight: 500;
  color: #ffffff;
}

.strip-card__intro {
  margin-top: 18px;
  max-width: 640px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.6);
}

.strip-card__count {
  flex: 0 0 auto;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

/* ----- Strip -----
   Bled out past the card's own side padding with a negative margin
   equal to that padding, then padded back in — so content starts
   flush with the card edge instead of the heading's margin. The
   track animates via transform (JS, rAF); this just clips it. */
.strip {
  margin-top: 70px;
  margin-left: calc(var(--gutter) * -1);
  margin-right: calc(var(--gutter) * -1);
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  overflow: hidden;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
}

.strip.is-dragging {
  cursor: grabbing;
}

.strip__track {
  display: flex;
  gap: 16px;
  width: max-content;
  will-change: transform;
}

.strip-item {
  flex: 0 0 auto;
}

.strip-item__label {
  margin-bottom: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

/* One height for every card; the width follows the asset's own ratio, so
   a vertical asset rides narrow and a horizontal one wide. No imposed
   ratio and no object-fit: the media simply fills its card, uncropped,
   with nothing left over around it. */
.strip-item__media {
  display: block;
  height: 360px;
  width: auto;
  border-radius: 0;
  pointer-events: none;      /* dragging the strip must not start an image/video drag */
}

/* ----- Show more ----- */
.strip-card__more {
  margin-top: 60px;
  text-align: center;
}

.strip-more-btn {
  display: inline-block;
  padding: 10px 18px;
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.12);
  font: inherit;
  font-size: 14px;
  color: #ffffff;
  cursor: pointer;
}

/* ============================================================
   OVERLAY — all 8 items in a grid, same heading/intro as the card
   ============================================================ */
.strip-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s linear 0.3s;
}

.strip-overlay.is-open {
  visibility: visible;
  pointer-events: auto;
  transition: visibility 0s;
}

.strip-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: #000000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.strip-overlay.is-open .strip-overlay__backdrop {
  opacity: 1;
}

.strip-overlay__panel {
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(100% - 40px);
  max-width: 1400px;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  padding: 56px var(--gutter) 64px;
  background: #1a1a1a;
  border-radius: 0;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.98);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.strip-overlay.is-open .strip-overlay__panel {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.strip-overlay__close {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 0;
  border: 0;
  background: none;
  color: #ffffff;
  cursor: pointer;
}

.strip-overlay__close svg {
  display: block;
}

.strip-overlay__head {
  max-width: 640px;
}

.strip-overlay__title {
  font-size: 42px;
  font-weight: 500;
  color: #ffffff;
}

.strip-overlay__intro {
  margin-top: 18px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.6);
}

.strip-overlay__grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 24px;
  row-gap: 60px;
}

/* One link per overlay card, wrapping media and label alike. Colour and
   underline already come from base.css; block-level is what makes the
   whole card the hit area. */
.strip-item__link {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

/* Inside the grid the media is sized by the column, not the fixed strip
   height — it still keeps its own ratio. */
.strip-overlay__grid .strip-item__media {
  width: 100%;
  height: auto;
}

@media (max-width: 900px) {
  .strip-card__title,
  .strip-overlay__title {
    font-size: 28px;
  }

  .strip-item__media {
    height: 220px;
  }

  .strip-overlay__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .strip-overlay,
  .strip-overlay__backdrop,
  .strip-overlay__panel {
    transition: none !important;
  }
}
