/**
 * Boost Carousel component runtime.
 *
 * Provides the minimal structural styles required by boost-carousel.js.
 */

.boost-carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.boost-carousel__wrapper {
    overflow: hidden;
    width: 100%;
}

.boost-carousel__track {
    display: flex;
    gap: var(--boost-carousel-gap, 1rem);
    transition: transform var(--boost-carousel-speed, 300ms) ease;
    will-change: transform;
}

.boost-carousel__item {
    flex: 0 0 calc((100% - (var(--boost-carousel-gap, 1rem) * (var(--boost-carousel-per-view, 3) - 1))) / var(--boost-carousel-per-view, 3));
    min-width: 0;
}

.boost-carousel__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.boost-carousel__nav--prev {
    left: 0.5rem;
}

.boost-carousel__nav--next {
    right: 0.5rem;
}

.boost-carousel__dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.boost-carousel__dot {
    width: 0.5rem;
    height: 0.5rem;
    border: 0;
    border-radius: 999px;
    background: var(--boost-current-color);
    opacity: 0.35;
    cursor: pointer;
}

.boost-carousel__dot.is-active {
    opacity: 1;
}

@media (max-width: 768px) {
    .boost-carousel__item {
        flex-basis: calc((100% - var(--boost-carousel-gap, 1rem)) / var(--boost-carousel-per-view-tablet, 2));
    }
}

@media (max-width: 480px) {
    .boost-carousel__item {
        flex-basis: 100%;
    }
}
