
.tag-list {
    margin: 0;
    padding-inline: 0;
    list-style: none;
}

.tag-list li {
  /*  padding: 1rem;
    background: #364a71;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem -0.25rem #010e28;
    transition: 300ms;
    cursor: pointer;*/
}

.scroller { 
    max-width: 600px;
    /* border: 3px solid lime; */
}

.scroller__inner {
    display: flex;
    padding-block: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.scroller[data-animated="true"] {
    overflow: hidden;
    -webkit-mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
    mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
}

.scroller[data-animated="true"] .scroller__inner {
    width: max-content;
    flex-wrap: nowrap;
    animation: scroll var(--_animation-duration, 40s) var(--_animation-direction, forwards) linear infinite;
    animation-delay: 1s;
}

.scroller[data-direction='left'] {
    --_animation-direction: forwards;
}
.scroller[data-direction='right'] {
    --_animation-direction: reverse;
}

.scroller[data-direction='slow'] {
    --_animation-duration: 20s;
}
.scroller[data-speed='fast'] {
    --_animation-duration: 10s;
}


@keyframes scroll {
    to {
        transform: translate(calc(-50% - 0.5rem));
    }
}

.img-w {
height: 224px;
    width: 220px;
    transition: 300ms;
/*    filter: grayscale(.2);*/
    cursor: pointer;
}

.scroller[data-animated="true"] .scroller__inner:has(img:hover, img:active, img:focus) {
    -webkit-animation-play-state: paused;
    animation-play-state: paused;
}

.img-w:hover, .img-w:focus, .img-w:active {
    transform: scale(1.1);
    filter: saturate(1.5);
}

.scroller[data-animated="true"] .scroller__inner:has(li:hover, li:active, li:focus) {
    -webkit-animation-play-state: paused;
    animation-play-state: paused;
}

/*li:hover, li:focus, li:active {
    transform: scale(1.1);
    filter: saturate(3);
}
*/
