.wp-block-acf-cpm-about-hero {
	margin-top: 0 !important;
	padding-top: 0 !important;
}

/* Remove GeneratePress inside-article top padding when this block is present */
.inside-article:has(.cpm-ah) {
	padding-top: 0 !important;
}

.entry-content:has(.cpm-ah) {
	padding-top: 0 !important;
}

.cpm-ah {
	background: transparent;
	padding: 0 0 40px;
	width: 100vw;
	position: relative;
	left: 50%;
	margin-left: -50vw;
	margin-top: 0;
	overflow: hidden;
}

.cpm-ah__container {
	position: relative;
	max-width: 100%;
	padding: 0;
	margin: 0;
}

/* ── Wrap: holds image + label overlay ───────────────────── */
.cpm-ah__wrap {
	position: relative;
	margin-left: 130px;
	margin-right: 130px;
	border-radius: 15px;
	overflow: visible;
}

/* ── Hero image ───────────────────────────────────────────── */
.cpm-ah__img {
	display: block;
	width: 100%;
	height: clamp(260px, 36vw, 440px);
	object-fit: cover;
	border-radius: 15px;
}

/* ── Label box ────────────────────────────────────────────── */
.cpm-ah__label {
	position: absolute;
	top: 50%;
	left: 0;
	transform: translateY(-50%);
	background: #ffffff;
	border-radius: 0 10px 10px 0;
	padding: 1.25rem 2rem 1.25rem 1.5rem;
	z-index: 2;
}

/* ── Heading ──────────────────────────────────────────────── */
.cpm-ah__heading {
	margin: 0;
	white-space: nowrap;
}

.cpm-ah__heading-dark {
	display: inline;
	font-family: 'Montserrat', sans-serif;
	font-style: normal;
	font-weight: 700;
	font-size: 56px;
	line-height: 60px;
	color: rgb(30, 30, 30);
}

.cpm-ah__heading-red {
	display: inline;
	font-family: 'Montserrat', sans-serif;
	font-style: normal;
	font-weight: 900;
	font-size: 56px;
	line-height: 60px;
	color: rgb(255, 0, 0);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
	.cpm-ah {
		padding: 0 0 20px;
	}

	.cpm-ah__wrap {
		margin-left: 20px;
		margin-right: 20px;
		border-radius: 15px;
		overflow: hidden;
	}

	.cpm-ah__img {
		height: clamp(220px, 55vw, 320px);
		border-radius: 15px;
	}

	.cpm-ah__label {
		position: absolute;
		bottom: 0;
		left: 0;
		top: auto;
		transform: none;
		border-radius: 0 10px 0 0;
		padding: 0 .75rem .2rem;
		background: #ffffff;
		border: none;
		box-shadow: none;
		outline: none;
	}

	.cpm-ah__heading {
		white-space: normal;
	}

	.cpm-ah__heading-dark,
	.cpm-ah__heading-red {
		font-size: 22px;
		line-height: 26px;
	}
}
