.carousel {
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

.carousel-frame {
    position: relative;
    overflow: hidden;
    border-radius: calc(var(--radius) + 4px);
    border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
    background: color-mix(in srgb, var(--soft) 20%, white);
}

.carousel-track {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
    transform: translateX(0);
    transition: transform .35s ease;
}

.carousel-slide {
    flex: 0 0 100%;
}

.carousel-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 3;
    border-radius: calc(var(--radius) + 2px);
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    border-radius: 999px;
    padding: .2rem .55rem;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
    color: color-mix(in srgb, var(--coral) 70%, #333);
}

.carousel-arrow:hover {
    background: #fff;
}

.carousel-arrow--prev {
    left: .4rem;
}

.carousel-arrow--next {
    right: .4rem;
}

.carousel-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    margin-top: .15rem;
}

.carousel-dot {
    width: .5rem;
    height: .5rem;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
    background: color-mix(in srgb, var(--soft) 35%, transparent);
    padding: 0;
    cursor: pointer;
}

.carousel-dot.is-active {
    background: color-mix(in srgb, var(--coral) 70%, white);
    border-color: color-mix(in srgb, var(--coral) 70%, white);
}

@media (max-width: 760px) {
    .carousel-slide img {
        aspect-ratio: 3 / 4;
    }
}
