/*
 Theme Name:        Wrenhollow Photography
 Text Domain:       mortar-child-wrenhollow
 Author:            Macular
 Description:       Child theme for the Wrenhollow Photography demo site.
 Template:          mortar
 Version:           1.0.0
 Requires at least: 7.0
 Tested up to:      7.1
 Requires PHP:      8.3
 Update URI:        false
 License:           GNU General Public License v2 or later
 License URI:       http://www.gnu.org/licenses/gpl-2.0.html
*/

/* The parent theme supplies the heroes, sections, menu states and header fit. This file is only the brand. */
:root {
	--header-fit: 62;
	--header-logo: 13;
	
}

body {
	background: var(--xui-white);
	color: var(--xui-body);
	font-family: var(--xui-font-base);
}

h1,
h2,
h3,
h4 {
	color: var(--xui-body);
	font-family: var(--xui-font-heading);
	font-weight: 300;
}

.mortar-hero h1.wp-block-heading,
.mortar-section h2.wp-block-heading,
.mortar-section h3.wp-block-heading {
	font-weight: 300;
}

a {
	color: var(--xui-primary);
}

:focus-visible {
	outline: 3px solid var(--xui-secondary) !important;
	outline-offset: 2px;
}

/* Header: a strip with the phone number, then the menu. */
.demo-strip {
	background: var(--xui-primary);
	color: var(--xui-white);
	font-size: 0.875rem;
	font-weight: 500;
}

.demo-strip-in {
	display: flex;
	gap: 1rem;
	justify-content: space-between;
	padding-bottom: 0.5rem;
	padding-top: 0.5rem;
}

.demo-strip a {
	color: var(--xui-white);
	font-weight: 700;
	text-decoration: none;
}

@media (max-width: 767.98px) {
	.demo-strip-in > span:first-child,
	.demo-strip-right > span {
		display: none;
	}

	.demo-strip-in {
		justify-content: center;
	}
}

#header #menu > .nav-item > .nav-link {
	color: var(--xui-body);
	font-weight: 500;
}

#header #menu > .nav-item > .nav-link:hover {
	color: var(--xui-secondary);
}

#header #menu {
	--mortar-nav-active-color: var(--xui-secondary);
}

#header .dropdown-menu {
	border: 1px solid var(--xui-gray-300);
	border-radius: var(--xui-radius);
	box-shadow: 0 12px 30px rgb(0 0 0 / 10%);
	padding: 0.5rem;
}

#header .dropdown-menu .nav-link {
	color: var(--xui-body);
	padding: 0.5rem 0.75rem;
}

#header .dropdown-menu .nav-link:hover {
	background: var(--xui-gray-100);
}

#header .header__navbar-container a.btn-primary {
	background: var(--xui-secondary);
	border: 2px solid var(--xui-secondary);
	border-radius: var(--xui-radius-pill);
	color: var(--xui-white);
	font-weight: 700;
	padding: 0.75rem 1.25rem;
}

#header .header__logo img {
	height: auto;
	max-width: none;
	width: 100%;
}

@media (max-width: 1199.98px) {
	body #header .header__wrapper .header__logo {
		--logo-width: 11rem;
		width: 11rem;
	}
}

@media (min-width: 768px) {
	.header-fixed.home #front-page {
		padding-top: 6.875rem;
	}
}

.home #main {
	margin: 0;
	padding: 0;
}

.home #footer {
	margin-top: 0;
}

/* Footer */
#footer {
	background: var(--xui-primary);
	color: color-mix(in srgb, var(--xui-white) 82%, transparent);
}

#footer :where(h2, h3, .widget-title) {
	color: var(--xui-white);
	font: 700 0.8125rem/1.3 var(--xui-font-base);
	letter-spacing: 0.1em;
	margin-bottom: 0.875rem;
	text-transform: uppercase;
}

#footer a {
	color: var(--xui-white);
	text-decoration: none;
}

#footer a:hover {
	text-decoration: underline;
}

#footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

#footer li {
	margin-bottom: 0.5rem;
}

#footer .demo-foot-name {
	color: var(--xui-white);
	font: 300 1.5rem/1.2 var(--xui-font-heading);
	margin: 0 0 0.5rem;
}

/* Sections: body text a touch larger than the theme default. */
.mortar-section p {
	font-size: 1.0625rem;
}

.mortar-section :where(.mortar-card, .mortar-linkcards, .mortar-steps, .mortar-facts, .mortar-panel, .mortar-plan) :where(p, li) {
	font-size: 1rem;
}

/* Forms */
div.wpforms-container-full {
	--wpforms-button-border-radius: var(--xui-radius-pill);
	--wpforms-field-border-radius: var(--xui-radius);
	margin: 0;
}

div.wpforms-container-full .wpforms-form button[type="submit"] {
	background: var(--xui-secondary);
	border-radius: var(--xui-radius-pill);
	font-weight: 700;
	height: auto;
	padding: 0.875rem 1.75rem;
}

/*
 * Wrenhollow signature (see brand/design-brief.md):
 * one serif in two voices (Newsreader light, with one italic phrase), warm linen and paper bands,
 * hairline rules instead of boxes, square corners, photographs doing the colour.
 * Display serif for headings only; body, quotes and reviews in Instrument Sans.
 */
:root {
	--wh-accent: #7a4e33;
	--wh-rule: #cfc4b6;
	--wh-stone: #e4dcd1;
	--wh-ink-soft: #5c524a;
	--wh-moss: #6c705c;
	--wh-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--mortar-button-radius: 0;
}

body {
	font-size: 1.0625rem;
	line-height: 1.7;
}

:focus-visible {
	outline: 2px solid var(--wh-moss) !important;
	outline-offset: 3px;
}

/* Headings: Newsreader light, tight, never in capitals. One italic phrase per section via <em>. */
h1,
h2,
.mortar-hero h1.wp-block-heading,
.mortar-section h2.wp-block-heading,
#title-block #page-title {
	font-weight: 300;
	letter-spacing: -0.01em;
	line-height: 1.04;
	text-transform: none;
}

.mortar-hero h1.wp-block-heading,
#title-block #page-title {
	font-size: clamp(2.75rem, 1.6rem + 4.2vw, 5.5rem);
}

.mortar-section h2.wp-block-heading {
	font-size: clamp(2rem, 1.3rem + 2.4vw, 3.25rem);
	line-height: 1.08;
}

.mortar-section h3.wp-block-heading {
	font-size: clamp(1.375rem, 1.1rem + 0.8vw, 1.75rem);
	font-weight: 400;
	line-height: 1.2;
}

:where(h1, h2, h3) em {
	font-style: italic;
	font-weight: inherit;
}

.mortar-section p.mortar-lead,
.mortar-hero p.mortar-hero__lead {
	font-size: 1.25rem;
	line-height: 1.6;
}

.mortar-section p,
.mortar-section li {
	max-width: 68ch;
}

.mortar-section a:not(.wp-block-button__link) {
	text-decoration-color: var(--wh-accent);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

/* Buttons: square, 48px, sentence case. Solid ink; outline is a 1px ink rectangle. */
:is(.mortar-hero, .mortar-section) .wp-block-button__link,
#header .header__navbar-container a.btn-primary,
div.wpforms-container-full .wpforms-form button[type="submit"] {
	border-radius: 0;
	border-width: 1px;
	font-size: 0.9375rem;
	font-weight: 500;
	letter-spacing: 0.02em;
	min-height: 3rem;
	padding: 0.875rem 1.625rem;
}

#header .header__navbar-container a.btn-primary {
	background: var(--xui-primary);
	border: 1px solid var(--xui-primary);
	margin-left: 1rem;
}

/* Header: a calm wordmark in the serif, sentence-case links. */
#header .navbar-brand a {
	color: var(--xui-body);
	font: 400 calc(1.75 * var(--hs, 1rem))/1 var(--xui-font-heading);
	letter-spacing: -0.01em;
	text-decoration: none;
	white-space: nowrap;
}

#header #menu > .nav-item > .nav-link {
	font-size: 0.9375rem;
	font-weight: 500;
	letter-spacing: 0.02em;
}

#header .header__wrapper {
	border-bottom: 1px solid var(--wh-rule);
}

/* The booking line above the header (offers live here, never as a badge). */
.demo-strip {
	background: #33261f;
	font-size: 0.875rem;
	font-weight: 400;
}

.demo-strip-in {
	justify-content: center;
}

.demo-strip a {
	font-weight: 500;
	margin-left: 0.5rem;
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

@media (max-width: 767.98px) {
	.demo-strip-in > span:first-child {
		display: inline;
	}
}

/* Home: the header sits clear over the three photographs until the page scrolls. */
.header-fixed.home #front-page {
	padding-top: 0;
}

.header-fixed.home #header .trans-bkg.menu-not-collapsed.start-style {
	border-bottom-color: transparent;
}

.header-fixed.home #header .trans-bkg.menu-not-collapsed.start-style .navbar-brand a {
	color: var(--xui-white);
}

.header-fixed.home #header .trans-bkg.menu-not-collapsed.start-style a.btn-primary {
	background: var(--xui-white);
	border-color: var(--xui-white);
	color: var(--xui-body);
}

/* Footer on ink, set quietly. */
#footer :where(h2, h3, .widget-title) {
	font: 600 1rem/1.3 var(--xui-font-base);
	letter-spacing: 0;
	text-transform: none;
}

#footer .demo-foot-name {
	font-weight: 300;
	font-size: 2rem;
}

/* Section rhythm: more air than the theme default. */
.mortar-section {
	padding-bottom: clamp(5rem, 9vw, 9rem);
	padding-top: clamp(5rem, 9vw, 9rem);
}

/* Square photos everywhere. */
.mortar-section .wp-block-image img,
.mortar-hero .wp-block-image img {
	border-radius: 0;
}

/* ---------------------------------------------------------------- P1 triptych hero (Home) */
.mortar-hero.wh-triptych {
	--mortar-hero-bg: var(--xui-primary);
	display: grid;
	gap: 3px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	grid-template-rows: min(92vh, 860px);
	padding: 0;
}

.mortar-hero.wh-triptych > .wp-block-image {
	grid-row: 1;
	height: 100%;
	margin: 0 !important;
	min-height: 0;
	overflow: hidden;
	position: relative;
}

.mortar-hero.wh-triptych > .wp-block-image img {
	aspect-ratio: auto;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.mortar-hero.wh-triptych > .wp-block-image::after {
	background: linear-gradient(to top, rgb(28 22 19 / 66%), rgb(28 22 19 / 8%) 58%, rgb(28 22 19 / 30%));
	content: "";
	inset: 0;
	pointer-events: none;
	position: absolute;
}

.mortar-hero.wh-triptych > .wp-block-image:nth-of-type(1) { grid-column: 1; }
.mortar-hero.wh-triptych > .wp-block-image:nth-of-type(2) { grid-column: 2; }
.mortar-hero.wh-triptych > .wp-block-image:nth-of-type(3) { grid-column: 3; }

.mortar-hero.wh-triptych > .mortar-hero__inner {
	--mortar-outline-color: var(--xui-white);
	--mortar-outline-hover-bg: var(--xui-white);
	--mortar-outline-hover-text: var(--xui-body);
	align-self: end;
	color: var(--xui-white);
	grid-column: 1 / span 3;
	justify-self: center;
	margin: 0;
	width: 100%;
	grid-row: 1;
	max-width: 56rem;
	padding-bottom: clamp(3rem, 9vh, 6rem);
	position: relative;
	text-align: center;
	z-index: 1;
}

.mortar-hero.wh-triptych h1.wp-block-heading,
.mortar-hero.wh-triptych p.mortar-hero__lead {
	color: var(--xui-white);
	margin-left: auto;
	margin-right: auto;
}

.mortar-hero.wh-triptych p.mortar-hero__lead {
	font-size: 1.125rem;
	max-width: 40ch;
}

.mortar-hero.wh-triptych .wp-block-buttons {
	justify-content: center;
}

.mortar-hero.wh-triptych .wp-block-button:not(.is-style-outline) .wp-block-button__link {
	background: var(--xui-white);
	border-color: var(--xui-white);
	color: var(--xui-body);
}

@media (max-width: 47.99em) {
	.mortar-hero.wh-triptych {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-template-rows: auto auto;
	}

	.mortar-hero.wh-triptych > .wp-block-image:nth-of-type(2) {
		aspect-ratio: 4 / 5;
		grid-column: 1 / span 2;
		grid-row: 1;
	}

	.mortar-hero.wh-triptych > .wp-block-image:nth-of-type(1),
	.mortar-hero.wh-triptych > .wp-block-image:nth-of-type(3) {
		aspect-ratio: 1;
		grid-row: 2;
	}

	.mortar-hero.wh-triptych > .wp-block-image:nth-of-type(3) {
		grid-column: 2;
	}

	.mortar-hero.wh-triptych > .mortar-hero__inner {
		grid-column: 1 / span 2;
	}

	.mortar-hero.wh-triptych > .wp-block-image:nth-of-type(1)::after,
	.mortar-hero.wh-triptych > .wp-block-image:nth-of-type(3)::after {
		display: none;
	}

	.mortar-hero.wh-triptych > .mortar-hero__inner {
		grid-row: 1;
		padding-bottom: 2.5rem;
	}
}

/* ---------------------------------------------------------------- inset hero (Weddings, Lifestyle) */
.mortar-hero.wh-inset {
	--mortar-hero-bg: var(--xui-white);
	padding: 1.5rem 0 0;
}

.mortar-hero.wh-inset > .wp-block-image {
	height: min(76vh, 760px);
	margin: 0 1.5rem;
}

.mortar-hero.wh-inset > .wp-block-image img {
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.mortar-hero.wh-inset > .mortar-hero__inner {
	display: grid;
	gap: 1rem 4rem;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	padding-bottom: clamp(3rem, 6vw, 5rem);
	padding-top: clamp(2.5rem, 5vw, 4rem);
}

.mortar-hero.wh-inset h1.wp-block-heading {
	grid-row: span 3;
	margin: 0;
}

.mortar-hero.wh-inset p.mortar-hero__lead {
	margin-top: 0.5rem;
}

@media (max-width: 47.99em) {
	.mortar-hero.wh-inset > .wp-block-image {
		height: auto;
		margin: 0 1rem;
	}

	.mortar-hero.wh-inset > .wp-block-image img {
		aspect-ratio: 4 / 5;
	}

	.mortar-hero.wh-inset > .mortar-hero__inner {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ---------------------------------------------------------------- P2 service index */
.wh-index .wp-block-columns {
	align-items: center;
	gap: clamp(2rem, 6vw, 6rem);
}

.wh-index__photos {
	display: grid;
}

.wh-index__photos > .wp-block-image {
	grid-area: 1 / 1;
	margin: 0;
	transition: opacity 0.4s var(--wh-ease);
}

.wh-index__photos > .wp-block-image img {
	aspect-ratio: 2 / 3;
	object-fit: cover;
	width: 100%;
}

.wh-index__photos > .wp-block-image:not(:first-child) {
	opacity: 0;
}

.wh-index:has(.wh-index__row:not(:first-child):is(:hover, :focus-within)) .wh-index__photos > :first-child {
	opacity: 0;
}

.wh-index:has(.wh-index__row:nth-child(2):is(:hover, :focus-within)) .wh-index__photos > :nth-child(2),
.wh-index:has(.wh-index__row:nth-child(3):is(:hover, :focus-within)) .wh-index__photos > :nth-child(3),
.wh-index:has(.wh-index__row:nth-child(4):is(:hover, :focus-within)) .wh-index__photos > :nth-child(4) {
	opacity: 1;
}

.wh-index__list {
	border-top: 1px solid var(--wh-rule);
	counter-reset: wh-index;
	margin-top: 2.5rem;
}

.wh-index__row {
	border-bottom: 1px solid var(--wh-rule);
	counter-increment: wh-index;
	display: grid;
	gap: 0.25rem 1.25rem;
	grid-template-columns: 2.5rem minmax(0, 1fr) auto;
	padding: 1.75rem 0;
	position: relative;
}

.wh-index__row::before {
	color: var(--wh-ink-soft);
	content: counter(wh-index, decimal-leading-zero);
	font-size: 0.875rem;
	font-variant-numeric: tabular-nums;
	grid-column: 1;
	grid-row: 1;
	padding-top: 0.9rem;
}

.wh-index__row::after {
	align-self: center;
	content: "\2192";
	font-size: 1.5rem;
	grid-column: 3;
	grid-row: 1 / span 2;
	transition: transform 0.4s var(--wh-ease);
}

.wh-index__row:hover::after,
.wh-index__row:focus-within::after {
	transform: translateX(0.375rem);
}

.mortar-section .wh-index__row h3.wp-block-heading {
	font-size: clamp(2rem, 1.4rem + 2vw, 3rem);
	font-weight: 300;
	grid-column: 2;
	margin: 0;
}

.wh-index__row h3 a {
	color: inherit;
	text-decoration: none !important;
}

.wh-index__row h3 a::after {
	content: "";
	inset: 0;
	position: absolute;
}

.wh-index__row:hover h3 a {
	font-style: italic;
}

.wh-index__row p {
	color: var(--wh-ink-soft);
	font-size: 1rem;
	grid-column: 2;
	margin: 0;
}

@media (hover: none), (prefers-reduced-motion: reduce) {
	.wh-index__photos > .wp-block-image {
		transition: none;
	}
}

@media (max-width: 781.98px) {
	.wh-index__photos > .wp-block-image img {
		aspect-ratio: 4 / 5;
	}
}

/* ---------------------------------------------------------------- P3 intro split on a stone block */
.mortar-section.wh-intro {
	overflow-x: clip;
}

.wh-intro .wp-block-columns {
	gap: clamp(2rem, 6vw, 6rem);
}

.wh-intro .wp-block-column:first-child {
	position: relative;
}

.wh-intro .wp-block-column:first-child::before {
	background: var(--wh-stone);
	bottom: 3rem;
	content: "";
	left: -50vw;
	position: absolute;
	right: 18%;
	top: -4.5rem;
}

.wh-intro .wp-block-column:first-child > .wp-block-image {
	margin: 0;
	position: relative;
}

.wh-intro .wp-block-column:first-child > .wp-block-image img {
	aspect-ratio: 4 / 5;
	object-fit: cover;
	width: 100%;
}

.wh-intro .wp-block-column:last-child {
	padding-top: 2.5rem;
}

.wh-intro .wp-block-image.wh-intro__second {
	bottom: -3rem;
	position: absolute;
	right: -12%;
	width: 44%;
}

.wh-intro .wh-intro__second img {
	aspect-ratio: 3 / 4;
	border: 0.625rem solid var(--xui-white);
}

@media (max-width: 781.98px) {
	.wh-intro .wp-block-image.wh-intro__second {
		display: none;
	}

	.wh-intro .wp-block-column:first-child::before {
		right: 12%;
		top: -2rem;
	}
}

/* ---------------------------------------------------------------- P4 print on print */
.mortar-section.wh-pair {
	padding: 0;
}

.wh-pair > .mortar-section__inner {
	max-width: none;
	padding: 0;
}

.wh-pair__tiles {
	display: grid;
	gap: 4px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wh-pair__tile {
	display: grid;
	height: min(78vh, 720px);
	overflow: hidden;
	place-items: center;
	position: relative;
}

.wh-pair__tile > .wp-block-image.wh-pair__bg {
	inset: 0;
	margin: 0;
	position: absolute;
}

.wh-pair__bg img {
	filter: grayscale(0.85) blur(6px) brightness(0.62);
	height: 100%;
	object-fit: cover;
	transform: scale(1.08);
	width: 100%;
}

.wh-pair__body {
	color: var(--xui-white);
	position: relative;
	text-align: center;
	width: 100%;
}

.mortar-section .wh-pair__body h3.wp-block-heading {
	color: var(--xui-white);
	font-size: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
	font-weight: 300;
	margin: 0 auto 1.5rem;
	max-width: 18ch;
}

.wh-pair__body .wp-block-image {
	margin: 0 auto;
	width: 32%;
}

.wh-pair__body .wp-block-image img {
	aspect-ratio: 4 / 5;
	box-shadow: 0 24px 60px rgb(0 0 0 / 35%);
	object-fit: cover;
	width: 100%;
}

.mortar-section .wh-pair__body p {
	margin: 1.5rem auto 0;
}

.mortar-section .wh-pair__body p a {
	color: var(--xui-white);
	font-size: 0.9375rem;
}

@media (max-width: 47.99em) {
	.wh-pair__tiles {
		grid-template-columns: minmax(0, 1fr);
	}

	.wh-pair__tile {
		height: min(110vw, 640px);
	}

	.wh-pair__body .wp-block-image {
		width: 55%;
	}
}

/* ---------------------------------------------------------------- P7 one quote at a time */
.wh-quote .wp-block-columns {
	align-items: center;
	gap: clamp(2rem, 6vw, 5rem);
}

.wh-quote .wp-block-image {
	margin: 0;
}

.wh-quote .wp-block-image img {
	aspect-ratio: 4 / 5;
	object-fit: cover;
	width: 100%;
}

.mortar-section p.wh-quote__text {
	font-size: clamp(1.375rem, 1.1rem + 0.9vw, 1.75rem);
	line-height: 1.45;
	max-width: 34ch;
}

.mortar-section p.wh-quote__text::before {
	color: var(--wh-accent);
	content: "\201C";
	display: block;
	font: 300 5.5rem/0.6 var(--xui-font-heading);
	margin-bottom: 1rem;
}

.mortar-section p.wh-quote__who {
	color: var(--wh-ink-soft);
	font-size: 0.9375rem;
	margin-top: 1.5rem;
}

.wh-quotes {
	display: grid;
	max-width: 47.5rem;
}

.wh-quotes__row {
	align-items: start;
	border-top: 1px solid var(--wh-rule);
	display: grid;
	gap: 1.5rem;
	grid-template-columns: 10rem minmax(0, 1fr);
	padding: 2rem 0;
}

.wh-quotes__row:last-child {
	border-bottom: 1px solid var(--wh-rule);
}

.wh-quotes__row .wp-block-image {
	margin: 0;
}

.wh-quotes__row .wp-block-image img {
	aspect-ratio: 1;
	object-fit: cover;
	width: 100%;
}

.mortar-section .wh-quotes__row p:first-child {
	font-size: 1.25rem;
	line-height: 1.5;
	margin-top: 0;
}

@media (max-width: 47.99em) {
	.wh-quotes__row {
		grid-template-columns: 6rem minmax(0, 1fr);
	}
}

/* ---------------------------------------------------------------- P8 steps as numerals over hairlines */
.wh-steps ol.mortar-steps {
	counter-reset: mortar-step;
	gap: 2.5rem 2rem;
	grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
	margin-top: 3rem;
}

.mortar-section.wh-steps ol.mortar-steps li {
	background: none;
	border: 0;
	border-radius: 0;
	border-top: 1px solid var(--wh-rule);
	color: var(--wh-ink-soft);
	font-size: 1rem;
	padding: 1.5rem 0 0;
}

.mortar-section.wh-steps ol.mortar-steps li::before {
	background: none;
	border-radius: 0;
	color: var(--wh-accent);
	content: counter(mortar-step, decimal-leading-zero);
	display: block;
	font: 300 2.75rem/1 var(--xui-font-heading);
	height: auto;
	margin-bottom: 1rem;
	position: static;
	width: auto;
}

.mortar-section.wh-steps ol.mortar-steps li strong {
	color: var(--xui-body);
	display: block;
	font: 400 1.375rem/1.25 var(--xui-font-heading);
	margin-bottom: 0.5rem;
}

/* ---------------------------------------------------------------- P6 collections, ruled lines */
.wh-plans {
	display: grid;
	gap: 2.5rem;
	grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
	margin-top: 3rem;
}

.wh-plan {
	background: var(--wh-stone);
	display: flex;
	flex-direction: column;
	padding: 0.75rem 0.75rem 1.75rem;
}

.wh-plan > .wp-block-image {
	margin: 0 0 1.5rem;
}

.wh-plan > .wp-block-image img {
	aspect-ratio: 4 / 3;
	object-fit: cover;
	width: 100%;
}

.wh-plan > :not(.wp-block-image) {
	margin-left: 1rem;
	margin-right: 1rem;
}

.mortar-section .wh-plan h3.wp-block-heading {
	font-size: 1.75rem;
	font-weight: 300;
	margin-bottom: 0.25rem;
	margin-top: 0;
}

.mortar-section .wh-plan p.wh-plan__suits {
	color: var(--wh-ink-soft);
	font-size: 1rem;
	margin-top: 0;
}

.mortar-section p.wh-plan__price {
	font-size: 1.25rem;
	font-weight: 600;
	margin-bottom: 0;
	margin-top: auto;
	padding-top: 1.25rem;
}

ul.wh-lines {
	list-style: none;
	margin: 1rem 0 0;
	padding: 0;
}

.mortar-section ul.wh-lines li {
	border-top: 1px solid var(--wh-rule);
	font-size: 1rem;
	margin: 0;
	padding: 0.625rem 0;
}

.mortar-section ul.wh-lines li:last-child {
	border-bottom: 1px solid var(--wh-rule);
}

.wh-plans + .wp-block-buttons {
	margin-top: 2.5rem;
}

/* An in-page index (Investment). */
.wh-toc {
	columns: 2;
	column-gap: 3rem;
	counter-reset: wh-toc;
	list-style: none;
	margin: 2rem 0 0;
	padding: 0;
}

.mortar-section ul.wh-toc li {
	border-top: 1px solid var(--wh-rule);
	break-inside: avoid;
	counter-increment: wh-toc;
	display: flex;
	gap: 1rem;
	margin: 0;
	padding: 0.75rem 0;
}

.mortar-section ul.wh-toc li::before {
	color: var(--wh-ink-soft);
	content: counter(wh-toc, decimal-leading-zero);
	font-size: 0.875rem;
	padding-top: 0.2rem;
}

/* ---------------------------------------------------------------- P9 closing band and work strip */
.wp-block-cover.wh-cta {
	--mortar-outline-color: var(--xui-white);
	--mortar-outline-hover-bg: var(--xui-white);
	--mortar-outline-hover-text: var(--xui-body);
	min-height: 30rem;
	padding: clamp(4rem, 8vw, 6rem) 1.5rem;
}

.wp-block-cover.wh-cta .wp-block-cover__image-background {
	filter: grayscale(0.55);
}

.wp-block-cover.wh-cta .wp-block-cover__inner-container {
	color: var(--xui-white);
	margin: 0 auto;
	max-width: 44rem;
	text-align: center;
}

.wp-block-cover.wh-cta h2.wp-block-heading,
.wp-block-cover.wh-cta p {
	color: var(--xui-white);
	margin-left: auto;
	margin-right: auto;
}

.wp-block-cover.wh-cta .wp-block-buttons {
	justify-content: center;
	margin-top: 2rem;
}

.wp-block-cover.wh-cta .wp-block-button:not(.is-style-outline) .wp-block-button__link {
	background: var(--xui-white);
	border-color: var(--xui-white);
	color: var(--xui-body);
}

.mortar-section.wh-strip {
	padding: 4px 0 0;
}

.wh-strip > .mortar-section__inner {
	max-width: none;
	padding: 0;
}

.wh-strip__row {
	display: grid;
	gap: 4px;
	grid-template-columns: repeat(7, minmax(0, 1fr));
}

.wh-strip__row > .wp-block-image {
	margin: 0;
	overflow: hidden;
}

.wh-strip__row img {
	aspect-ratio: 1;
	object-fit: cover;
	transition: transform 0.6s var(--wh-ease);
	width: 100%;
}

.wh-strip__row a:hover img,
.wh-strip__row a:focus-visible img {
	transform: scale(1.04);
}

@media (max-width: 47.99em) {
	.wh-strip__row {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.wh-strip__row > :nth-child(n + 5) {
		display: none;
	}
}

/* ---------------------------------------------------------------- galleries */
.wh-masonry.wp-block-columns {
	gap: 0.75rem;
	margin-top: 3rem;
}

.wh-masonry .wp-block-column {
	display: grid;
	gap: 0.75rem;
}

.wh-masonry .wp-block-column:last-child {
	padding-top: clamp(3rem, 8vw, 8rem);
}

.wh-masonry .wp-block-image,
.wh-grid3 .wp-block-image,
.wh-mosaic .wp-block-image,
.wh-rows .wp-block-image {
	margin: 0;
}

.wh-masonry img {
	width: 100%;
}

.wh-grid3 {
	display: grid;
	gap: 0.75rem;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-top: 3rem;
}

.wh-grid3 img {
	aspect-ratio: 4 / 5;
	object-fit: cover;
	width: 100%;
}

.wh-mosaic {
	display: grid;
	gap: 0.75rem;
	grid-auto-rows: clamp(8rem, 13vw, 13rem);
	grid-template-columns: repeat(6, minmax(0, 1fr));
	margin-top: 2.5rem;
}

.wh-mosaic > .wp-block-image img {
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.wh-mosaic > :nth-child(1) { grid-area: 1 / 1 / 3 / 5; }
.wh-mosaic > :nth-child(2) { grid-area: 1 / 5 / 3 / 7; }
.wh-mosaic > :nth-child(3) { grid-area: 3 / 1 / 5 / 3; }
.wh-mosaic > :nth-child(4) { grid-area: 3 / 3 / 4 / 7; }
.wh-mosaic > :nth-child(5) { grid-area: 4 / 3 / 5 / 5; }
.wh-mosaic > :nth-child(6) { grid-area: 4 / 5 / 5 / 7; }

@media (max-width: 47.99em) {
	.wh-grid3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.wh-mosaic {
		grid-auto-rows: 42vw;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.wh-mosaic > :nth-child(n) {
		grid-area: auto;
	}

	.wh-mosaic > :nth-child(1),
	.wh-mosaic > :nth-child(4) {
		grid-column: 1 / -1;
	}
}

/* ---------------------------------------------------------------- P5 field notes (portfolio stories) */
.mortar-hero.wh-lead {
	--mortar-hero-bg: var(--xui-white);
	padding: 0;
}

.mortar-hero.wh-lead > .wp-block-image {
	margin: 0;
}

.mortar-hero.wh-lead > .wp-block-image img {
	aspect-ratio: 16 / 9;
	max-height: 80vh;
	object-fit: cover;
	width: 100%;
}

.mortar-hero.wh-lead > .mortar-hero__inner {
	padding-bottom: 1rem;
	padding-top: clamp(2.5rem, 5vw, 4rem);
}

.wh-glance {
	border-bottom: 1px solid var(--wh-rule);
	border-top: 1px solid var(--wh-rule);
	display: grid;
	gap: 1.5rem;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	padding: 1.5rem 0;
}

.mortar-section .wh-glance p {
	font-size: 1.125rem;
	margin: 0;
}

.wh-glance p span {
	color: var(--wh-ink-soft);
	display: block;
	font-size: 0.875rem;
}

.wh-narrow {
	margin-left: auto;
	margin-right: auto;
	max-width: 40rem;
}

.mortar-section .wh-narrow p {
	font-size: 1.125rem;
}

.wh-rows {
	display: grid;
	gap: 0.75rem;
}

.wh-rows .wp-block-image img {
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.wh-row--full img {
	aspect-ratio: 3 / 2;
}

.wh-row--pair {
	display: grid;
	gap: 0.75rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wh-row--pair img {
	aspect-ratio: 4 / 5;
}

.wh-row--mixed {
	display: grid;
	gap: 0.75rem;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2.25fr);
}

.wh-row--mixed > :first-child img {
	aspect-ratio: 2 / 3;
}

.wh-row--mixed > :last-child img {
	aspect-ratio: 3 / 2;
}

@media (max-width: 47.99em) {
	.wh-glance {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.wh-row--mixed {
		grid-template-columns: minmax(0, 1fr);
	}

	.wh-row--mixed img {
		aspect-ratio: 4 / 5 !important;
	}
}

/* ---------------------------------------------------------------- Portfolio opener and journal rows */
.wh-type-open {
	display: grid;
	gap: 1.5rem 2rem;
	grid-template-columns: repeat(12, minmax(0, 1fr));
}

.wh-type-open > h1.wp-block-heading {
	font-size: clamp(3.5rem, 2rem + 6vw, 7.5rem) !important;
	grid-column: 1 / 10;
	grid-row: 1;
	position: relative;
	z-index: 1;
}

.wh-type-open > .mortar-hero__lead {
	grid-column: 1 / 7;
	grid-row: 2;
}

.wh-type-open > .wp-block-image {
	grid-column: 8 / 13;
	grid-row: 1 / 4;
	margin: 4rem 0 0;
}

.wh-type-open > .wp-block-image img {
	aspect-ratio: 4 / 5;
	object-fit: cover;
	width: 100%;
}

@media (max-width: 47.99em) {
	.wh-type-open > h1.wp-block-heading,
	.wh-type-open > .mortar-hero__lead,
	.wh-type-open > .wp-block-image {
		grid-column: 1 / -1;
		grid-row: auto;
		margin-top: 0;
	}
}

.wh-minis {
	display: grid;
	gap: 2rem 3rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin-top: 3rem;
}

.wh-mini {
	align-items: center;
	border-top: 1px solid var(--wh-rule);
	display: grid;
	gap: 1.25rem;
	grid-template-columns: 8.75rem minmax(0, 1fr);
	padding-top: 1.5rem;
}

.wh-mini .wp-block-image {
	margin: 0;
}

.wh-mini .wp-block-image img {
	aspect-ratio: 1;
	object-fit: cover;
	width: 100%;
}

.mortar-section .wh-mini h3.wp-block-heading {
	font-size: 1.375rem;
	margin: 0 0 0.5rem;
}

.wh-mini h3 a {
	color: inherit;
	text-decoration: none !important;
}

.mortar-section .wh-mini p {
	font-size: 0.9375rem;
	margin: 0;
}

@media (max-width: 47.99em) {
	.wh-minis {
		grid-template-columns: minmax(0, 1fr);
	}

	.wh-mini {
		grid-template-columns: 6rem minmax(0, 1fr);
	}
}

/* Full-bleed photograph with no text (About). */
.mortar-section.wh-band-photo {
	padding: 0;
}

.wh-band-photo > .mortar-section__inner {
	max-width: none;
	padding: 0;
}

.wh-band-photo .wp-block-image {
	margin: 0;
}

.wh-band-photo .wp-block-image img {
	aspect-ratio: 21 / 9;
	object-fit: cover;
	width: 100%;
}

@media (max-width: 47.99em) {
	.wh-band-photo .wp-block-image img {
		aspect-ratio: 4 / 3;
	}
}

/* A two-column split with a photo (generic). */
.wh-split .wp-block-columns {
	align-items: center;
	gap: clamp(2rem, 6vw, 6rem);
}

.wh-split .wp-block-image {
	margin: 0;
}

.wh-split .wp-block-image img {
	aspect-ratio: 2 / 3;
	object-fit: cover;
	width: 100%;
}

.wh-split--wide .wp-block-image img {
	aspect-ratio: 3 / 2;
}

/* Contact form on paper. */
.wh-contact .wp-block-columns {
	gap: clamp(2rem, 6vw, 6rem);
}

.wh-contact div.wpforms-container-full {
	background: var(--xui-gray-100);
	padding: clamp(1.5rem, 3vw, 2.5rem);
}

/* Gentle entrances come from the parent's motion script; nothing here hides content. */
@media (prefers-reduced-motion: reduce) {
	.wh-index__row::after,
	.wh-strip__row img {
		transition: none;
	}
}

/* Password-protected client galleries: the WordPress password form, set like the rest of the site. */
.post-password-form {
	background: var(--xui-gray-100);
	margin: clamp(2rem, 6vw, 5rem) auto;
	max-width: 36rem;
	padding: clamp(1.5rem, 4vw, 3rem);
}

.post-password-form p:first-child {
	font-size: 1.125rem;
}

.post-password-form label {
	display: block;
	font-weight: 500;
}

.post-password-form input[type="password"] {
	background: var(--xui-white);
	border: 1px solid var(--wh-rule);
	border-radius: 0;
	display: block;
	font-size: 1.0625rem;
	margin: 0.5rem 0 1rem;
	min-height: 3rem;
	padding: 0.625rem 0.875rem;
	width: 100%;
}

.post-password-form input[type="submit"] {
	background: var(--xui-primary);
	border: 1px solid var(--xui-primary);
	border-radius: 0;
	color: var(--xui-white);
	font-size: 0.9375rem;
	font-weight: 500;
	min-height: 3rem;
	padding: 0.75rem 1.625rem;
}

.demo-strip-in a + a::before {
	content: "\00b7";
	display: inline-block;
	margin-right: 0.5rem;
	text-decoration: none;
}

/* ---------------------------------------------------------------- fixes from the page review */
/* Grid items line up: WordPress's flow layout adds a top margin to every item after the first. */
:is(.wh-pair__tiles, .wh-plans, .wh-minis, .wh-mini, .wh-grid3, .wh-mosaic, .wh-rows, .wh-row--pair, .wh-row--mixed, .wh-glance, .wh-strip__row, .wh-quotes, .wh-quotes__row, .wh-type-open, .wh-index__photos, .wh-masonry .wp-block-column, .mortar-hero.wh-triptych) > * {
	margin-block: 0 !important;
}

.wh-masonry .wp-block-column {
	align-content: start;
}

/* An odd number of photos on a phone: the first one spans both columns, so no photo sits alone. */
@media (max-width: 47.99em) {
	.wh-grid3 > :first-child:nth-last-child(odd) {
		grid-column: 1 / -1;
	}

	.wh-grid3 > :first-child:nth-last-child(odd) img {
		aspect-ratio: 3 / 2;
	}
}

/* Faces stay in frame when a photo is cropped. */
:is(.wh-rows, .wh-mosaic, .wh-grid3, .wh-plan, .wh-split, .wh-intro, .wh-quote, .wh-quotes__row, .wh-mini) img {
	object-position: 50% 30%;
}

/* Splits: a 4:5 photo keeps the text column and the photo closer in height. */
.wh-split .wp-block-image img {
	aspect-ratio: 4 / 5;
}

.wh-split .wp-block-column {
	align-self: center;
}

/* Collections: one even inset for everything inside the card. */
.wh-plan {
	padding: 0.75rem 0.75rem 1.75rem;
}

.wh-plan > * {
	margin-left: 0 !important;
	margin-right: 0 !important;
}

.wh-plan > :not(.wp-block-image) {
	padding-left: 1rem;
	padding-right: 1rem;
}

.mortar-section ul.wh-toc li::before {
	flex: none;
	white-space: nowrap;
}

/* Featured pair: titles balance and both tiles share the same layout. */
.wh-pair__tile > .wp-block-image.wh-pair__bg {
	z-index: 0;
}

.wh-pair__body {
	z-index: 1;
}

.mortar-section .wh-pair__body h3.wp-block-heading {
	text-wrap: balance;
}

/* Quotes: the large open-quote mark, attribution at a readable size. */
.mortar-section .wh-quote p.wh-quote__text::before {
	font-size: 5.5rem;
	line-height: 0.6;
}

.mortar-section .wh-quote p.wh-quote__who,
.mortar-section .wh-quotes p.wh-quote__who {
	font-size: 0.9375rem;
}

/* Questions as hairline rows in the body font, not boxed cards. */
.mortar-section .wp-block-details {
	background: none !important;
	border: 0 !important;
	border-bottom: 1px solid var(--wh-rule) !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.mortar-section .wp-block-details:first-child {
	border-top: 1px solid var(--wh-rule) !important;
}

.mortar-section .wp-block-details summary {
	font-family: var(--xui-font-base) !important;
	font-size: 1.0625rem !important;
	font-weight: 500 !important;
	padding: 1.125rem 2.5rem 1.125rem 0 !important;
}

.mortar-section .wp-block-details > :not(summary) {
	padding: 0 0 1.25rem;
}

/* Header: a hairline, no drop shadow. On phones the home header is a normal solid bar, so its wordmark stays dark. */
#header .header__wrapper,
#header .header__wrapper.scroll-on {
	box-shadow: none !important;
}

@media (max-width: 74.99em) {
	.header-fixed.home #header .trans-bkg.menu-not-collapsed.start-style .navbar-brand a {
		color: var(--xui-body);
	}
}

/* Top bar on phones: the sentence and one link, never broken mid-phrase. */
.demo-strip a {
	white-space: nowrap;
}

@media (max-width: 47.99em) {
	.demo-strip-in {
		flex-wrap: wrap;
		gap: 0.25rem 0.5rem;
	}

	.demo-strip-in a + a {
		display: none;
	}
}

/* Footer: the credit line stays one sentence; contact details get a full row on phones. */
#footer .ft-copy .copyright {
	display: block;
}

#footer .mortar-motion-toggle {
	white-space: nowrap;
}

#footer a[href^="mailto:"] {
	overflow-wrap: normal;
	white-space: nowrap;
	word-break: normal;
}

@media (max-width: 767.98px) {
	#footer .row > .column:last-child {
		flex: 0 0 100%;
		max-width: 100%;
	}
}

/* Openers that are not photo heroes (Contact, Investment, Client galleries). */
.mortar-hero.wh-plain {
	--mortar-hero-bg: var(--xui-white);
}

.mortar-hero.wh-plain .wp-block-columns {
	align-items: center;
	gap: clamp(2rem, 6vw, 6rem);
}

.mortar-hero.wh-plain .wp-block-image {
	margin: 0;
}

.mortar-hero.wh-plain .wp-block-image img {
	aspect-ratio: 4 / 5;
	object-fit: cover;
	width: 100%;
}

.mortar-hero.wh-plain p + p {
	margin-top: 1.25rem;
}

/* Journal: a reading column for posts, quiet dates and category links. */
.single-post .entry-content > :not(.alignfull):not(.alignwide) {
	margin-left: auto;
	margin-right: auto;
	max-width: 42.5rem;
}

.single-post .entry-content > :is(p, li) {
	font-size: 1.125rem;
}

.single-post .entry-content > h2 {
	font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.25rem);
	font-weight: 300;
	margin-top: 2.5rem;
}

.single-post .entry-content ul {
	list-style: none;
	padding-left: 0;
}

.single-post .entry-content ul li {
	border-top: 1px solid var(--wh-rule);
	padding: 0.5rem 0;
}

.wp-block-post-date,
.wp-block-post-date time {
	font-size: 0.9375rem;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
}

:is(.post-categories, .cat-links, .tags-links, .entry-footer) a {
	background: none !important;
	border: 0 !important;
	border-radius: 0 !important;
	color: var(--xui-body) !important;
	font-size: 0.9375rem;
	padding: 0 !important;
	text-decoration: underline;
	text-transform: none;
}

.wh-cats a {
	margin-right: 1.25rem;
}

/* Password gate for private galleries. */
.wh-gate {
	align-items: center;
	display: grid;
	gap: clamp(2rem, 6vw, 5rem);
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	margin: 0 auto;
	max-width: 75rem;
	padding: clamp(2rem, 6vw, 6rem) 1.5rem;
}

.wh-gate__photo img {
	aspect-ratio: 4 / 5;
	display: block;
	object-fit: cover;
	object-position: 50% 30%;
	width: 100%;
}

.wh-gate h1 {
	font-size: clamp(2.5rem, 1.6rem + 3vw, 4.25rem);
	margin: 0 0 1rem;
}

.wh-gate p {
	font-size: 1.125rem;
	max-width: 34rem;
}

.wh-gate label {
	display: block;
	font-weight: 500;
	margin-top: 1.75rem;
}

.wh-gate input[type="password"] {
	background: var(--xui-gray-100);
	border: 1px solid var(--wh-rule);
	border-radius: 0;
	display: block;
	font-size: 1.0625rem;
	margin: 0.5rem 0 1rem;
	max-width: 24rem;
	min-height: 3rem;
	padding: 0.625rem 0.875rem;
	width: 100%;
}

.wh-gate button {
	background: var(--xui-primary);
	border: 1px solid var(--xui-primary);
	border-radius: 0;
	color: var(--xui-white);
	font-size: 0.9375rem;
	font-weight: 500;
	min-height: 3rem;
	padding: 0.75rem 1.625rem;
}

.wh-gate__note {
	color: var(--wh-ink-soft);
	font-size: 0.9375rem !important;
	margin-top: 1.5rem;
}

@media (max-width: 47.99em) {
	.wh-gate {
		grid-template-columns: minmax(0, 1fr);
	}

	.wh-gate__photo img {
		aspect-ratio: 3 / 2;
	}
}

/* The protected page's own title bar is replaced by the gate's heading. */
.post-password-required #title-block {
	display: none;
}

/* About: the second photo overlaps the main photo's lower-right corner, with no mat. */
.wh-intro .wp-block-column:first-child > .wp-block-image.wh-intro__second {
	bottom: -3rem;
	position: absolute;
	right: -12%;
	width: 44%;
	z-index: 1;
}

.wh-intro .wh-intro__second img {
	border: 0;
	box-shadow: 0 20px 50px rgb(42 35 31 / 25%);
}

/* ---------------------------------------------------------------- second review */
/* Single posts: title, lead photo and text share one reading column. */
.single-post #main {
	padding-top: clamp(2.5rem, 6vw, 5rem);
}

.single-post #title-block,
.single-post article.post > *:not(.alignfull):not(.alignwide) {
	margin-left: auto;
	margin-right: auto;
	max-width: 42.5rem;
}

.single-post #title-block #page-title {
	font-size: clamp(2.5rem, 1.6rem + 3vw, 4rem);
	margin-bottom: 2rem;
}

.single-post .post-image {
	display: block;
	margin: 0 auto 3rem;
	max-width: 62.5rem;
	width: 100%;
}

.single-post article.post > p {
	font-size: 1.125rem;
	line-height: 1.75;
}

.single-post article.post > h2 {
	font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.25rem);
	font-weight: 300;
	margin-bottom: 1rem;
	margin-top: 3rem;
}

.single-post article.post > ul {
	list-style: none;
	padding-left: 0;
}

.single-post article.post > ul li {
	border-top: 1px solid var(--wh-rule);
	padding: 0.625rem 0;
}

.single-post article.post > ul li:last-child {
	border-bottom: 1px solid var(--wh-rule);
}

.single-post .cat-links {
	display: block;
	margin-top: 3rem;
}

/* Two bands of the same colour in a row read as one section. */
.mortar-section--white + .mortar-section--white:not(.wh-strip):not(.wh-pair):not(.wh-band-photo),
.mortar-section--light + .mortar-section--light {
	padding-top: 0;
}

.wh-glance + .wh-narrow {
	margin-top: 3.5rem;
}

/* Wedding gallery: two balanced columns, the browser evens out their heights. */
.wh-masonry {
	column-gap: 0.75rem;
	columns: 2;
	margin-top: 3rem;
}

.wh-masonry > .wp-block-image {
	break-inside: avoid;
	margin: 0 0 0.75rem !important;
}

.wh-masonry img {
	display: block;
	width: 100%;
}

/* Investment index inside the opener. */
ul.wh-toc {
	columns: 2;
	column-gap: 3rem;
	counter-reset: wh-toc;
	list-style: none;
	margin: 2rem 0 0;
	padding: 0;
}

ul.wh-toc li {
	border-top: 1px solid var(--wh-rule);
	break-inside: avoid;
	counter-increment: wh-toc;
	display: flex;
	gap: 1rem;
	margin: 0;
	padding: 0.75rem 0;
}

ul.wh-toc li::before {
	color: var(--wh-ink-soft);
	content: counter(wh-toc, decimal-leading-zero);
	flex: none;
	font-size: 0.875rem;
	padding-top: 0.2rem;
}

/* Quote mark sits close to its quote; quote rows centre in their band. */
.mortar-section p.wh-quote__text::before,
.mortar-section .wh-quote p.wh-quote__text::before {
	height: 0.55em;
	margin-bottom: 0.75rem;
	overflow: hidden;
}

.wh-quotes {
	margin-left: auto;
	margin-right: auto;
}

/* Back to top: a square ink button, clearly visible. */
#back-to-top {
	background: var(--xui-primary) !important;
	border: 0 !important;
	border-radius: 0 !important;
	color: var(--xui-white) !important;
	opacity: 0.92;
}

#back-to-top svg {
	stroke: var(--xui-white);
}

/* Top bar: a shorter sentence on phones keeps it to one line. */
@media (max-width: 47.99em) {
	.demo-strip .wh-long {
		display: none;
	}
}

/* Contact details and fields. */
.wh-contact a[href^="tel:"] {
	white-space: nowrap;
}

.wh-contact div.wpforms-container-full :is(input, select, textarea) {
	background: var(--xui-white) !important;
}

/* Cards: no border boxes; a quiet paper fill. */
.mortar-section .mortar-card {
	background: var(--xui-gray-100);
	border: 0;
	border-radius: 0;
}

.mortar-section .mortar-card .wp-block-image img,
.mortar-section .mortar-card img {
	border-radius: 0;
}

.wp-block-post-title {
	text-wrap: balance;
}

/* Brand hero: a tall photo beside the text. */
.mortar-hero .mortar-hero__image img {
	aspect-ratio: 4 / 5;
	object-fit: cover;
	object-position: 50% 30%;
}

/* Story galleries on phones: landscape frames stay landscape. */
@media (max-width: 47.99em) {
	.wh-row--mixed > :last-child img {
		aspect-ratio: 3 / 2 !important;
	}
}
