.wp-block-beech-header {
    display: flex;
    position: relative;
}


.wp-block-beech-header header {
    width: 100%;
}
.wp-block-beech-header .header__inner,
.wp-block-beech-header .header__image-wrap
 {
    width: 100%;
    position: relative;
    z-index: 0;
}
.wp-block-beech-header .header__inner {
    padding-inline: var(--gutter);
}

.is-style-home .header__inner, 
.is-style-article .header__inner,
.is-style-side-dude .header__inner {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    row-gap: var(--xy-row-gap);
    column-gap: var(--xy-col-gap);
}
.is-style-side-dude .header__inner-blocks {
    grid-column: span 9;
}
.is-style-home .header__inner-blocks {
    grid-column: span 6;
}
.is-style-home .header__links {
    grid-column: 1 / 7;
    grid-row: 2 / 2;
    display: flex;
    flex-direction: row;
    gap: 3rem;
    align-items: flex-start;
}
.is-style-home .header__byline {
    font-size: 3vw;
}

.is-style-home .header__links a:not(.button-with-count) {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    position: relative;
    gap: 1rem;
    text-decoration: none;
    --_line-width: 0.125rem;
    --_icon-width : 1em;
    font-size: 2vw;
}
.is-style-home .header__links a:not(.button-with-count)::after {
    content: '';
    position: absolute;
    bottom: -0.125rem;
    left: 0;
    height: var(--_line-width);
    background-color: currentColor;
    width: 100%;
    animation-play-state: paused;
    transition: all 150ms ease;
}
.is-style-home .header__links a svg { 
    transition: translate 150ms ease;
    width: var(--_icon-width);
}
.is-style-home .header__links a:hover svg {
    translate: 1.5rem 0;
}
.is-style-home .header__links a:hover::after {
    width: 107%;
}

.is-style-home {
    padding-top: var(--block-space, 6rem);
    padding-bottom: var(--block-space, 6rem);
    position: relative;
    width: 100%;
    transition: all 150ms ease;
    background-color: transparent;
}
.is-style-side-dude {
    padding-top: var(--block-space, 6rem);
    padding-bottom: var(--block-space-narrow, 3rem);
    position: relative;
}

.is-style-title {
    padding-top: var(--block-space, 6rem);
    padding-bottom: var(--block-space, 6rem);
}
.is-style-title .header__inner-blocks {
    max-width: 62rem;
}
.is-style-title .header__inner-blocks h2.wp-block-heading {
    max-width: 42rem;
}

.archive header.is-style-title {
    padding-bottom: 1rem;
}

header .archive-description {
    max-width: 42rem;
}
header .archive-description p {
    margin-bottom: 0;
    font-size: var(--wp--preset--font-size--x-large);
    line-height: 1.3;
}

.wp-block-beech-header.is-style-home {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 46rem;
    height: 100vh;
    overflow: hidden;
}

.header__marquee-wrap {
    position: absolute;
    top: 50%;
    translate: 0% calc(-50% - 1vh);
    padding-top: 0;
    margin-top: 0;
    margin-bottom: 0;
}

.is-style-home .color-boiz {
    margin-top: 4rem;
    grid-column: span 7;
    position: absolute;
    bottom: 0;
    left: var(--gutter);
    display: none;
}

/*
.is-style-home::before,
.is-style-side-dude::before {
    content: '';
    width: calc( 100% - var(--gutter) * 2 );
    top: 0;
    left: var(--gutter);
    border-top: solid 1px var(--wp--preset--color--light-gray);
    position: absolute;
}
*/


#page.site:has(header.is-style-home) { position: relative; }
#page.site:has(header.is-style-home) header.site-header {position: absolute;width: 100%;z-index: 10; }
#page.site:has(header.is-style-home.is-pink-background) header.site-header { color: var(--wp--preset--color--black); }
#page.site:has(header.is-style-home.is-rorange-background) header.site-header { color: var(--wp--preset--color--black); }
#page.site:has(header.is-style-home.is-green-background) header.site-header { color: var(--wp--preset--color--black); }
#page.site:has(header.is-style-home.is-yellow-background) header.site-header { color: var(--wp--preset--color--black); }

.is-style-home.is-yellow-background {background-color: var(--wp--preset--color--yellow); color: var(--wp--preset--color--black); }
.is-style-home.is-yellow-background a { color: var(--wp--preset--color--black); }

.is-style-home.is-rorange-background {background-color: var(--wp--preset--color--rorange); color: var(--wp--preset--color--black); }
.is-style-home.is-rorange-background a { color: var(--wp--preset--color--black); }

.is-style-home.is-pink-background {background-color: var(--wp--preset--color--pink); color: var(--wp--preset--color--black); }
.is-style-home.is-pink-background a { color: var(--wp--preset--color--black); }

.is-style-home.is-green-background {background-color: var(--wp--preset--color--green); color: var(--wp--preset--color--black); }
.is-style-home.is-green-background a { color: var(--wp--preset--color--black); }

.is-style-home.is-blue-background {background-color: var(--wp--preset--color--blue); color: inherit; }
.is-style-home.is-blue-background a { color: inherit; }

.is-style-home.is-yellow-background + .wp-block-beech-scroll-video { background-color: var(--wp--preset--color--yellow); color: var(--wp--preset--color--black); }
.is-style-home.is-rorange-background + .wp-block-beech-scroll-video { background-color: var(--wp--preset--color--rorange); color: var(--wp--preset--color--black); }
.is-style-home.is-pink-background + .wp-block-beech-scroll-video { background-color: var(--wp--preset--color--pink); color: var(--wp--preset--color--black); }
.is-style-home.is-green-background + .wp-block-beech-scroll-video { background-color: var(--wp--preset--color--green); color: var(--wp--preset--color--black); }
.is-style-home.is-blue-background + .wp-block-beech-scroll-video { background-color: var(--wp--preset--color--blue); color: var(--wp--preset--color--black); }


body.dark-mode .is-style-home a { color: inherit; }

body.dark-mode .is-style-home.is-yellow-background {background-color: var(--wp--preset--color--off-black); color: var(--wp--preset--color--yellow); }
body.dark-mode .is-style-home.is-rorange-background {background-color: var(--wp--preset--color--off-black); color: var(--wp--preset--color--rorange); }
body.dark-mode .is-style-home.is-pink-background {background-color: var(--wp--preset--color--off-black); color: var(--wp--preset--color--pink); }
body.dark-mode .is-style-home.is-green-background {background-color: var(--wp--preset--color--off-black); color: var(--wp--preset--color--green); }
body.dark-mode .is-style-home.is-blue-background {background-color: var(--wp--preset--color--off-black); color: var(--wp--preset--color--blue);  }

body.dark-mode .is-style-home + .wp-block-beech-scroll-video { background-color: var(--wp--preset--color--off-black); }
body.dark-mode #page.site:has(header.is-style-home) header.site-header { color: inherit; }

@media (prefers-color-scheme: dark) {
    .is-style-home a { color: inherit; }
    .is-style-home.is-yellow-background {background-color: var(--wp--preset--color--off-black); color: var(--wp--preset--color--yellow); }
    .is-style-home.is-rorange-background {background-color: var(--wp--preset--color--off-black); color: var(--wp--preset--color--rorange); }
    .is-style-home.is-pink-background {background-color: var(--wp--preset--color--off-black); color: var(--wp--preset--color--pink); }
    .is-style-home.is-green-background {background-color: var(--wp--preset--color--off-black); color: var(--wp--preset--color--green); }
    .is-style-home.is-blue-background {background-color: var(--wp--preset--color--off-black); color: var(--wp--preset--color--blue);  }

    .is-style-home + .wp-block-beech-scroll-video { background-color: var(--wp--preset--color--off-black); }
    #page.site:has(header.is-style-home) header.site-header { color: inherit; }
}



.is-style-home + .wp-block-beech-scroll-video { transition: all 150ms ease; }

.is-style-article {
    padding-top: var(--block-space, 6rem);
    padding-bottom: var(--block-space, 6rem);
}
.is-style-article h1,
.is-style-article-image h1 {
    font-weight: bold;
}

.is-style-article h1, .is-style-article h2,
.is-style-project h1, .is-style-project h2,
.editor-styles-wrapper .is-style-article h1, .editor-styles-wrapper .is-style-article h2,
.editor-styles-wrapper .is-style-project h1, .editor-styles-wrapper .is-style-project h2,
.is-style-article-image h1,
.editor-styles-wrapper .is-style-article-image h1 {
    font-size: var(--wp--preset--font-size--2-xl);
}


.is-style-home h1,
.is-style-side-dude h1,
.editor-styles-wrapper .is-style-home h1,
.editor-styles-wrapper .is-style-side-dude h1 {
    font-size: var(--wp--preset--font-size--3-xl);
}

.is-style-home .header__inner-blocks > *,
.is-style-side-dude .header__inner-blocks > * {
    /* display: inline-block; */
    /* margin-right: 1rem; */
}
.is-style-home .header__inner-blocks > .wp-block-beech-eyebrow,
.is-style-side-dude .header__inner-blocks > .wp-block-beech-eyebrow {
    display: inline-flex;
}
.is-style-side-dude .header__inner-blocks > *:last-child {
    margin-bottom: 0;
}

.is-style-article .header__inner-blocks  {
    grid-column: 2 / 10;
}
.is-style-project {
    padding-top: var(--block-space, 6rem);
    padding-bottom: var(--block-space, 6rem);
}
.is-style-project .header__inner {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: var(--xy-col-gap);
    align-items: start;
    row-gap: 4rem;
}
.is-style-project .header__project-content {
    grid-column: span 4;
}
.is-style-project .header__inner-blocks {
    grid-column: 7 / 12;
}
.is-style-project .header__inner-blocks > *:last-child { margin-bottom: 0; }

.header__project-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: var(--xy-col-gap);
    row-gap: 4rem;
}
.header__project-content h6 {
    color: var(--wp--preset--color--mid-gray);
    margin-bottom: 1rem;
}
.header__project-content ul {
    margin: 0;
    padding: 0;
    list-style: none;
    margin-bottom: 0rem;
}
.is-style-project .header__inner-blocks h1 {
    margin-bottom: 3.25rem;
}


.is-style-side-dude .header__inner { position: relative; }
.is-style-side-dude .color-boiz { 
    position: absolute; 
    right: var(--gutter);
    bottom: 0;
    /*translate: 0% 100%;*/
}

.is-style-contact .header__inner {
    padding-top: 6rem;
}
.is-style-contact .header__inner-blocks {
    max-width: 72rem;
    margin-inline: auto;
    display: flex;
    flex-wrap: wrap;
}
.is-style-contact .header__inner-blocks > * { width: 100%; }
.is-style-contact .header__inner-blocks > .wp-block-heading:first-of-type,
.is-style-contact .header__inner-blocks > .wp-block-beech-contact:first-of-type {
    margin-right: 2rem;
    width: calc(50% - 2rem);
}

.wp-block-beech-header .gform_wrapper {
    margin-top: 6rem;
}

.block-editor-block-list__layout .block-editor-block-list__block.wp-block-beech-header > div { width: 100%; }

/*
.wp-block-beech-header.is-style-home::before {
    content: '';
    position: absolute;
    top: 50%;
    translate: -50% 0;
    height: 3px;
    width: 100%;
    background-color: hotpink;
}
*/


.header__marquee-track {
    position: relative;
    display: flex;
    width: fit-content;
    white-space: nowrap;
    animation: marquee 15s linear infinite;
    animation-play-state: running;
}
.header__marquee-wrap {
    overflow: hidden;
    white-space: nowrap;
    /* margin-bottom: 4rem; */
    /* padding-top: 12vh; */
}
.header__marquee-group {
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 4rem;
    white-space: nowrap;
    margin-right: 5rem;
    margin-left: var(--gutter);
}
h1.header__marquee-text {
    font-size: 11vw;
    letter-spacing: -0.3vw;
    translate: -1.125vw 0;
    font-family: var(--wp--preset--font-family--champion);
    text-transform: uppercase;
}

header .wp-block-heading { line-height: 1.3;}

.wp-block-beech-header > .wp-block-beech-header { padding: 0;}

.wp-block-beech-header:has( + .wp-block-beech-articles ) {
    padding-bottom: 1rem;
}

.editor-styles-wrapper .is-style-home h1.header__marquee-text { font-size: 12vw; }
.editor-styles-wrapper .wp-block-beech-header.is-style-home { height: auto; }
.editor-styles-wrapper .wp-block-beech-header.is-style-home .header__marquee-track { animation-play-state: paused;} 

.editor-styles-wrapper .is-style-home .header__byline, 
.editor-styles-wrapper .is-style-home .header__links a {
    font-size: calc(var(--wp--preset--font-size--x-large) * 1.3);
}


a.button-with-count {
    /* text-decoration: none; */
    /* color: inherit; */
    /* padding: 1rem 1.5rem; */
    /* border: solid 1px currentColor; */
    /* border-radius: 3rem; */
    /* display: block; */
    /* transition: all 150ms ease; */
    margin-top: 1rem;
    /* text-decoration-thickness: 8px; */
    text-decoration: none;
    color: inherit;
    padding: 1.5rem 2.65rem 1.55rem;
    border: solid 1px currentColor;
    border-radius: 3rem;
    display: inline-block;
    transition: all 150ms ease;
    position: relative;
    line-height: 1;
}
a.button-with-count .count {
    vertical-align: super;
    margin-left: 0.075rem;
    font-size: 0.75em;
    vertical-align: super;
    margin-left: 0.1rem;
    color: var(--wp--preset--color--mid-gray);
    font-size: 0.65em;
    position: absolute;
    margin-top: -0.15rem;
}
a.button-with-count:hover {
    background-color: var(--body-text);
    color: var(--body-bg);
    border-color: var(--body-text);
}


.single-project .wp-block-beech-header .wp-block-heading:not(h1) { margin-bottom: 1.5rem;}

.is-style-article-image .has-bg-image .header__inner-wrap {
    /*background-image: var(--_bg-image);
    background-size: cover;
    background-repeat: no-repeat;*/
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 40%, rgba(0, 0, 0, 0.7) 100%), var(--_bg-image) no-repeat center center;
    background-size: cover, cover;
    min-height: 70vh;
    min-height: 70svh;
    display: grid;
    row-gap: var(--xy-row-gap);
    column-gap: var(--xy-col-gap);
    grid-template-columns: repeat(var(--xy-grid-cols, 12), 1fr);
    grid-auto-flow: row;
    justify-items: stretch;
    align-items: center;
    justify-content: stretch;
    align-content: stretch;
    color: var(--wp--preset--color--white);
}
.is-style-article-image .has-bg-image .header__inner-wrap > * {
    grid-column: 2 / 9;
}
.is-style-article-image {
    margin-bottom: var(--block-space);
}
.wp-block-beech-header .wp-block-beech-date-category a { color: inherit; text-decoration: none; }
.wp-block-beech-header .wp-block-beech-date-category:first-child {
    margin-bottom: 1.5rem;
}
.wp-block-beech-header .wp-block-beech-reading-time:last-child {
    margin-top: 1.5rem;
} 

@media screen and (min-width: 1140px) and (max-height: 860px) { 
    header a.button-with-count { margin-top: 0; }
    .wp-block-beech-header.is-style-home {
        padding-bottom: 3rem;
    }
}

@media screen and (max-width: 1140px) {
    h1.header__marquee-text {font-size: 14vw;}
    .is-style-home .header__inner-blocks { grid-column: span 6;}
    .is-style-home .header__links {/* grid-column: 8 / 13; */}
}
@media screen and (max-width: 1024px) {
    .is-style-home .header__links {grid-column:  span 12;grid-row: auto;flex-direction: column;gap: 1.25rem;justify-content: flex-start;}
    .is-style-home .header__links a { 
        /*font-size: var(--wp--preset--font-size--xl); */
        --_line-width: 0.125rem;
        --_icon-width: 2rem;
        gap: 1rem;
    }
    .is-style-home .header__inner-blocks { grid-column: span 7;}
    header a.button-with-count { margin-top: 0; }

}

@media screen and (max-width: 768px) {
    .is-style-project .header__inner {
        row-gap: 2rem;
    }
    .is-style-project .header__project-content {
        grid-column: span 6;
        grid-row-start: 2;
    }
    .is-style-project .header__inner-blocks {
        grid-column: span 10;
    }

    .is-style-home .header__marquee-track {
        animation-play-state: paused;
        padding-inline: var(--gutter);
        width: 100%;
    }
    .is-style-home .header__marquee-group {
        margin-right: 0;
        margin-left: 0;
        width: 100%;
        white-space: normal;
    }
    .is-style-home .header__marquee-group:nth-child(2) { display: none; }

    .is-style-home h1.header__marquee-text {
        translate: 0 0;
        line-height: 0.9;
        font-size: 11vw;
    }

    .is-style-home .header__marquee-wrap {
        overflow:visible;
    }
    .is-style-home .header__byline, .is-style-home .header__links a:not(.button-with-count) {
        font-size: var(--wp--preset--font-size--1-xl);
    }
    .is-style-home .header__inner-blocks {
        grid-column: span 9;
    }


    .header__marquee-wrap {
        position: static;
        translate: 0% 0vw;
        padding-bottom: 1.5rem;
    }
    
}

@media screen and (max-width: 668px) {
    .is-style-contact .header__inner-blocks { flex-direction: column; }
    .is-style-contact .contact-details__inner { padding-left: 0; margin-top: 2rem; width: 100%;}
    .is-style-contact .header__inner-blocks > .wp-block-heading:first-of-type { width: 100%; }
    .is-style-contact .header__inner-blocks > .wp-block-beech-contact:first-of-type { width: 100%;  margin-right: 0;}
    .wp-block-beech-header.is-style-contact .gform_wrapper { margin-top: 4rem; }
    .is-style-contact .gform_wrapper.gravity-theme .gform_fields { grid-column-gap: var(--gutter); }
    .is-style-contact .header-form_wrapper.gform_wrapper.gravity-theme .gform_fields .gfield { padding: 1rem var(--gutter); }
    .is-style-contact .header-form_wrapper.gform_wrapper.gravity-theme .gform_fields .gfield:not(.full-right) { grid-column: span 6;}
    .is-style-contact .header-form_wrapper.gform_wrapper.gravity-theme .gform_fields .gfield.gfield--width-full.full-right { grid-row: auto; grid-column: span 12;}
    .is-style-contact .header-form_wrapper.gform_wrapper.gravity-theme .gform_fields .gfield:nth-child(2) {
        border-top: solid 1px currentColor;
        border-bottom: solid 1px currentColor;
    }
    .is-style-contact .header-form_wrapper.gform_wrapper.gravity-theme .gform_fields .gfield:nth-child(3) {
        border-top: solid 0px currentColor;
        border-bottom: solid 0px currentColor;
    }


    .is-style-contact .header-form_wrapper.gform_wrapper.gravity-theme .gform_fields .gfield:not(.full-right),
    .is-style-contact .header-form_wrapper.gform_wrapper.gravity-theme .gform_fields .gfield.gfield--width-full.full-right {
        padding-inline: 0;
    }
}

/* XS */
@media screen and (max-width: 480px) {
    .is-style-project .header__project-content {
        grid-column: span 10;
    }
    .is-style-project .header__inner-blocks {
        grid-column: span 12;
    }


    .is-style-home .header__inner-blocks { grid-column: span 11;}
    .is-style-home .color-boiz {display: none;}
    header.wp-block-beech-header.is-style-home { min-height: 90vh;min-height: 100svh; height: auto; justify-content: flex-end; padding-bottom: 1rem; }
    .is-style-home .header__links { gap: 1rem; }
    .is-style-home .header__links a { justify-content: space-between; } 

   
     .is-style-contact .header-form_wrapper.gform_wrapper.gravity-theme .gform_footer {
        width:100%;
    }
    .is-style-contact .gform_wrapper.gravity-theme .gform_fields { display: block; }
    .is-style-contact .header-form_wrapper.gform_wrapper.gravity-theme .gform_fields .gfield:nth-child(2) { border-top: solid 0px transparent; }

    .is-style-home h1.header__marquee-text {
        font-size: 12.5vw;
    }

    .is-style-side-dude .header__inner-blocks {
        grid-column: span 10;
    }

}

@keyframes marqueeHeader {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}


/* Red Horizontal Indicator
header.align-content-center.is-style-home.wp-block-beech-header::after {
    content: '';
    width: 100%;
    height: 100%;
    height: 3px;
    background-color: red;
    top: 50%;
    position: absolute;
    translate: 0% -50%;
}
*/