.carousel {
    position: relative;
    display: block;
}

.carousel > div {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: scroll;
    width: 100%;
    cursor: grab;
}

.carousel > div::-webkit-scrollbar {
    display: none;
}

.carousel > div.snap {
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}

.carousel picture {
    min-width: 100%;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.carousel picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
}

.carousel picture.fade {
    position: absolute;
    opacity: 0;
}

.carousel picture.fade.in {
    transition: opacity 1s;
    opacity: 1;
}

.carousel > div.snap > picture {
    scroll-snap-stop: always;
}

.carousel > div.snap > picture:not(:last-child) {
    scroll-snap-align: start;
}

.carousel > div.snap > picture:last-child {
    scroll-snap-align: end;
}

.carousel nav {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 20px;
    text-align: center;
}

.carousel nav a {
    display: inline-block;
    border: 1px solid #999;
    background-color: #FFF3;
    height: 10px;
    border-radius: 6px;
    margin: 5px;
    transition: width 0.3s, background-color 0.3s;
}

.carousel nav a:not(.current) {
    cursor: pointer;
    width: 10px;
}

.carousel nav a.current,
.carousel nav a:not(.current):hover {
    background-color: #FFF6;
}

.carousel nav a.current {
    width: 30px;
}