/*
 * Client Reviews hero fix.
 *
 * Anchor to Divi's post-content wrapper, the semantic image-module class, and
 * the exact media-library image ID. Avoid generated section numbers and JS
 * detection so Divi/NitroPack cache regeneration cannot retarget the styles.
 */
body.sil-client-reviews-image-fix
	.et-l--post > .et_builder_inner_content > .et_pb_section:first-child {
	padding-top: 100px !important;
}

body.sil-client-reviews-image-fix .et-l--post .header-image-overlay {
	width: 380px !important;
	max-width: 380px !important;
	margin-right: auto !important;
	margin-left: auto !important;
}

body.sil-client-reviews-image-fix
	.et-l--post .header-image-overlay .et_pb_image_wrap {
	width: 100% !important;
}

body.sil-client-reviews-image-fix
	.et-l--post img.wp-image-26043085 {
	display: block !important;
	width: 100% !important;
	height: auto !important;
	max-height: none !important;
	object-fit: contain !important;
}

/* Divi stacks these columns through its 980px tablet breakpoint. */
@media (max-width: 980px) {
	body.sil-client-reviews-image-fix
		.et-l--post > .et_builder_inner_content > .et_pb_section:first-child {
		padding-top: 90px !important;
	}

	/* The repeated portrait adds roughly 265px before reviews on mobile. */
	body.sil-client-reviews-image-fix .et-l--post .header-image-overlay {
		display: none !important;
	}
}
