@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

projects-carousel {
    position: relative;
    display: block;
    overflow: hidden;
    color: white;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: fit-content;
    opacity: 0;
    animation: fade-in 1s ease forwards;
    animation-delay: 1s;
    font-size: 1.3rem;
}

@keyframes project-carousel-row-animation {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translate(0%);
    }
}

projects-carousel-row {
    --child-count: 5;
    display: flex;
    position: relative;
    grid-auto-flow: column;
    --image: url(https://mediabox.groepvanroey.be/m/2250e15a2060c3c4/original/Ekopak-Deinze-Maes-20.jpg);
    --scale: 100%;
    width: fit-content;
    will-change: transform;
    height: 13.5em;
    font-size: inherit;
    gap: 1rem;
    animation: project-carousel-row-animation calc(var(--child-count) * 20s) infinite linear;
    padding-right: 1rem;
    min-width: 100%;

    >a {
        position: static;
        right: 100%;
        display: flex;
        align-items: end;
        background: linear-gradient(to top, black 0%, transparent 100%), var(--image);
        background-size: cover;
        background-position: center;
        aspect-ratio: 1.33/1;
        height: 100%;
        border-radius: 1.67em;
        text-transform: uppercase;
        font-weight: 700;
        padding: .83em 1.67em;
        box-sizing: border-box;
        flex-shrink: 0;
        z-index: 2;
        min-height: 0;
        font-size: inherit;
        cursor: pointer;
        text-decoration: none;
        color: inherit;
    }

    &[reverse] {
        animation-direction: reverse;
    }

    margin-bottom: 25px;
}