.honey-capsule-wrap {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    container-type: inline-size;
    container-name: honey-capsule;
}

.honey-capsule-carousel {
    --honey-active-w-requested: 500px;
    --honey-active-h-requested: 780px;
    --honey-side-w-requested: 330px;
    --honey-side-h-requested: 520px;
    --honey-active-w: var(--honey-active-w-requested);
    --honey-active-h: var(--honey-active-h-requested);
    --honey-side-w: var(--honey-side-w-requested);
    --honey-side-h: var(--honey-side-h-requested);
    --honey-space: 50px;
    width: 100%;
    max-width: 100%;
    overflow: visible;
    position: relative;
    display: block;
    /* Allow the larger centered capsule and both neighbouring capsules to
       extend beyond their track cells without being cropped. */
    box-sizing: border-box;
    opacity: 0;
}

.honey-capsule-carousel.honey-capsule-ready {
    opacity: 1;
}

/* With overflow visible, hide every loop duplicate except the three slides
   that belong in the viewport. This prevents cropping without revealing a
   fourth slide at either edge. */
.honey-capsule-ready .honey-capsule-slide:not(.honey-capsule-visible) {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.honey-capsule-ready .honey-capsule-slide.honey-capsule-visible {
    visibility: visible !important;
    pointer-events: auto !important;
}

.honey-capsule-ready .honey-capsule-slide:not(.honey-capsule-visible) *,
.honey-capsule-ready .honey-capsule-slide:not(.honey-capsule-visible) img {
    visibility: hidden !important;
}

.honey-capsule-carousel .swiper-wrapper {
    position: relative;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    width: 100%;
    height: 100%;
    align-items: center;
    min-height: var(--honey-active-h);
    box-sizing: content-box;
    transition-property: transform;
}

.honey-capsule-slide {
    width: var(--honey-side-w) !important;
    height: var(--honey-active-h);
    position: relative;
    flex: 0 0 var(--honey-side-w);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity .35s ease;
    box-sizing: border-box;
    visibility: visible;
}

.honey-capsule-slide.swiper-slide-active {
    /* Keep the track width stable. Changing a slide's width after Swiper has
       calculated its translate position can move the entire track off-screen. */
    width: var(--honey-side-w) !important;
    opacity: 1;
    z-index: 3;
}

.honey-capsule-link {
    display: block;
    line-height: 0;
}

.honey-capsule-image {
    width: var(--honey-side-w);
    height: var(--honey-side-h);
    overflow: hidden;
    border-radius: 999px;
    position: relative;
    transform: translateZ(0);
    transition: width .6s cubic-bezier(.22,.61,.36,1), height .6s cubic-bezier(.22,.61,.36,1), transform .6s cubic-bezier(.22,.61,.36,1);
    will-change: width, height;
    max-width: none;
    flex: 0 0 auto;
}

.honey-capsule-slide.swiper-slide-active .honey-capsule-image {
    width: var(--honey-active-w);
    height: var(--honey-active-h);
}

.honey-capsule-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: 50% var(--honey-focus-y, 50%);
    transform: scale(1.001);
    transition: transform .6s ease;
    opacity: 1;
    visibility: visible;
    max-width: none !important;
    max-height: none !important;
}

.honey-capsule-link:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 5px;
    border-radius: 999px;
}

.honey-capsule-pagination {
    position: relative !important;
    inset: auto !important;
    transform: none !important;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    width: 100% !important;
}

.honey-capsule-pagination .swiper-pagination-bullet {
    display: block;
    width: 15px;
    height: 15px;
    margin: 0 !important;
    border-radius: 50%;
    background: #0A6A50;
    opacity: 1;
    transition: width .25s ease, height .25s ease, transform .25s ease, background-color .25s ease;
}

.honey-capsule-pagination .swiper-pagination-bullet-active {
    width: 30px;
    height: 30px;
}

@media (max-width: 1024px) {
    .honey-capsule-carousel {
        --honey-active-w-requested: 400px;
        --honey-active-h-requested: 620px;
        --honey-side-w-requested: 260px;
        --honey-side-h-requested: 420px;
    }
}

@media (max-width: 767px) {
    .honey-capsule-carousel {
        --honey-active-w-requested: 230px;
        --honey-active-h-requested: 390px;
        --honey-side-w-requested: 170px;
        --honey-side-h-requested: 290px;
    }

    .honey-capsule-slide {
        height: var(--honey-active-h);
    }
}

@media (prefers-reduced-motion: reduce) {
    .honey-capsule-slide,
    .honey-capsule-image,
    .honey-capsule-image img,
    .honey-capsule-pagination .swiper-pagination-bullet {
        transition-duration: .01ms !important;
    }
}
