/* This page uses the existing shared header with its own hero overlay. */
.niomah-story-page .wp-site-blocks.niomah-story-header-overlay > header:has(> .niomah-header) {
	margin-block-end: calc(-1 * var(--niomah-story-header-height, 0px));
}

.niomah-story-page .wp-site-blocks.niomah-story-header-overlay > header .niomah-header:not(.is-scrolled) {
	background: transparent !important;
	border-color: #ffffff38;
	color: #fff;
}

.niomah-story-page .niomah-story-header-overlay .niomah-header :is(
	.wp-block-search__button,
	.wp-block-navigation__responsive-container-open,
	.wc-block-mini-cart__button
) {
	color: #fff;
}

.niomah-story-page .niomah-header :is(
	.wp-block-navigation__responsive-container.is-menu-open,
	.wp-block-navigation__submenu-container
) {
	color: var(--wp--preset--color--ink, #252421);
}

.niomah-story-page .niomah-our-story,
.niomah-story-page .niomah-our-story > .wp-block-post-content > * {
	margin-block: 0;
}

.niomah-story-page .niomah-story-header-overlay .niomah-story-hero > .wp-block-cover__inner-container {
	padding-block-start: var(--niomah-story-header-height, 0px);
}

.niomah-story-hero-title {
	font-size: clamp(3.1rem, 9vw, 8.75rem);
	margin-block: 0 .12em;
}

.niomah-story-kicker {
	font-size: .78rem;
	letter-spacing: .23em;
	text-transform: uppercase;
}

.niomah-story-section-title {
	font-size: clamp(2.4rem, 5vw, 5rem);
	margin-block: 0 .4em;
}

.niomah-story-vision-statement {
	font-family: var(--wp--preset--font-family--editorial, Georgia, serif);
	font-size: clamp(2rem, 4.3vw, 4rem);
	line-height: 1.08;
}

.niomah-story-wordmark {
	font-family: 'Storystone', var(--wp--preset--font-family--editorial, Georgia, serif);
	font-size: clamp(3.9rem, 10vw, 9rem);
	letter-spacing: .09em;
	line-height: 1;
	margin-block: 0 .1em;
}

.wp-block-cover:is(.niomah-story-media, .niomah-story-detail-image) {
	min-height: 0;
}

.niomah-story-media {
	aspect-ratio: 4 / 5;
}

.niomah-story-detail-image {
	aspect-ratio: 4 / 3;
}

.niomah-story-copy p {
	max-width: 47ch;
}

.niomah-story-details .wp-block-column > h3 {
	font-size: clamp(1.35rem, 2.2vw, 1.85rem);
}

@media (min-width: 782px) {
	.niomah-story-copy:not([class*="is-vertically-aligned-"]) {
		align-self: center;
	}
}

.niomah-our-story .wp-block-button__link {
	min-height: 44px;
}

.niomah-our-story .wp-block-button__link:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 4px;
}

@media (max-width: 781px) {
	/* The mobile default follows the saved 75vh desktop default; custom heights win. */
	.niomah-our-story .niomah-story-hero[style*="min-height:75vh"] {
		min-height: 65vh !important;
	}
}

@media (max-width: 768px) {
	.niomah-story-page .niomah-header {
		padding: .25rem clamp(.625rem, 3vw, 1.25rem) !important;
	}
}
