

.image-carousel {
    position: relative;
}

.image-carousel--static .image-carousel-arrow,
.image-carousel--static .image-carousel-dots {
    display: none;
}

.image-carousel-track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;

    padding: 8px 0 24px;

    scrollbar-width: none;
    -ms-overflow-style: none;
}

.image-carousel-track::-webkit-scrollbar {
    display: none;
}

.image-carousel-slide {
    flex: 0 0 100%;
    scroll-snap-align: center;
    margin: 0;
    min-width: 0;
}

.image-carousel-slide figcaption {
    margin-top: 14px;
    padding: 0 16px;
    font-size: 15px;
    line-height: 1.5;
    opacity: 0.85;
}

.image-carousel-arrow {
    position: absolute;

    top: auto;
    bottom: 0;
    z-index: 2;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 15px;
    line-height: 36px;
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.image-carousel-arrow .svg-icon {
    display: inline-block;
}

.image-carousel-arrow:hover {
    background: var(--primary);
}

.image-carousel-arrow:active {
    background: var(--primary);
    transform: scale(0.92);
}

.image-carousel-arrow--prev {
    left: 15px;
}

.image-carousel-arrow--next {
    right: 15px;
}

.image-carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 36px;

    gap: 0;
    margin-top: 8px;
}

.image-carousel-dot {
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.image-carousel-dot::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: background 0.2s ease, transform 0.2s ease;
}

.image-carousel-dot:hover::before {
    background: rgba(255, 255, 255, 0.55);
}

.image-carousel-dot:focus-visible {
    outline: none;
}

.image-carousel-dot:focus-visible::before {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

.image-carousel-dot[aria-current="true"]::before {
    background: var(--primary);
    transform: scale(1.3);
}

.image-carousel-live {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (prefers-reduced-motion: reduce) {

    .image-carousel-track,
    .image-carousel-arrow,
    .image-carousel-dot,
    .image-carousel-dot::before {
        scroll-behavior: auto;
        transition: none;
    }
}
