.hct-image-carousel {
    --hct-image-carousel-border-color: #266c68;
    --hct-image-carousel-bg: #ffffff;
    --hct-image-carousel-caption-color: #000000;
    --hct-image-carousel-nav-color: var(--hct-image-carousel-border-color);
    --hct-image-carousel-pagination-color: var(--hct-image-carousel-border-color);

    width: 100%;
    max-width: 1400px;
    margin: 3rem auto;
    position: relative;
    padding: 0 3rem;
    box-sizing: border-box;
}

.hct-image-carousel .swiper {
    overflow: hidden;
    padding-bottom: 2.5rem;
}

.hct-image-carousel .swiper-slide {
    height: auto;
    display: flex;
    align-items: stretch;
}

.hct-image-carousel__slide {
    display: flex;
    width: 100%;
}

.hct-image-carousel__figure {
    width: 100%;
    margin: 0;
    padding: 0;
    background: var(--hct-image-carousel-bg);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.hct-image-carousel__figure > a {
    display: block;
    line-height: 0;
}

.hct-image-carousel__img {
    display: block;
    width: 100%;
}

/* Sizing mode: aspect ratio (cropped) */
.hct-image-carousel--aspect .hct-image-carousel__img {
    aspect-ratio: var(--hct-aspect-ratio, 16 / 9);
    height: auto;
    object-fit: cover;
}

/* Sizing mode: fixed pixel height (cropped) */
.hct-image-carousel--height .hct-image-carousel__img {
    height: var(--hct-slide-height, 400px);
    object-fit: cover;
}

.hct-image-carousel--height .hct-image-carousel__figure {
    max-width: var(--hct-img-max-width, none);
    margin-left: auto;
    margin-right: auto;
}

/* Sizing mode: natural image proportions */
.hct-image-carousel--natural .hct-image-carousel__img {
    height: auto;
}

.hct-image-carousel__caption {
    margin: 0.75rem 0 0;
    padding: 0 0.25rem;
    font-size: 0.95rem;
    color: var(--hct-image-carousel-caption-color);
    letter-spacing: 0.03em;
    text-align: center;
    line-height: 1.4;
}

.hct-image-carousel .swiper-button-prev,
.hct-image-carousel .swiper-button-next {
    color: var(--hct-image-carousel-nav-color);
    width: 2.25rem;
    height: 2.25rem;
    margin-top: -1.125rem;
    background: transparent;
    border: none;
    cursor: pointer;
}

.hct-image-carousel .swiper-button-prev::after,
.hct-image-carousel .swiper-button-next::after {
    font-size: 1.5rem;
    font-weight: bold;
}

.hct-image-carousel .swiper-pagination-bullet {
    background: var(--hct-image-carousel-pagination-color);
    opacity: 0.35;
}

.hct-image-carousel .swiper-pagination-bullet-active {
    opacity: 1;
}

@media (max-width: 640px) {
    .hct-image-carousel {
        padding: 0 1.5rem;
    }

    .hct-image-carousel .swiper {
        padding-bottom: 5rem;
    }

    .hct-image-carousel .swiper-button-prev,
    .hct-image-carousel .swiper-button-next {
        top: auto;
        bottom: 0.5rem;
        margin-top: 0;
        width: 44px;
        height: 44px;
    }

    .hct-image-carousel .swiper-button-prev {
        left: calc(50% - 60px);
        right: auto;
    }

    .hct-image-carousel .swiper-button-next {
        right: calc(50% - 60px);
        left: auto;
    }

    .hct-image-carousel .swiper-pagination {
        bottom: 3.5rem;
    }
}

.hct-image-carousel--vcenter .swiper-wrapper {
    align-items: center;
}

.hct-image-carousel--vcenter .swiper-slide {
    align-items: center;
    height: auto;
}

.hct-image-carousel--vcenter .hct-image-carousel__figure {
    justify-content: center;
}
