@media (min-width: 576px) {
  .scx-col {
    will-change: transform;
    transition: transform .15s ease-out;
    overflow: hidden;
  }
  .scx-wrapper {
    position: relative;
    overflow: hidden;
    min-height: 160px !important;
    height: 100% !important;
  }
  .scx-wrapper::before,
  .scx-wrapper::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 160px;
    z-index: 2;
    pointer-events: none;
  }
  .scx-wrapper::before {
    top: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.9) 0%, rgba(0,0,0,0) 100%);
  }
  .scx-wrapper::after {
    top: auto;
    bottom: 0;
    background: linear-gradient(0deg, rgba(0,0,0,.9) 0%, rgba(0,0,0,0) 100%);
  }
  .scx-track img {
    padding: 4px;
    height: auto !important;
  }
}

@media (max-width: 575.98px) {
  .scx-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .scx-col {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    margin: 0; 
    padding: 0;
  }
  .scx-track {
    --marquee-distance: 0px;
    --marquee-duration: 8s;
    display: flex;
    gap: 16px;
    animation: scx-marquee var(--marquee-duration) linear infinite;
    height: 100%;
    align-items: center;
    will-change: transform;
    backface-visibility: hidden;
    transform: translate3d(0,0,0);
    -webkit-transform: translate3d(0,0,0);
  }
  .scx-track.scx-reverse {
    animation: scx-marquee-rev var(--marquee-duration) linear infinite;
  }
  .scx-track > * {
    flex-shrink: 0;
    height: 100%;
  }
  .scx-track img {
    height: auto;
    width: 250px;
    object-fit: contain;
    display: block;
    box-sizing: border-box;
  }
  .scx-wrapper::before,
  .scx-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    width: 120px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
  }
  .scx-wrapper::before {
    left: 0;
    background: linear-gradient(90deg, rgba(0,0,0,.9) 0%, rgba(0,0,0,0) 100%);
  }
  .scx-wrapper::after {
    right: 0;
    background: linear-gradient(-90deg, rgba(0,0,0,.9) 0%, rgba(0,0,0,0) 100%);
  }
}

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

  @media (prefers-reduced-motion: reduce) {
    .scx-col, .scx-track {
      animation: none !important;
      transition: none !important;
      transform: none !important;
    }
}

