.paragraph--type--hero {
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    padding: 150px 0 !important;
}

.paragraph--type--hero .hero-background {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    z-index: 0;
}

.paragraph--type--hero .hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    z-index: 1;
}

.paragraph--type--hero .hero-text {
    position: relative;
    z-index: 1;
    background: white;
    box-sizing: border-box;
    padding: 50px 40px;
    border-radius: var(--border-radius);
    width: 75%;
    font-size: 20px;
}

.paragraph--type--hero.paragraph--transparent-textbox .hero-text {
    border-radius: initial;
    background: transparent;
    padding: 0;
}

.paragraph--type--hero.paragraph--has-foreground-image .hero-text {
    width: 50%;
}

.paragraph--type--hero.paragraph--has-foreground-image .hero-foreground {
    width: 50vw;
    position: absolute;
    top: 10%;
    left: calc(50% + 0vw + 40px);
    height: 80%;
}

.paragraph--type--hero.paragraph--has-foreground-image .hero-foreground img {
    width: 100%;
    height: 100%;
    background: black;
    object-fit: cover;
    border-top-left-radius: 400px;
    border-bottom-left-radius: 400px;
    overflow: hidden;
}

@media (max-width: 880px) {
    .paragraph--type--hero {
        padding: 200px 0 20px 0 !important;
        width: calc(100% + 40px);
        margin: -20px -40px 0 -20px;
        border-radius: 0;  
    }

    .paragraph--type--hero.paragraph--has-foreground-image {
        padding: 0px 0 20px 0 !important;
    }

    .paragraph--type--hero .innerwidth {
        display: flex;
        flex-direction: column;
    }

    .paragraph--type--hero .hero-text,
    .paragraph--type--hero.paragraph--has-foreground-image .hero-text {
        width: 100%;
        order: 2;
    }

    .paragraph--type--hero .hero-foreground,
    .paragraph--type--hero.paragraph--has-foreground-image .hero-foreground {
        order: 1;
        position: relative;
        top: 0;
        left: 0;
        height: auto;
        width: 100%;
        margin-bottom: 30px;
    }

    .paragraph--type--hero .hero-foreground, 
    .paragraph--type--hero.paragraph--has-foreground-image .hero-foreground {
        width: calc(100% + 20px);
    }
}