.cl-carousel {
    --cl-gap: 16px;
    --cl-slides-per-view: 4;
    --cl-image-max-height: none;
    --cl-responsive-slides-per-view: var(--cl-slides-per-view);
    position: relative;
    width: 100%;
    overflow: hidden;
}

.cl-carousel-slides-1 {
    --cl-slides-per-view: 1;
}

.cl-carousel-slides-2 {
    --cl-slides-per-view: 2;
}

.cl-carousel-slides-3 {
    --cl-slides-per-view: 3;
}

.cl-carousel-slides-4 {
    --cl-slides-per-view: 4;
}

.cl-carousel-slides-5 {
    --cl-slides-per-view: 5;
}

.cl-carousel-slides-6 {
    --cl-slides-per-view: 6;
}

.cl-carousel-slides-7 {
    --cl-slides-per-view: 7;
}

.cl-carousel-slides-8 {
    --cl-slides-per-view: 8;
}

.cl-carousel-viewport {
    width: 100%;
    overflow: hidden;
}

.cl-carousel-track {
    display: flex;
    align-items: flex-start;
    gap: var(--cl-gap);
    transition: transform 280ms ease, height 180ms ease;
    will-change: transform;
}

.cl-carousel-slide {
    min-width: 0;
    align-self: flex-start;
    flex: 0 0 calc((100% - (var(--cl-gap) * (var(--cl-responsive-slides-per-view) - 1))) / var(--cl-responsive-slides-per-view));
}

.cl-carousel-link {
    display: block;
    width: 100%;
    color: inherit;
    text-decoration: none;
}

.cl-carousel .cl-carousel-image {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    aspect-ratio: unset !important;
    object-fit: contain !important;
    border-radius: 8px !important;
}

.cl-carousel.has-image-max-height .cl-carousel-link,
.cl-carousel.has-image-max-height .cl-carousel-slide {
    text-align: center;
}

.cl-carousel.has-image-max-height .cl-carousel-image {
    width: auto !important;
    max-width: 100% !important;
    max-height: var(--cl-image-max-height) !important;
    margin-right: auto !important;
    margin-left: auto !important;
}

.cl-carousel-button {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 42px;
    height: 42px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
    color: #111;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.cl-carousel-prev {
    left: 12px;
}

.cl-carousel-next {
    right: 12px;
}

.cl-carousel-button:hover,
.cl-carousel-button:focus {
    background: #fff;
}

.cl-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.cl-carousel-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #b8bcc2;
    cursor: pointer;
}

.cl-carousel-dot.is-active {
    background: #111;
}

@media (max-width: 900px) {
    .cl-carousel {
        --cl-responsive-slides-per-view: min(2, var(--cl-slides-per-view));
    }
}

@media (max-width: 767px) {
    .cl-carousel {
        --cl-responsive-slides-per-view: 1;
        --cl-gap: 12px;
    }

    .cl-carousel-button {
        width: 36px;
        height: 36px;
        font-size: 26px;
    }
}
