/* ========================================================================== 
   CGM Case Study Header
   ========================================================================== */

/* Hide Salient's category pill and normal post details on case studies. */
body.cgm-case-study-post
	#page-header-bg[data-post-hs="default_minimal"]
	.inner-wrap > a,
body.cgm-case-study-post #page-header-bg #single-below-header {
	display: none !important;
}

/* Salient centers this wrapper in the default minimal post header. */
body.cgm-case-study-post
	#page-header-bg[data-post-hs="default_minimal"]
	.inner-wrap {
	text-align: left !important;
	align-items: flex-start !important;
}

/* Use the full header container and align the case study content left. */
body.cgm-case-study-post #page-header-bg .section-title.blog-title {
	left: 0 !important;
	float: none !important;
	width: 100% !important;
	margin-left: 0 !important;
	text-align: left !important;
}

body.single-post.cgm-case-study-post
	#page-header-wrap
	#page-header-bg[data-post-hs="default_minimal"]
	.section-title.blog-title
	.inner-wrap
	h1.entry-title {
	display: block !important;
	align-self: flex-start !important;
	width: 100% !important;
	max-width: 920px !important;
	margin-right: auto !important;
	margin-left: 0 !important;
	text-align: left !important;
}

/* Case study details injected through Salient's post-header hook. */
.cgm-case-study-header-details {
	display: flex;
	flex-direction: column;
	gap: 3px;
	margin: 48px 0 0;
	padding: 0;
	color: #ffffff;
	font-size: 20px;
	line-height: 1.35;
	text-align: left;
}

.cgm-case-study-header-detail {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px;
	margin: 0;
	padding: 0;
}

.cgm-case-study-header-detail dt,
.cgm-case-study-header-detail dd {
	margin: 0;
	padding: 0;
	color: inherit;
	font: inherit;
}

.cgm-case-study-header-detail dt {
	font-weight: 700;
	text-transform: uppercase;
}

@media only screen and (max-width: 999px) {
	.cgm-case-study-header-details {
		margin-top: 36px;
		font-size: 16px;
	}
}

@media only screen and (max-width: 690px) {
	body.single-post.cgm-case-study-post
		#page-header-wrap
		#page-header-bg[data-post-hs="default_minimal"]
		.section-title.blog-title
		.inner-wrap
		h1.entry-title {
		max-width: 100% !important;
	}

	.cgm-case-study-header-details {
		gap: 7px;
		margin-top: 26px;
		font-size: 14px;
		line-height: 1.4;
	}

	.cgm-case-study-header-detail {
		display: block;
	}

	.cgm-case-study-header-detail dt,
	.cgm-case-study-header-detail dd {
		display: inline;
	}
}

/* Adjust the featured-image crop on Case Study posts only. */
/* body.single-post.cgm-case-study-post
	#page-header-bg
	.page-header-bg-image img {
	object-position: 50% 50% !important;
} */

/* Hide Related Posts on Case Study posts only. */
body.single-post.cgm-case-study-post .related-post-wrap {
	display: none !important;
}