/* Instagram-style reels row — four portrait videos.
 * Palette is strictly Lassori: white/#EEEEEE grounds, #1D1616 text, #D84040
 * accent. No warm/beige tones. */

.cc_srrpi96w_fBRQJGGnMv .reels {
  background: var(--reel-bg, var(--color-surface));
  padding: 2.5rem 0 3rem;
}

/* Centred by its own box, not only by text-align — the theme's own heading
 * rules were winning the alignment on their own. No font-family here: the
 * storefront's global face (Montserrat) cascades through, which is the clean
 * sans this section is meant to read in. */
.cc_srrpi96w_fBRQJGGnMv .reels .reels-title {
  display: block;
  width: 100%;
  max-width: 82rem;
  margin: 0 auto 1.75rem;
  padding: 0 1rem;
  text-align: center;
  font-size: var(--text-h3);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--color-text-primary);
}

/* Below the desktop breakpoint the row scrolls on its own rather than
 * squeezing four 9:16 cards into the viewport width. */
.cc_srrpi96w_fBRQJGGnMv .reels-viewport {
  overflow: hidden;
  /* Soften both ends so cards enter and leave without a hard cut. */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 1.5rem,
    #000 calc(100% - 1.5rem),
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 1.5rem,
    #000 calc(100% - 1.5rem),
    transparent 100%
  );
}

.cc_srrpi96w_fBRQJGGnMv .reels-track {
  display: flex;
  width: max-content;
  animation: cc_srrpi96w_fBRQJGGnMv_reels-scroll var(--reel-duration, 30s) linear infinite;
}

/* A tap or a keyboard focus inside the strip holds it still, so a moving
 * card can actually be used. */
.cc_srrpi96w_fBRQJGGnMv .reels-track:active, .cc_srrpi96w_fBRQJGGnMv .reels-track:focus-within {
  animation-play-state: paused;
}

.cc_srrpi96w_fBRQJGGnMv .reels-group {
  display: flex;
  flex: 0 0 auto;
  gap: 0.75rem;
  padding-right: 0.75rem;
}

.cc_srrpi96w_fBRQJGGnMv .reels-group .reel-card {
  flex: 0 0 auto;
  width: 68vw;
}

/* IkasComponentRenderer may wrap the children in its own scope element;
 * dissolving a non-card wrapper keeps the cards as direct flex items. */
.cc_srrpi96w_fBRQJGGnMv .reels-group > :not(.reel-card) {
  display: contents;
}

@keyframes cc_srrpi96w_fBRQJGGnMv_reels-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

/* Readers who ask for less motion get the static, swipeable strip back. */
@media (prefers-reduced-motion: reduce) {
  .cc_srrpi96w_fBRQJGGnMv .reels-viewport {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .cc_srrpi96w_fBRQJGGnMv .reels-viewport::-webkit-scrollbar {
    display: none;
  }

  .cc_srrpi96w_fBRQJGGnMv .reels-track {
    animation: none;
  }

  .cc_srrpi96w_fBRQJGGnMv .reels .reels-group--clone {
    display: none;
  }
}

@media (min-width: 768px) {
  .cc_srrpi96w_fBRQJGGnMv .reels {
    padding: 3.5rem 0 4rem;
  }

  .cc_srrpi96w_fBRQJGGnMv .reels .reels-title {
    font-size: var(--text-h2);
    margin-bottom: 2.25rem;
  }

  .cc_srrpi96w_fBRQJGGnMv .reels-group {
    gap: 1rem;
    padding-right: 1rem;
  }

  .cc_srrpi96w_fBRQJGGnMv .reels-group .reel-card {
    width: 32vw;
  }
}

@media (min-width: 1024px) {
  /* Desktop drops the motion entirely: the clone goes away and the first
   * group becomes the static four-column grid. */
  .cc_srrpi96w_fBRQJGGnMv .reels-viewport {
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .cc_srrpi96w_fBRQJGGnMv .reels-track {
    display: block;
    width: auto;
    animation: none;
  }

  .cc_srrpi96w_fBRQJGGnMv .reels-group {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 82rem;
    margin: 0 auto;
    padding: 0 2rem;
  }

  .cc_srrpi96w_fBRQJGGnMv .reels-group .reel-card {
    width: auto;
  }

  /* Last, and one class heavier than the rule above, so the duplicate can
   * never win the display back and render a second row. */
  .cc_srrpi96w_fBRQJGGnMv .reels .reels-group--clone {
    display: none;
  }
}
