/* White Cube Studios: a gallery on white.
   The photographs carry the page; a fine serif names things, a small sans does the work.
   Everything is square-cornered; the only line weight is one hairline. */

@font-face {
	font-family: "Cormorant Garamond";
	src: url("../fonts/cormorant-garamond-latin-400.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Cormorant Garamond";
	src: url("../fonts/cormorant-garamond-latin-500.woff2") format("woff2");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Cormorant Garamond";
	src: url("../fonts/cormorant-garamond-latin-400-italic.woff2") format("woff2");
	font-weight: 400;
	font-style: italic;
	font-display: swap;
}
@font-face {
	font-family: "Manrope";
	src: url("../fonts/manrope-var-latin.woff2") format("woff2");
	font-weight: 200 800;
	font-style: normal;
	font-display: swap;
}

:root {
	--paper: #ffffff;
	--ink: #1c1c1c;
	--grey: #6b6b6b;
	--hair: #e4e4e4;
	--field-line: #8c8c8c;
	--field: #fafafa;
	--error: #9e2a1f;

	--serif: "Cormorant Garamond", "Times New Roman", serif;
	--sans: "Manrope", "Helvetica Neue", Arial, sans-serif;
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
	--margin: clamp(1rem, 3vw, 2.5rem);
	--header-h: 5.25rem;
	--space: clamp(5rem, 10vw, 8.5rem);

	color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: calc(var(--header-h) + 1rem);
}
@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 0.9375rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
address { font-style: normal; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }

.visually-hidden {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.skip {
	position: absolute;
	left: var(--margin);
	top: -4rem;
	z-index: 30;
	padding: 0.75rem 1.25rem;
	background: var(--ink);
	color: var(--paper);
}
.skip:focus { top: 0.75rem; }

/* A quiet underline that firms up on hover. */
.site-nav a,
.site-footer a,
.lines a,
.enquiry__fallback a,
.enquiry__legal a,
.founder__link,
.film__all,
.header-enquire,
.text-button {
	text-decoration: underline;
	text-decoration-color: transparent;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.3em;
	transition: text-decoration-color 0.3s var(--ease), color 0.3s var(--ease);
}
.site-nav a:hover,
.site-footer a:hover,
.lines a:hover,
.enquiry__fallback a:hover,
.enquiry__legal a:hover,
.founder__link:hover,
.film__all:hover,
.header-enquire:hover,
.text-button:hover { text-decoration-color: currentColor; color: var(--ink); }

.section-title {
	font-family: var(--serif);
	font-size: clamp(1.875rem, 2.6vw, 2.5rem);
	font-weight: 400;
	line-height: 1.1;
}

.button {
	display: inline-block;
	padding: 0.95rem 2.25rem;
	border: 1px solid var(--ink);
	border-radius: 0;
	background: var(--ink);
	color: var(--paper);
	font-family: var(--sans);
	font-size: 0.875rem;
	font-weight: 500;
	letter-spacing: 0.04em;
	cursor: pointer;
	transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
@media (hover: hover) { .button:hover { background: var(--paper); color: var(--ink); } }
.button:disabled { cursor: progress; opacity: 0.6; }

.text-button { padding: 0; border: 0; background: none; cursor: pointer; text-decoration-color: currentColor; }

/* ---------- Header ---------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 20;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	height: var(--header-h);
	padding-inline: var(--margin);
	background: var(--paper);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

.site-nav { display: contents; }
.site-nav__list { display: flex; gap: 1.75rem; color: var(--grey); font-size: 0.875rem; }
.site-nav__list--left { grid-column: 1; grid-row: 1; }
.site-nav__list--right { grid-column: 3; grid-row: 1; justify-content: flex-end; }
.site-nav a[aria-current="page"] { color: var(--ink); text-decoration-color: currentColor; }

/* Dropdowns: open on hover or focus for pointer users, and by click for everyone. */
.site-nav__group { position: relative; }
.site-nav__toggle {
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	cursor: pointer;
	transition: color 0.3s var(--ease);
}
.site-nav__toggle:hover,
.site-nav__toggle[aria-expanded="true"],
.site-nav__group.is-current .site-nav__toggle { color: var(--ink); }
.site-nav__sub {
	position: absolute;
	top: calc(100% + 1.1rem);
	left: -1.25rem;
	z-index: 5;
	display: grid;
	gap: 0.15rem;
	min-width: 13.5rem;
	padding: 1rem 1.25rem 1.1rem;
	background: var(--paper);
	border: 1px solid var(--hair);
	color: var(--grey);
	visibility: hidden;
	opacity: 0;
	transform: translateY(-0.25rem);
	transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
}
.site-nav__sub::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 1.1rem; }
.site-nav__sub a { display: block; padding: 0.3rem 0; white-space: nowrap; }
.site-nav__group:hover .site-nav__sub,
.site-nav__toggle[aria-expanded="true"] + .site-nav__sub {
	visibility: visible;
	opacity: 1;
	transform: none;
	transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s;
}

.wordmark {
	grid-column: 2;
	grid-row: 1;
	display: grid;
	justify-items: center;
	font-family: var(--serif);
	text-transform: uppercase;
	line-height: 1.15;
}
.wordmark__name { font-size: 1.25rem; font-weight: 500; letter-spacing: 0.42em; padding-left: 0.42em; white-space: nowrap; }
.wordmark__sub { font-size: 0.75rem; letter-spacing: 0.55em; padding-left: 0.55em; color: var(--grey); }

.menu-toggle {
	display: none;
	padding: 0.5rem 0;
	border: 0;
	background: none;
	font-size: 0.875rem;
	cursor: pointer;
}
.menu-toggle__close { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__close { display: inline; }
.header-enquire { display: none; }

/* ---------- Hero ---------- */

.hero { padding-inline: var(--margin); }
.hero__frame {
	position: relative;
	height: calc(100svh - var(--header-h) - 4.75rem);
	min-height: 26rem;
	overflow: hidden;
	background: #f2f2f2;
}
.hero__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 1.6s var(--ease), visibility 0s linear 1.6s;
}
.hero__slide.is-active {
	opacity: 1;
	visibility: visible;
	transition: opacity 1.6s var(--ease), visibility 0s;
}
.hero__slide .photo { width: 100%; height: 100%; object-fit: cover; }

.hero__line {
	display: flex;
	align-items: baseline;
	gap: 1rem 2rem;
	padding-top: 1.1rem;
}
.hero__title { font-family: var(--serif); font-size: 1.625rem; font-weight: 400; line-height: 1.2; }
.hero__sub { margin-left: auto; color: var(--grey); font-size: 0.875rem; }
.hero__toggle {
	padding: 0.3rem 0;
	margin-block: -0.3rem;
	border: 0;
	background: none;
	color: var(--grey);
	font-size: 0.875rem;
	cursor: pointer;
}
.hero__toggle:hover { color: var(--ink); }
.no-js .hero__toggle { display: none; }

.intro {
	max-width: 36rem;
	margin: var(--space) auto;
	padding-inline: var(--margin);
	font-family: var(--serif);
	font-size: clamp(1.5rem, 2.3vw, 2rem);
	line-height: 1.4;
	text-align: center;
	text-wrap: balance;
}
.about {
	max-width: 40rem;
	margin: calc(var(--space) * -0.5) auto var(--space);
	padding-inline: var(--margin);
	line-height: 1.6;
	text-align: center;
	color: var(--grey);
}

/* ---------- Photo walls (service pages) ---------- */

.wall { columns: 3; column-gap: clamp(1rem, 2vw, 1.75rem); }
.wall__item { break-inside: avoid; margin-bottom: clamp(1.75rem, 3vw, 2.75rem); }
.wall__item a { display: block; overflow: hidden; background: #f2f2f2; }
.wall__item .photo { width: 100%; transition: transform 1.2s var(--ease); }
.wall__item a:hover .photo { transform: scale(1.02); }
.wall__caption { margin-top: 0.6rem; color: var(--grey); font-size: 0.8125rem; line-height: 1.4; }

/* ---------- Homepage leads into the service pages ---------- */

.lead-section { padding: 0 var(--margin); text-align: center; }
.lead-section + .lead-section { margin-top: var(--space); }
.leads {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(1rem, 2vw, 1.75rem);
	margin-top: clamp(1.75rem, 3vw, 2.5rem);
	text-align: left;
}
.leads--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 72rem; margin-inline: auto; }
.lead a { display: block; }
.lead__media { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: #f2f2f2; }
.lead__media .photo { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.lead a:hover .photo { transform: scale(1.03); }
.lead__media--text { display: grid; place-items: center; padding: 2rem; transition: background-color 0.3s var(--ease); }
.lead a:hover .lead__media--text { background: #ebebeb; }
.lead__panel { max-width: 18ch; font-family: var(--serif); font-size: 1.375rem; line-height: 1.35; text-align: center; }
.lead__title {
	display: inline-block;
	margin-top: 0.9rem;
	font-family: var(--serif);
	font-size: 1.5rem;
	line-height: 1.2;
	text-decoration: underline;
	text-decoration-color: transparent;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
	transition: text-decoration-color 0.3s var(--ease);
}
.lead a:hover .lead__title { text-decoration-color: currentColor; }
.lead__note { display: block; margin-top: 0.15rem; color: var(--grey); font-size: 0.8125rem; }

/* ---------- Film ---------- */

.film { max-width: 64rem; margin: var(--space) auto 0; padding-inline: var(--margin); text-align: center; }
.film__list { margin-top: clamp(1.75rem, 3vw, 2.5rem); }
.film__list li + li { margin-top: 1.25rem; }
.film__list a { display: inline-grid; justify-items: center; }
.film__title {
	font-family: var(--serif);
	font-size: clamp(1.625rem, 2.6vw, 2.25rem);
	line-height: 1.2;
	text-decoration: underline;
	text-decoration-color: transparent;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
	transition: text-decoration-color 0.3s var(--ease);
}
.film__list a:hover .film__title { text-decoration-color: currentColor; }
.film__detail { color: var(--grey); font-size: 0.8125rem; }
.film__all {
	display: inline-block;
	margin-top: 1.75rem;
	padding-block: 0.25rem;
	font-size: 0.875rem;
}

/* ---------- Clients ---------- */

.clients { max-width: 58rem; margin: var(--space) auto 0; padding-inline: var(--margin); text-align: center; }
.clients ul { display: flex; flex-wrap: wrap; justify-content: center; }
.clients li { white-space: nowrap; }
.clients__luxury {
	gap: 0.2rem 1.6rem;
	margin-top: clamp(1.75rem, 3vw, 2.5rem);
	font-family: var(--serif);
	font-size: clamp(1.375rem, 2.1vw, 1.75rem);
	line-height: 1.5;
}
.clients__hotels {
	gap: 0.15rem 1.25rem;
	margin-top: 2rem;
	font-family: var(--serif);
	font-size: 1.125rem;
	line-height: 1.6;
	color: var(--grey);
}

/* ---------- Photographers ---------- */

.photographers { max-width: 58rem; margin: var(--space) auto 0; padding-inline: var(--margin); text-align: center; }
.photographers__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 2.5rem;
	margin-top: clamp(1.75rem, 3vw, 2.5rem);
}
.founder__media { aspect-ratio: 1 / 1; max-width: 20rem; margin: 0 auto 1.25rem; overflow: hidden; background: #f2f2f2; }
.founder__media .photo { width: 100%; height: 100%; object-fit: cover; }
.founder__name { font-family: var(--serif); font-size: 1.625rem; font-weight: 500; line-height: 1.2; }
.founder__role { margin-top: 0.35rem; color: var(--grey); }
.founder__bio { max-width: 26rem; margin: 0.75rem auto 0; line-height: 1.6; color: var(--grey); }
.founder__link { display: inline-block; margin-top: 0.5rem; padding-block: 0.2rem; font-size: 0.875rem; }

/* ---------- Closing ---------- */

.closing { margin: var(--space) auto; padding-inline: var(--margin); text-align: center; }
.closing__title { margin-bottom: 1.75rem; font-family: var(--serif); font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 400; line-height: 1.1; }

/* ---------- Footer ---------- */

.site-footer {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.75rem 2rem;
	padding: 1.75rem var(--margin) 2.25rem;
	border-top: 1px solid var(--hair);
	color: var(--grey);
	font-size: 0.8125rem;
}
.site-footer__contact { display: flex; gap: 1.5rem; }
.site-footer a { display: inline-block; padding-block: 0.2rem; }

/* ---------- Fallback page ---------- */

main.page { padding: var(--space) var(--margin); }
.page__article { max-width: 42rem; margin: 0 auto; }
.page__title { font-family: var(--serif); font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 400; line-height: 1.1; margin-bottom: 2rem; }
.page__body > * + * { margin-top: 1rem; }

/* ---------- Contact ---------- */

.contact { padding: clamp(2.5rem, 6vw, 4.5rem) var(--margin) 0; }
.contact__head { max-width: 36rem; margin: 0 auto clamp(2.5rem, 5vw, 4rem); text-align: center; }
.contact__title { font-family: var(--serif); font-size: clamp(2.5rem, 4.5vw, 3.75rem); font-weight: 400; line-height: 1.05; }
.contact__lede { margin-top: 0.85rem; color: var(--grey); }

.contact__body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(2rem, 5vw, 5rem);
	align-items: start;
}
.contact__media { background: #f2f2f2; }
.contact__media .photo { width: 100%; }

/* Enquiry form (Contact Form 7 markup from inc/enquiry.php) */
.enquiry__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.25rem; }
.field { position: relative; padding-bottom: 2.1rem; }
.field--full { grid-column: 1 / -1; }
.field__label {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.15rem 0.6rem;
	margin-bottom: 0.45rem;
	font-size: 0.8125rem;
	font-weight: 500;
}
.field__hint { font-weight: 400; color: var(--grey); }

.enquiry input:not([type="submit"], [type="hidden"]),
.enquiry textarea {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0.8rem 0.9rem;
	border: 1px solid var(--field-line);
	border-radius: 0;
	background: var(--field);
	color: var(--ink);
	font: inherit;
	font-size: 1rem;
	appearance: none;
	transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.enquiry textarea { min-height: 9.5rem; resize: vertical; line-height: 1.55; }
.enquiry input:not([type="submit"]):hover,
.enquiry textarea:hover { border-color: var(--grey); }
.enquiry input:not([type="submit"]):focus,
.enquiry textarea:focus { outline: none; border-color: var(--ink); background: var(--paper); }
.enquiry input:-webkit-autofill { -webkit-text-fill-color: var(--ink); box-shadow: inset 0 0 0 100vmax var(--field); }

.enquiry input.wpcf7-not-valid,
.enquiry textarea.wpcf7-not-valid,
.enquiry input:not([type="submit"]).wpcf7-not-valid:focus,
.enquiry textarea.wpcf7-not-valid:focus { border-color: var(--error); }
/* Errors sit in space each field already reserves, so nothing moves when they clear. */
.wpcf7-not-valid-tip {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0.3rem;
	overflow: hidden;
	color: var(--error);
	font-size: 0.8125rem;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.wpcf7 .screen-reader-response {
	position: absolute;
	width: 1px; height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}
.wpcf7 .hidden-fields-container,
.wpcf7-spinner { display: none; }

.wpcf7-response-output { margin-top: 1.25rem; padding: 0.85rem 1rem; border: 1px solid var(--error); font-size: 0.875rem; }
.wpcf7 form.init .wpcf7-response-output,
.wpcf7 form.resetting .wpcf7-response-output,
.wpcf7 form.submitting .wpcf7-response-output,
.wpcf7 form .wpcf7-response-output:empty { display: none; }
.wpcf7 form.sent .wpcf7-response-output { border-color: var(--ink); }

.enquiry__fallback { margin-top: 1rem; text-decoration-color: currentColor; }
.enquiry__fallback a { text-decoration-color: currentColor; }
.enquiry__legal { margin-top: 1.5rem; max-width: 52ch; font-size: 0.75rem; color: var(--grey); }
.grecaptcha-badge { visibility: hidden; }

.received__title { font-family: var(--serif); font-size: clamp(1.75rem, 2.6vw, 2.25rem); line-height: 1.15; }
.received__title:focus { outline: none; }
.received__text { margin: 0.6rem 0 1.5rem; color: var(--grey); }

/* Direct lines */
.lines { max-width: 64rem; margin: var(--space) auto; text-align: center; }
.lines__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 2rem 3.5rem;
	margin-top: clamp(1.75rem, 3vw, 2.5rem);
	font-family: var(--serif);
	font-size: 1.25rem;
}
.lines__who { display: block; font-family: var(--sans); font-size: 0.8125rem; color: var(--grey); }

/* ---------- Service pages ---------- */

.service { padding: clamp(2.5rem, 6vw, 4.5rem) var(--margin) 0; }
.service__head { max-width: 40rem; margin: 0 auto clamp(2.5rem, 5vw, 4rem); text-align: center; }
.service__title { font-family: var(--serif); font-size: clamp(2.5rem, 4.5vw, 3.75rem); font-weight: 400; line-height: 1.05; text-wrap: balance; }
.service__lede { margin-top: 0.85rem; color: var(--grey); text-wrap: pretty; }
.service__nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.2rem 1.75rem; margin-top: 1.5rem; font-size: 0.875rem; color: var(--grey); }
.service__nav a {
	text-decoration: underline;
	text-decoration-color: transparent;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.3em;
	transition: text-decoration-color 0.3s var(--ease), color 0.3s var(--ease);
	padding-block: 0.3rem;
}
.service__nav a:hover { text-decoration-color: currentColor; color: var(--ink); }
.service__nav a[aria-current="page"] { color: var(--ink); text-decoration-color: currentColor; }

.wall--gallery a { cursor: zoom-in; }

/* Photo viewer */
.lightbox {
	width: 100vw;
	max-width: none;
	height: 100dvh;
	max-height: none;
	margin: 0;
	padding: var(--margin);
	border: 0;
	background: var(--paper);
	color: var(--ink);
}
.lightbox[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 1rem; }
.lightbox::backdrop { background: var(--paper); }
.lightbox__figure { display: grid; grid-template-rows: minmax(0, 1fr) auto; place-items: center; min-height: 0; }
.lightbox__img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lightbox__caption { margin-top: 0.75rem; color: var(--grey); font-size: 0.8125rem; text-align: center; }
.lightbox__bar { display: flex; justify-content: center; align-items: center; gap: 2rem; font-size: 0.875rem; }
.lightbox__bar button { padding: 0.5rem 0; border: 0; background: none; color: var(--grey); cursor: pointer; }
.lightbox__bar button:hover { color: var(--ink); }
.lightbox__count { min-width: 4rem; text-align: center; color: var(--grey); }
.lightbox__close { position: absolute; top: var(--margin); right: var(--margin); }

/* Films */
.films { display: grid; gap: clamp(3rem, 6vw, 5rem); max-width: 64rem; margin: 0 auto; }
.films__frame { position: relative; aspect-ratio: 16 / 9; background: #f2f2f2; }
.films__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.films__item figcaption { margin-top: 0.85rem; text-align: center; }
.films__title { font-family: var(--serif); font-size: 1.625rem; }
.films__detail { display: block; color: var(--grey); font-size: 0.8125rem; }

/* 360 views */
.tours { max-width: 64rem; margin: 0 auto; text-align: center; }
.tours__note { margin-top: 0.6rem; color: var(--grey); font-size: 0.8125rem; }
.tours__frame { position: relative; aspect-ratio: 2 / 1; margin-top: clamp(1.75rem, 3vw, 2.5rem); background: #f2f2f2; }
.tours__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tours__open {
	position: absolute;
	inset: 0;
	width: 100%;
	border: 0;
	background: none;
	font-family: var(--serif);
	font-size: 1.375rem;
	cursor: pointer;
	transition: background-color 0.3s var(--ease);
}
.tours__open:hover { background: #ebebeb; }
.tours__views { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.5rem; margin-top: 1.25rem; font-size: 0.875rem; }
.tours__views button {
	padding: 0.25rem 0;
	border: 0;
	background: none;
	color: var(--grey);
	cursor: pointer;
	text-decoration: underline;
	text-decoration-color: transparent;
	text-underline-offset: 0.3em;
	transition: color 0.3s var(--ease), text-decoration-color 0.3s var(--ease);
}
.tours__views button:hover,
.tours__views button[aria-current="true"] { color: var(--ink); text-decoration-color: currentColor; }

/* ---------- Narrow screens ---------- */

@media (max-width: 1000px) {
	.wall { columns: 2; }
	.leads,
	.leads--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
	:root { --header-h: 4.25rem; }
	.site-header { grid-template-columns: 1fr auto auto; column-gap: 1.5rem; }
	.wordmark { grid-column: 1; justify-items: start; }
	.header-enquire { display: block; grid-column: 2; grid-row: 1; padding: 0.5rem 0; font-size: 0.875rem; font-weight: 500; }
	.header-enquire[aria-current="page"] { display: none; }
	.menu-toggle { display: block; grid-column: 3; grid-row: 1; }
	.site-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		display: none;
		padding: 0.5rem var(--margin) 1.75rem;
		background: var(--paper);
		border-bottom: 1px solid var(--hair);
		/* The full page list is taller than a phone held sideways: let the menu scroll itself. */
		max-height: calc(100dvh - var(--header-h));
		overflow-y: auto;
		overscroll-behavior: contain;
	}
	.site-nav.is-open { display: block; }
	.site-nav__list { flex-direction: column; gap: 0; font-family: var(--serif); font-size: 1.5rem; color: var(--ink); }
	.site-nav__list a { display: block; padding: 0.4rem 0; }
	/* On phones every page is listed: the group names become plain headings. */
	.site-nav__group { padding-bottom: 0.75rem; }
	.site-nav__toggle { padding: 0.4rem 0; color: var(--ink); pointer-events: none; }
	.site-nav__sub {
		position: static;
		min-width: 0;
		padding: 0 0 0 1rem;
		border: 0;
		visibility: visible;
		opacity: 1;
		transform: none;
		font-family: var(--sans);
		font-size: 1rem;
	}
	.site-nav__sub::before { content: none; }

	.hero__frame { height: 68svh; min-height: 0; }
	.hero__line { flex-wrap: wrap; row-gap: 0.35rem; }
	.hero__title { flex-basis: 100%; }
	.hero__sub { margin-left: 0; flex: 1; }

	.contact__body { grid-template-columns: 1fr; }
	/* On phones the form comes first; the photo follows it. */
	.contact__media { order: 2; }
}

/* Narrow phones: the wordmark, Enquire and Menu share one row, so the name tightens a step. */
@media (max-width: 400px) {
	.site-header { column-gap: 1rem; }
	.wordmark__name { font-size: 1rem; letter-spacing: 0.3em; padding-left: 0.3em; }
	.wordmark__sub { font-size: 0.6875rem; letter-spacing: 0.45em; padding-left: 0.45em; }
}

@media (max-width: 600px) {
	.wall { columns: 1; }
	.leads,
	.leads--3 { grid-template-columns: 1fr; }
	.lead__media { aspect-ratio: 4 / 3; }
	.photographers__grid { grid-template-columns: 1fr; }
	.tours__frame { aspect-ratio: 4 / 3; }
	.lightbox__bar { gap: 1.25rem; }
	.enquiry__fields { grid-template-columns: 1fr; }
	.enquiry__actions .button { width: 100%; }
	.site-footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
}
