.wp-block-beech-text-row { padding-block: var(--block-space, 6rem); }
.wp-block-beech-text-row .wp-block-beech-text-row { padding-block: 0 var(--block-space-narrow, 3rem); }

.wp-block-beech-header.is-style-title + .wp-block-beech-text-row {
    padding-top: 0;
}


.text-row__inner {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
    padding-inline: var(--gutter, 2rem);
    overflow: hidden;
}
.text-row__inner .text-row__inner { padding-inline: 0; }
.text-row__inner .wp-block-image img { width: 100%; object-fit: cover; }

.text-row__inner > *:nth-child(2n+1) { grid-column: span 6; }
.text-row__inner > *:nth-child(2n+2) {  grid-column: span 5; }


.border-top .hr,
.border-bottom .hr {
    content: '';
    width: calc(100% - 2 * var(--gutter));
    margin-inline: var(--gutter);
    border-top: solid 1px var(--wp--preset--color--mid-gray);
}
.border-top .hr:first-child {margin-bottom: var(--block-space);}
.border-bottom .hr:last-child { margin-top: 6rem; }


/**
 * Column Styles
 */

.is-style-single .text-row__inner > * { grid-column: 1 / 8; }
.is-style-single-wide .text-row__inner > * { grid-column: 1 / 9; }


.is-style-five-six-one .text-row__inner > :nth-child(2n+1) { grid-column: span 5; }
.is-style-five-six-one .text-row__inner > :nth-child(2n+2) { grid-column: span 6; }

.is-style-five-six-one .text-row__inner > .wp-block-image:nth-child(2n+2) { grid-column: 8 / 10; }

.is-style-equal-narrow .text-row__inner > *:nth-child(2n+1){ grid-column: 1 / 5; }
.is-style-equal-narrow .text-row__inner > *:nth-child(2n+2){ grid-column: 7 / 12; }

.is-style-equal-narrow .text-row__inner > .wp-block-image:nth-child(2n+1) { grid-column: 1 / 3; }
.is-style-equal-narrow .text-row__inner > .wp-block-image:nth-child(2n+2) { grid-column: 6 / 12; }

.is-style-three-columns .text-row__inner {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.is-style-three-columns .text-row__inner > * {grid-column: span 1 !important;}



/* OLD */
.is-style-narrow-left .text-row__inner {
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
}

.is-style-narrow-left .text-row__inner > :nth-child(1n) { grid-column: span 4; }
.is-style-narrow-left .text-row__inner > :nth-child(2n) { grid-column: span 8; }


.is-style-single-offest .text-row__inner > :nth-child(1n) { grid-column: span 5; }
.is-style-single-offest .text-row__inner > :nth-child(2n) { grid-column: span 6; }

.is-style-full-dog .text-row__inner {
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
}

.wp-block-beech-text-row + .wp-block-beech-text-row {
    padding-top: 0;
}
/*
.wp-block-beech-text-row.border-bottom:has( + .wp-block-beech-text-row ) {
    padding-bottom: 0;
}*/



/*
.wp-block-beech-text-area {
    outline: 2px solid salmon;
}
*/

@media screen and (max-width: 1024px) {
    .is-style-narrow-left .text-row__inner> :nth-child(1n) { grid-column: span 8;  }
    .is-style-narrow-left .text-row__inner> :nth-child(2n) { grid-column: 4 / 13; }

    .is-style-single .text-row__inner > * { grid-column: 1 / 10; }

    .is-style-single-wide .text-row__inner > * { grid-column: 1 / 11; }

    
    .is-style-equal-narrow .text-row__inner > *:nth-child(2n+1) { 
        grid-column: span 5;
    }

    .is-style-equal-narrow .text-row__inner > .wp-block-image:nth-child(2n+1) { grid-column: span 3;}
    .is-style-five-six-one .text-row__inner > .wp-block-image:nth-child(2n+2) { grid-column: 8 / 12;}

}
@media screen and (max-width: 768px) {
    .text-row__inner > *:nth-child(2n+1),
    .text-row__inner > *:nth-child(2n+2) { grid-column: span 10; }


    .text-row__inner > *:nth-child(2n+1),
    .text-row__inner > *:nth-child(2n+2) { grid-column: span 10; }

    .is-style-equal-narrow .text-row__inner > *:nth-child(n) { grid-column: span 10; }

    .is-style-five-six-one .text-row__inner > *:nth-child(2n+1) { grid-column: span 9; }
    .is-style-five-six-one .text-row__inner > *:nth-child(2n+2) { grid-column: 4 / 13; }


    .is-style-equal-narrow .text-row__inner > .wp-block-image:nth-child(2n+1) { grid-column: span 4;}

    .is-style-five-six-one .text-row__inner > .wp-block-image:nth-child(2n+2) { grid-column: 9 / 13;}
    .is-style-five-six-one .text-row__inner > .wp-block-image:nth-child(2n+1) { grid-column: 1 / 8;}
}
@media screen and (max-width: 480px) {
    .text-row__inner > *:nth-child(2n+1),
    .text-row__inner > *:nth-child(2n+2) { grid-column: span 12; }

    .is-style-narrow-left .text-row__inner > :nth-child(1n),
    .is-style-narrow-left .text-row__inner> :nth-child(2n),

    .is-style-single .text-row__inner > *,
    .is-style-single-wide .text-row__inner > * { grid-column: span 12;}


    .is-style-five-six-one .text-row__inner > *:nth-child(2n+1),
    .is-style-five-six-one .text-row__inner > *:nth-child(2n+2) { grid-column: span 12; }

    .is-style-equal-narrow .text-row__inner,
    .is-style-five-six-one .text-row__inner,
    .text-row__inner > .wp-block-image:nth-child(2n+1) {
        grid-column: span 12;
        display: block;
    }
    .text-row__inner > .wp-block-image:nth-child(2n+2) {
        display: none;
    }
    /*
    .is-style-equal-narrow .text-row__inner > .wp-block-image:nth-child(2n+1) { grid-column: 1/7; grid-row: 1 / 1; position:relative; z-index: 5; translate: calc(var(--gutter) * -1) calc(var(--gutter) * -1);}
    .is-style-equal-narrow .text-row__inner > .wp-block-image:nth-child(2n+2) { grid-column: 4 / 13; grid-row: 1 / 1; position:relative; z-index: 3; translate: calc(var(--gutter) * 1) calc(var(--gutter) * 1);}

    .is-style-five-six-one .text-row__inner > .wp-block-image:nth-child(2n+1) { grid-column: 1 / 9;  grid-row: 1 / 1; position:relative; z-index: 3; translate: calc(var(--gutter) * -1) calc(var(--gutter) * -1); }
    .is-style-five-six-one .text-row__inner > .wp-block-image:nth-child(2n+2) { grid-column: 7 / 13;  grid-row: 1 / 1; position:relative; z-index: 5; translate: calc(var(--gutter) * 1) calc(var(--gutter) * 1); }
    */
    
}


.block-editor-block-list__block.is-selected.wp-block-beech-text-row > div > .text-row__inner > .wp-block {
    outline: yellow 2px solid;
}