﻿.marquee
{
    --speed:        30s;
    width:          min(1400px, 96vw);

    margin:         48px auto;
    overflow:       hidden;

    border-radius:  75px; 
    background:     transparent;
}


.track
{
    display:            flex;
    width:              max-content;
    animation:          marquee var(--speed) linear infinite;
    will-change:        transform;
}


.track img
{
        height: clamp(280px, 60vh, 900px);
        width: auto;
        flex: 0 0 auto;
        object-fit: cover;


/*    user-select:        none;
    -webkit-user-drag:  none;
    border-radius:      0;*/
}


.marquee:hover .track
{
    animation-play-state: paused;
}


@media (prefers-reduced-motion: reduce)
{
    .track
    {
        animation: none;
        transform: translateX(0);
    }
}


@keyframes marquee
{
    from
    {
        transform: translateX(0);
    }

    to
    {
        transform: translateX(-50%);
    }
}


@media (max-width: 1050px)
{

    .marquee
    {
        width:          calc(100% + clamp(8px, 4vw, 32px) * 2);
        margin-left:    calc(clamp(8px, 4vw, 32px) * -1);
        margin-right:   calc(clamp(8px, 4vw, 32px) * -1);
        border-radius:  0;
        margin-top:     0;
        margin-bottom:  0;
    }
}
