.ekpm-wrap{
    width:100%;
    overflow:hidden;
    display:flex;
    flex-direction:column;
    gap:36px;
    padding:4px 0;
}

.ekpm-row{
    width:100%;
    overflow:hidden;
}

.ekpm-track{
    display:flex;
    width:max-content;
    will-change:transform;
    animation-timing-function:linear;
    animation-iteration-count:infinite;
}

.ekpm-group{
    display:flex;
    flex-shrink:0;
    gap:var(--gap,28px);
    padding-right:var(--gap,28px);
}

.ekpm-item{
    width:480px;
    flex:0 0 480px;
    height:var(--h,265px);
    overflow:hidden;
    border-radius:var(--r,22px);
    background:#eee;
}

.ekpm-item img{
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
    pointer-events:none;
    user-select:none;
}

/*
 * JS calculates the exact width of ONE complete product group and stores
 * it in --distance. Animating by the exact group width makes the reset
 * invisible, so the last product is immediately followed by the first.
 */
.ekpm-row.ekpm-ready.ekpm-rtl .ekpm-track{
    animation-name:ekpmMoveLeft;
    animation-duration:var(--speed,35s);
}

.ekpm-row.ekpm-ready.ekpm-ltr .ekpm-track{
    animation-name:ekpmMoveRight;
    animation-duration:var(--speed,35s);
}

@keyframes ekpmMoveLeft{
    from{transform:translate3d(0,0,0)}
    to{transform:translate3d(calc(-1 * var(--distance,0px)),0,0)}
}

@keyframes ekpmMoveRight{
    from{transform:translate3d(calc(-1 * var(--distance,0px)),0,0)}
    to{transform:translate3d(0,0,0)}
}

/* Hover anywhere over the marquee/images = pause. Move out = resume. */
.ekpm-wrap:hover .ekpm-track,
.ekpm-wrap:focus-within .ekpm-track{
    animation-play-state:paused;
}

@media(max-width:1024px){
    .ekpm-wrap{gap:24px}
    .ekpm-item{width:390px;flex-basis:390px;height:230px}
}

@media(max-width:767px){
    .ekpm-wrap{gap:18px}
    .ekpm-item{width:280px;flex-basis:280px;height:180px}
}
