.cf-widget-container-ef09f033 {
    width: 100%;
    overflow: hidden;
    padding: 40px 0;
    font-family: sans-serif;
}

/* ── Stage ─────────────────────────────────────────────────────────────── */
.cf-stage {
    position: relative;
    height: 420px;
    perspective: 1400px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

/* ── Slide base ─────────────────────────────────────────────────────────── */
.cf-slide {
    position: absolute;
    /* width / height come from inline styles set per-slide */
    transition: transform 0.55s cubic-bezier(.4,0,.2,1),
                opacity  0.55s cubic-bezier(.4,0,.2,1),
                z-index  0s   0.28s;
    border-radius: 14px; /* Default, overridden by Elementor control */
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.35); /* Default, overridden by Elementor control on active */
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    will-change: transform, opacity;
}
.cf-slide img {
    width: 100%;
    height: 100%;
    display: block;
    /* object-fit comes from inline style per-slide */
}
.cf-slide-link {
    display: block;
    width: 100%;
    height: 100%;
}

/* ── Active (centre) ────────────────────────────────────────────────────── */
.cf-slide.cf-pos-0 {
    transform: translateX(0) translateZ(0) rotateY(0deg) scale(1);
    opacity: 1;
    z-index: 10;
    pointer-events: auto;
    /* Box shadow is applied via Elementor control here if set */
}
.cf-slide.cf-pos-0 .cf-slide-link {
    pointer-events: auto !important; /* Enable link only on active slide */
}

/*
  Side positions are generated dynamically in JS via CSS custom properties.
  We define the base rule here; JS sets --cf-tx, --cf-tz, --cf-ry, --cf-op, --cf-zi.
*/
.cf-slide.cf-side {
    transform: translateX(var(--cf-tx,0)) translateZ(var(--cf-tz,0)) rotateY(var(--cf-ry,0deg)) scale(var(--cf-sc,0.85));
    opacity: var(--cf-op, 0.7);
    z-index: var(--cf-zi, 1);
    pointer-events: auto;
}

/* ── Hidden (beyond visible range) ─────────────────────────────────────── */
.cf-slide.cf-hidden {
    transform: translateX(var(--cf-tx,0)) translateZ(-600px) rotateY(var(--cf-ry,0deg)) scale(0.6);
    opacity: 0;
    z-index: 0;
    pointer-events: none;
}

/* ── Info area ──────────────────────────────────────────────────────────── */
.cf-info-area {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    text-align: center;
}
.cf-nav-btn {
    background: #fff; /* Overridden by Elementor */
    border: none;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    font-size: 26px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12); /* Overridden by Elementor */
    color: #333; /* Overridden by Elementor */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s, transform 0.2s;
    flex-shrink: 0;
}
.cf-nav-btn:hover {
    filter: brightness(0.95);
    transform: scale(1.08);
}
.cf-text-content {
    min-width: 260px;
    max-width: 480px;
}
.cf-title {
    margin: 0 0 5px;
    font-size: 22px;
    font-weight: 700;
}
.cf-date {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    margin-bottom: 8px;
}
.cf-desc {
    margin: 0;
    font-size: 13px;
    color: #555;
    line-height: 1.5;
}

/* Instance-scoped navigation sizing; original desktop defaults retained. */
.cf-widget-container-ef09f033 .cf-nav-btn {
    width: var(--cf-nav-size, 42px);
    height: var(--cf-nav-size, 42px);
}
.cf-widget-container-ef09f033 .cf-info-area { gap: var(--cf-nav-gap, 30px); }

@media (max-width: 767px) {
    .cf-widget-container-ef09f033 {
        position: relative;
        isolation: isolate;
        box-sizing: border-box;
        min-width: 0;
    }
    .cf-widget-container-ef09f033 .cf-stage {
        touch-action: pan-y;
    }
    .cf-widget-container-ef09f033 .cf-info-area {
        position: relative;
        z-index: 20;
        display: grid;
        grid-template-columns: minmax(0, 1fr) repeat(2, var(--cf-nav-size, 44px)) minmax(0, 1fr);
        justify-content: center;
        align-items: center;
        column-gap: var(--cf-nav-gap, 16px);
        row-gap: 20px;
        width: 100%;
        min-width: 0;
        padding: 4px 16px;
        box-sizing: border-box;
        overflow: visible;
    }
    .cf-widget-container-ef09f033 .cf-nav-btn {
        display: var(--cf-mobile-nav-display, grid);
        place-items: center;
        position: relative;
        z-index: 21;
        width: var(--cf-nav-size, 44px);
        height: var(--cf-nav-size, 44px);
        min-width: 44px;
        min-height: 44px;
        padding: 0;
        margin: 0;
        border: 1px solid rgba(255,255,255,.22);
        border-radius: 50%;
        background-color: #111111;
        color: #ffffff;
        opacity: 1;
        visibility: visible;
        font-size: 26px;
        line-height: 1;
        cursor: pointer;
        pointer-events: auto;
        -webkit-tap-highlight-color: transparent;
        transition: background-color .25s ease, transform .2s ease, border-color .25s ease;
    }
    .cf-widget-container-ef09f033 .cf-prev { grid-column: 1; grid-row: 1; }
    .cf-widget-container-ef09f033 .cf-next { grid-column: 2; grid-row: 1; }
    .cf-widget-container-ef09f033 .cf-text-content {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-self: center;
        min-width: 0;
        width: calc(100vw - 32px);
        max-width: min(480px, calc(100vw - 32px));
        /* Limit text to the actual widget width even inside narrow columns. */
        overflow-wrap: anywhere;
    }
    .cf-widget-container-ef09f033 .cf-prev { grid-column: 2; }
    .cf-widget-container-ef09f033 .cf-next { grid-column: 3; }
    .cf-widget-container-ef09f033 .cf-text-content { width: 100%; max-width: 480px; }
    .cf-widget-container-ef09f033 .cf-nav-btn:hover {
        border-color: rgba(255,255,255,.5);
        filter: brightness(1.15);
        transform: translateY(-1px);
    }
    .cf-widget-container-ef09f033 .cf-nav-btn:active { transform: scale(.94); }
    .cf-widget-container-ef09f033 .cf-nav-btn:focus-visible { outline: 2px solid #ffffff; outline-offset: 3px; }
}

/* Responsive ratio mode preserves dimensions on older saved instances. */
.cf-widget-container-ef09f033[data-aspect-ratio]:not([data-aspect-ratio=""]) { min-width: 0; max-width: 100%; }
.cf-widget-container-ef09f033[data-aspect-ratio]:not([data-aspect-ratio=""]) .cf-slide {
    width: min(var(--cf-responsive-width, 650px), 90%) !important;
    max-width: 100%; height: auto !important;
    aspect-ratio: var(--cf-aspect-ratio, 16/9);
}
.cf-widget-container-ef09f033[data-aspect-ratio]:not([data-aspect-ratio=""]) .cf-slide img {
    object-fit: cover !important; object-position: center;
}
.cf-widget-container-ef09f033[data-aspect-ratio]:not([data-aspect-ratio=""]) .cf-stage {
    height: var(--cf-responsive-stage-height, 420px) !important;
}
@media (min-width: 768px) and (max-width: 1024px) {
    .cf-widget-container-ef09f033[data-aspect-ratio]:not([data-aspect-ratio=""]) .cf-slide {
        width: min(var(--cf-responsive-width, 480px), 90%) !important;
    }
}
@media (max-width: 767px) {
    .cf-widget-container-ef09f033[data-aspect-ratio]:not([data-aspect-ratio=""]) .cf-slide {
        width: min(var(--cf-responsive-width, 88vw), 90%) !important;
    }
}
