/*
Theme Name: By Grace Photography
Theme URI: https://bygrace.photography
Author: By Grace Photography
Description: A clean, bold photography theme for By Grace Photography: a full-screen photo with your logo, a tab-style menu, rows of tall photos, full-width photo strips, sliders, an "about me." section with overlapping photos and a big BOOK NOW banner. Includes a booking page, an enquiry form that emails you and saves every enquiry in the dashboard, and every detail (phone, email, links, photos, wording) editable in Appearance → Customize → By Grace: Site Options.
Version: 2.0.0
Requires at least: 6.3
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bygrace
Tags: photography, portfolio, one-column, custom-logo, custom-menu, featured-images, editor-style, theme-options
*/

/* ==========================================================================
   Fonts (self-hosted body font; headings use the system Helvetica / Arial bold)
   ========================================================================== */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 300; font-display: swap; src: url("assets/fonts/poppins-300.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/poppins-400.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/poppins-500.woff") format("woff"); }

/* ==========================================================================
   Tokens
   Layout: white page, centred columns, photos doing the talking; bold black
   Helvetica headings, black buttons, a translucent grey tab bar over the top photo.
   ========================================================================== */
:root {
	--black: #000;
	--white: #fff;
	--ink-soft: #3d3d3d;
	--grey: #6b6b6b;
	--paper: #f4f4f4;
	--bar: rgba(58, 58, 58, 0.72);

	--display: "Helvetica Neue", Helvetica, Arial, "Liberation Sans", "Nimbus Sans", sans-serif;
	--body: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--gutter: clamp(16px, 4vw, 48px);
	--header-top: 40px;
	--header-h: 77px;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--white);
	color: var(--black);
	font-family: var(--body);
	font-weight: 400;
	font-size: 15.5px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
body.menu-open { overflow: hidden; }
img, video { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; }
p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0; }
strong, b { font-weight: 500; }
ul { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--black); outline-offset: 3px; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; word-wrap: normal !important;
}
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 200; padding: .7rem 1rem; background: var(--black); color: var(--white); }
.skip-link:focus { top: 1rem; }

.wrap { width: 100%; max-width: calc(1180px + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--text { max-width: calc(820px + 2 * var(--gutter)); text-align: center; }
.wrap--content { max-width: calc(980px + 2 * var(--gutter)); }

/* ==========================================================================
   Type
   ========================================================================== */
.h-display {
	font-family: var(--display);
	font-weight: 700;
	font-size: clamp(2.3rem, 4.4vw, 4rem);
	line-height: 1.12;
	letter-spacing: -0.01em;
	text-transform: uppercase;
	text-wrap: balance;
}
.h-display--intro { font-size: clamp(1.9rem, 3.85vw, 3.45rem); margin-bottom: .55em; }
.h-lower {
	font-family: var(--display);
	font-weight: 700;
	font-size: clamp(2.6rem, 4.45vw, 4rem);
	line-height: 1.05;
	letter-spacing: -0.01em;
	margin-bottom: .45em;
}
.h-lower--small { font-size: clamp(2.3rem, 3.5vw, 3.15rem); }
.h-section {
	font-family: var(--display);
	font-weight: 700;
	font-size: clamp(1.6rem, 3vw, 2.6rem);
	line-height: 1.12;
	text-transform: uppercase;
	text-wrap: balance;
	margin: 0;
}
.tagline { margin: .35em 0 1em; font-weight: 500; font-size: 1rem; }

.copy p { line-height: 1.45; }
.copy--center { max-width: 540px; margin-inline: auto; text-align: center; }
.copy--wide { max-width: 760px; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .55rem;
	margin-top: 1.5rem;
	padding: .8rem 1rem .8rem 1.15rem;
	border: 1px solid var(--black);
	border-radius: 0;
	background: var(--black);
	color: var(--white);
	font-family: var(--body);
	font-weight: 400;
	font-size: .95rem;
	line-height: 1;
	letter-spacing: .1em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color .2s, color .2s;
}
.btn .icon { width: 14px; height: 14px; }
.btn:hover { background: var(--white); color: var(--black); }
.btn--small { margin-top: 0; padding: .62rem 1.15rem; font-size: .92rem; text-transform: none; letter-spacing: .1em; }
.btn--block { width: 100%; margin-top: 1.75rem; padding-block: 1rem; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }

/* ==========================================================================
   Header: logo space + translucent tab bar
   ========================================================================== */
.site-header {
	position: absolute;
	top: var(--header-top);
	left: 0;
	right: 0;
	z-index: 50;
	display: flex;
	height: var(--header-h);
}
.admin-bar .site-header { top: calc(var(--header-top) + 32px); }

.site-logo {
	flex: 0 0 15.5%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 1.25rem;
}
.site-logo__img { width: 100%; max-width: 190px; height: auto; filter: drop-shadow(0 1px 8px rgba(0, 0, 0, .35)); }
.is-whitened { filter: brightness(0) invert(1); }
.site-logo__img.is-whitened { filter: brightness(0) invert(1) drop-shadow(0 1px 8px rgba(0, 0, 0, .35)); }
.is-home .site-logo { visibility: hidden; }

.tab-nav {
	flex: 1 1 auto;
	background: var(--bar);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	border-bottom: 1px solid rgba(255, 255, 255, .35);
	box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
}
.tab-nav__menu { display: flex; height: 100%; list-style: none; }
.tab-nav__menu > li { position: relative; flex: 1 1 0; min-width: 0; }
.tab-nav__menu > li > a {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	padding: 0 .75rem;
	color: var(--white);
	font-size: 1rem;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color .2s, color .2s;
}
.tab-nav__menu > li > a:hover { background: rgba(255, 255, 255, .16); }
.tab-nav__menu > .current-menu-item > a,
.tab-nav__menu > .current_page_item > a,
.tab-nav__menu > .current-page-ancestor > a,
.tab-nav__menu > .current_page_parent > a { background: var(--white); color: var(--black); }
.tab-nav .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	list-style: none;
	background: var(--white);
	box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
	opacity: 0;
	visibility: hidden;
	transition: opacity .2s, visibility .2s;
}
.tab-nav li:hover > .sub-menu, .tab-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; }
.tab-nav .sub-menu a { display: block; padding: .8rem 1rem; color: var(--black); text-decoration: none; text-align: center; }
.tab-nav .sub-menu a:hover { background: var(--paper); }

.menu-toggle {
	display: none;
	flex: 0 0 auto;
	width: 60px;
	height: 60px;
	margin-left: auto;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--white);
	cursor: pointer;
}
.menu-toggle__lines { position: relative; display: block; width: 24px; height: 16px; margin: auto; }
.menu-toggle__lines span { position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform .3s, top .3s, opacity .2s; }
.menu-toggle__lines span:nth-child(1) { top: 0; }
.menu-toggle__lines span:nth-child(2) { top: 7px; }
.menu-toggle__lines span:nth-child(3) { top: 14px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__lines span:nth-child(1) { top: 7px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__lines span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__lines span:nth-child(3) { top: 7px; transform: rotate(-45deg); }

.mobile-menu {
	position: fixed;
	inset: 0;
	z-index: 45;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow-y: auto;
	background: var(--white);
	opacity: 0;
	transition: opacity .3s;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu.is-open { opacity: 1; }
.mobile-menu__inner { width: 100%; padding: 90px var(--gutter) 40px; text-align: center; }
.mobile-menu__list { list-style: none; margin-bottom: 2rem; }
.mobile-menu__list a {
	display: block;
	padding: .3rem 0;
	font-family: var(--display);
	font-weight: 700;
	font-size: clamp(1.9rem, 8vw, 2.6rem);
	line-height: 1.2;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--black);
}
.mobile-menu__list .current-menu-item > a { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }

/* ==========================================================================
   Home: full-screen photo + framed logo
   ========================================================================== */
.hero {
	position: relative;
	display: grid;
	place-items: center;
	min-height: 100vh;
	min-height: 100svh;
	padding: calc(var(--header-top) + var(--header-h) + 24px) var(--gutter) 48px;
	overflow: hidden;
	isolation: isolate;
	background: #2b2723;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img, .hero__video { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(0, 0, 0, .22); }
.hero__logo { margin: 0; line-height: 0; }
.hero__logo-img { width: min(820px, 78vw); height: auto; filter: drop-shadow(0 2px 18px rgba(0, 0, 0, .35)); }
.hero__logo-img.is-whitened { filter: brightness(0) invert(1) drop-shadow(0 2px 18px rgba(0, 0, 0, .35)); }
.hero__logo--framed {
	padding: clamp(14px, 2vw, 30px) clamp(18px, 3.4vw, 54px);
	border: clamp(3px, .4vw, 6px) solid var(--white);
	box-shadow: 0 2px 22px rgba(0, 0, 0, .25), inset 0 2px 22px rgba(0, 0, 0, .12);
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding-block: clamp(56px, 6.5vw, 92px); }

/* Six tall photos with a soft lifted shadow */
.strip {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: clamp(10px, 2vw, 28px);
	max-width: calc(920px + 2 * var(--gutter));
	margin: clamp(36px, 4vw, 52px) auto 0;
	padding-inline: var(--gutter);
	list-style: none;
}
.strip__item { aspect-ratio: 128 / 333; }
.strip__item img { width: 100%; height: 100%; object-fit: cover; }

.lift { position: relative; isolation: isolate; box-shadow: 0 1px 3px rgba(0, 0, 0, .28); }
.lift::after {
	content: "";
	position: absolute;
	z-index: -1;
	left: 7%;
	right: 7%;
	bottom: 6px;
	height: 30%;
	border-radius: 50%;
	box-shadow: 0 14px 16px rgba(0, 0, 0, .5);
}

/* Full-width photo strips between sections */
.band { height: clamp(230px, 36vw, 540px); overflow: hidden; background: #ddd; }
.band img { width: 100%; height: 100%; object-fit: cover; }

/* Sliders */
.slider { position: relative; max-width: calc(780px + 2 * var(--gutter)); margin: 0 auto clamp(20px, 3vw, 34px); padding-inline: var(--gutter); }
.slider--wide { max-width: calc(1240px + 2 * var(--gutter)); }
.slider__track {
	display: flex;
	gap: 6px;
	list-style: none;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
}
.slider__track::-webkit-scrollbar { display: none; }
.slider__item { flex: 0 0 calc((100% - 30px) / 6); scroll-snap-align: start; }
.slider--tall .slider__item { aspect-ratio: 121 / 345; }
.slider--wide .slider__item { flex-basis: calc((100% - 18px) / 3.55); aspect-ratio: 350 / 330; }
.slider__link { display: block; height: 100%; overflow: hidden; cursor: zoom-in; }
.slider__link img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.slider__link:hover img { transform: scale(1.04); }
.slider__arrow {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .92);
	color: #555;
	box-shadow: 0 1px 6px rgba(0, 0, 0, .3);
	transform: translateY(-50%);
	cursor: pointer;
}
.slider__arrow .icon { width: 18px; height: 18px; }
.slider__arrow:hover { background: var(--white); color: var(--black); }
.slider__arrow[hidden] { display: none; }
.slider__arrow--next { right: calc(var(--gutter) + 12px); }
.slider__arrow--prev { left: calc(var(--gutter) + 12px); }

/* About me + journal: text beside photos */
.split {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(36px, 5vw, 64px);
	align-items: center;
	max-width: calc(940px + 2 * var(--gutter));
}
.split__text { min-width: 0; }
.split__text .copy p { max-width: 30rem; }
.split__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.6rem; }
.split__actions .btn { margin-top: 0; }
.split__actions--stack { flex-direction: column; align-items: flex-start; }

.about__photos { position: relative; padding-bottom: 32%; margin-right: 4%; }
.about__photo { overflow: hidden; box-shadow: 0 6px 22px rgba(0, 0, 0, .32); background: #ddd; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__photo--main { width: 56%; aspect-ratio: 240 / 355; filter: grayscale(1) contrast(1.05); }
.about__photo--second { position: absolute; right: 0; bottom: 0; width: 54%; aspect-ratio: 240 / 315; }

.split--journal { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); max-width: calc(760px + 2 * var(--gutter)); }
.journal-teaser__photo { aspect-ratio: 350 / 500; overflow: hidden; background: #ddd; }
.journal-teaser__photo img { width: 100%; height: 100%; object-fit: cover; }

/* BOOK NOW banner */
.book-band {
	position: relative;
	display: grid;
	place-items: center;
	min-height: clamp(340px, 40vw, 580px);
	padding: 64px var(--gutter);
	overflow: hidden;
	isolation: isolate;
	text-align: center;
	background: #2b2723;
}
.book-band__media { position: absolute; inset: 0; z-index: -1; }
.book-band__media img { width: 100%; height: 100%; object-fit: cover; }
.book-band__title { font-family: var(--display); font-weight: 700; font-size: clamp(2.8rem, 6.7vw, 6rem); line-height: 1; letter-spacing: .01em; text-transform: uppercase; }
.book-band__title span { display: inline-block; padding: .06em .14em .08em; background: var(--black); color: var(--white); }
.book-band__links { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: 1.25rem; }

/* ==========================================================================
   Social icons & contact list
   ========================================================================== */
.social { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; list-style: none; }
.social--center { justify-content: center; }
.social a { display: grid; place-items: center; width: 34px; height: 34px; color: var(--black); transition: opacity .2s; }
.social a:hover { opacity: .55; }
.social .icon { width: 25px; height: 25px; }

.contact-list { display: grid; gap: .55rem; list-style: none; }
.contact-list li { display: flex; align-items: center; gap: .65rem; font-size: .92rem; }
.contact-list .icon { width: 18px; height: 18px; flex: 0 0 auto; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { padding: 0 var(--gutter) 32px; }
.site-footer__inner { max-width: 1210px; margin: 0 auto; padding-top: 22px; border-top: 1px solid var(--black); text-align: center; }
.site-footer .social { margin-bottom: 1rem; }
.footer-contact { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem 1.4rem; list-style: none; font-size: .88rem; }
.footer-contact a { text-decoration: none; }
.footer-contact a:hover { text-decoration: underline; }
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem 1.4rem; margin-top: .9rem; font-size: .78rem; color: var(--grey); }
.site-footer__legal a { text-decoration: none; }

/* Sticky Book / Enquire bar on phones */
.mobile-cta {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 40;
	display: none;
	grid-template-columns: 1fr 1fr;
	padding-bottom: env(safe-area-inset-bottom, 0px);
	background: var(--white);
	border-top: 1px solid var(--black);
	transform: translateY(110%);
	transition: transform .35s ease;
}
.mobile-cta.is-visible { transform: none; }
.mobile-cta a { padding: 1rem .5rem; text-align: center; font-size: .9rem; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--black); }
.mobile-cta a:first-child { background: var(--black); color: var(--white); }

/* ==========================================================================
   Inner pages
   ========================================================================== */
.page-hero {
	position: relative;
	display: grid;
	place-items: center;
	min-height: clamp(380px, 62vw, 700px);
	padding: calc(var(--header-top) + var(--header-h)) 0 0;
	overflow: hidden;
	isolation: isolate;
	background: #2b2723;
}
.page-hero__media { position: absolute; inset: 0; z-index: -1; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(0, 0, 0, .12); }
.page-hero__title {
	width: 100%;
	padding: 0 2vw;
	font-family: var(--display);
	font-weight: 700;
	font-size: clamp(3rem, 12.5vw, 11.5rem);
	line-height: 1;
	letter-spacing: .01em;
	text-align: center;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .5);
	overflow-wrap: anywhere;
}
.page-intro { padding-top: clamp(40px, 5vw, 64px); }
.page-intro__meta { margin-bottom: .6rem; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--grey); }
.page-body { padding-block: clamp(36px, 5vw, 64px) clamp(56px, 7vw, 96px); }

/* Block editor content */
.entry-content > * { margin-block: 0; }
.entry-content > * + * { margin-top: 1.4rem; }
.entry-content p { line-height: 1.6; }
.entry-content > p, .entry-content > ul, .entry-content > ol { max-width: 640px; margin-inline: auto; }
.entry-content h2 {
	margin-top: clamp(48px, 6vw, 72px);
	font-family: var(--display);
	font-weight: 700;
	font-size: clamp(1.6rem, 2.8vw, 2.3rem);
	line-height: 1.15;
	text-align: center;
	text-transform: uppercase;
}
.entry-content h2 + * { margin-top: .9rem; }
.entry-content h3 { margin-top: 2rem; font-family: var(--display); font-weight: 700; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .04em; }
.entry-content h4 { font-family: var(--display); font-weight: 700; font-size: 1rem; }
.entry-content ul:not(.wp-block-gallery) { padding-left: 1.2rem; }
.entry-content li { margin-bottom: .45rem; }
.entry-content blockquote, .entry-content .wp-block-quote { margin-inline: auto; max-width: 640px; padding-left: 1.4rem; border-left: 3px solid var(--black); font-size: 1.15rem; }
.entry-content hr { border: 0; border-top: 1px solid var(--black); margin-block: 3rem; }
.entry-content img { height: auto; }
.entry-content figcaption { margin-top: .5rem; font-size: .8rem; color: var(--grey); text-align: center; }
.entry-content a { text-underline-offset: .2em; }
.entry-content .wp-block-gallery { margin-top: 2.2rem; }
.entry-content .wp-block-gallery.has-nested-images { --wp--style--unstable-gallery-gap: 6px; gap: 6px; }
.entry-content .wp-block-gallery.has-nested-images figure.wp-block-image { aspect-ratio: 3 / 4; }
.entry-content .wp-block-gallery img,
.entry-content .wp-block-image img { cursor: zoom-in; }
.entry-content .wp-block-image a img { cursor: pointer; }
.entry-content .is-style-lifted { max-width: 420px; margin-inline: auto; }
.entry-content .is-style-lifted img { box-shadow: 0 6px 22px rgba(0, 0, 0, .3); }
.entry-content .wp-block-buttons { justify-content: center; gap: .75rem; margin-top: 2.2rem; }
.entry-content .wp-block-button__link,
.entry-content .wp-element-button {
	display: inline-flex;
	padding: .8rem 1.15rem;
	border: 1px solid var(--black);
	border-radius: 0;
	background: var(--black);
	color: var(--white);
	font-family: var(--body);
	font-size: .95rem;
	line-height: 1;
	letter-spacing: .1em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color .2s, color .2s;
}
.entry-content .wp-block-button__link:hover { background: var(--white); color: var(--black); }
.entry-content .wp-block-columns { gap: 1.5rem; margin-top: 1.8rem; }
.entry-content .wp-block-column { padding-top: 1rem; border-top: 2px solid var(--black); }
.entry-content .wp-block-column h3 { margin-top: 0; margin-bottom: .4rem; }
.entry-content .wp-block-column p { font-size: .92rem; }
.alignleft { float: left; margin: .3rem 1.5rem 1rem 0; }
.alignright { float: right; margin: .3rem 0 1rem 1.5rem; }
.aligncenter { margin-inline: auto; text-align: center; }
.has-text-align-center { text-align: center; }
.has-text-align-right { text-align: right; }
.entry-content > .alignwide { max-width: 1180px; }
.entry-content > .alignfull { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { font-size: .8rem; color: var(--grey); }
.sticky, .bypostauthor { position: relative; }

/* Journal list */
.journal-intro { margin-bottom: clamp(36px, 5vw, 56px); }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); }
.post-card__link { display: block; text-decoration: none; }
.post-card__img { aspect-ratio: 4 / 5; margin-bottom: 1.1rem; background: #ddd; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; }
.post-card__meta { margin-bottom: .35rem; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--grey); }
.post-card__title { margin-bottom: .5rem; font-family: var(--display); font-weight: 700; font-size: 1.35rem; line-height: 1.2; }
.post-card__link:hover .post-card__title { text-decoration: underline; }
.post-card__excerpt p { font-size: .92rem; color: var(--ink-soft); }

.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin-top: 3rem; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 .9rem; border: 1px solid var(--black); text-decoration: none; font-size: .9rem; }
.pagination .page-numbers.current, .pagination a.page-numbers:hover { background: var(--black); color: var(--white); }

.post-nav .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 4rem; padding-top: 1.5rem; border-top: 1px solid var(--black); }
.post-nav a { display: block; text-decoration: none; }
.post-nav .nav-next { grid-column: 2; text-align: right; }
.post-nav__label { display: block; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--grey); }
.post-nav__title { display: block; font-family: var(--display); font-weight: 700; font-size: 1.1rem; }

.comments-area { max-width: calc(760px + 2 * var(--gutter)); margin: 0 auto; padding: 3rem var(--gutter) 0; }
.comment-list { list-style: none; margin-bottom: 2rem; }
.comment-list .comment { padding: 1.25rem 0; border-bottom: 1px solid #ddd; }
.comment-list .children { list-style: none; padding-left: 2rem; }
.comment-author img { float: left; margin-right: 1rem; border-radius: 50%; }
.comment-respond input[type="text"], .comment-respond input[type="email"], .comment-respond input[type="url"], .comment-respond textarea { width: 100%; padding: .55rem 0; border: 0; border-bottom: 1px solid var(--black); font: inherit; background: transparent; }

.empty-state { text-align: center; }
.empty-state .btn { margin-top: 1.25rem; }

/* ==========================================================================
   Book & Enquire: white card over a photo
   ========================================================================== */
.form-stage {
	position: relative;
	display: grid;
	justify-items: center;
	align-content: start;
	min-height: 100vh;
	padding: calc(var(--header-top) + var(--header-h) + clamp(32px, 5vw, 64px)) var(--gutter) clamp(48px, 6vw, 80px);
	overflow: hidden;
	isolation: isolate;
	background: #8a8a8a;
}
.form-stage__media { position: absolute; inset: 0; z-index: -1; }
.form-stage__media img { width: 100%; height: 100%; object-fit: cover; }
.form-stage::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(0, 0, 0, .28); }
.form-stage__alt { margin-top: 1.1rem; color: var(--white); font-size: .92rem; text-align: center; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.form-stage__alt a { color: var(--white); font-weight: 500; }

.form-card {
	width: 100%;
	max-width: 600px;
	padding: clamp(22px, 4vw, 36px);
	background: var(--white);
	border: 1px solid #222;
	box-shadow: 0 18px 48px rgba(0, 0, 0, .3);
}
.form-card__title {
	margin: 0 0 1.25rem;
	font-family: var(--display);
	font-weight: 700;
	font-size: 1.15rem;
	line-height: 1.25;
	letter-spacing: .01em;
	text-transform: uppercase;
}
.form-card__intro, .form-card__text { margin-bottom: 1rem; font-size: .92rem; color: var(--ink-soft); }
.form-card__about { margin-bottom: 1.5rem; padding-bottom: 1.25rem; border-bottom: 1px solid #ddd; }
.form-card__note { margin-top: .8rem; font-size: .82rem; color: var(--grey); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem 1.4rem; }
.field { display: flex; flex-direction: column; gap: .2rem; margin: 0; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .82rem; line-height: 1.4; color: var(--black); }
.field label span { color: var(--grey); }
.field input:not([type="checkbox"]),
.field select,
.field textarea {
	width: 100%;
	padding: .55rem 0;
	border: 0;
	border-bottom: 1px solid var(--black);
	border-radius: 0;
	background: transparent;
	color: var(--black);
	font-family: var(--body);
	font-size: .95rem;
	line-height: 1.4;
	-webkit-appearance: none;
	appearance: none;
}
.field select {
	padding-right: 1.4rem;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23000' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right .2rem center;
	cursor: pointer;
}
.field textarea { resize: vertical; min-height: 6rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-width: 2px; padding-bottom: calc(.55rem - 1px); }
.field--check { flex-direction: row; align-items: flex-start; gap: .7rem; }
.field--check input { width: 18px; height: 18px; margin: .1rem 0 0; flex: 0 0 auto; accent-color: var(--black); }
.field--check label { font-size: .82rem; color: var(--ink-soft); }
.bg-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-error { margin: 0 0 1.25rem; padding: .8rem 1rem; border-left: 3px solid #b3261e; background: #fbe9e7; color: #7a1a12; font-size: .9rem; }
.form-success { padding: 1rem 0; text-align: center; }
.form-success__title { margin-bottom: .8rem; font-family: var(--display); font-weight: 700; font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1; }
.form-success p { max-width: 26rem; margin-inline: auto; color: var(--ink-soft); }

.booking-embed iframe { width: 100%; min-height: 680px; border: 0; }

/* Owner-only reminder while placeholders are in use */
.owner-note {
	position: fixed;
	left: 1rem;
	bottom: 1rem;
	z-index: 60;
	max-width: 340px;
	padding: .9rem 2.6rem .9rem 1rem;
	background: var(--white);
	border: 1px solid var(--black);
	box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
	font-size: .8rem;
	line-height: 1.5;
}
.owner-note p { margin: 0 0 .35rem; }
.owner-note a { font-weight: 500; }
.owner-note button { position: absolute; top: .35rem; right: .4rem; width: 28px; height: 28px; border: 0; background: none; font-size: 1.2rem; line-height: 1; cursor: pointer; }

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(0, 0, 0, .94); opacity: 0; transition: opacity .25s; }
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox__img { max-width: 92vw; max-height: 86vh; width: auto; height: auto; object-fit: contain; }
.lightbox button { position: absolute; display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--black); font-size: 1.3rem; cursor: pointer; }
.lightbox button .icon { width: 20px; height: 20px; }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1rem; top: 50%; transform: translateY(-50%); }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
	.slider__track { scroll-behavior: auto; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1200px) {
	.site-logo { flex-basis: 12%; padding: 0 .75rem; }
	.tab-nav__menu > li > a { font-size: .92rem; padding: 0 .4rem; }
}

@media (max-width: 1024px) {
	:root { --header-top: 0px; --header-h: 60px; }
	.site-header { background: var(--bar); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); align-items: center; }
	.site-logo { flex: 0 0 auto; padding: 0 var(--gutter); }
	.site-logo__img { width: 150px; }
	.tab-nav { display: none; }
	.menu-toggle { display: block; }
	.menu-open .site-header { background: var(--white); -webkit-backdrop-filter: none; backdrop-filter: none; }
	.menu-open .site-header .site-logo { visibility: visible; }
	.menu-open .site-logo__img { filter: brightness(0); }
	.menu-open .menu-toggle { color: var(--black); }
}
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

@media (max-width: 900px) {
	.split, .split--journal { grid-template-columns: minmax(0, 1fr); max-width: calc(560px + 2 * var(--gutter)); }
	.about__photos { max-width: 460px; width: 100%; margin: 0 auto; }
	.journal-teaser__photo { max-width: 420px; width: 100%; margin: 0 auto; }
	.split__actions--stack { flex-direction: row; align-items: center; }
	.strip { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: calc(560px + 2 * var(--gutter)); row-gap: 28px; }
	.slider--tall .slider__item { flex-basis: calc((100% - 12px) / 3.3); }
	.slider--wide .slider__item { flex-basis: calc((100% - 6px) / 1.7); }
	.post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
	.mobile-cta { display: grid; }
	.has-mobile-cta .site-footer { padding-bottom: 80px; }
	.owner-note { right: 1rem; bottom: 4.5rem; max-width: none; }
	.form-grid { grid-template-columns: minmax(0, 1fr); }
	.hero__logo--framed { border-width: 3px; }
	.slider__arrow { display: none; }
	.post-nav .nav-links { grid-template-columns: 1fr; }
	.post-nav .nav-next { grid-column: 1; text-align: left; }
	.entry-content .wp-block-gallery.has-nested-images figure.wp-block-image { width: calc(50% - 3px) !important; }
}

@media (max-width: 560px) {
	body { font-size: 15px; }
	.post-grid { grid-template-columns: minmax(0, 1fr); }
	.post-card__img { aspect-ratio: 4 / 3; }
	.book-band__title span { padding-inline: .1em; }
	.lightbox__prev, .lightbox__next { top: auto; bottom: 1rem; transform: none; }
}
