/*
 * WordPress block layout support styles.
 * These are normally emitted inline by core's block-supports/global-styles when
 * blocks are rendered through the parser. Our page content is stored as HTML
 * carrying the same layout classes, so we ship the identical rules here to make
 * columns/groups lay out exactly like the original site.
 */
:where(.is-layout-flex){gap:0.5em;}
:where(.is-layout-grid){gap:0.5em;}

body .is-layout-flow > .alignleft{float:left;margin-inline-start:0;margin-inline-end:2em;}
body .is-layout-flow > .alignright{float:right;margin-inline-start:2em;margin-inline-end:0;}
body .is-layout-flow > .aligncenter{margin-left:auto !important;margin-right:auto !important;}
body .is-layout-constrained > .alignleft{float:left;margin-inline-start:0;margin-inline-end:2em;}
body .is-layout-constrained > .alignright{float:right;margin-inline-start:2em;margin-inline-end:0;}
body .is-layout-constrained > .aligncenter{margin-left:auto !important;margin-right:auto !important;}
body .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)){max-width:var(--wp--style--global--content-size);margin-left:auto !important;margin-right:auto !important;}
body .is-layout-constrained > .alignwide{max-width:var(--wp--style--global--wide-size);}

body .is-layout-flex{display:flex;}
body .is-layout-flex{flex-wrap:wrap;align-items:center;}
body .is-layout-flex > *{margin:0;}
body .is-layout-grid{display:grid;}
body .is-layout-grid > *{margin:0;}

:where(.wp-block-columns.is-layout-flex){gap:2em;}
:where(.wp-block-columns.is-layout-grid){gap:2em;}
.wp-container-core-columns-is-layout-1.wp-container-core-columns-is-layout-1{flex-wrap:nowrap;}

/* column defaults (mirrors block-library) */
.wp-block-columns{align-items:normal !important;}
.wp-block-column{flex-grow:1;flex-basis:0;min-width:0;overflow-wrap:break-word;}
@media (max-width:781px){
	.wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column{flex-basis:100% !important;}
	.wp-container-core-columns-is-layout-1.wp-container-core-columns-is-layout-1{flex-wrap:wrap;}
}
