/*
 * Epic Fans Media — shared homepage slideshow
 *
 * Property-neutral styling.
 * Desktop: 650px minimum.
 * Mobile: 350px minimum.
 *
 * Scoped to .epic-home-slideshow to avoid affecting
 * other hero sections, carousels and timeline components.
 */

.epic-home-slideshow {
    --slideshow-yellow: #fcb900;
    --slideshow-shell: 1140px;
    position: relative;
    isolation: isolate;
    min-height: 650px;
    background: #111;
    color: #fff;
    overflow: hidden;
}

/* Slides */

.epic-home-slideshow .hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .7s ease, visibility .7s ease;
}

.epic-home-slideshow .hero__slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 1;
}

.epic-home-slideshow .hero__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--focus, center);
}

.epic-home-slideshow .hero__slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(8,13,18,.92) 0%,
            rgba(8,13,18,.72) 29%,
            rgba(8,13,18,.24) 61%,
            rgba(8,13,18,.08) 100%
        ),
        linear-gradient(
            0deg,
            rgba(8,13,18,.36),
            transparent 44%
        );
}

/* Fixed SEO heading */

.epic-home-slideshow .hero__fixed-h1 {
    position: absolute;
    z-index: 4;
    top: 56px;
    left: max(
        24px,
        calc((100% - var(--slideshow-shell))/2 + 24px)
    );
    margin: 0;
    padding: 0 0 8px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: 0;
    text-transform: uppercase;
    color: #fff;
    text-shadow: none;
}

.epic-home-slideshow .hero__fixed-h1::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 42px;
    height: 2px;
    background: rgba(255,255,255,.65);
}

/* Main slide content */

.epic-home-slideshow .hero__inner {
    position: relative;
    z-index: 2;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    max-width: var(--slideshow-shell);
    min-height: 650px;
    margin: 0 auto;
    padding: 112px 24px 84px;
}

.epic-home-slideshow .hero__copy {
    max-width: 610px;
}

.epic-home-slideshow .hero__title {
    margin: 0 0 24px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 76px;
    font-weight: 500;
    line-height: 73px;
    letter-spacing: -3.04px;
    text-wrap: balance;
    color: #fff;
}

.epic-home-slideshow .hero__highlight {
    color: var(--slideshow-yellow);
    font-style: italic;
}

.epic-home-slideshow .hero__desc {
    max-width: 560px;
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: #f3f4f5;
    text-shadow: 0 1px 3px rgba(0,0,0,.55);
}

/* Photo credits */

.epic-home-slideshow .hero__credit {
    position: absolute;
    z-index: 3;
    right: 20px;
    bottom: 15px;
    max-width: 45%;
    font-size: 10px;
    line-height: 1.3;
    text-align: right;
    color: #e5e5e5;
    text-shadow: 0 2px 3px #000;
}

/* Navigation controls */

.epic-home-slideshow .hero__controls {
    position: absolute;
    z-index: 5;
    bottom: 87px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 7px 12px;
    border-radius: 40px;
    background: rgba(0,0,0,.48);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.epic-home-slideshow .hero__controls > button {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.5);
    border-radius: 50%;
    background: rgba(0,0,0,.28);
    color: #fff;
    cursor: pointer;
    line-height: 1;
    transition:
        background-color .2s ease,
        border-color .2s ease;
}

.epic-home-slideshow .hero__controls > button:hover {
    background: rgba(255,255,255,.18);
    border-color: rgba(255,255,255,.9);
}

.epic-home-slideshow .hero__controls button:focus-visible {
    outline: 3px solid var(--slideshow-yellow);
    outline-offset: 3px;
}

.epic-home-slideshow .hero__controls svg {
    display: block;
    flex-shrink: 0;
}

.epic-home-slideshow
.hero__controls [data-slide-toggle]
.hero__icon--play {
    display: none;
}

.epic-home-slideshow
.hero__controls [data-slide-toggle][data-paused="true"]
.hero__icon--pause {
    display: none;
}

.epic-home-slideshow
.hero__controls [data-slide-toggle][data-paused="true"]
.hero__icon--play {
    display: block;
}

/* Navigation dots */

.epic-home-slideshow .hero__dots {
    display: flex;
    align-items: center;
    gap: 10px;
}

.epic-home-slideshow .hero__dots button {
    display: block;
    width: 8px;
    height: 8px;
    min-width: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.65);
    cursor: pointer;
    transition: background-color .2s ease;
}

.epic-home-slideshow
.hero__dots button[aria-current="true"] {
    width: 23px;
    background: var(--slideshow-yellow);
    border-radius: 20px;
}

/* Intermediate screens */

@media (min-width: 751px) and (max-width: 1000px) {
    .epic-home-slideshow .hero__title {
        font-size: clamp(48px, 6vw, 68px);
        line-height: 1.02;
    }
}

/*
 * Approved compact mobile design.
 * Preserve the 350px minimum height.
 */

@media (max-width: 750px) {
    .epic-home-slideshow {
        min-height: 350px;
    }

    .epic-home-slideshow .hero__inner {
        min-height: 350px;
        padding: 65px 22px 55px;
        align-items: center;
    }

    .epic-home-slideshow .hero__fixed-h1 {
        top: 29px;
        left: 22px;
        font-size: 11px;
    }

    .epic-home-slideshow .hero__fixed-h1::after {
        width: 38px;
    }

    .epic-home-slideshow .hero__photo {
        object-position: var(--mobile-focus, center);
    }

    .epic-home-slideshow .hero__slide::after {
        background: linear-gradient(
            0deg,
            rgba(5,10,16,.97) 0%,
            rgba(5,10,16,.81) 30%,
            rgba(5,10,16,.3) 67%,
            rgba(5,10,16,.12) 100%
        );
    }

    .epic-home-slideshow .hero__copy {
        max-width: 100%;
    }

    .epic-home-slideshow .hero__title {
        margin-bottom: 10px;
        font-size: 30px;
        line-height: 34px;
        letter-spacing: -1px;
    }

    .epic-home-slideshow .hero__desc {
        margin-bottom: 0;
        font-size: 13px;
        line-height: 1.4;
    }

    .epic-home-slideshow .hero__controls {
        bottom: 30px;
    }

    .epic-home-slideshow .hero__credit {
        right: 10px;
        bottom: 6px;
        max-width: 75%;
        font-size: 7px;
    }

    .epic-home-slideshow .hero__slide {
        transition: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .epic-home-slideshow .hero__slide,
    .epic-home-slideshow .hero__controls button {
        transition: none;
    }
}


/* Homepage full-width slideshow integration */
.home .epic-home-slideshow {
    width: 100cqw;
    max-width: none !important;
    margin-left: calc(50% - 50cqw) !important;
    margin-right: calc(50% - 50cqw) !important;
}


/* Desktop homepage hero proportions — approved refinement */
@media (min-width: 751px) {
    .epic-home-slideshow {
        --slideshow-shell: 1260px;
        min-height: 570px;
    }

    .epic-home-slideshow .hero__inner {
        min-height: 570px;
        padding-top: 95px;
        padding-bottom: 75px;
    }
}


/* Desktop slideshow image vertical focus adjustment */
@media (min-width: 751px) {
    .epic-home-slideshow .hero__slide {
        --focus: center 31% !important;
    }
}


/* Optional property-configured slideshow heading highlight. */
.epic-home-slideshow .hero__fixed-h1 .hero__heading-highlight {
    color: #DD0000;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
}


/* Match the small slideshow heading underline to the Forest red highlight. */
.epic-home-slideshow .hero__fixed-h1::after {
    background: #DD0000;
}
