.espa-story-focus {
    position: relative;
    width: 100%;

    margin: 30px 0 36px;
    padding: 34px 20px;

    overflow: hidden;

    border: 1px solid var(--espa-border);
    border-radius: 24px;

    background: var(--espa-surface);

    box-shadow:
            0 10px 30px rgba(15, 23, 42, .05);
}


/* =========================================================
   HEADER
========================================================= */

.espa-story-focus__header {
    margin-bottom: 26px;

    text-align: center;
}

.espa-story-focus__heading {
    margin: 0;

    color: var(--espa-heading);

    font-family: var(--font-family-heading);
    font-size: clamp(22px, 2vw, 29px);
    font-weight: 700;

    line-height: 1.2;
}


/* =========================================================
   STAGE
========================================================= */

.espa-story-focus__stage {
    position: relative;

    min-height: 220px;

    display: flex;
    align-items: center;
}


/* =========================================================
   VIEWPORT
========================================================= */

.espa-story-focus__viewport {
    position: relative;

    width: 100%;

    overflow: hidden;
}


/* =========================================================
   TRACK
========================================================= */

.espa-story-focus__track {
    position: relative;

    min-height: 210px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 52px;

    transition:
            transform .4s ease;
}


/* =========================================================
   ITEM
========================================================= */

.espa-story-focus__item {
    position: relative;

    flex: 0 0 auto;

    width: 150px;

    display: flex;
    align-items: center;

    opacity: .34;

    filter: blur(3px);

    transform: scale(.88);

    transition:
            width .4s ease,
            opacity .35s ease,
            filter .35s ease,
            transform .35s ease;
}


/*
|--------------------------------------------------------------------------
| ACTIVE
|--------------------------------------------------------------------------
*/

.espa-story-focus__item.is-active {
    width: 430px;

    opacity: 1;

    filter: none;

    transform: scale(1);

    z-index: 5;
}


/* =========================================================
   IMAGE BUTTON
========================================================= */

.espa-story-focus__image-button {
    flex: 0 0 auto;

    width: 138px;
    height: 138px;

    padding: 0;

    border: 0;

    background: transparent;

    display: block;

    cursor: pointer;
}


/* =========================================================
   IMAGE RING
========================================================= */

.espa-story-focus__image-ring {
    display: block;

    width: 138px;
    height: 138px;

    padding: 3px;

    overflow: hidden;

    border-radius: 50%;

    background:
            linear-gradient(
                    135deg,
                    var(--espa-primary),
                    color-mix(
                            in srgb,
                            var(--espa-primary) 55%,
                            var(--espa-accent)
                    )
            );

    box-shadow:
            0 9px 22px
            color-mix(
                    in srgb,
                    var(--espa-primary) 12%,
                    transparent
            );

    transition:
            transform .3s ease,
            box-shadow .3s ease;
}

.espa-story-focus__image {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    border: 4px solid #ffffff;
    border-radius: 50%;

    transition:
            transform .35s ease;
}


/* =========================================================
   IMAGE HOVER
========================================================= */

.espa-story-focus__item.is-active
.espa-story-focus__image-button:hover
.espa-story-focus__image-ring {
    transform: scale(1.035);

    box-shadow:
            0 14px 30px
            color-mix(
                    in srgb,
                    var(--espa-primary) 18%,
                    transparent
            );
}

.espa-story-focus__item.is-active
.espa-story-focus__image-button:hover
.espa-story-focus__image {
    transform: scale(1.04);
}


/* =========================================================
   CONTENT
========================================================= */

.espa-story-focus__content {
    width: 0;

    max-height: 0;

    margin-left: 0;

    overflow: hidden;

    opacity: 0;

    transform: translateX(-8px);

    pointer-events: none;

    transition:
            width .35s ease,
            max-height .35s ease,
            margin-left .35s ease,
            opacity .3s ease,
            transform .35s ease;
}

.espa-story-focus__item.is-active
.espa-story-focus__content {
    width: 245px;

    max-height: 200px;

    margin-left: 25px;

    opacity: 1;

    transform: translateX(0);

    pointer-events: auto;
}


/* =========================================================
   TITLE
========================================================= */

.espa-story-focus__title {
    margin: 0 0 10px;

    color: var(--espa-heading);

    font-family: var(--font-family-heading);
    font-size: 18px;
    font-weight: 750;

    line-height: 1.35;
}


/* =========================================================
   DESCRIPTION
========================================================= */

.espa-story-focus__description {
    display: -webkit-box;

    margin: 0 0 18px;

    overflow: hidden;

    color: var(--espa-muted);

    font-family: var(--font-family-body);
    font-size: 12px;
    font-weight: 400;

    line-height: 1.65;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}


/* =========================================================
   DETAIL
========================================================= */

.espa-story-focus__detail {
    display: inline-flex;
    align-items: center;

    gap: 7px;

    color: var(--espa-primary);

    font-family: var(--font-family-button);
    font-size: 12px;
    font-weight: 650;

    text-decoration: none;

    transition:
            gap .2s ease,
            color .2s ease;
}

.espa-story-focus__detail:hover {
    gap: 11px;

    color: var(--espa-primary-hover);
}

.espa-story-focus__detail iconify-icon {
    font-size: 15px;
}


/* =========================================================
   ARROWS
========================================================= */

.espa-story-focus__arrow {
    position: absolute;

    top: 50%;

    z-index: 20;

    width: 48px;
    height: 48px;

    padding: 0;

    border: 1px solid var(--espa-border);
    border-radius: 50%;

    background: var(--espa-surface);

    color: var(--espa-heading);

    box-shadow:
            0 8px 22px rgba(15, 23, 42, .09);

    display: flex;
    align-items: center;
    justify-content: center;

    transform: translateY(-50%);

    cursor: pointer;

    transition:
            background .2s ease,
            color .2s ease,
            border-color .2s ease,
            transform .2s ease;
}

.espa-story-focus__arrow:hover {
    border-color: var(--espa-primary);

    background: var(--espa-primary);

    color: #ffffff;
}

.espa-story-focus__arrow:active {
    transform:
            translateY(-50%)
            scale(.95);
}

.espa-story-focus__arrow iconify-icon {
    font-size: 20px;
}

.espa-story-focus__arrow--prev {
    left: 3px;
}

.espa-story-focus__arrow--next {
    right: 3px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1199.98px) {

    .espa-story-focus__track {
        gap: 32px;
    }

    .espa-story-focus__item {
        width: 125px;
    }

    .espa-story-focus__item.is-active {
        width: 390px;
    }

    .espa-story-focus__image-button,
    .espa-story-focus__image-ring {
        width: 125px;
        height: 125px;
    }

    .espa-story-focus__item.is-active
    .espa-story-focus__content {
        width: 230px;

        margin-left: 20px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767.98px) {

    .espa-story-focus {
        margin: 22px 0 28px;

        padding: 22px 12px 25px;

        border-radius: 18px;
    }

    .espa-story-focus__header {
        margin-bottom: 18px;
    }

    .espa-story-focus__heading {
        padding: 0 8px;

        font-size: 21px;

        text-align: left;
    }

    .espa-story-focus__stage {
        min-height: 285px;
    }

    .espa-story-focus__viewport {
        overflow: hidden;
    }

    .espa-story-focus__track {
        min-height: 270px;

        gap: 18px;
    }

    .espa-story-focus__item {
        width: 80px;

        opacity: .22;

        filter: blur(2px);

        transform: scale(.78);
    }

    .espa-story-focus__item.is-active {
        width: 210px;

        flex-direction: column;

        opacity: 1;

        filter: none;

        transform: scale(1);
    }

    .espa-story-focus__image-button,
    .espa-story-focus__image-ring {
        width: 110px;
        height: 110px;
    }

    .espa-story-focus__image {
        border-width: 3px;
    }

    .espa-story-focus__item.is-active
    .espa-story-focus__content {
        width: 210px;

        max-height: 150px;

        margin:
                13px
                0
                0;

        text-align: center;
    }

    .espa-story-focus__title {
        margin-bottom: 5px;

        font-size: 14px;
    }

    .espa-story-focus__description {
        margin-bottom: 8px;

        font-size: 10px;

        line-height: 1.45;

        -webkit-line-clamp: 2;
    }

    .espa-story-focus__detail {
        justify-content: center;

        font-size: 10px;
    }

    .espa-story-focus__arrow {
        width: 38px;
        height: 38px;
    }

    .espa-story-focus__arrow--prev {
        left: 0;
    }

    .espa-story-focus__arrow--next {
        right: 0;
    }

}