.scroller {
  /* Existing tunables */
  --gap: 1rem;        /* space between cards */
  --height: auto;     /* row height */
  --speed: 30s;       /* animation duration: lower = faster */
  --half: 1000px;     /* JS sets this to width of the first list */

  /* NEW: scrub offset applied to a viewport wrapper */
  --drag: 0px;

  position: relative;
  overflow: hidden;
  width: 100%;
  padding-block: 2rem;
  isolation: isolate;
  /* Allow vertical page scroll while enabling horizontal dragging */
  touch-action: pan-y;
}

/* If you have back-to-back scrollers */
.scroller + .scroller { border-top: none; }

/* NEW: Viewport wrapper that receives the drag offset */
.scroller__viewport {
  will-change: transform;
  transform: translateX(var(--drag));
}

.scroller__inner {
  display: inline-flex; /* shrink-wrap to content */
  align-items: center;
  height: var(--height);
  animation: marquee var(--speed) linear infinite;
  will-change: transform;
}
.scroller.reverse .scroller__inner { animation-name: marquee-rev; }

.scroller:hover .scroller__inner,
.scroller:focus-within .scroller__inner,
.scroller.is-paused .scroller__inner { animation-play-state: paused; }

@keyframes marquee { to { transform: translateX(calc(-1 * var(--half))); } }
@keyframes marquee-rev { from { transform: translateX(calc(-1 * var(--half))); } to { transform: translateX(0); } }

.items {
  display: inline-flex;
  gap: var(--gap);
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  padding-inline-start: var(--edge-pad); /* left edge spacing (define --edge-pad on .scroller if desired) */
}

/* Cards (common sizes—adjust to your design) */
.card {
  flex: 0 0 auto;
  height: 100%;
  width: 265px;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card-2 {
  flex: 0 0 auto;
  height: 100%;
  width: 420px;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover,
.card:focus-within { transform: translateY(-4px); box-shadow: 0 5px 10px rgba(0,0,0,.38); }
.card-2:hover,
.card-2:focus-within { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,0,0,.38); }

.card__link {
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: end;
  height: 100%;
  text-decoration: none;
  color: inherit;
}
.card__media { aspect-ratio: 53 / 85; width: 100%; height: auto; object-fit: contain; display: block; }
.card__media-2 { aspect-ratio: 39 / 30; width: 100%; height: auto; object-fit: contain; display: block; }
.card__label {
  padding: .75rem .9rem;
  font-size: .95rem;
  line-height: 1.15;
  letter-spacing: .2px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  border-top: 1px solid #272c36;
  background: #12151c;
  color:#e7ebf1;
}

@media (prefers-reduced-motion: reduce) { .scroller__inner { animation: none; } }
