/* ============================================================
   Informational pages — page.php (.pjc-info / .pjc-prose)
   Loaded after main.css; reuses the theme tokens (--ink, --paper,
   --serif, --sans, --mono, --accent, --accent-2).
   ============================================================ */

/* Shorter than the rentals hero, but still free to grow past 62svh when the
   title + excerpt need the room (prevents the heading clipping at the top). */
.rhero--info { min-height: max(62svh, 440px); }

/* The horizontal value must repeat .container's gutter: this shorthand has the
   same specificity as .container and loads later, so a `0` here would zero the
   side padding out on every `.pjc-prose.container` wrapper. */
.pjc-prose {
	padding: clamp(60px, 9vw, 124px) var(--gutter) clamp(30px, 5vw, 70px);
}

/* Constrain the prose to a calm, readable, centred column. */
.pjc-prose > * {
	max-width: 760px;
	margin-left: auto;
	margin-right: auto;
}

.pjc-prose h2 {
	font-family: var(--serif);
	font-weight: 300;
	font-size: clamp(30px, 4.4vw, 56px);
	line-height: 1.04;
	letter-spacing: -0.02em;
	color: var(--ink);
	margin: clamp(52px, 7vw, 96px) auto clamp(16px, 2vw, 24px);
}
.pjc-prose h2:first-child { margin-top: 0; }
.pjc-prose h2 em,
.pjc-prose h3 em { font-style: italic; color: var(--accent); }

.pjc-prose h3 {
	font-family: var(--sans);
	font-weight: 600;
	font-size: clamp(16px, 1.5vw, 20px);
	letter-spacing: 0.01em;
	color: var(--ink);
	margin: clamp(34px, 4vw, 50px) auto 10px;
}

.pjc-prose p {
	font-family: var(--sans);
	font-weight: 300;
	font-size: clamp(16px, 1.25vw, 18.5px);
	line-height: 1.78;
	color: color-mix(in oklab, var(--ink) 88%, transparent);
	margin: 0 auto 1.15em;
}

/* First paragraph of the page reads as a lead-in. */
.pjc-prose > p:first-child {
	font-family: var(--serif);
	font-weight: 300;
	font-size: clamp(21px, 2.1vw, 28px);
	line-height: 1.5;
	color: var(--ink);
	margin-bottom: 1.1em;
}

.pjc-prose a {
	color: var(--accent);
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}
.pjc-prose a:hover { color: var(--ink); }

.pjc-prose ul,
.pjc-prose ol {
	font-family: var(--sans);
	font-weight: 300;
	font-size: clamp(15.5px, 1.2vw, 17.5px);
	line-height: 1.7;
	color: color-mix(in oklab, var(--ink) 86%, transparent);
	margin: 0 auto 1.4em;
	padding-left: 1.2em;
}
.pjc-prose li { margin-bottom: 0.5em; }
.pjc-prose li::marker { color: var(--accent); }

.pjc-prose blockquote,
.pjc-prose .wp-block-quote {
	border-left: 2px solid var(--accent);
	padding: 4px 0 4px 28px;
	margin: clamp(34px, 4vw, 52px) auto;
}
.pjc-prose blockquote p {
	font-family: var(--serif);
	font-style: italic;
	font-weight: 300;
	font-size: clamp(21px, 2.4vw, 30px);
	line-height: 1.4;
	color: var(--ink);
	margin-bottom: 0.3em;
}
.pjc-prose blockquote cite {
	display: block;
	margin-top: 12px;
	font-family: var(--mono);
	font-style: normal;
	font-size: 11.5px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: color-mix(in oklab, var(--ink) 58%, transparent);
}

.pjc-prose hr,
.pjc-prose .wp-block-separator {
	border: 0;
	height: 1px;
	background: color-mix(in oklab, var(--ink) 16%, transparent);
	max-width: 760px;
	margin: clamp(44px, 6vw, 76px) auto;
}

/* Images / galleries on the Gallery page (and any inline figures). */
.pjc-prose figure { margin: clamp(30px, 4vw, 54px) auto; max-width: 1040px; }
.pjc-prose figure img { width: 100%; height: auto; display: block; border-radius: 2px; }
.pjc-prose figcaption {
	font-family: var(--mono);
	font-size: 11.5px;
	letter-spacing: 0.04em;
	color: color-mix(in oklab, var(--ink) 55%, transparent);
	margin-top: 10px;
	text-align: center;
}
/* Gallery page — modern square mosaic (core Gallery block + .pjc-gallery).
   Click any photo to open it full-resolution in the shared .lb lightbox. */
.pjc-prose .pjc-gallery {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
	max-width: 1180px;
	margin: clamp(34px, 5vw, 64px) auto;
}
.pjc-prose .pjc-gallery figure.wp-block-image {
	margin: 0; position: relative; overflow: hidden; border-radius: 3px;
	aspect-ratio: 1 / 1; cursor: zoom-in;
	background: color-mix(in oklab, var(--ink) 8%, var(--paper));
}
.pjc-prose .pjc-gallery a { display: block; width: 100%; height: 100%; text-decoration: none; border: 0; }
.pjc-prose .pjc-gallery img {
	width: 100%; height: 100%; object-fit: cover; display: block;
	transition: transform 1200ms cubic-bezier(.16,.84,.28,1);
}
.pjc-prose .pjc-gallery figure:hover img { transform: scale(1.07); }
.pjc-prose .pjc-gallery figure::after {
	content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
	background: linear-gradient(180deg, transparent 58%, rgba(15,12,8,.30));
	transition: opacity 500ms ease;
}
.pjc-prose .pjc-gallery figure:hover::after { opacity: 1; }
@media (max-width: 900px) { .pjc-prose .pjc-gallery { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .pjc-prose .pjc-gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; } }

/* Films — responsive 16:9 video embeds (YouTube/Video blocks). */
.pjc-prose figure.wp-block-embed { max-width: 900px; margin: clamp(24px, 3vw, 42px) auto; }
.pjc-prose .wp-block-embed__wrapper { position: relative; }
.pjc-prose .wp-embed-aspect-16-9 .wp-block-embed__wrapper { padding-top: 56.25%; }
.pjc-prose .wp-embed-aspect-16-9 .wp-block-embed__wrapper iframe {
	position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 3px;
}
.pjc-prose figure.wp-block-embed figcaption {
	font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; text-align: center;
	color: color-mix(in oklab, var(--ink) 55%, transparent); margin-top: 10px;
}

/* Google Map embed (getting-here) — responsive framed map. */
.pjc-prose .pjc-map { max-width: 1040px; margin: clamp(30px, 4vw, 54px) auto; }
.pjc-prose .pjc-map iframe { display: block; width: 100%; height: clamp(320px, 46vw, 460px); border: 0; border-radius: 3px; }
.pjc-prose .pjc-map figcaption {
	font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; text-align: center;
	color: color-mix(in oklab, var(--ink) 55%, transparent); margin-top: 10px;
}
.pjc-prose .pjc-map figcaption a { border: 0; }

/* ============================================================
   Gallery page — UNIFIED media carousel (.mgal), used by
   page-gallery.php. Photographs and tour films share one
   drag/scroll strip. It reuses the house .gal-strip / .gal-card /
   .gal-vid markup (so initGallery() drag + the .lb lightbox — which
   already plays both stills and video — bind for free) and layers a
   bigger, more cinematic look on top: square photo cards, wide 16:9
   film cards on a shared baseline, nav arrows + a scroll progress bar.
   ============================================================ */
.mgal { padding: clamp(38px, 5vw, 70px) 0 clamp(28px, 4vw, 54px); overflow: hidden; }
.mgal-lead { margin-top: clamp(34px, 5vw, 60px); }
.mgal-lead p { font-size: clamp(17px, 1.5vw, 19px); }

.mgal-head { align-items: flex-end; gap: 24px 32px; flex-wrap: wrap; margin-bottom: 0; }
.mgal-head-l .eyebrow { margin-bottom: 14px; }
.mgal-head-l h2 {
	font-family: var(--serif); font-weight: 300; margin: 0;
	font-size: clamp(30px, 4vw, 56px); line-height: 1; letter-spacing: -0.015em; color: var(--ink);
}
.mgal-head-l h2 em { font-style: italic; }
.mgal-head-r { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.mgal-hint {
	font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
	color: color-mix(in oklab, var(--ink) 50%, transparent); white-space: nowrap;
}
.mgal-arrows { display: flex; gap: 10px; }
.mgal-arrow {
	width: 50px; height: 50px; border-radius: 999px; cursor: pointer;
	border: 1px solid var(--line); background: transparent; color: var(--ink);
	font-size: 23px; line-height: 1; display: flex; align-items: center; justify-content: center;
	transition: background 220ms, border-color 220ms, color 220ms, opacity 220ms;
}
.mgal-arrow:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.mgal-arrow[disabled] { opacity: 0.28; pointer-events: none; }

/* The strip: fixed-height cards so square photos and 16:9 films sit on one
   baseline; width is derived from each card's aspect ratio. */
.mgal-stripwrap { position: relative; margin-top: clamp(22px, 3vw, 38px); }
.mgal .gal-strip {
	display: flex; gap: clamp(14px, 1.6vw, 22px);
	margin: 0; padding: 6px var(--gutter); list-style: none;
	overflow-x: auto; scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 3.5%, #000 96.5%, transparent);
	        mask-image: linear-gradient(90deg, transparent, #000 3.5%, #000 96.5%, transparent);
}
.mgal .gal-strip::-webkit-scrollbar { display: none; }
/* Needs to out-specify `.mgal .gal-strip` above, which would otherwise keep
   mandatory snapping on mid-drag and fight the per-frame scrollLeft writes. */
.mgal .gal-strip.is-dragging { scroll-snap-type: none; }
.mgal .gal-strip li {
	flex: 0 0 auto; width: auto; min-width: 0; max-width: none;
	margin: 0; scroll-snap-align: center;
}
.mgal .gal-card {
	position: relative; overflow: hidden; border-radius: 5px;
	height: clamp(340px, 56vh, 558px); width: auto; aspect-ratio: 1 / 1;
	background: var(--paper-deep);
	box-shadow: 0 18px 50px -28px rgba(15, 12, 8, 0.6);
}
.mgal .gal-card.gal-vid { aspect-ratio: 16 / 9; }
.mgal .gal-card img {
	width: 100%; height: 100%; object-fit: cover; display: block;
	transition: transform 1100ms cubic-bezier(.16, .84, .28, 1);
}
.mgal .gal-card:hover img { transform: scale(1.05); }
.mgal .gal-card::after {
	content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
	background: linear-gradient(180deg, transparent 60%, rgba(15, 12, 8, 0.26));
	transition: opacity 450ms ease;
}
.mgal .gal-card:hover::after { opacity: 1; }
.mgal .gal-cap {
	margin: 14px 2px 0; max-width: 34ch;
	font-family: var(--serif); font-style: italic; font-weight: 300;
	font-size: 17px; line-height: 1.4; color: var(--ink-soft);
}

/* Scroll progress — a thumb whose width = viewport fraction, slid along. */
.mgal-progress {
	position: relative; height: 2px; border-radius: 2px; overflow: hidden;
	margin: clamp(20px, 3vw, 32px) var(--gutter) 0;
	background: var(--line-soft);
}
.mgal-progress i {
	position: absolute; top: 0; left: 0; height: 100%; width: 30%;
	background: var(--accent); border-radius: 2px;
	transition: left 120ms linear, width 220ms ease;
}

.mgal-close { margin-top: clamp(30px, 4vw, 52px); text-align: center; }
.mgal-close a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 720px) {
	.mgal-head-r { width: 100%; justify-content: space-between; margin-left: 0; }
}
@media (max-width: 600px) {
	.mgal .gal-card { height: clamp(290px, 66vw, 420px); border-radius: 4px; }
	.mgal-hint span { display: none; }
}

/* ============================================================
   Discover the Property — page-discover.php (.pjc-discover).
   A bespoke editorial layout: hero · welcome lead · alternating
   story blocks · feature grid · ink stats band · photo mosaic ·
   shared CTA. Reuses the theme tokens and the .rhero / .eyebrow /
   .btn / .contact / .reveal primitives from main.css.
   ============================================================ */

/* Hero — warm italic accent on the emphasised words of the title. */
.pjc-discover .rhero--discover h1 em { color: #e8a07c; }

/* Opt-in sans sub-line (Page hero box → "Hero subtitle style: Sans-serif").
   Was page-scoped to .pjc-discover, which made The Property page the only one
   without the sitewide serif-italic subtitle; now any page can choose it. */
.rhero .rhero-sub--sans {
	font-family: var(--sans); font-style: normal; font-weight: 300;
	font-size: clamp(16px, 1.5vw, 20px); line-height: 1.6;
	max-width: 50ch; margin-top: 26px;
	color: rgba(243, 236, 221, 0.9);
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

/* Opt-in hero title styles (Page hero panel → "Title style"). The default is
   the serif light H1 from main.css; each modifier only overrides what it must,
   and <em> keeps its accent inside every one of them. */
.rhero h1.rhero-title--italic { font-style: italic; }

.rhero h1.rhero-title--sans {
	font-family: var(--sans); font-style: normal; font-weight: 300;
	font-size: clamp(44px, 7vw, 104px); line-height: 0.98; letter-spacing: -0.03em;
}
.rhero h1.rhero-title--sans em { font-style: italic; font-weight: 400; }

.rhero h1.rhero-title--caps {
	font-family: var(--sans); font-style: normal; font-weight: 500;
	font-size: clamp(32px, 5vw, 76px); line-height: 1.04;
	letter-spacing: 0.02em; text-transform: uppercase;
}
.rhero h1.rhero-title--caps em { font-style: normal; font-weight: 300; }

/* Opt-in centred hero (Page hero box → "Hero text alignment: Centered"). */
.rhero--center .rhero-inner { text-align: center; }
.rhero--center .rhero-eyebrow { justify-content: center; }
.rhero--center .rhero-sub,
.rhero--center .rhero p { margin-left: auto; margin-right: auto; }

/* ----- I · Welcome lead ----- */
.dsc-lead { padding: clamp(72px, 10vw, 140px) 0 clamp(40px, 5vw, 64px); }
.dsc-lead-inner {
	max-width: 1000px; margin: 0 auto;
	padding: 0 var(--gutter); text-align: center;
}
.dsc-lead p {
	font-family: var(--serif); font-weight: 300;
	font-size: clamp(26px, 3.6vw, 46px); line-height: 1.28; letter-spacing: -0.01em;
	margin: 0; color: var(--ink); text-wrap: balance;
}
.dsc-lead p em { font-style: italic; color: var(--accent); }

/* ----- II · Story blocks (image side alternates) ----- */
.dsc-stories { padding: clamp(20px, 3vw, 40px) 0 clamp(40px, 6vw, 80px); }
.dsc-stories .container {
	display: flex; flex-direction: column; gap: clamp(56px, 8vw, 120px);
}
.dsc-story {
	display: grid; grid-template-columns: 1.05fr 1fr;
	gap: clamp(36px, 5vw, 80px); align-items: center;
}
.dsc-story--rev { grid-template-columns: 1fr 1.05fr; }
.dsc-story--rev .dsc-story-media { order: 2; }
.dsc-story--rev .dsc-story-text { order: 1; }
.dsc-story-media {
	overflow: hidden; border-radius: 4px;
	box-shadow: 0 24px 60px -34px rgba(20, 16, 8, 0.55);
}
.dsc-story-media img,
.dsc-story-img {
	width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; display: block;
	transition: transform 1100ms cubic-bezier(.16, .84, .28, 1);
}
.dsc-story-media:hover img { transform: scale(1.05); }
.dsc-no {
	font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em;
	text-transform: uppercase; color: var(--accent); margin-bottom: 18px;
}
.dsc-story-text h2 {
	font-family: var(--serif); font-weight: 300;
	font-size: clamp(30px, 3.6vw, 52px); line-height: 1.05; letter-spacing: -0.015em;
	margin: 0 0 20px; color: var(--ink);
}
.dsc-story-text p {
	font-family: var(--sans); font-weight: 300;
	font-size: clamp(16px, 1.2vw, 18px); line-height: 1.75; margin: 0;
	color: color-mix(in oklab, var(--ink) 84%, transparent); max-width: 48ch;
}

/* ----- II · Feature grid ----- */
.dsc-features {
	background: var(--paper-deep);
	border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.dsc-features .container { padding-top: clamp(72px, 9vw, 128px); padding-bottom: clamp(72px, 9vw, 128px); }
.dsc-features-head {
	display: flex; align-items: baseline; gap: 24px; flex-wrap: wrap;
	margin-bottom: clamp(40px, 5vw, 64px);
}
.dsc-features-head .eyebrow { color: var(--muted); }
.dsc-features-head h2 {
	font-family: var(--serif); font-weight: 300;
	font-size: clamp(30px, 4vw, 58px); line-height: 1; letter-spacing: -0.02em;
	margin: 0; color: var(--ink);
}
.dsc-features-grid {
	display: grid; grid-template-columns: repeat(3, 1fr);
	gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.dsc-feature {
	background: var(--paper-deep); padding: clamp(28px, 3vw, 40px);
	display: flex; flex-direction: column; gap: 14px; min-height: 200px;
}
.dsc-feature-no {
	font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; color: var(--accent);
}
.dsc-feature h3 {
	font-family: var(--serif); font-weight: 400;
	font-size: clamp(22px, 2vw, 28px); line-height: 1.12; margin: 0; color: var(--ink);
}
.dsc-feature p {
	font-family: var(--sans); font-weight: 300; font-size: 14.5px; line-height: 1.65;
	margin: 0; color: color-mix(in oklab, var(--ink) 76%, transparent);
}

/* ----- Stats band (ink) ----- */
.dsc-stats { background: var(--ink); color: var(--paper); }
.dsc-stats .container { padding-top: clamp(64px, 7vw, 104px); padding-bottom: clamp(64px, 7vw, 104px); }
.dsc-stats-grid {
	display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(28px, 3vw, 48px);
}
.dsc-stat {
	display: flex; flex-direction: column; gap: 10px;
	border-left: 1px solid color-mix(in oklab, var(--paper) 22%, transparent); padding-left: 22px;
}
.dsc-stat-value {
	font-family: var(--serif); font-weight: 300;
	font-size: clamp(48px, 6vw, 84px); line-height: 0.9; letter-spacing: -0.02em; color: var(--paper);
}
.dsc-stat-suffix { font-size: 0.42em; color: var(--accent); margin-left: 0.04em; }
.dsc-stat-label {
	font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
	color: color-mix(in oklab, var(--paper) 64%, transparent);
}

/* ----- III · Photo mosaic ----- */
.dsc-mosaic { padding: clamp(72px, 9vw, 128px) 0; }
.dsc-mosaic-head {
	display: flex; align-items: baseline; gap: 24px; flex-wrap: wrap;
	margin-bottom: clamp(32px, 4vw, 52px);
}
.dsc-mosaic-head .eyebrow { color: var(--muted); }
.dsc-mosaic-head h2 {
	font-family: var(--serif); font-weight: 300;
	font-size: clamp(30px, 4vw, 58px); line-height: 1; letter-spacing: -0.02em;
	margin: 0; color: var(--ink);
}
.dsc-mosaic-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.dsc-tile {
	margin: 0; overflow: hidden; border-radius: 3px; aspect-ratio: 1 / 1;
	background: var(--paper-deep);
}
.dsc-tile img {
	width: 100%; height: 100%; object-fit: cover; display: block;
	transition: transform 1200ms cubic-bezier(.16, .84, .28, 1);
}
.dsc-tile:hover img { transform: scale(1.07); }

/* ----- IV · The full story (long-form prose) ----- */
.dsc-readmore { border-top: 1px solid var(--line); }
.dsc-readmore-head { padding-top: clamp(60px, 8vw, 110px); }
.dsc-readmore-head .eyebrow { color: var(--muted); margin-bottom: 16px; }
.dsc-readmore-head h2 {
	font-family: var(--serif); font-weight: 300;
	font-size: clamp(30px, 4vw, 58px); line-height: 1; letter-spacing: -0.02em;
	margin: 0; color: var(--ink);
}
/* The head supplies the top spacing, so the prose column starts tighter. */
.dsc-readmore .pjc-prose { padding-top: clamp(28px, 4vw, 48px); }

/* ----- Responsive ----- */
@media (max-width: 880px) {
	.dsc-story,
	.dsc-story--rev { grid-template-columns: 1fr; gap: clamp(20px, 5vw, 32px); }
	.dsc-story--rev .dsc-story-media { order: 1; }
	.dsc-story--rev .dsc-story-text { order: 2; }
	.dsc-features-grid { grid-template-columns: repeat(2, 1fr); }
	.dsc-stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: clamp(32px, 6vw, 48px); }
	.dsc-mosaic-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
	.dsc-features-grid { grid-template-columns: 1fr; }
	.dsc-mosaic-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}

/* Optional columns. */
.pjc-prose .wp-block-columns {
	display: flex;
	gap: clamp(24px, 4vw, 56px);
	max-width: 1040px;
	margin: clamp(30px, 4vw, 54px) auto;
	flex-wrap: wrap;
}
.pjc-prose .wp-block-column { flex: 1 1 280px; }
.pjc-prose .wp-block-column > * { max-width: none; }
@media (max-width: 720px) {
	.pjc-prose .wp-block-columns { flex-direction: column; }
}
