/* Layout from the public site, shared by Gutenberg and migrated content. */
.home .wp-block-columns.full {
	max-width: 100%;
	gap: 0;
}

.home .wp-block-columns + .wp-block-cover {
	margin-top: -50px;
}

.home .wp-block-columns .wp-block-column.has-background {
	padding: 60px;
}

.home h2 {
	font-size: 2.6667em;
}

.home h3 {
	font-size: 1.8em;
	margin-bottom: 30px;
}

.home h2::after {
	content: "";
	display: block;
	width: 3%;
	height: 1px;
	margin: 0.6667em auto;
	background-color: #a32e26;
}

/* Retain the theme's edge alignment and the original 768px grid breakpoint. */
.post_content .wp-block-columns.lawyer-layout-row {
	align-items: flex-start !important;
	gap: 0;
	margin-block: 0;
	margin-inline: -15px;
	max-width: none;
	width: auto;
}

.post_content .wp-block-columns.lawyer-layout-row.layout-full-width {
	margin-inline: 0;
	width: 100%;
	overflow: hidden;
}

.post_content .lawyer-layout-row > .wp-block-column {
	flex-shrink: 0;
	overflow-wrap: normal;
	word-break: normal;
}

@media (max-width: 767px) {
	.post_content .wp-block-columns.lawyer-layout-row:not(.is-not-stacked-on-mobile) {
		display: flow-root !important;
	}
}

@media (min-width: 768px) {
	.post_content .lawyer-layout-row {
		flex-wrap: nowrap !important;
	}
}

@media (min-width: 768px) and (max-width: 781px) {
	.post_content .lawyer-layout-row > .lawyer-layout-column {
		flex-basis: var(--lawyer-column-width, 0) !important;
	}
}

/* Retain the Lawyer grid gutters and wrapping with native Gutenberg markup. */
.post_content .wp-block-columns.lawyer-native-columns {
	flex-wrap: wrap !important;
	gap: 0;
	margin-block: 0;
	margin-inline: 0 -30px;
	max-width: none;
	width: auto;
}

@media (max-width: 799px) {
	.post_content .wp-block-columns.lawyer-native-columns {
		margin-right: -20px;
	}
}

@media (max-width: 479px) {
	.post_content .wp-block-columns.lawyer-native-columns {
		margin-right: -10px;
	}
}

.post_content .lawyer-native-columns:not([class*="are-vertically-aligned-"]),
.post_content .lawyer-native-columns.are-vertically-aligned-top {
	align-items: flex-start !important;
}

.post_content .lawyer-native-columns.are-vertically-aligned-center {
	align-items: center !important;
}

.post_content .lawyer-native-columns.are-vertically-aligned-bottom {
	align-items: flex-end !important;
}

.post_content .lawyer-native-columns::before,
.post_content .lawyer-native-columns::after {
	display: none;
}

.wp-block-columns.lawyer-native-columns > .wp-block-column.lawyer-native-column {
	flex-basis: auto !important;
	flex-grow: 0;
	flex-shrink: 0;
	overflow-wrap: normal;
	word-break: normal;
}

:where(.lawyer-native-columns) > .lawyer-native-column[style*="--lawyer-column-width"] {
	width: var(--lawyer-column-width);
}

.post_content .lawyer-native-columns.is-not-stacked-on-mobile {
	flex-wrap: nowrap !important;
}

.post_content .lawyer-native-columns.is-not-stacked-on-mobile > .lawyer-native-column[style*="--lawyer-column-width"] {
	width: var(--lawyer-column-width);
}

.post_content .lawyer-layout-text,
.post_content .lawyer-layout-spacer {
	margin-block: 0;
}

.post_content .lawyer-layout-text :last-child {
	margin-bottom: 0;
}

.post_content .lawyer-layout-row.layout-background-white,
.post_content .lawyer-layout-column.layout-background-white > .vc_column-inner {
	background-color: #fff;
}

.post_content .lawyer-layout-column.layout-background-paper > .vc_column-inner {
	background-color: #f9f9f8;
}

.post_content .lawyer-layout-row.layout-rounded {
	border-radius: 4px;
}

.post_content .lawyer-layout-column.layout-profile-photo > .vc_column-inner {
	margin-top: 1em;
	margin-bottom: 5.3em;
}

.post_content .lawyer-layout-column.layout-profile-text > .vc_column-inner {
	margin-top: 0.5em;
	margin-bottom: 5.3em;
}

.post_content .lawyer-layout-text.layout-team-intro {
	margin-top: 1.7em;
}

.post_content .lawyer-layout-text.layout-practice-intro {
	margin-bottom: 3.4em !important;
}

.post_content .lawyer-layout-text.layout-profile-intro {
	margin-top: 0.9em;
}

/* Keep the typographic space previously created by the quote's empty paragraphs. */
.post_content .lawyer-layout-row .sc_title:has(> blockquote),
.post_content .lawyer-layout-row .sc_title:has(> blockquote) + .sc_title {
	padding-top: 1em;
}

.post_content .lawyer-layout-row .sc_content:has(> .sc_title > blockquote):has(> .sc_title + h4:not(.sc_title):last-child) {
	padding-bottom: 1em;
}

.lawyer-layout-image.layout-image-raised {
	margin-top: -13px !important;
}

.lawyer-layout-image.layout-image-right-gap {
	margin-right: 25px !important;
}

.lawyer-layout-image.layout-image-full {
	width: 100%;
}
