/* Podstrona realizacji (single-mh_project.php).
 *
 * Wzorzec pełnej szerokości jak single-model.css: ThemeREX ogranicza .content
 * do ~850px — rozpychamy wrappery scoped do body.single-mh_project, header
 * i footer zostają nietknięte. Paleta: docs/PALETA-KOLOROW-MODULHAUS.md. */

body.single-mh_project {
	--mh-navy: #0F1923;
	--mh-gold: #C8A96E;
	--mh-gold-dark: #A88750;
	--mh-gold-light: #E2C99A;
	--mh-bg: #FAFAFA;
	--mh-bg-warm: #F5F0E8;
	--mh-border: #E5DED2;
	--mh-text: #626B72;
	--mh-meta: #92989A;
}

body.single-mh_project .page_content_wrap {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}
body.single-mh_project .content_wrap {
	max-width: 100% !important;
	width: 100% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}
body.single-mh_project .content {
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
}
body.single-mh_project .sidebar_main,
body.single-mh_project .sidebar {
	display: none !important;
}

/* ---- Typografia brandowa ------------------------------------------------ */
body.single-mh_project .mh-project {
	font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: var(--mh-text);
}
body.single-mh_project .mh-project h1,
body.single-mh_project .mh-project h2,
body.single-mh_project .mh-project h3 {
	font-family: "Hanken Grotesk", "DM Sans", sans-serif;
	font-weight: 600;
	color: var(--mh-navy);
	letter-spacing: .2px;
}

/* ---- Hero --------------------------------------------------------------- */
body.single-mh_project .mh-project__hero {
	position: relative;
	min-height: 420px;
	max-height: 640px;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	background: var(--mh-navy);
}
body.single-mh_project .mh-project__hero-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
body.single-mh_project .mh-project__hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to top,
		rgba(15, 25, 35, .9) 0%,
		rgba(15, 25, 35, .45) 45%,
		rgba(15, 25, 35, .15) 100%
	);
}
body.single-mh_project .mh-project__hero--plain { min-height: 260px; }
body.single-mh_project .mh-project__hero-inner {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 1160px;
	margin: 0 auto;
	padding: 120px 24px 48px;
}
body.single-mh_project .mh-project__eyebrow {
	color: var(--mh-gold-light);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1.6px;
	text-transform: uppercase;
	margin: 0 0 10px;
}
body.single-mh_project .mh-project__title {
	color: #FAFAFA;
	font-size: 44px;
	line-height: 1.15;
	margin: 0 0 10px;
}
body.single-mh_project .mh-project__hero-meta {
	color: #D8D9D6;
	font-size: 16px;
	margin: 0;
}

/* ---- Treść -------------------------------------------------------------- */
body.single-mh_project .mh-project__body {
	max-width: 1160px;
	margin: 0 auto;
	padding: 48px 24px 80px;
}

body.single-mh_project .mh-project__facts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0 24px;
	margin: 0 0 40px;
}
body.single-mh_project .mh-project__fact {
	padding: 16px 0;
	border-bottom: 1px solid var(--mh-gold-light);
}
body.single-mh_project .mh-project__fact dt {
	font-size: 12px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--mh-meta);
	margin: 0 0 4px;
}
body.single-mh_project .mh-project__fact dd {
	font-size: 22px;
	color: var(--mh-navy);
	margin: 0;
}

body.single-mh_project .mh-project__content {
	max-width: 760px;
	font-size: 17px;
	line-height: 1.7;
	margin: 0 0 40px;
}
body.single-mh_project .mh-project__content a { color: var(--mh-gold-dark); }

/* ---- Galeria ------------------------------------------------------------ */
body.single-mh_project .mh-project__gallery-title {
	font-size: 34px;
	margin: 40px 0 24px;
}
body.single-mh_project .mh-project__gallery {
	list-style: none;
	margin: 0 0 40px;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}
body.single-mh_project .mh-project__gallery-item { margin: 0; }
body.single-mh_project .mh-project__gallery-item img {
	display: block;
	width: 100%;
	height: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 0;
}

body.single-mh_project .mh-project__video {
	display: block;
	width: 100%;
	max-height: 640px;
	aspect-ratio: 16 / 9;
	background: var(--mh-navy);
	border-radius: 0;
	margin: 0 0 40px;
}

/* ---- Link powrotny ------------------------------------------------------ */
body.single-mh_project .mh-project__back { margin: 0; }
body.single-mh_project .mh-project__back a {
	color: var(--mh-gold);
	font-weight: 600;
	text-decoration: none;
}
body.single-mh_project .mh-project__back a:hover { color: var(--mh-gold-dark); }
body.single-mh_project .mh-project__back a:focus-visible {
	outline: 2px solid var(--mh-gold-dark);
	outline-offset: 2px;
}

/* ---- Responsywność ------------------------------------------------------ */
@media (max-width: 1023px) {
	body.single-mh_project .mh-project__gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	body.single-mh_project .mh-project__title { font-size: 30px; }
	body.single-mh_project .mh-project__hero { min-height: 320px; }
	body.single-mh_project .mh-project__hero-inner { padding: 90px 20px 32px; }
	body.single-mh_project .mh-project__facts { grid-template-columns: 1fr; }
	body.single-mh_project .mh-project__gallery { grid-template-columns: 1fr; }
	body.single-mh_project .mh-project__gallery-title { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
	body.single-mh_project * { transition: none !important; }
}
