/* ── Animated Hero – Frontend styles ── */

.wp-block-socialfactor-animated-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

/* ── Background layer ── */
.wp-block-socialfactor-animated-hero .sfb-ah-bg-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.wp-block-socialfactor-animated-hero .sfb-ah-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* ── Slides wrapper ── */
.sfb-ah-slides-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
}

/* ── Single slide ── */
.sfb-ah-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    pointer-events: none;
}

.sfb-ah-slide.is-active {
    position: relative;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.sfb-ah-slide.is-exiting {
    opacity: 0;
    transform: translateY(-30px);
}

/* ── Slide content ── */
.sfb-ah-slide-content {
    color: #fff;
    font-size: clamp(1.25rem, 3vw, 2.5rem);
    line-height: 1.4;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.sfb-ah-slide-content a {
    color: #fff;
    text-decoration: underline;
}
