.ctioc-image-carousel {
    --ctioc-gap: 20px;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.ctioc-image-carousel *,
.ctioc-image-carousel *::before,
.ctioc-image-carousel *::after {
    box-sizing: border-box;
}

.ctioc-swiper {
    width: 100%;
    overflow: hidden;
}

.ctioc-slide {
    min-width: 0;
}

.ctioc-card-link {
    display: block;
    color: inherit;
    text-decoration: none !important;
}

.ctioc-card {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #e9e9e9;
    isolation: isolate;
}

.ctioc-media {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.ctioc-ratio-1-1 { aspect-ratio: 1 / 1; }
.ctioc-ratio-4-5 { aspect-ratio: 4 / 5; }
.ctioc-ratio-3-4 { aspect-ratio: 3 / 4; }
.ctioc-ratio-4-3 { aspect-ratio: 4 / 3; }
.ctioc-ratio-16-9 { aspect-ratio: 16 / 9; }
.ctioc-ratio-custom { aspect-ratio: auto; height: 350px; }

.ctioc-image,
.ctioc-placeholder {
    display: block;
    width: 100%;
    height: 100%;
}

.ctioc-image {
    object-fit: cover;
    object-position: center center;
    transition: transform .55s ease;
}

.ctioc-hover-zoom-yes .ctioc-card:hover .ctioc-image {
    transform: scale(1.06);
}

.ctioc-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    padding: 24px;
    background: #f1f1f1;
    color: #666;
    text-align: center;
}

.ctioc-overlay {
    position: absolute;
    z-index: 2;
    inset: 0;
    display: flex;
    padding: 24px;
    pointer-events: none;
    background: linear-gradient(to top, rgba(0,0,0,.78) 0%, rgba(0,0,0,.20) 52%, rgba(0,0,0,0) 78%);
}

.ctioc-overlay-v-top .ctioc-overlay { align-items: flex-start; }
.ctioc-overlay-v-center .ctioc-overlay { align-items: center; }
.ctioc-overlay-v-bottom .ctioc-overlay { align-items: flex-end; }

.ctioc-overlay-content {
    width: 100%;
    text-align: left;
}

.ctioc-title {
    margin: 0 0 8px;
    color: #fff;
    font-size: 24px;
    line-height: 1.2;
}

.ctioc-description {
    margin: 0;
    color: #fff;
    font-size: 15px;
    line-height: 1.5;
}

/*
 * Keep overlay content visible on every card in a multi-slide view.
 * Animation is applied when Swiper marks a slide as visible; content is
 * never hidden simply because that slide is not the single active slide.
 */
.ctioc-content-animation-fade .ctioc-overlay-content,
.ctioc-content-animation-fade-up .ctioc-overlay-content {
    opacity: 1;
    transform: translateY(0);
}

.ctioc-content-animation-fade .swiper-slide-visible .ctioc-overlay-content,
.ctioc-content-animation-fade .swiper-slide-active .ctioc-overlay-content {
    animation: ctiocOverlayFade .45s ease both;
}

.ctioc-content-animation-fade-up .swiper-slide-visible .ctioc-overlay-content,
.ctioc-content-animation-fade-up .swiper-slide-active .ctioc-overlay-content {
    animation: ctiocOverlayFadeUp .45s ease both;
}

@keyframes ctiocOverlayFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes ctiocOverlayFadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

.ctioc-arrow {
    position: absolute;
    z-index: 10;
    top: 50%;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(0,0,0,.60);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    cursor: pointer;
    transition: opacity .2s ease, transform .2s ease;
}

.ctioc-arrow:hover,
.ctioc-arrow:focus-visible {
    opacity: .88;
}

.ctioc-arrow:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.ctioc-arrow svg {
    width: 52%;
    height: 52%;
    fill: currentColor;
}

.ctioc-prev { left: 12px; }
.ctioc-next { right: 12px; }

.ctioc-arrow.swiper-button-disabled {
    opacity: .30;
    cursor: default;
}

.ctioc-arrow.swiper-button-lock,
.ctioc-pagination.swiper-pagination-lock {
    display: none !important;
}

.ctioc-pagination {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 16px;
    min-height: 14px;
}

.ctioc-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    margin: 0 !important;
    opacity: 1;
    background: #bdbdbd;
    transition: transform .2s ease, background-color .2s ease;
}

.ctioc-pagination .swiper-pagination-bullet-active {
    background: #111;
    transform: scale(1.2);
}

@media (max-width: 767px) {
    .ctioc-overlay {
        padding: 18px;
    }

    .ctioc-title {
        font-size: 20px;
    }

    .ctioc-description {
        font-size: 14px;
    }
}
