.slider {
    overflow: hidden;
    text-align: center;
    position: relative;
    border-radius: 10px;
}

.slides {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 1em;
}
.slides::-webkit-scrollbar {
    display: none;
}

.slides > div {
    scroll-snap-align: start;
    flex-shrink: 0;
    width: 100%;
    aspect-ratio: 1.8;
    background: #eee;
    position: relative;
    display: flex;
    justify-content: space-evenly;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    overflow: hidden;
    z-index: 2;
}

.slides img {
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 1s ease;
}

.slides > div > *:not(img,a) {
    z-index: 1;
    color: #fff;
    margin: 0 calc(10% + 1rem) 2rem;
    padding: 0;
    background: #0009;
    padding: 2px 5px;
    border-radius: 6px;
}

a.coverlink {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 2;
    box-sizing: border-box;
}

a.coverlink:focus-within {
    border: 5px solid black;
}

.slides > div:where(:hover,:focus-within) img {
    transform: scale(1.1);
}

.scroller {
    background: #0000;
    height: 100%;
    width: 10%;
    max-width: 230px;
    min-width: 30px;
    position: absolute;
    z-index: 3;
    transition: background 500ms ease-out;
    color: white;
    font-size: 300%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: monospace;
    cursor: pointer;
    text-shadow: -2px 0 1px black, 2px 0 1px black, 0 -2px 1px black, 0 2px 2px black;
}

.scroller.right {
    right: 0;
}

.scroller:hover {
    background: #000a;
}