/* Cache-safe legacy hero correction. Works with either PHP slug detection or the rendered image URL. */
body.n6d-authority-project .n6d-single-hero__image{
	box-sizing:border-box;
	background:#ebe7de;
}
body.n6d-legacy-project-portrait-hero .n6d-single-hero__image,
body.n6d-authority-project .n6d-single-hero__image:has(>img.wp-post-image[src*="/nhadep6d-browser-sync-fix/assets/images/projects/"]){
	display:grid!important;
	width:min(calc(100% - 48px),1200px)!important;
	max-height:none!important;
	place-items:center;
	margin-inline:auto!important;
	padding:clamp(20px,3vw,42px)!important;
	overflow:hidden!important;
}
body.n6d-legacy-project-portrait-hero .n6d-single-hero__image img.wp-post-image,
body.n6d-authority-project .n6d-single-hero__image>img.wp-post-image[src*="/nhadep6d-browser-sync-fix/assets/images/projects/"]{
	display:block!important;
	width:auto!important;
	height:min(76vh,820px)!important;
	max-width:100%!important;
	max-height:820px!important;
	margin:0 auto!important;
	object-fit:contain!important;
	object-position:center!important;
}
@media(max-width:720px){
	body.n6d-legacy-project-portrait-hero .n6d-single-hero__image,
	body.n6d-authority-project .n6d-single-hero__image:has(>img.wp-post-image[src*="/nhadep6d-browser-sync-fix/assets/images/projects/"]){
		width:calc(100% - 28px)!important;
		padding:0!important;
		background:transparent;
	}
	body.n6d-legacy-project-portrait-hero .n6d-single-hero__image img.wp-post-image,
	body.n6d-authority-project .n6d-single-hero__image>img.wp-post-image[src*="/nhadep6d-browser-sync-fix/assets/images/projects/"]{
		width:100%!important;
		height:auto!important;
		max-height:none!important;
	}
}
