.sic-carousel {
    --sic-side-count: 4;
    --sic-scroll-count: 1;
    --sic-active-width: 185px;
    --sic-active-height: 260px;
    --sic-stage-height: 260px;
    --sic-side-1-width: 150px;
    --sic-side-1-height: 220px;
    --sic-side-2-width: 105px;
    --sic-side-2-height: 205px;
    --sic-side-3-width: 85px;
    --sic-side-3-height: 185px;
    --sic-side-4-width: 70px;
    --sic-side-4-height: 165px;
    --sic-side-5-width: 58px;
    --sic-side-5-height: 145px;
    --sic-side-6-width: 48px;
    --sic-side-6-height: 125px;
    --sic-overlap: 35px;
    --sic-duration: 500ms;
    --sic-nav-position: bottom-center;
    --sic-nav-distance: 16px;
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: visible;
}

.sic-stage {
    position: relative;
    width: 100%;
    height: var(--sic-stage-height);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    touch-action: pan-y;
    user-select: none;
}

.sic-slide {
    position: absolute;
    left: 50%;
    width: var(--sic-active-width);
    height: var(--sic-active-height);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform-origin: center center;
    transition:
        transform var(--sic-duration) cubic-bezier(.22,.61,.36,1),
        width var(--sic-duration) cubic-bezier(.22,.61,.36,1),
        height var(--sic-duration) cubic-bezier(.22,.61,.36,1),
        opacity var(--sic-duration) ease,
        filter var(--sic-duration) ease;
    will-change: transform, width, height, opacity;
}

.sic-slide.sic-level-0 { width: var(--sic-active-width); height: var(--sic-active-height); }
.sic-slide.sic-level-1 { width: var(--sic-side-1-width); height: var(--sic-side-1-height); }
.sic-slide.sic-level-2 { width: var(--sic-side-2-width); height: var(--sic-side-2-height); }
.sic-slide.sic-level-3 { width: var(--sic-side-3-width); height: var(--sic-side-3-height); }
.sic-slide.sic-level-4 { width: var(--sic-side-4-width); height: var(--sic-side-4-height); }
.sic-slide.sic-level-5 { width: var(--sic-side-5-width); height: var(--sic-side-5-height); }
.sic-slide.sic-level-6 { width: var(--sic-side-6-width); height: var(--sic-side-6-height); }

.sic-slide.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.sic-slide.is-active { z-index: 20 !important; }

.sic-slide img,
.sic-image-link {
    display: block;
    width: 100%;
    height: 100%;
}

.sic-slide img {
    max-width: none;
    object-fit: cover;
    pointer-events: none;
}

.sic-stretch .sic-slide img { width: 100%; height: 100%; }

.sic-caption {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    padding: 10px 12px;
    background: rgba(0,0,0,.52);
    color: #fff;
    font-size: 13px;
    line-height: 1.35;
}

.sic-measure-overlap,
.sic-size-measure {
    position: absolute;
    height: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    overflow: hidden;
}

.sic-measure-overlap { width: var(--sic-overlap); }
.sic-size-measure-active { width: var(--sic-active-width); height: var(--sic-active-height); }
.sic-size-measure-level-1 { width: var(--sic-side-1-width); height: var(--sic-side-1-height); }
.sic-size-measure-level-2 { width: var(--sic-side-2-width); height: var(--sic-side-2-height); }
.sic-size-measure-level-3 { width: var(--sic-side-3-width); height: var(--sic-side-3-height); }
.sic-size-measure-level-4 { width: var(--sic-side-4-width); height: var(--sic-side-4-height); }
.sic-size-measure-level-5 { width: var(--sic-side-5-width); height: var(--sic-side-5-height); }
.sic-size-measure-level-6 { width: var(--sic-side-6-width); height: var(--sic-side-6-height); }

.sic-arrows {
    position: relative;
    z-index: 40;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: var(--sic-nav-distance);
}

.sic-arrow {
    appearance: none;
    border: 0;
    width: 30px;
    height: 30px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    background: #17325D;
    line-height: 1;
    transition: opacity .2s ease, transform .2s ease;
}

.sic-arrow:hover { transform: translateY(-1px); }
.sic-arrow:disabled { opacity: .35; cursor: default; transform: none; }
.sic-arrow svg { fill: currentColor; }

.sic-carousel[data-nav-position="bottom-left"] .sic-arrows { justify-content: flex-start; }
.sic-carousel[data-nav-position="bottom-center"] .sic-arrows { justify-content: center; }
.sic-carousel[data-nav-position="bottom-right"] .sic-arrows { justify-content: flex-end; }

.sic-carousel[data-nav-position="sides"] .sic-arrows {
    position: absolute;
    inset: 0;
    height: var(--sic-stage-height);
    margin: 0;
    justify-content: space-between;
    pointer-events: none;
}

.sic-carousel[data-nav-position="sides"] .sic-arrow { pointer-events: auto; }

.sic-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 12px;
}

.sic-dot {
    appearance: none;
    border: 0;
    border-radius: 999px;
    padding: 0;
    width: 8px;
    height: 8px;
    cursor: pointer;
}

.sic-empty {
    padding: 28px;
    border: 1px dashed #c8ccd2;
    text-align: center;
    color: #69727d;
    background: #fafafa;
}

/* v0.3: keep navigation button sizing/padding predictable across themes. */
.sic-carousel .sic-arrow {
    box-sizing: border-box;
}
