.cf-widget-container-d4f155f0 {
    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: 35px;
}

/* ── Slide base ─────────────────────────────────────────────────────────── */
.cf-slide {
    position: absolute;
    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;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.35);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    will-change: transform, opacity;
}
.cf-slide img {
    width: 100%;
    height: 100%;
    display: block;
    transition: transform 0.45s cubic-bezier(.25, 1, .5, 1);
}
.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;
}
.cf-slide.cf-pos-0 .cf-slide-link {
    pointer-events: auto !important;
}

.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;
}

.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;
}

/* ── Navigation Buttons ─────────────────────────────────────────────────── */
.cf-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 30;
    background: #fff;
    border: none;
    border-radius: 50%;
    width: 46px;
    height: 46px;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s, transform 0.2s, filter 0.2s;
    flex-shrink: 0;
}
.cf-nav-btn:hover {
    filter: brightness(0.95);
    transform: translateY(-50%) scale(1.08);
}
.cf-prev {
    left: 20px;
}
.cf-next {
    right: 20px;
}

/* ── Active Slide Info ────────────────────────────────────────────────── */
.cf-active-slide-info {
    text-align: center;
    margin-bottom: 30px;
    min-height: 70px;
}
.cf-slide-title {
    margin: 0 0 5px;
    font-size: 24px;
    font-weight: 700;
}
.cf-slide-subtitle {
    font-size: 14px;
    font-weight: 600;
    color: #666;
}

/* ── Info area ──────────────────────────────────────────────────────────── */
.cf-info-area {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}
.cf-info-col {
    flex: 1;
    min-width: 250px;
}
.cf-title {
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 700;
}
.cf-desc {
    margin: 0;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

/* ── Custom Lightbox Overlay ────────────────────────────────────────────── */
.cf-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

body.admin-bar .cf-lightbox {
    top: var(--wp-admin--admin-bar--height, 32px);
    height: calc(100vh - var(--wp-admin--admin-bar--height, 32px));
}
@media screen and (max-width: 782px) {
    body.admin-bar .cf-lightbox {
        top: 46px;
        height: calc(100vh - 46px);
    }
}

.cf-lightbox[aria-hidden="false"] {
    opacity: 1;
    pointer-events: auto;
}

.cf-lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.88);
    cursor: zoom-out;
}

.cf-lightbox-content {
    position: relative;
    max-width: 85%;
    max-height: 80%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: scale(0.9);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cf-lightbox[aria-hidden="false"] .cf-lightbox-content {
    transform: scale(1);
}

.cf-lightbox-img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}

.cf-lightbox-caption {
    margin-top: 15px;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.cf-lightbox-close {
    position: absolute;
    top: -45px;
    right: -45px;
    background: none;
    border: none;
    color: #fff;
    font-size: 40px;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 0.8;
}

.cf-lightbox-close:hover {
    transform: scale(1.1);
    opacity: 1;
}

@media (max-width: 767px) {
    .cf-info-area {
        flex-direction: column;
        gap: 20px;
    }
    .cf-lightbox-close {
        top: -40px;
        right: 0;
    }
}
