/* Infinite Marquee Styles - Custom User Implementation */
:root {
    --marquee-width: 100vw;
    --marquee-height: 20vh;
    /* --marquee-elements: 12; */
    /* defined with JavaScript */
    --marquee-elements-displayed: 7;
    /* Increased for wider screens */
    --marquee-element-width: calc(var(--marquee-width) / var(--marquee-elements-displayed));
    --marquee-animation-duration: calc(var(--marquee-elements) * 3s);
}

.marquee {
    width: var(--marquee-width);
    height: var(--marquee-height);
    background-color: transparent;
    /* Keep transparent for overlap */
    color: #eee;
    overflow: hidden;
    position: relative;
    margin: 4rem 0;
}

/* Fading sides */
.marquee:before,
.marquee:after {
    position: absolute;
    top: 0;
    width: 10rem;
    height: 100%;
    content: "";
    z-index: 1;
    pointer-events: none;
    /* Click through */
}

.marquee:before {
    left: 0;
    background: linear-gradient(to right, #000 0%, transparent 100%);
}

.marquee:after {
    right: 0;
    background: linear-gradient(to left, #000 0%, transparent 100%);
}

.marquee-content {
    list-style: none;
    height: 100%;
    display: flex;
    animation: scrolling var(--marquee-animation-duration) linear infinite;
}

/* Pause on hover if desired, currently commented out */
/* .marquee-content:hover {
  animation-play-state: paused;
} */

@keyframes scrolling {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-1 * var(--marquee-element-width) * var(--marquee-elements)));
    }
}

.marquee-content li {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    width: var(--marquee-element-width);
    max-height: 100%;
    font-size: 5rem;
    /* Large icons */
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.marquee-content li:hover {
    color: var(--color-primary, #d4a748);
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 600px) {
    :root {
        --marquee-width: 100vw;
        --marquee-height: 16vh;
        --marquee-elements-displayed: 3;
    }

    .marquee:before,
    .marquee:after {
        width: 5rem;
    }

    .marquee-content li {
        font-size: 3rem;
    }
}