.image-slideshow {
    padding: 2.667rem 0;
    text-align: center;
}

.image-slideshow .rail {
    display: flex;
    flex-flow: row nowrap;
    justify-content: flex-start;
    align-items: center;
    overflow: auto;
    gap: 1.667rem;

    scrollbar-width: none;
    scroll-snap-type: x mandatory;
}

.image-slideshow .rail figure {
    flex: 1 0 100%;
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    padding: 1em;
    scroll-snap-align: center;
}

.image-slideshow .rail figcaption {
    margin-top: 1em;
}

.image-slideshow .rail img {
    max-height: 500px;
    width: 100%;
    max-width: 100%;
    object-fit: contain;
}

.image-slideshow .controls {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    font-family: var(--heading-type);
    color: var(--optris-blue);
    gap: 1.611rem;
}

.image-slideshow .controls .control {
    background-color: transparent;
    aspect-ratio: 1/1;
    color: var(--optris-blue);
    border: 1px solid var(--optris-blue);
    width: 2.22rem;
    padding: 0;
    border-radius: 4px;
}

.image-slideshow .controls .control::after {
    font-size: 2em;
}

.image-slideshow .controls .control:focus-visible {
    background-color: var(--optris-blue);
    color: white;
}

@media (hover: hover) {
    .image-slideshow .controls .control:hover {
        background-color: var(--optris-blue);
        color: white;
    }
}