/* ==========================================================================
   Top banner icon (ACF: preview_icon)
   The icon sits centered on the bottom edge of the banner - half inside,
   half outside. It lives in .content-main-title-wrap (not in
   .content-main-title-wrap2, which has overflow:hidden and would clip it).
   ========================================================================== */

.content-main-title-wrap.has-banner-icon {
	--banner-icon-w: 170px;
	/* height/width of the image; overridden inline from the uploaded image */
	--banner-icon-ratio: 0.5059;
	position: relative;
	/* reserve room for the half of the icon that hangs below the banner */
	margin-bottom: calc(var(--banner-icon-w) * var(--banner-icon-ratio) / 2);
}

.content-main-banner-icon {
	width: var(--banner-icon-w);
	max-width: calc(100% - 40px);
	pointer-events: none;
	margin: 0 auto;
}

.content-main-banner-icon img {
	display: block;
	width: 100%;
	height: auto;
}

@media all and (max-width: 767px) {
	.content-main-title-wrap.has-banner-icon {
		--banner-icon-w: 120px;
	}
}