.carousel {
    margin-bottom: calc(var(--margin-double) * 2);
    position: relative;
}

.carousel-cards {
    max-width: 100%;
    text-align: center;
    position: relative;
}

.carousel-pad {
    width: 100%;
    overflow-x: hidden;
    cursor: grab;
    touch-action: pan-y;
}

.carousel-in {
    z-index: 1;
    display: flex;
    flex-wrap: nowrap;
    gap: 2px;
    position: relative;
}

.carousel-in>* {
    /* flex: 0 0 var(--carousel-slide-width, 80%);*/
    max-width: var(--carousel-slide-width, 80%);
}

.carousel-pad.is-dragging {
    cursor: grabbing;
}

.carousel-pad.is-dragging img {
    pointer-events: none;
    user-select: none;
}

.carousel-cards::before,
.carousel-cards::after {
    content: "";
    z-index: 44;
    position: absolute;
    left: 0;
    width: 100%;
    height: 3em;
    background-size: 110% auto;
    pointer-events: none;
}

.carousel-cards::before {
    top: 0;
    background-image: url(img/theme-top-white.svg);
    background-position: bottom center;
}

.carousel-cards::after {
    bottom: 0;
    height: 2em;
    background-image: url(img/theme-bottom-white.svg);
    background-position: top center;
}

.carousel-nav button {
    border: 0;
    background-color: #D9D9D9;
    color: transparent;
    width: 1em;
    height: 1em;
    border-radius: 1em;
    cursor: pointer;
}

.carousel-nav {
    position: relative;
    z-index: 100;
    gap: .6em
}

.carousel-nav button:hover {
    background-color: var(--color-bluegreen);
}

.carousel-nav button.selected {
    background-color: var(--color-green);
}

.carousel-slide {
    position: relative;
}

.carousel-slide a {
    position: absolute;
    bottom: 2em;
    height: 25%;
    width: 50%;
    color: transparent;
    display: block;
    z-index: 44;
}