.elementor-widget-nubranch_hero_image_slider {
    display: flex;
    flex: 1 1 auto !important;
    align-self: stretch !important;
    width: 100%;
    min-width: 0;
    min-height: 0;
}

/*
 * Elementor's flex containers can have a stretched computed height without
 * creating a usable percentage-height chain for nested widgets. JavaScript
 * writes the actual available content height to this custom property.
 */
.elementor-widget-nubranch_hero_image_slider.nb-hero-fill-parent {
    height: var(--nb-hero-parent-height) !important;
    min-height: var(--nb-hero-parent-height) !important;
    max-height: var(--nb-hero-parent-height);
}

.elementor-widget-nubranch_hero_image_slider > .elementor-widget-container {
    display: flex;
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
}

.nubranch-hero-slider {
    --nb-hero-duration: 1200ms;
    --nb-hero-easing: cubic-bezier(.45, 0, .2, 1);
    position: relative;
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 620px;
    overflow: hidden;
    isolation: isolate;
    background: #e9e6e0;
}

.nubranch-hero-slider__viewport,
.nubranch-hero-slider__slides {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.nubranch-hero-slider__slide {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    will-change: transform, opacity;
    backface-visibility: hidden;
}

.nubranch-hero-slider__slide.is-active {
    z-index: 1;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate3d(0, 0, 0) scale(1);
}

.nubranch-hero-slider__slide.is-incoming {
    z-index: 2;
    visibility: visible;
    pointer-events: none;
}

.nubranch-hero-slider__slide.is-outgoing {
    z-index: 1;
    visibility: visible;
}

.nubranch-hero-slider__image {
    display: block;
    width: 100%;
    height: 100% !important;
    max-width: none;
    object-fit: cover;
    object-position: 50% var(--nb-hero-position-y, 50%);
    user-select: none;
    -webkit-user-drag: none;
}

/* Fade */
.nubranch-hero-slider[data-effect="fade"] .nubranch-hero-slider__slide.is-incoming {
    opacity: 0;
    transform: translate3d(0, 0, 0);
}

.nubranch-hero-slider[data-effect="fade"] .nubranch-hero-slider__slide.is-incoming.is-animating {
    opacity: 1;
    transition: opacity var(--nb-hero-duration) ease-in-out;
}

.nubranch-hero-slider[data-effect="fade"] .nubranch-hero-slider__slide.is-outgoing.is-animating {
    opacity: 0;
    transition: opacity var(--nb-hero-duration) ease-in-out;
}

/* Horizontal overlay slide. The outgoing image remains stationary underneath. */
.nubranch-hero-slider[data-effect="slide-left"] .nubranch-hero-slider__slide.is-incoming {
    opacity: 1;
    transform: translate3d(var(--nb-hero-direction-x, 100%), 0, 0);
}

.nubranch-hero-slider[data-effect="slide-left"] .nubranch-hero-slider__slide.is-incoming.is-animating {
    transform: translate3d(0, 0, 0);
    transition: transform var(--nb-hero-duration) var(--nb-hero-easing);
}

/* Vertical overlay slide. The outgoing image remains stationary underneath. */
.nubranch-hero-slider[data-effect="slide-up"] .nubranch-hero-slider__slide.is-incoming {
    opacity: 1;
    transform: translate3d(0, var(--nb-hero-direction-y, 100%), 0);
}

.nubranch-hero-slider[data-effect="slide-up"] .nubranch-hero-slider__slide.is-incoming.is-animating {
    transform: translate3d(0, 0, 0);
    transition: transform var(--nb-hero-duration) var(--nb-hero-easing);
}

/* Zoom and fade */
.nubranch-hero-slider[data-effect="zoom-fade"] .nubranch-hero-slider__slide.is-incoming {
    opacity: 0;
    transform: scale(1.08);
}

.nubranch-hero-slider[data-effect="zoom-fade"] .nubranch-hero-slider__slide.is-incoming.is-animating {
    opacity: 1;
    transform: scale(1);
    transition:
        opacity var(--nb-hero-duration) ease-in-out,
        transform var(--nb-hero-duration) var(--nb-hero-easing);
}

.nubranch-hero-slider[data-effect="zoom-fade"] .nubranch-hero-slider__slide.is-outgoing.is-animating {
    opacity: 0;
    transition: opacity var(--nb-hero-duration) ease-in-out;
}

.nubranch-hero-slider__arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 0;
    height: auto;
    margin: 0;
    padding: 14px;
    border: 0;
    border-radius: 50%;
    color: #111;
    background: rgba(255, 255, 255, .9);
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    transition: transform 180ms ease, color 180ms ease, background-color 180ms ease;
    -webkit-appearance: none;
    appearance: none;
}

.nubranch-hero-slider__arrow--previous {
    left: 24px;
}

.nubranch-hero-slider__arrow--next {
    right: 24px;
}

.nubranch-hero-slider__arrow:hover,
.nubranch-hero-slider__arrow:focus-visible {
    transform: translateY(-50%) scale(1.06);
}

.nubranch-hero-slider__arrow:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.nubranch-hero-slider__arrow svg,
.nubranch-hero-slider__arrow i {
    display: block;
    width: 1em;
    height: 1em;
    fill: currentColor;
    color: currentColor;
}

.nubranch-hero-slider.is-loading .nubranch-hero-slider__arrow {
    pointer-events: none;
}

.nubranch-hero-slider__counter {
    position: absolute;
    z-index: 4;
    bottom: 24px;
    display: inline-flex;
    align-items: baseline;
    gap: 0.12em;
    color: #ffffff;
    font-size: 18px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    pointer-events: none;
}

.nubranch-hero-slider__counter--bottom-left {
    left: 24px;
}

.nubranch-hero-slider__counter--bottom-right {
    right: 24px;
}

.nubranch-hero-slider__counter-separator {
    opacity: 0.8;
}

@media (prefers-reduced-motion: reduce) {
    .nubranch-hero-slider__slide,
    .nubranch-hero-slider__arrow {
        transition: none !important;
    }
}

.nubranch-hero-slider__status {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}


/* Ensure Elementor editor wrappers do not cap the measured slider height. */
.elementor-editor-active .elementor-widget-nubranch_hero_image_slider.nb-hero-fill-parent,
.elementor-editor-preview .elementor-widget-nubranch_hero_image_slider.nb-hero-fill-parent {
    overflow: visible;
}
