.yu-story__container-outer {
    position: relative;
    padding: 0;
    padding-bottom: 6.5rem;
}

.yu-story__container {
    padding: 0 1.25rem 0 1.25rem;
    margin: 0 auto;
    display: flex;
}

.yu-story__sidebar {
    display: none;
    z-index: 10;
}

.yu-story {
    max-width: 100rem;
    margin: 0 auto;
    text-align: left;
}

.yu-story__elements {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.yu-story__element {
    position: relative;
    padding: 6.5rem 0;
    overflow-y: clip;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: start;
}

.yu-story {
    width: 100%;
}

.yu-story__element:first-child {
    padding-top: 3.125rem;
}

.yu-story__element--narrow {
    padding-bottom: 3.125rem;
    padding-top: 3.125rem;
}

.yu-story__stat {
    background-color: var(--primary, white);
    color: var(--secondary, black);
    padding: 1rem;
    /* padding-bottom: 0.625rem; */
    display: flex;
    align-items: center;
    gap: 1rem;
    row-gap: 0.5rem;
    flex-wrap: wrap;
}

.yu-story__stat .yu-story__stat-feature {
    font-size: calc(1.5rem*var(--scale, 1));
}

.yu-story--slide-1 {
    display: grid;
    row-gap: 1rem;
    grid-template-rows: 20rem auto;
    grid-template-areas: "image""title""stat""description""buttons";
}

.yu-story h2 {
    grid-area: title;
    line-height: calc(4rem*var(--scale, 1));
    margin: 0;
    margin-bottom: 0.5rem;
}

.yu-story--slide-1 .yu-story__stat {
    grid-area: stat;
    margin: 0;
    margin-bottom: 1.5rem;
}

.yu-story--slide-1 .yu-story__description {
    grid-area: description;
    margin: 0;
    margin-bottom: 0.5rem;
}

.yu-story--slide-1 .yu-story__buttons {
    grid-area: buttons;
}

.yu-story__image-container {
    grid-area: image;
    position: relative;
    margin-bottom: 1rem;
    /* background-color: red; */
}

.yu-story__image-container :is(svg, img) {
    position: absolute;
    top: 0;
    right: 50%;
    width: auto;
    height: 100%;
    max-width: 100%;
    transform: translateX(50%);
}

.yu-story--slide-1:not(.yu-story--slide-1-alt) .yu-story__image-container img {
    right: 50%;
    transform: translateX(50%);
}

.yu-story--slide-1 .yu-story__image-container svg {
    fill: var(--primary, black);
    transform: translateX(-50%);
    left: 50%;
}

.yu-story--slide-1-alt .yu-story__image-container {
    max-width: 100%;
    max-height: 100%;
}

.yu-story--slide-1-alt .yu-story__image-container-inner {
    position: relative;
    aspect-ratio: 1 / 1;
    max-width: 100%;
    max-height: 100%;
    margin: 0 auto;
}

.yu-story--slide-1-alt .yu-story__image-container-inner svg {
    transform: translate(0);
}

.yu-story--slide-1-alt .yu-story__image-container-inner img {
    position: absolute;
    margin: 0;
    height: 60%;
    object-fit: cover;
    aspect-ratio: 10 / 14;
    border: 0.5rem solid white;
    transform: translate(0);
}

.yu-story--slide-1.yu-story--slide-1-alt {
    grid-template-rows: 30rem auto;
}

.yu-story--slide-1-alt .yu-story__image-container-inner img:first-child {
    top: 0;
    left: 10%;
    z-index: 5;
}

.yu-story--slide-1-alt .yu-story__image-container-inner img:last-of-type {
    top: 35%;
    right: 10%;
}

.yu-story__image-container img {
    object-fit: contain;
}

.yu-story--slide-1-alt .yu-story__svgs {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 10;
}

.yu-story--slide-1-alt .yu-story__svgs svg {
    height: auto;
}

.yu-story--slide-1-alt .yu-story__svgs svg:nth-child(1) {
    width: 32%;
    top: 1%;
    right: 5%;
    transform: rotate(19deg);
    left: unset;
}

.yu-story--slide-1-alt .yu-story__svgs svg:nth-child(2) {
    width: 48%;
    top: 55%;
    left: 8%;
    transform: rotate(177deg);
}

.yu-story--slide-1-alt .yu-story__svgs svg:nth-child(3) {
    width: 15%;
    top: -8%;
    left: 45%;
}

.yu-story--slide-1-alt .yu-story__svgs svg:nth-child(4) {
    width: 18%;
    top: 85%;
    left: 81%;
    transform: rotate(4deg);
}

.yu-story--slide-2 {
    display: flex;
    flex-direction: column;
}

.yu-story--slide-background {
    position: absolute;
    z-index: -1;
    top: 0;
    left: -10rem;
    /* right: -5rem; */
    height: 100%;
    width: calc(100% + 15rem);
    object-fit: cover;
    background-color: var(--light-grey, rgb(219, 219, 219));
    z-index: -1;
}

.yu-story--slide-background-image {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.yu-story--slide-2 .h-group {
    padding: 0;
    margin: 0;
    z-index: 11;
    position: relative;
    top: 1.5rem;
    max-width: calc(100% - 2rem);
}

.yu-story .h-main {
    padding-left: 1rem;
    padding-bottom: 0;
    overflow-y: unset;
    overflow-x: unset;
    line-height: calc(3.1rem*var(--scale));
}

.yu-story .h-main h2 {
    background-color: white;
    /* padding: 1rem;
    padding-bottom: 0.4rem; */
    /* max-width: 12ch; */
    font-size: calc(2.5rem*var(--scale, 1));
    /* line-height: calc(2.75rem*var(--scale, 1)); */
    z-index: 11;
    margin: 0;
    transform: translateY(1.5rem);
    max-width: calc(100% - 2rem);

    padding-top: 1rem;
    padding-bottom: 0.2rem;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    line-height: 3.2rem;
    padding-top: 0;
    padding-bottom: 0.5rem;
    line-height: calc(2rem*var(--scale));
}

.yu-story--slide-4 .h-group {
    margin-bottom: -2.25rem;
    color: white;
    z-index: 11;
}

.yu-story--slide-4 .h-group .h-main {
    --background: var(var(--background), black);
    --text: var(var(--text), white);
}

.yu-story.yu-story--slide-4 .h-main h2 {
    background: var(--text, black);
    box-shadow: .625rem 0 0 var(--background, black), -.625rem 0 0 var(--background, black);
    color: white;
}

.yu-story.yu-story--slide-2 .h-main h2 .campaign-highlight-inner {
    padding-bottom: 8px;
    line-height: 2.1rem;
}

.yu-story--slide-2-outer {
    display: flex;
    flex-direction: column;
    align-items: start;
}

.yu-story--slide-2-inner {
    background-color: black;
    color: white;
    padding: 2rem;
    padding-top: 3.5rem;
    max-width: 40rem;
    width: calc(100% - 2rem);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-left: 2rem;
}

.yu-story--slide-2-inner .yu-story__stat {
    color: var(--secondary, black);
}

.yu-story--slide-4-outer {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: start;
    padding: 0 0 2.5rem 0;
    max-width: 65rem;
    margin: 0 auto;
}

.yu-story--slide-4-outer h2 {
    background-color: black;
    padding: 1rem;
    padding-bottom: 0.4rem;
    color: white;
    z-index: 1;
    font-size: calc(2.5rem*var(--scale, 1));
    line-height: calc(2.75rem*var(--scale, 1));
    transform: translateY(2rem);
    margin: 0;
    z-index: 2;
}

.yu-story--slide-4-inner {
    z-index: 1;
    background-color: white;
    padding: 2rem;
    max-width: 42rem;
    display: flex;
    flex-direction: column;
    padding-top: 4rem;
    margin-left: 2rem;
}

.yu-story__description {
    margin-bottom: 1.25rem;
}

.yu-story--slide-4 .yu-story__description {
    margin-bottom: 2rem;
}

.yu-story--slide-4-image {
    display: none;
}

.yu-story--slide-5 .yu-story--slide-background {
    background-color: black;

}

.yu-story--slide-5-outer {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas: "title""image""stat""description""buttons";
    column-gap: 2.5rem;
    row-gap: 0.5rem;
}

.yu-story--slide-5 h2 {
    grid-area: title;
    color: white;
    /* margin-bottom: 2rem; */
}

.yu-story--slide-5 .yu-story__description {
    background-color: white;
    padding: 1.25rem;
}

.yu-story--slide-5-image {
    grid-area: image;
    width: 100%;
    height: 85%;
    top: 7.5%;
    position: relative;
}

.yu-story--slide-5-image svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.yu-story--slide-5 .yu-story__stat {
    grid-area: stat;
}

.yu-story--slide-5 .yu-story__description {
    grid-area: description;
}

.yu-story--slide-5 .yu-story__buttons {
    grid-area: buttons;
}

.yu-story--slide-4-image img:first-child {
    aspect-ratio: 10/14;
    position: absolute;
}

.yu-story--slide-4-image img:last-child {
    aspect-ratio: 15/10;
    position: absolute;
}

@media screen and (min-width: 768px) {

    .yu-story--slide-1 {
        grid-template-columns: 4fr 4fr;
        column-gap: 2.5rem;
        grid-template-areas: ". image""title image""stat image""description image""buttons image"". image";
        grid-template-rows: 4rem auto auto auto auto 4rem;
    }

    .yu-story__image-container {
        margin-bottom: 0;
    }

    .yu-story__image-container :is(svg, img) {
        right: 0;
        transform: translateX(0);
    }

    .yu-story--slide-2 {
        padding-left: 7.5rem;
    }

    .yu-story--slide-2 h2 {
        transform: translate(-3rem, 1.5rem);
    }

    .yu-story--slide-4-image {
        display: block;

        position: absolute;
        height: 100%;
        width: 100%;
        max-width: 400px;
        top: 0;
        right: 0;
        z-index: 0;
    }

    .yu-story--slide-4-image img {
        object-fit: cover;
    }

    .yu-story--slide-4-image img:first-child {
        height: 65%;
        top: 10%;
        right: 10%;
    }

    .yu-story--slide-4-image img:last-child {
        height: 31%;
        top: 78%;
        right: 10%;
    }

    .yu-story--slide-5-outer {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-areas: ". image""title image""stat image""description image""buttons image"". image";
        column-gap: 2.5rem;
        row-gap: 0.5rem;
    }

    .yu-story--slide-5 h2 {
        margin-bottom: 2rem;
    }

    .yu-story__stat {
        flex-wrap: nowrap;
    }

    .yu-story--slide-1-alt .yu-story__image-container {
        height: auto;
        margin: unset;
        height: 90%;
        top: 5%;
    }

    .yu-story--slide-1.yu-story--slide-1-alt {
        grid-template-rows: auto;
    }
}

@media screen and (min-width: 1024px) {

    .yu-story__container {
        padding: 0 2.5rem 0 5rem;
        gap: 2.5rem;
    }

    .yu-story__sidebar {
        position: sticky;
        display: flex;
        flex-direction: column;
        justify-content: center;
        top: 6.25rem;
        height: calc(100dvh - 12.5rem);
        width: 5px;
        left: calc(50vw - 54.5rem);
    }


    .yu-story__sidebar-line {
        content: "";
        /* position: absolute; */
        top: 0;
        left: 0;
        height: 75%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: 2px;
        background-color: black;
    }

    .yu-story__sidebar-boxes {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        position: absolute;
        top: 50%;
        right: 0;
        transform: translate(-1rem, -50%);
    }

    .yu-story__sidebar-box {
        width: 12px;
        height: 12px;
        border: 2px solid black;
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 0;
    }

    .yu-story__sidebar-box--active {
        background-color: black;
    }


    .yu-story__sidebar.invert .yu-story__sidebar-line {
        background-color: white;
    }

    .yu-story__sidebar.invert .yu-story__sidebar-box {
        border-color: white;
    }

    .yu-story__sidebar.invert .yu-story__sidebar-box--active {
        background-color: white;
    }
}

@media screen and (min-width: 1280px) {
    .yu-story--slide-4-image img:first-child {
        height: 67%;
        top: 10%;
        left: 8%;
        right: unset;
    }

    .yu-story--slide-4-image img:last-child {
        height: 34%;
        top: 65%;
        right: 3%;
    }

    .yu-story--slide-2 {
        padding-left: 15rem;
    }

    .yu-story.yu-story--slide-2 .h-main h2 .campaign-highlight-inner {
        line-height: 2.4rem;
        padding-bottom: 16px;
    }
}