/* Centered Image Block (.ms-cimgblk)
 * Scoped like other Block Builder blocks so base.css * { padding:0 } does not win. */
body.template-block-builder .wp-block-acf-centered-image-block,
body.template-page .wp-block-acf-centered-image-block,
body.template-component-demo .wp-block-acf-centered-image-block,
.editor-styles-wrapper .wp-block-acf-centered-image-block {
	border: 0;
	border-top: 0;
	border-bottom: 0;
	margin-top: 0;
	margin-bottom: 0;
}

body.template-block-builder .ms-cimgblk,
body.template-page .ms-cimgblk,
body.template-component-demo .ms-cimgblk,
.editor-styles-wrapper .ms-cimgblk {
	--ms-cimgblk-bg: #e9e1d0;
	--ms-cimgblk-ink: #241f21;
	--ms-cimgblk-cream: #f5f0e0;
	--ms-cimgblk-green: #1c4220;
	--ms-cimgblk-hero-placeholder: #d4cbb8;
	--ms-cimgblk-max: 1200px;
	background: var(--ms-cimgblk-bg);
	box-sizing: border-box;
	border: 0;
	border-top: 0;
	border-bottom: 0;
	margin: 0;
	padding: 100px 72px 100px;
	width: 100%;
}

body.template-block-builder .ms-cimgblk__inner,
body.template-page .ms-cimgblk__inner,
body.template-component-demo .ms-cimgblk__inner,
.editor-styles-wrapper .ms-cimgblk__inner {
	max-width: var(--ms-cimgblk-max);
	margin-left: auto;
	margin-right: auto;
	width: 100%;
	padding: 0;
}

body.template-block-builder .ms-cimgblk__hero,
body.template-page .ms-cimgblk__hero,
body.template-component-demo .ms-cimgblk__hero,
.editor-styles-wrapper .ms-cimgblk__hero {
	position: relative;
	width: 100%;
	margin: 0 0 64px;
	padding: 0;
	border: 0;
}

body.template-block-builder .ms-cimgblk__hero-media,
body.template-page .ms-cimgblk__hero-media,
body.template-component-demo .ms-cimgblk__hero-media,
.editor-styles-wrapper .ms-cimgblk__hero-media,
.ms-cimgblk__hero-media {
	position: relative;
	width: 100%;
	max-height: var(--ms-rebrand-hero-max-height, 550px);
	overflow: hidden;
	margin: 0;
	padding: 0;
	border: 0;
}

body.template-block-builder .ms-cimgblk__hero-img,
body.template-page .ms-cimgblk__hero-img,
body.template-component-demo .ms-cimgblk__hero-img,
.editor-styles-wrapper .ms-cimgblk__hero-img,
body.template-block-builder .ms-cimgblk__hero-placeholder,
body.template-page .ms-cimgblk__hero-placeholder,
body.template-component-demo .ms-cimgblk__hero-placeholder,
.editor-styles-wrapper .ms-cimgblk__hero-placeholder,
.ms-cimgblk__hero-img,
.ms-cimgblk__hero-placeholder {
	display: block;
	width: 100%;
	max-height: var(--ms-rebrand-hero-max-height, 550px);
	aspect-ratio: 1200 / 560;
	object-fit: cover;
	margin: 0;
	padding: 0;
	border: 0;
}

body.template-block-builder .ms-cimgblk__hero-placeholder,
body.template-page .ms-cimgblk__hero-placeholder,
body.template-component-demo .ms-cimgblk__hero-placeholder,
.editor-styles-wrapper .ms-cimgblk__hero-placeholder {
	background: var(--ms-cimgblk-hero-placeholder);
}

body.template-block-builder .ms-cimgblk__hero-overlay,
body.template-page .ms-cimgblk__hero-overlay,
body.template-component-demo .ms-cimgblk__hero-overlay,
.editor-styles-wrapper .ms-cimgblk__hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(90.03deg, rgba(36, 31, 33, 0.48) 0.03%, rgba(36, 31, 33, 0.12) 99.97%);
	pointer-events: none;
	margin: 0;
	padding: 0;
	border: 0;
}

body.template-block-builder .ms-cimgblk__hero-content,
body.template-page .ms-cimgblk__hero-content,
body.template-component-demo .ms-cimgblk__hero-content,
.editor-styles-wrapper .ms-cimgblk__hero-content {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 24px;
	padding: 40px 48px;
	margin: 0;
	border: 0;
	text-align: center;
}

body.template-block-builder .ms-cimgblk__eyebrow,
body.template-page .ms-cimgblk__eyebrow,
body.template-component-demo .ms-cimgblk__eyebrow,
.editor-styles-wrapper .ms-cimgblk__eyebrow {
	font-family: 'Roboto', var(--font-body, sans-serif);
	font-weight: 400;
	font-style: normal;
	font-size: 24px;
	line-height: 1;
	letter-spacing: 0.05em;
	text-align: center;
	text-transform: uppercase;
	color: var(--ms-cimgblk-cream);
	margin: 0;
	padding: 0;
	border: 0;
}

body.template-block-builder .ms-cimgblk__headline,
body.template-page .ms-cimgblk__headline,
body.template-component-demo .ms-cimgblk__headline,
.editor-styles-wrapper .ms-cimgblk__headline {
	font-family: var(--font-heading, 'Lora', Georgia, serif);
	font-weight: 500;
	font-style: normal;
	font-size: 72px;
	line-height: 1.2;
	letter-spacing: 0;
	text-align: center;
	color: var(--ms-cimgblk-cream);
	margin: 0;
	padding: 0;
	border: 0;
	text-transform: none;
	max-width: 100%;
}

body.template-block-builder .ms-cimgblk__cards,
body.template-page .ms-cimgblk__cards,
body.template-component-demo .ms-cimgblk__cards,
.editor-styles-wrapper .ms-cimgblk__cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
}

body.template-block-builder .ms-cimgblk__card,
body.template-page .ms-cimgblk__card,
body.template-component-demo .ms-cimgblk__card,
.editor-styles-wrapper .ms-cimgblk__card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	min-width: 0;
	width: 100%;
	margin: 0;
	padding: 32px 0 0;
	border: 0;
	border-top: 1px solid var(--ms-cimgblk-ink);
}

body.template-block-builder .ms-cimgblk__card-title,
body.template-page .ms-cimgblk__card-title,
body.template-component-demo .ms-cimgblk__card-title,
.editor-styles-wrapper .ms-cimgblk__card-title {
	font-family: 'Roboto', var(--font-body, sans-serif);
	font-weight: 500;
	font-style: normal;
	font-size: 18px;
	line-height: 1.8;
	letter-spacing: 0;
	color: var(--ms-cimgblk-ink);
	margin: 0 0 16px;
	padding: 0;
	border: 0;
	text-transform: none;
}

body.template-block-builder .ms-cimgblk__card-text,
body.template-page .ms-cimgblk__card-text,
body.template-component-demo .ms-cimgblk__card-text,
.editor-styles-wrapper .ms-cimgblk__card-text {
	font-family: 'Roboto', var(--font-body, sans-serif);
	font-weight: 300;
	font-style: normal;
	font-size: 18px;
	line-height: 1.8;
	letter-spacing: 0;
	color: var(--ms-cimgblk-ink);
	margin: 0 0 32px;
	padding: 0;
	border: 0;
	text-align: left;
}

body.template-block-builder .ms-cimgblk__btn,
body.template-page .ms-cimgblk__btn,
body.template-component-demo .ms-cimgblk__btn,
.editor-styles-wrapper .ms-cimgblk__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 18px 60px;
	margin: auto 0 0;
	border: 2px solid var(--ms-cimgblk-green);
	border-radius: 35px;
	background: transparent;
	font-family: 'Roboto', var(--font-body, sans-serif);
	font-weight: 400;
	font-style: normal;
	font-size: 14px;
	line-height: 1;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--ms-cimgblk-green);
	transition: background 0.2s ease, color 0.2s ease;
}

body.template-block-builder .ms-cimgblk__btn:hover,
body.template-page .ms-cimgblk__btn:hover,
body.template-component-demo .ms-cimgblk__btn:hover,
.editor-styles-wrapper .ms-cimgblk__btn:hover,
body.template-block-builder .ms-cimgblk__btn:focus-visible,
body.template-page .ms-cimgblk__btn:focus-visible,
body.template-component-demo .ms-cimgblk__btn:focus-visible,
.editor-styles-wrapper .ms-cimgblk__btn:focus-visible {
	background: var(--ms-cimgblk-green);
	color: var(--ms-cimgblk-cream);
	outline: none;
}

@media (max-width: 1024px) {
	body.template-block-builder .ms-cimgblk,
	body.template-page .ms-cimgblk,
	body.template-component-demo .ms-cimgblk,
	.editor-styles-wrapper .ms-cimgblk {
		padding-left: 40px;
		padding-right: 40px;
	}

	body.template-block-builder .ms-cimgblk__headline,
	body.template-page .ms-cimgblk__headline,
	body.template-component-demo .ms-cimgblk__headline,
	.editor-styles-wrapper .ms-cimgblk__headline {
		font-size: clamp(2.25rem, 6vw, 4.5rem);
	}

	body.template-block-builder .ms-cimgblk__cards,
	body.template-page .ms-cimgblk__cards,
	body.template-component-demo .ms-cimgblk__cards,
	.editor-styles-wrapper .ms-cimgblk__cards {
		grid-template-columns: 1fr;
		gap: 40px;
	}
}

@media (max-width: 600px) {
	body.template-block-builder .ms-cimgblk,
	body.template-page .ms-cimgblk,
	body.template-component-demo .ms-cimgblk,
	.editor-styles-wrapper .ms-cimgblk {
		padding-top: 60px;
		padding-bottom: 120px;
		padding-left: 24px;
		padding-right: 24px;
	}

	body.template-block-builder .ms-cimgblk__hero,
	body.template-page .ms-cimgblk__hero,
	body.template-component-demo .ms-cimgblk__hero,
	.editor-styles-wrapper .ms-cimgblk__hero {
		margin-bottom: 48px;
	}

	body.template-block-builder .ms-cimgblk__hero-content,
	body.template-page .ms-cimgblk__hero-content,
	body.template-component-demo .ms-cimgblk__hero-content,
	.editor-styles-wrapper .ms-cimgblk__hero-content {
		padding: 24px;
		gap: 16px;
	}

	body.template-block-builder .ms-cimgblk__eyebrow,
	body.template-page .ms-cimgblk__eyebrow,
	body.template-component-demo .ms-cimgblk__eyebrow,
	.editor-styles-wrapper .ms-cimgblk__eyebrow {
		font-size: 18px;
	}

	body.template-block-builder .ms-cimgblk__headline,
	body.template-page .ms-cimgblk__headline,
	body.template-component-demo .ms-cimgblk__headline,
	.editor-styles-wrapper .ms-cimgblk__headline {
		font-size: clamp(2rem, 10vw, 2.75rem);
	}

	body.template-block-builder .ms-cimgblk__btn,
	body.template-page .ms-cimgblk__btn,
	body.template-component-demo .ms-cimgblk__btn,
	.editor-styles-wrapper .ms-cimgblk__btn {
		padding: 18px 60px;
		width: 100%;
		max-width: 318px;
	}
}
