/* =========================================================
   PHOTO HERO SLIDER
   Full-background image slides with text overlay,
   adjustable height, focal point, spacing, radius,
   arrows, dots, and per-slide color overrides.
========================================================= */

.ec-photo-hero-slider {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

/* The track itself should not clip the per-slide margins */
.ec-photo-hero-track {
    position: relative;
    width: 100%;
    min-height: var(--slider-height, 620px);
    overflow: visible;
    box-sizing: border-box;
    isolation: isolate;
}

/* Each slide can control its own spacing and radius */
.ec-photo-hero-slide {
    position: absolute;
    top: var(--hero-spacing-top, 0px);
    right: var(--hero-spacing-right, 0px);
    bottom: var(--hero-spacing-bottom, 0px);
    left: var(--hero-spacing-left, 0px);

    border-radius: var(--hero-radius, 0px);
    overflow: hidden;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.6s ease, transform 0.6s ease;

    background-image: var(--hero-bg-image);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: var(--hero-bg-position, center center);

    box-sizing: border-box;
}

.ec-photo-hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 2;
}

.ec-photo-hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(8, 15, 28, 0.0) 0%,
            rgba(8, 15, 28, 0.0) 42%,
            rgba(8, 15, 28, 0.0) 100%
        );
    z-index: 0;
}

.ec-photo-hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 30%, rgba(255,255,255,0.0), transparent 30%),
        radial-gradient(circle at 20% 80%, rgba(39,173,52,0.0), transparent 25%);
    z-index: 0;
    pointer-events: none;
}

.ec-photo-hero__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    min-height: inherit;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 32px;
    padding: 48px 56px;
    box-sizing: border-box;
}

.ec-photo-hero__copy {
    max-width: 680px;
    color: #ffffff;
}

.ec-photo-hero__tag {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--hero-tag-bg, rgba(255,255,255,0.0));
    color: var(--hero-tag-color, #0f172a);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.ec-photo-hero__title {
    margin: 0 0 14px;
    font-size: clamp(2.2rem, 4vw, 4.4rem);
    line-height: 1.02;
    font-weight: 800;
    color: var(--hero-title-color, #ffffff);
    letter-spacing: -0.04em;
}

.ec-photo-hero__text {
    margin: 0 0 26px;
    max-width: 560px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--hero-text-color, rgba(255,255,255,0.92));
}

.ec-photo-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.ec-photo-hero__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 22px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
    white-space: nowrap;
}

.ec-photo-hero__btn:hover {
    transform: translateY(-1px);
}

.ec-photo-hero__btn--primary {
    background: var(--hero-btn-primary-bg, linear-gradient(135deg, #ff3d00, #ff6a00));
    color: var(--hero-btn-primary-color, #ffffff);
    box-shadow: 0 14px 30px rgba(255, 61, 0, 0.28);
}

.ec-photo-hero__btn--outline {
    background: var(--hero-btn-outline-bg, rgba(255,255,255,0.96));
    color: var(--hero-btn-outline-color, #0f172a);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

/* arrows */
.ec-photo-hero-arrow {
    position: absolute;
    top: 80%;
    transform: translateY(-50%);
    z-index: 5;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.0);
    color: #0f172a;
    opacity: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(15,23,42,0.18);
    transition: transform .2s ease, background .2s ease, opacity .2s ease;
}

.ec-photo-hero-arrow:hover {
    transform: translateY(-50%) scale(1.06);
    background: #ffffff;
}

.ec-photo-hero-arrow--prev {
    left: 18px;
}

.ec-photo-hero-arrow--next {
    right: 18px;
}

/* dots */
.ec-photo-hero-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    padding: 20px 10px 20px 20px;
}

.ec-photo-hero-dot {
    width: 11px;
    height: 11px;
    border-radius: 999px;
    border: none;
    background: rgba(15,23,42,0.25);
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, width .2s ease;
    
}

.ec-photo-hero-dot.is-active {
    width: 28px;
    background: var(--theme-accent-1);
}

/* slide link */
.ec-photo-hero-slide-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

/* responsive */
@media (max-width: 992px) {
    .ec-photo-hero-track {
        min-height: var(--slider-height-tablet, 500px);
    }

    .ec-photo-hero-slide {
        top: var(--hero-spacing-top-tablet, var(--hero-spacing-top, 0px));
        right: var(--hero-spacing-right-tablet, var(--hero-spacing-right, 0px));
        bottom: var(--hero-spacing-bottom-tablet, var(--hero-spacing-bottom, 0px));
        left: var(--hero-spacing-left-tablet, var(--hero-spacing-left, 0px));
        border-radius: var(--hero-radius-tablet, var(--hero-radius, 0px));
    }

    .ec-photo-hero__inner {
        padding: 38px 30px;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .ec-photo-hero-track {
        min-height: var(--slider-height-mobile, 430px);
    }

    .ec-photo-hero-slide {
        top: var(--hero-spacing-top-mobile, var(--hero-spacing-top, 0px));
        right: var(--hero-spacing-right-mobile, var(--hero-spacing-right, 0px));
        bottom: var(--hero-spacing-bottom-mobile, var(--hero-spacing-bottom, 0px));
        left: var(--hero-spacing-left-mobile, var(--hero-spacing-left, 0px));
        border-radius: var(--hero-radius-mobile, var(--hero-radius, 0px));
    }

    .ec-photo-hero-slide::before {
        background:
            linear-gradient(
                180deg,
                rgba(8, 15, 28, 0.0) 0%,
                rgba(8, 15, 28, 0.0) 100%
            );
    }

    .ec-photo-hero__inner {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        padding: 28px 20px;
    }

    .ec-photo-hero__copy {
        max-width: 100%;
    }

    .ec-photo-hero__text {
        max-width: 100%;
        font-size: 0.98rem;
    }

    .ec-photo-hero__actions {
        width: 100%;
    }

    .ec-photo-hero__btn {
        width: 100%;
    }

    .ec-photo-hero-arrow {
        width: 38px;
        height: 38px;
    }

    .ec-photo-hero-arrow--prev {
        left: 10px;
    }

    .ec-photo-hero-arrow--next {
        right: 10px;
    }
    
    
    /* dots */
.ec-photo-hero-dots {
   
    padding: 10px 10px 40px 20px;
}

}