.wp-block-acf-hero-section {
    max-width: none !important;
    width: 100% !important;
    margin-bottom: 64px !important;
}
body .wp-block-acf-hero-section {
    background-color: transparent !important;
}
.wp-block-acf-hero-section + .entry-content,
.wp-block-acf-hero-section + .entry-content > *:first-child:not(.alignfull) {
    margin-top: 0 !important;
}
.wp-block-acf-hero-section .acf-innerblocks-container > .wp-block-columns {
    gap:0;
    overflow: hidden;
    margin:0 !important;
}
.wp-block-acf-hero-section .acf-innerblocks-container > .wp-block-columns > .wp-block-column {
    z-index: 3;
    order:1;
}
.wp-block-acf-hero-section .acf-innerblocks-container > .wp-block-columns > .wp-block-column:has(> .wp-block-image:only-child),
.wp-block-acf-hero-section .acf-innerblocks-container > .wp-block-columns > .wp-block-column:has(> .wp-block-post-featured-image:only-child) {
    z-index: 1;
    order:1;
    padding-bottom: 0 !important;
}
.wp-block-acf-hero-section .acf-innerblocks-container > .wp-block-columns > .wp-block-column:not(:has(> .wp-block-image:only-child)):not(:has(> .wp-block-post-featured-image:only-child)) {
    padding-left: 5vw;
    padding-right: 5vw;
}
.wp-block-acf-hero-section.has-background:not(.has-white-background-color) .acf-innerblocks-container > .wp-block-columns > .wp-block-column {
    padding-bottom: 32px;
}
.wp-block-acf-hero-section.has-background:not(.has-white-background-color) .acf-innerblocks-container > .wp-block-columns > .wp-block-column:has(>.wp-block-heading),
.wp-block-acf-hero-section.has-background:not(.has-white-background-color) .acf-innerblocks-container > .wp-block-columns > .wp-block-column:has(>.wp-block-post-title) {
    padding-bottom: 64px;
}
.wp-block-acf-hero-section .acf-innerblocks-container > .wp-block-columns > .wp-block-column > .wp-block-image:only-child,
.wp-block-acf-hero-section .acf-innerblocks-container > .wp-block-columns > .wp-block-column > .wp-block-post-featured-image:only-child {
    aspect-ratio: 2 / 1;
    margin:0 !important;
    height: 100%;
}
.wp-block-acf-hero-section .acf-innerblocks-container > .wp-block-columns > .wp-block-column > .wp-block-image:only-child img,
.wp-block-acf-hero-section .acf-innerblocks-container > .wp-block-columns > .wp-block-column > .wp-block-post-featured-image:only-child img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left;
}
.wp-block-acf-hero-section .acf-innerblocks-container > .wp-block-columns > .wp-block-column:last-child > .wp-block-image:only-child img,
.wp-block-acf-hero-section .acf-innerblocks-container > .wp-block-columns > .wp-block-column:last-child > .wp-block-post-featured-image:only-child img {
    object-position: right;
}

/* 
    triangles, checkmarks and other svg elements inside hero section 
    show the svg elements always on the column with the heading
*/
.wp-block-acf-hero-section.has-orange-background-color {
    --hero-bg: var(--wp--preset--color--orange);
}
.wp-block-acf-hero-section.has-light-orange-background-color {
    --hero-bg: var(--wp--preset--color--light-orange);
}
.wp-block-acf-hero-section.has-lightest-orange-background-color {
    --hero-bg: var(--wp--preset--color--lightest-orange);
}
.wp-block-acf-hero-section.has-error-orange-background-color {
    --hero-bg: var(--wp--preset--color--error-orange);
}
.wp-block-acf-hero-section.has-purple-background-color {
    --hero-bg: var(--wp--preset--color--purple);
}
.wp-block-acf-hero-section.has-light-purple-background-color {
    --hero-bg: var(--wp--preset--color--light-purple);
}
.wp-block-acf-hero-section.has-lightest-purple-background-color {
    --hero-bg: var(--wp--preset--color--lightest-purple);
}
.wp-block-acf-hero-section.has-dark-purple-background-color {
    --hero-bg: var(--wp--preset--color--dark-purple);
}
.wp-block-acf-hero-section.has-mid-purple-background-color {
    --hero-bg: var(--wp--preset--color--mid-purple);
}
.wp-block-acf-hero-section.has-green-background-color {
    --hero-bg: var(--wp--preset--color--green);
}
.wp-block-acf-hero-section.has-light-green-background-color {
    --hero-bg: var(--wp--preset--color--light-green);
}
.wp-block-acf-hero-section.has-lightest-green-background-color {
    --hero-bg: var(--wp--preset--color--lightest-green);
}
.wp-block-acf-hero-section.has-light-grey-background-color {
    --hero-bg: var(--wp--preset--color--light-grey);
}
.wp-block-acf-hero-section.has-headline-black-background-color {
    --hero-bg: var(--wp--preset--color--headline-black);
}
.wp-block-acf-hero-section .acf-innerblocks-container > .wp-block-columns > .wp-block-column:has(>.wp-block-heading),
.wp-block-acf-hero-section .acf-innerblocks-container > .wp-block-columns > .wp-block-column:has(>.wp-block-post-title) {
    position:relative;
    background-color: var(--hero-bg, white);
    z-index: 2;
    order:2;
}
.wp-block-acf-hero-section .acf-innerblocks-container > .wp-block-columns > .wp-block-column:has(>.wp-block-heading)::after,
.wp-block-acf-hero-section .acf-innerblocks-container > .wp-block-columns > .wp-block-column:has(>.wp-block-post-title)::after {
    content:"";
    position:absolute;
    top:0;
    left:0;
    width:calc(100% + 4px);
    height:auto;
    aspect-ratio: 9.23 / 1;
    transform:translateY(calc(-100% + 2px)) translateX(-2px);
    background-color:var(--hero-bg, white);
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' version='1.1' viewBox='0 0 300 32.5'%3E%3Cpolygon class='st0' points='0 32.5 300 32.5 300 28.7 0 0 0 32.5'/%3E%3C/svg%3E");
    mask-repeat:no-repeat;
    mask-position:center;
    mask-size:contain;
    z-index: 0;
}
.wp-block-acf-hero-section .acf-innerblocks-container > .wp-block-columns > .wp-block-column:has(>.wp-block-heading) > *,
.wp-block-acf-hero-section .acf-innerblocks-container > .wp-block-columns > .wp-block-column:has(>.wp-block-post-title) > *{
    z-index: 1;
}


.wp-block-acf-hero-section .provider-highlight-block {
    margin:0 auto;
    width: 100%;
}
.wp-block-acf-hero-section h1 {
    font-size: var(--wp--preset--font-size--xx-large)
}


@media screen and (min-width: 782px) {
    .wp-block-acf-hero-section {
        margin-bottom: 64px !important;
    }
    .wp-block-acf-hero-section .acf-innerblocks-container > .wp-block-columns {
        min-height: 400px;
    }
    .wp-block-acf-hero-section .acf-innerblocks-container > .wp-block-columns > .wp-block-column {
        order:1;
        align-self: stretch;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }   
    .wp-block-acf-hero-section .acf-innerblocks-container > .wp-block-columns > .wp-block-column > .wp-block-image:only-child img,
    .wp-block-acf-hero-section .acf-innerblocks-container > .wp-block-columns > .wp-block-column > .wp-block-post-featured-image:only-child img {
        min-height: 400px;
    }
    .wp-block-acf-hero-section.has-background .acf-innerblocks-container > .wp-block-columns > .wp-block-column:not(:has(> .wp-block-image:only-child)):not(:has(> .wp-block-post-featured-image:only-child)) {
        padding-bottom: 64px;
        padding-top: 64px;
    }
    .wp-block-acf-hero-section .acf-innerblocks-container > .wp-block-columns > .wp-block-column:has(>.wp-block-heading),
    .wp-block-acf-hero-section .acf-innerblocks-container > .wp-block-columns > .wp-block-column:has(>.wp-block-post-title) {
        order:1;
    }
    .wp-block-acf-hero-section .acf-innerblocks-container > .wp-block-columns > .wp-block-column:has(>.wp-block-heading)::after,
    .wp-block-acf-hero-section .acf-innerblocks-container > .wp-block-columns > .wp-block-column:has(>.wp-block-post-title)::after {
        top:0;
        right:0;
        left: auto;
        width:auto;
        height:calc(100% + 4px);
        aspect-ratio: 1 / 1.385;
        transform:translateX(calc(100% - 2px)) translateY(-2px);
    }
    .wp-block-acf-hero-section .acf-innerblocks-container > .wp-block-columns > .wp-block-column:last-child:has(>.wp-block-heading)::after,
    .wp-block-acf-hero-section .acf-innerblocks-container > .wp-block-columns > .wp-block-column:last-child:has(>.wp-block-post-title)::after {
        right:auto;
        left:0;
        transform:translateX(calc(-100% + 2px)) translateY(-2px);
    }
    .wp-block-acf-hero-section.is-style-triangle .acf-innerblocks-container > .wp-block-columns > .wp-block-column:first-child:has(>.wp-block-heading),
    .wp-block-acf-hero-section.is-style-triangle .acf-innerblocks-container > .wp-block-columns > .wp-block-column:first-child:has(>.wp-block-post-title) {
        padding-right: 0 !important;
    }
    .wp-block-acf-hero-section.is-style-triangle .acf-innerblocks-container > .wp-block-columns > .wp-block-column:last-child:has(>.wp-block-heading),
    .wp-block-acf-hero-section.is-style-triangle .acf-innerblocks-container > .wp-block-columns > .wp-block-column:last-child:has(>.wp-block-post-title) {
        padding-left: 0 !important;
    }
    .wp-block-acf-hero-section.is-style-triangle .acf-innerblocks-container > .wp-block-columns > .wp-block-column:first-child:has(>.wp-block-heading)::after,
    .wp-block-acf-hero-section.is-style-triangle .acf-innerblocks-container > .wp-block-columns > .wp-block-column:first-child:has(>.wp-block-post-title)::after {
        mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 591.81 818.64'%3E%3Cpath d='M556.11,309.38L65.45,818.64H0V0l503.57,126.12-.03-.11c82.08,20.61,111.3,122.5,52.58,183.37Z'/%3E%3C/svg%3E");
    }
    .wp-block-acf-hero-section.is-style-triangle .acf-innerblocks-container > .wp-block-columns > .wp-block-column:last-child:has(>.wp-block-heading)::after,
    .wp-block-acf-hero-section.is-style-triangle .acf-innerblocks-container > .wp-block-columns > .wp-block-column:last-child:has(>.wp-block-post-title)::after {
        mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 591.81 818.64'%3E%3Cpath d='M35.7,309.38l490.66,509.26h65.45S591.81,0,591.81,0L88.24,126.12l.03-.11C6.19,146.62-23.02,248.51,35.7,309.38Z'/%3E%3C/svg%3E");
    }
    .wp-block-acf-hero-section.is-style-triangle_image .acf-innerblocks-container > .wp-block-columns > .wp-block-column:first-child:has(>.wp-block-heading)::after,
    .wp-block-acf-hero-section.is-style-triangle_image .acf-innerblocks-container > .wp-block-columns > .wp-block-column:first-child:has(>.wp-block-post-title)::after {
        mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 591.81 818.64'%3E%3Cpath d='M0,0v818.63s526.35,0,526.35,0L35.7,309.38C-23.02,248.51,6.19,146.61,88.27,126l-.03.12L591.81,0H0Z'/%3E%3C/svg%3E");
    }
    .wp-block-acf-hero-section.is-style-triangle_image .acf-innerblocks-container > .wp-block-columns > .wp-block-column:last-child:has(>.wp-block-heading)::after,
    .wp-block-acf-hero-section.is-style-triangle_image .acf-innerblocks-container > .wp-block-columns > .wp-block-column:last-child:has(>.wp-block-post-title)::after {
        mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 591.81 818.64'%3E%3Cpath d='M591.81,0v818.63H65.46l490.65-509.25c58.72-60.87,29.51-162.77-52.57-183.38l.03.12L0,0h591.81Z'/%3E%3C/svg%3E");
    }
}   
@media screen and (min-width: calc(1200px + 10vw)) {
    .wp-block-acf-hero-section .acf-innerblocks-container > .wp-block-columns > .wp-block-column:first-child:not(:has(> .wp-block-image:only-child)):not(:has(> .wp-block-post-featured-image:only-child)) {
        padding-left: calc((100vw - 1200px) / 2);
        padding-right: 5rem;
    }
    .wp-block-acf-hero-section .acf-innerblocks-container > .wp-block-columns > .wp-block-column:last-child:not(:has(> .wp-block-image:only-child)):not(:has(> .wp-block-post-featured-image:only-child)) {
        padding-right: calc((100vw - 1200px) / 2);
        padding-left: calc(0.734 * height);
    }
}

@media screen and (min-width: 900px) {
    /* Add extra top padding when breadcrumbs are present: For standard template and individual content */
    .wp-block-template-part:has(.breadcrumbs) + .wp-block-acf-hero-section .acf-innerblocks-container > .wp-block-columns > .wp-block-column:first-child:not(:has(> .wp-block-image:only-child)):not(:has(> .wp-block-post-featured-image:only-child)),
    .wp-block-template-part:has(.breadcrumbs) + .entry-content > .wp-block-acf-hero-section:first-child .acf-innerblocks-container > .wp-block-columns > .wp-block-column:first-child:not(:has(> .wp-block-image:only-child)):not(:has(> .wp-block-post-featured-image:only-child)) {
        padding-top: 5rem;
    }
}

@media screen and (min-width: 1600px) {
    .wp-block-acf-hero-section {
        max-width: 1600px !important;
    }
    .wp-block-acf-hero-section .acf-innerblocks-container > .wp-block-columns > .wp-block-column:first-child:not(:has(> .wp-block-image:only-child)):not(:has(> .wp-block-post-featured-image:only-child)) {
        padding-left: calc((1600px - 1200px) / 2);
        padding-right: 5rem;
    }
    .wp-block-acf-hero-section .acf-innerblocks-container > .wp-block-columns > .wp-block-column:last-child:not(:has(> .wp-block-image:only-child)):not(:has(> .wp-block-post-featured-image:only-child)) {
        padding-right: calc((1600px - 1200px) / 2);
        padding-left: calc(0.734 * height);
    }
}

@media screen and (max-width: 781px) {
    .wp-block-acf-hero-section.hide-image-on-mobile {
        margin-top: 64px !important;
    }
    .wp-block-acf-hero-section.hide-image-on-mobile .acf-innerblocks-container > .wp-block-columns > .wp-block-column:has(> .wp-block-image:only-child),
    .wp-block-acf-hero-section.hide-image-on-mobile .acf-innerblocks-container > .wp-block-columns > .wp-block-column:has(> .wp-block-post-featured-image:only-child) {
        display: none;
    }
    .wp-block-acf-hero-section.hide-section-on-mobile {
        display: none;
    }
    .wp-block-acf-hero-section.hide-section-on-mobile + .entry-content:has(> *:first-child:not(.alignfull)) {
        margin-top: 64px !important;
    }
}
