/* Content elements shared by the frontend and both WordPress editors. */

:root {
	--ellery-section-space-scale: 1;
	--ellery-paper: var(--wp--preset--color--base, #fbfaf6);
	--ellery-ink: var(--wp--preset--color--contrast, #172027);
	--ellery-ink-soft: var(--wp--preset--color--muted, #4f5957);
	--ellery-rule: rgba(23, 32, 39, 0.16);
	--ellery-accent: var(--wp--preset--color--accent, #4f6658);
	--ellery-accent-soft: rgba(79, 102, 88, 0.18);
	--ellery-font-body: var(--wp--preset--font-family--body, "Source Sans 3", "Segoe UI", Arial, sans-serif);
	--ellery-font-display: var(--wp--preset--font-family--display, "Newsreader", Georgia, "Times New Roman", serif);
	--ellery-text-xs: 0.8125rem;
	--ellery-text-sm: 0.9375rem;
	--ellery-text-base: 1.0625rem;
	--ellery-text-lg: 1.1875rem;
	--ellery-leading-body: 1.62;
	--ellery-leading-snug: 1.25;
	--ellery-leading-tight: 1.08;
	--ellery-canvas: var(--wp--style--global--wide-size, 76rem);
	--ellery-content: var(--wp--style--global--content-size, 54rem);
	--ellery-prose: 72ch;
	--ellery-space-1: 0.375rem;
	--ellery-space-2: 0.625rem;
	--ellery-space-3: 1rem;
	--ellery-space-4: 1.5rem;
	--ellery-space-5: 2.25rem;
	--ellery-space-6: 3.25rem;
	--ellery-space-7: 4.75rem;
	--ellery-fast: 140ms;
}

:where(.entry-content, .editor-styles-wrapper, body#tinymce) > * {
	margin-block-start: 0;
}

:where(.entry-content, .editor-styles-wrapper, body#tinymce) > * + * {
	margin-block-start: var(--ellery-space-4, 1.5rem);
}

.pb-booking-wrap {
	border-top: 1px solid rgba(0, 0, 0, 0.14);
	padding-top: 18px;
}

:where(.entry-content, .editor-styles-wrapper, body#tinymce) h1,
:where(.entry-content, .editor-styles-wrapper, body#tinymce) h2,
:where(.entry-content, .editor-styles-wrapper, body#tinymce) h3,
:where(.entry-content, .editor-styles-wrapper, body#tinymce) h4,
:where(.entry-content, .editor-styles-wrapper, body#tinymce) h5,
:where(.entry-content, .editor-styles-wrapper, body#tinymce) h6 {
	margin-block: calc(var(--ellery-space-6, 3.25rem) * var(--ellery-section-space-scale)) 0;
	color: var(--ellery-ink, #172027);
	font-family: var(--ellery-font-display, "Newsreader", Georgia, "Times New Roman", serif);
	font-weight: 500;
	line-height: var(--ellery-leading-tight, 1.08);
	letter-spacing: -0.015em;
	text-wrap: balance;
}

:where(.entry-content, .editor-styles-wrapper, body#tinymce) h1,
:where(.entry-content, .editor-styles-wrapper, body#tinymce) h2 {
	font-size: clamp(1.95rem, 3vw, 2.7rem);
}

:where(.entry-content, .editor-styles-wrapper, body#tinymce) h3 {
	font-size: clamp(1.45rem, 2vw, 1.8rem);
}

:where(.entry-content, .editor-styles-wrapper, body#tinymce) :is(h1, h2, h3) + :is(h1, h2, h3) {
	margin-block-start: calc(var(--ellery-space-6, 3.25rem) / 2 * var(--ellery-section-space-scale));
}

:where(.entry-content, .editor-styles-wrapper, body#tinymce) h4,
:where(.entry-content, .editor-styles-wrapper, body#tinymce) h5,
:where(.entry-content, .editor-styles-wrapper, body#tinymce) h6 {
	font-family: var(--ellery-font-body, "Source Sans 3", "Segoe UI", Arial, sans-serif);
	font-weight: 700;
	line-height: var(--ellery-leading-snug, 1.25);
	letter-spacing: 0;
}

:where(.entry-content, .editor-styles-wrapper, body#tinymce) h4 {
	font-size: 1.125rem;
}

:where(.entry-content, .editor-styles-wrapper, body#tinymce) h5,
:where(.entry-content, .editor-styles-wrapper, body#tinymce) h6 {
	font-size: 1rem;
}

:where(.entry-content, .editor-styles-wrapper, body#tinymce) > h1:first-child,
:where(.entry-content, .editor-styles-wrapper, body#tinymce) > h2:first-child,
:where(.entry-content, .editor-styles-wrapper, body#tinymce) > h3:first-child,
:where(.entry-content, .editor-styles-wrapper, body#tinymce) > h4:first-child {
	margin-block-start: 0;
}

:where(.entry-content, .editor-styles-wrapper, body#tinymce) figure,
:where(.entry-content, .editor-styles-wrapper, body#tinymce) table {
	max-width: 100%;
}

:where(.entry-content, .editor-styles-wrapper, body#tinymce) p {
	margin-block-end: 0;
}

:where(.entry-content, .editor-styles-wrapper, body#tinymce) a {
	color: inherit;
	text-decoration-line: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
	text-decoration-color: color-mix(in srgb, currentColor 58%, transparent);
	transition:
		text-decoration-color var(--ellery-fast, 140ms) ease,
		color var(--ellery-fast, 140ms) ease;
}

:where(.entry-content, .editor-styles-wrapper, body#tinymce) a:hover {
	text-decoration-color: transparent;
}

:where(.entry-content, .editor-styles-wrapper, body#tinymce) ul,
:where(.entry-content, .editor-styles-wrapper, body#tinymce) ol {
	margin-block-end: 0;
}

:where(.entry-content, .editor-styles-wrapper, body#tinymce) ol {
	padding-inline-start: 1.35em;
}

:where(.entry-content, .editor-styles-wrapper, body#tinymce) ul {
	padding-inline-start: 1.65rem;
	list-style: none;
}

:where(.entry-content, .editor-styles-wrapper, body#tinymce) li + li {
	margin-block-start: 0.4em;
}

:where(.entry-content, .editor-styles-wrapper, body#tinymce) ul > li {
	position: relative;
}

:where(.entry-content, .editor-styles-wrapper, body#tinymce) ul > li::before {
	content: "∴";
	position: absolute;
	inset-block-start: 0;
	inset-inline-start: -1.4rem;
	width: 1rem;
	color: var(--ellery-accent, #4f6658);
	font-family: var(--ellery-font-display, "Newsreader", Georgia, "Times New Roman", serif);
	font-size: 1em;
	font-weight: 500;
	line-height: inherit;
	text-align: center;
}

:where(.entry-content, .editor-styles-wrapper, body#tinymce) ol > li::marker {
	color: var(--ellery-accent, #4f6658);
}

:where(.entry-content, .editor-styles-wrapper, body#tinymce) li > :is(ul, ol) {
	margin-block-start: 0.35em;
}

:where(.entry-content, .editor-styles-wrapper, body#tinymce) .ellery-ruled-list {
	max-width: var(--ellery-content, 54rem);
	padding-inline-start: 0;
	border-block-end: 1px solid var(--ellery-rule, rgba(23, 32, 39, 0.16));
}

:where(.entry-content, .editor-styles-wrapper, body#tinymce) .ellery-ruled-list > li {
	display: grid;
	grid-template-columns: 1.1rem minmax(0, 1fr);
	column-gap: 0.625rem;
	align-items: start;
	margin-block-start: 0;
	padding-block: 1.05rem;
	padding-inline-start: 0.625rem;
	border-block-start: 1px solid var(--ellery-rule, rgba(23, 32, 39, 0.16));
}

:where(.entry-content, .editor-styles-wrapper, body#tinymce) .ellery-ruled-list > li::before {
	position: static;
	width: auto;
	font-size: 1em;
	line-height: var(--ellery-leading-body, 1.62);
}

:where(.entry-content, .editor-styles-wrapper, body#tinymce) .ellery-ruled-list > li > :first-child {
	margin-block-start: 0;
}

:where(.entry-content, .editor-styles-wrapper, body#tinymce) .ellery-ruled-list > li > :last-child {
	margin-block-end: 0;
}

/* Editorial feature columns respond to their content area, including sidebar pages. */
:where(.entry-content, body#tinymce) .ellery-feature-columns {
	max-width: var(--ellery-content, 54rem);
	padding-block: calc(var(--ellery-space-5, 2.25rem) * var(--ellery-section-space-scale));
	border-block: 1px solid var(--ellery-rule, rgba(23, 32, 39, 0.16));
	container-type: inline-size;
}

:where(.entry-content, body#tinymce) .ellery-feature-columns--two {
	padding-block: calc(var(--ellery-space-6, 3.25rem) * var(--ellery-section-space-scale));
}

:where(.entry-content, body#tinymce) .ellery-feature-columns + .ellery-feature-columns {
	margin-block-start: calc(var(--ellery-space-6, 3.25rem) * var(--ellery-section-space-scale));
}

:where(.entry-content, body#tinymce) .ellery-feature-columns__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

:where(.entry-content, body#tinymce) .ellery-feature-columns--three .ellery-feature-columns__grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

:where(.entry-content, body#tinymce) .ellery-feature-columns__column {
	min-width: 0;
	padding-inline: var(--ellery-space-5, 2.25rem);
}

:where(.entry-content, body#tinymce) .ellery-feature-columns--two .ellery-feature-columns__column {
	display: flex;
	flex-direction: column;
}

:where(.entry-content, body#tinymce) .ellery-feature-columns__column:first-child {
	padding-inline-start: 0;
}

:where(.entry-content, body#tinymce) .ellery-feature-columns__column:last-child {
	padding-inline-end: 0;
}

:where(.entry-content, body#tinymce) .ellery-feature-columns__column + .ellery-feature-columns__column {
	border-inline-start: 1px solid var(--ellery-rule, rgba(23, 32, 39, 0.16));
}

:where(.entry-content, body#tinymce) .ellery-feature-columns__column > * {
	margin-block-end: 0;
}

:where(.entry-content, body#tinymce) .ellery-feature-columns__column > :first-child {
	margin-block-start: 0;
}

:where(.entry-content, body#tinymce) .ellery-feature-columns__column > * + * {
	margin-block-start: var(--ellery-space-4, 1.5rem);
}

:where(.entry-content, body#tinymce) .ellery-feature-columns--two .ellery-feature-columns__column > :last-child:has(> .ellery-cta-link) {
	margin-block-start: auto;
	padding-block-start: var(--ellery-space-4, 1.5rem);
}

:where(.entry-content, body#tinymce) .ellery-feature-columns__column > .ellery-kicker + h2 {
	margin-block-start: var(--ellery-space-2, 0.625rem);
}

:where(.entry-content, body#tinymce) .ellery-feature-columns--three h2 {
	font-size: clamp(1.45rem, 2vw, 1.8rem);
}

@container (max-width: 46rem) {
	:where(.entry-content, body#tinymce) .ellery-feature-columns--three .ellery-feature-columns__grid {
		grid-template-columns: 1fr;
	}

	:where(.entry-content, body#tinymce) .ellery-feature-columns--three .ellery-feature-columns__column {
		padding-inline: 0;
	}

	:where(.entry-content, body#tinymce) .ellery-feature-columns--three .ellery-feature-columns__column + .ellery-feature-columns__column {
		margin-block-start: calc(var(--ellery-space-5, 2.25rem) * var(--ellery-section-space-scale));
		padding-block-start: calc(var(--ellery-space-5, 2.25rem) * var(--ellery-section-space-scale));
		border-inline-start: 0;
		border-block-start: 1px solid var(--ellery-rule, rgba(23, 32, 39, 0.16));
	}
}

@container (max-width: 38rem) {
	:where(.entry-content, body#tinymce) .ellery-feature-columns--two .ellery-feature-columns__grid {
		grid-template-columns: 1fr;
	}

	:where(.entry-content, body#tinymce) .ellery-feature-columns--two .ellery-feature-columns__column {
		display: block;
		padding-inline: 0;
	}

	:where(.entry-content, body#tinymce) .ellery-feature-columns--two .ellery-feature-columns__column > :last-child:has(> .ellery-cta-link) {
		margin-block-start: var(--ellery-space-4, 1.5rem);
		padding-block-start: 0;
	}

	:where(.entry-content, body#tinymce) .ellery-feature-columns--two .ellery-feature-columns__column + .ellery-feature-columns__column {
		margin-block-start: calc(var(--ellery-space-5, 2.25rem) * var(--ellery-section-space-scale));
		padding-block-start: calc(var(--ellery-space-5, 2.25rem) * var(--ellery-section-space-scale));
		border-inline-start: 0;
		border-block-start: 1px solid var(--ellery-rule, rgba(23, 32, 39, 0.16));
	}
}

:where(.entry-content, .editor-styles-wrapper, body#tinymce) .ellery-menu-tag {
	position: relative;
	top: -0.12em;
	display: inline-block;
	max-width: 100%;
	margin-inline-start: 0.45em;
	overflow: hidden;
	font-size: 0.66em;
	letter-spacing: 0.12em;
	line-height: 1.4;
	opacity: 0.7;
	text-overflow: ellipsis;
	text-transform: uppercase;
	white-space: nowrap;
}

:where(.entry-content, .page-sidebar) .ellery-content-anchor {
	display: block;
	overflow: hidden;
	block-size: 0;
	margin: 0;
	padding-block-start: 0;
	border: 0;
	font-size: 0;
	line-height: 0;
}

body#tinymce .ellery-content-anchor {
	display: block;
	block-size: auto;
	margin-block: var(--ellery-space-4, 1.5rem);
	padding: 0.35rem 0.5rem;
	border-block: 1px dashed var(--ellery-rule, rgba(23, 32, 39, 0.16));
	color: var(--ellery-ink-soft, #4f5957);
	font-family: var(--ellery-font-body, "Source Sans 3", "Segoe UI", Arial, sans-serif);
	font-size: 0;
	font-weight: 700;
	letter-spacing: 0.12em;
	line-height: 1.2;
	text-align: center;
	text-transform: uppercase;
}

body#tinymce .ellery-content-anchor--body::before {
	content: "BODY ANCHOR";
	font-size: 0.75rem;
}

body#tinymce .ellery-content-anchor--sidebar::before {
	content: "SIDEBAR ANCHOR";
	font-size: 0.75rem;
}

:where(.entry-content, .editor-styles-wrapper, body#tinymce) blockquote {
	margin-inline: 0;
	padding-inline-start: var(--ellery-space-4, 1.5rem);
	border-inline-start: 2px solid var(--ellery-accent, #4f6658);
	color: var(--ellery-ink-soft, #4f5957);
	font-family: var(--ellery-font-display, "Newsreader", Georgia, "Times New Roman", serif);
	font-size: 1.25rem;
	font-style: italic;
	line-height: 1.45;
}

:where(.entry-content, .editor-styles-wrapper, body#tinymce) blockquote p {
	margin: 0;
}

:where(.entry-content, .editor-styles-wrapper, body#tinymce) hr {
	border: 0;
	height: 1px;
	margin-block: calc(3.8rem * var(--ellery-section-space-scale));
	background: var(--ellery-rule, rgba(23, 32, 39, 0.16));
}

:where(.entry-content, .editor-styles-wrapper, body#tinymce) hr.ellery-spacer {
	background: transparent;
}

body#tinymce hr.ellery-spacer {
	background: var(--ellery-rule, rgba(23, 32, 39, 0.16));
	opacity: 0.35;
}

:where(.entry-content, .page-sidebar, .nutrition-ledger__hero, body#tinymce) .ellery-divider--fleuron {
	position: relative;
	width: 100%;
	height: 1rem;
	margin-inline: auto;
	border: 0;
	background:
		linear-gradient(var(--ellery-rule, rgba(23, 32, 39, 0.16)), var(--ellery-rule, rgba(23, 32, 39, 0.16))) left center / calc(50% - 1.75rem) 1px no-repeat,
		linear-gradient(var(--ellery-rule, rgba(23, 32, 39, 0.16)), var(--ellery-rule, rgba(23, 32, 39, 0.16))) right center / calc(50% - 1.75rem) 1px no-repeat;
	color: var(--ellery-accent, #4f6658);
	font-size: 0;
}

:where(.entry-content, .page-sidebar, .nutrition-ledger__hero, body#tinymce) .ellery-divider--fleuron::after {
	content: "";
	display: block;
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0.7rem;
	height: 0.7rem;
	background: currentColor;
	clip-path: polygon(50% 0, 62% 33%, 100% 50%, 62% 67%, 50% 100%, 38% 67%, 0 50%, 38% 33%);
	transform: translate(-50%, -50%);
}

:where(.entry-content, body#tinymce) .ellery-statement-intro {
	max-width: 42rem;
	margin: calc(var(--ellery-space-7, 4.75rem) * var(--ellery-section-space-scale)) auto calc(var(--ellery-space-6, 3.25rem) * var(--ellery-section-space-scale));
	text-align: center;
}

:where(.entry-content, body#tinymce) .ellery-statement-intro h2 {
	max-width: 12em;
	margin-inline: auto;
	font-size: clamp(2.6rem, 5vw, 4.25rem);
}

:where(.entry-content, body#tinymce) .ellery-statement-intro p {
	max-width: 34rem;
	margin-inline: auto;
	color: var(--ellery-ink-soft, #4f5957);
	font-family: var(--ellery-font-display, "Newsreader", Georgia, "Times New Roman", serif);
	font-size: 1.25rem;
	line-height: 1.35;
}

:where(.entry-content, body#tinymce) .ellery-statement-intro .ellery-divider--fleuron {
	margin-block: var(--ellery-space-5, 2.25rem) 0;
}

:where(.entry-content, body#tinymce) .ellery-kicker {
	max-width: var(--ellery-prose, 72ch);
	margin-block-start: calc(var(--ellery-space-5, 2.25rem) * var(--ellery-section-space-scale));
	color: var(--ellery-accent, #4f6658);
	font-family: var(--ellery-font-body, "Source Sans 3", "Segoe UI", Arial, sans-serif);
	font-size: var(--ellery-text-xs, 0.8125rem);
	font-weight: 700;
	letter-spacing: 0.16em;
	line-height: var(--ellery-leading-snug, 1.25);
	text-transform: uppercase;
}

:where(.entry-content, body#tinymce) .ellery-kicker + h1,
:where(.entry-content, body#tinymce) .ellery-kicker + h2,
:where(.entry-content, body#tinymce) .ellery-kicker + h3,
:where(.entry-content, body#tinymce) .ellery-kicker + h4 {
	margin-block-start: var(--ellery-space-2, 0.625rem);
}

:where(.entry-content, body#tinymce) .ellery-kicker:has(+ .ellery-display-statement) {
	margin-block-start: calc(var(--ellery-space-6, 3.25rem) * var(--ellery-section-space-scale));
	margin-inline: auto;
	text-align: center;
}

:where(.entry-content, body#tinymce) .ellery-display-statement {
	max-width: 14em;
	margin-block: calc(var(--ellery-space-5, 2.25rem) * var(--ellery-section-space-scale)) 0;
	margin-inline: 0;
	color: var(--ellery-ink, #172027);
	font-family: var(--ellery-font-display, "Newsreader", Georgia, "Times New Roman", serif);
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 500;
	line-height: var(--ellery-leading-tight, 1.08);
	text-wrap: balance;
}

:where(.entry-content, body#tinymce) .ellery-kicker + .ellery-display-statement {
	margin-block-start: var(--ellery-space-2, 0.625rem);
	margin-inline: auto;
	text-align: center;
}

:where(.entry-content, body#tinymce) .ellery-founder-id {
	max-width: var(--ellery-prose, 72ch);
	margin-block: calc(var(--ellery-space-4, 1.5rem) * var(--ellery-section-space-scale)) calc(var(--ellery-space-6, 3.25rem) * var(--ellery-section-space-scale));
}

:where(.entry-content, body#tinymce) .ellery-founder-id > * {
	margin-block: 0;
}

:where(.entry-content, body#tinymce) .ellery-founder-id__eyebrow {
	color: var(--ellery-accent, #4f6658);
	font-family: var(--ellery-font-body, "Source Sans 3", "Segoe UI", Arial, sans-serif);
	font-size: var(--ellery-text-xs, 0.8125rem);
	font-weight: 700;
	letter-spacing: 0.16em;
	line-height: var(--ellery-leading-snug, 1.25);
	text-transform: uppercase;
}

/* Bookings retains its deliberately smaller opening after promotion to H1. */
:where(.entry-content, body#tinymce) .ellery-booking-headline {
	font-size: clamp(1.45rem, 2vw, 1.8rem);
}

:where(.entry-content, body#tinymce) .ellery-founder-id__name {
	margin-block-start: 0.22rem;
	color: var(--ellery-ink, #172027);
	font-family: var(--ellery-font-display, "Newsreader", Georgia, "Times New Roman", serif);
	font-size: clamp(1.45rem, 2vw, 1.8rem);
	font-weight: 500;
	line-height: var(--ellery-leading-tight, 1.08);
	letter-spacing: -0.015em;
	text-wrap: balance;
}

:where(.entry-content, body#tinymce) .ellery-founder-id__credential {
	display: inline-block;
	margin-inline-start: 0.3em;
	color: inherit;
	font-family: inherit;
	font-size: 0.4em;
	font-variant: small-caps;
	font-weight: inherit;
	letter-spacing: 0.1em;
	line-height: 1;
	vertical-align: baseline;
}

:where(.entry-content, body#tinymce) .ellery-founder-id__descriptor {
	margin-block-start: 0.165rem;
	color: var(--ellery-ink, #172027);
	font-family: var(--ellery-font-body, "Source Sans 3", "Segoe UI", Arial, sans-serif);
	font-size: var(--ellery-text-base, 1.0625rem);
	font-style: italic;
	line-height: var(--ellery-leading-body, 1.62);
}

:where(.entry-content, body#tinymce) .ellery-pull-quote {
	max-width: var(--ellery-prose, 72ch);
	margin-block: calc(var(--ellery-space-6, 3.25rem) * var(--ellery-section-space-scale));
	margin-inline: 0;
	padding-block: var(--ellery-space-1, 0.375rem);
	padding-inline-start: clamp(1.25rem, 4vw, var(--ellery-space-5, 2.25rem));
	border-inline-start: 2px solid var(--ellery-accent, #4f6658);
	color: var(--ellery-ink-soft, #4f5957);
	font-family: var(--ellery-font-display, "Newsreader", Georgia, "Times New Roman", serif);
	font-size: clamp(1.85rem, 3.2vw, 2.45rem);
	font-weight: 400;
	line-height: 1.18;
	text-wrap: balance;
}

:where(.entry-content, body#tinymce) .ellery-pull-quote--headline {
	display: block;
	padding-block: 0;
	color: var(--ellery-ink, #172027);
	font-family: var(--ellery-font-body, "Source Sans 3", "Segoe UI", Arial, sans-serif);
	font-size: var(--ellery-text-base, 1.0625rem);
	line-height: var(--ellery-leading-body, 1.62);
	text-wrap: auto;
}

:where(.entry-content, body#tinymce) .ellery-pull-quote > * {
	margin-block: 0;
}

:where(.entry-content, body#tinymce) .ellery-pull-quote > * + * {
	margin-block-start: var(--ellery-space-2, 0.625rem);
}

:where(.entry-content, body#tinymce) .ellery-pull-quote__eyebrow {
	color: var(--ellery-ink, #172027);
	font-family: var(--ellery-font-body, "Source Sans 3", "Segoe UI", Arial, sans-serif);
	font-size: var(--ellery-text-xs, 0.8125rem);
	font-weight: 700;
	letter-spacing: 0.16em;
	line-height: var(--ellery-leading-snug, 1.25);
	text-transform: uppercase;
}

:where(.entry-content, body#tinymce) .ellery-pull-quote__headline {
	color: var(--ellery-ink, #172027);
	font-family: var(--ellery-font-display, "Newsreader", Georgia, "Times New Roman", serif);
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 500;
	line-height: var(--ellery-leading-tight, 1.08);
	text-wrap: balance;
}

:where(.entry-content, body#tinymce) .ellery-pull-quote__body {
	max-width: 42rem;
	color: var(--ellery-ink, #172027);
	font-family: var(--ellery-font-body, "Source Sans 3", "Segoe UI", Arial, sans-serif);
	font-size: var(--ellery-text-base, 1.0625rem);
	line-height: var(--ellery-leading-body, 1.62);
}

:where(.entry-content, body#tinymce) .ellery-register-label,
.ellery-register-label {
	color: var(--ellery-ink, #172027);
	font-family: var(--ellery-font-body, "Source Sans 3", "Segoe UI", Arial, sans-serif);
	font-size: var(--ellery-text-xs, 0.8125rem);
	font-weight: 700;
	letter-spacing: 0.18em;
	line-height: var(--ellery-leading-snug, 1.25);
	text-transform: uppercase;
}

:where(.entry-content, body#tinymce) .ellery-key-figure,
.ellery-key-figure {
	display: block;
	color: var(--ellery-ink, #172027);
	font-family: var(--ellery-font-display, "Newsreader", Georgia, "Times New Roman", serif);
	font-size: 1.25rem;
	font-weight: 500;
	line-height: var(--ellery-leading-snug, 1.25);
}

:where(.entry-content, body#tinymce) .ellery-ruled-table table,
.ellery-ruled-table table {
	width: 100%;
	border-collapse: collapse;
}

:where(.entry-content, body#tinymce) .ellery-ruled-table th,
:where(.entry-content, body#tinymce) .ellery-ruled-table td,
.ellery-ruled-table th,
.ellery-ruled-table td {
	padding: 0.55rem 0.75rem;
	border: 0;
	border-block-start: 1px solid var(--ellery-rule, rgba(23, 32, 39, 0.16));
	text-align: start;
	vertical-align: top;
}

:where(.entry-content, body#tinymce) .ellery-ruled-table thead th,
.ellery-ruled-table thead th {
	border-block-start: 0;
	border-block-end: 1px solid color-mix(in srgb, var(--ellery-ink, #172027) 30%, transparent);
	font-family: var(--ellery-font-body, "Source Sans 3", "Segoe UI", Arial, sans-serif);
	font-size: var(--ellery-text-xs, 0.8125rem);
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

:where(.page-sidebar) h2,
:where(.page-sidebar) h3,
:where(.page-sidebar) h4 {
	margin-block-start: var(--ellery-space-5, 2.25rem);
	font-family: var(--ellery-font-body, "Source Sans 3", "Segoe UI", Arial, sans-serif);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

:where(.page-sidebar) h2:first-child,
:where(.page-sidebar) h3:first-child,
:where(.page-sidebar) h4:first-child {
	margin-block-start: 0;
}

:where(.page-sidebar) ul {
	padding-inline-start: 0;
	list-style: none;
}

:where(.entry-content, body#tinymce) .ellery-aside-cta {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--ellery-space-5, 2.25rem);
	align-items: center;
	max-width: var(--ellery-content, 54rem);
	padding: var(--ellery-space-4, 1.5rem);
	background: color-mix(in srgb, var(--wp--preset--color--subtle, #f4f1ea) 74%, #fff 26%);
	border-block: 1px solid var(--ellery-rule, rgba(23, 32, 39, 0.16));
}

:where(.entry-content, body#tinymce) .ellery-aside-cta:has(> .ellery-aside-cta__media) {
	container: ellery-illustrated-aside / inline-size;
	/* Scale the shell to its available width; retain the established desktop caps. */
	grid-template-columns: minmax(0, min(30%, 12rem)) minmax(0, 1fr);
	gap: clamp(var(--ellery-space-2, 0.625rem), 6%, var(--ellery-space-5, 2.25rem));
	padding: clamp(var(--ellery-space-2, 0.625rem), 4%, var(--ellery-space-4, 1.5rem));
}

:where(.entry-content, body#tinymce) .ellery-aside-cta__media {
	margin: 0;
	padding-inline-end: var(--ellery-space-4, 1.5rem);
	border-inline-end: 1px solid var(--ellery-rule, rgba(23, 32, 39, 0.16));
}

:where(.entry-content, body#tinymce) .ellery-aside-cta__media img {
	display: block;
	width: 100%;
	max-height: 10rem;
	object-fit: contain;
}

:where(.entry-content, body#tinymce) .ellery-aside-cta h2,
:where(.entry-content, body#tinymce) .ellery-aside-cta h3 {
	margin-block-start: 0;
	font-size: clamp(1.75rem, 3vw, 2.45rem);
}

:where(.entry-content, body#tinymce) .ellery-aside-cta p {
	max-width: 46rem;
}

@container ellery-illustrated-aside (max-width: 30rem) {
	:where(.entry-content, body#tinymce) .ellery-aside-cta__media {
		padding-inline-end: var(--ellery-space-2, 0.625rem);
	}

	:where(.entry-content, body#tinymce) .ellery-aside-cta__media img {
		width: auto;
		height: auto;
		max-width: 100%;
		max-height: 8rem;
		margin-inline: auto;
	}

	:where(.entry-content, body#tinymce) .ellery-aside-cta__body {
		min-width: 0;
	}

	:where(.entry-content, body#tinymce) .ellery-aside-cta :is(h2, h3) {
		font-size: clamp(1.4rem, 7cqi, 1.75rem);
		overflow-wrap: anywhere;
	}

	:where(.entry-content, body#tinymce) .ellery-aside-cta__body > :last-child {
		margin-block-end: 0;
	}
}

:where(.entry-content, body#tinymce) .ellery-heading-only-cta {
	container-type: inline-size;
	max-width: var(--ellery-content, 54rem);
	margin-block-start: calc(var(--ellery-space-5, 2.25rem) * var(--ellery-section-space-scale));
	font-size: clamp(1.75rem, 3vw, 2.45rem);
}

:where(.entry-content, body#tinymce) .ellery-media-pair {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: var(--ellery-space-6, 3.25rem);
	align-items: start;
	max-width: var(--ellery-canvas, 68rem);
}

:where(.entry-content, body#tinymce) .ellery-media-pair--media-left .ellery-media-pair__content {
	order: 2;
}

:where(.entry-content, body#tinymce) .ellery-media-pair__content > * {
	max-width: var(--ellery-prose, 72ch);
}

:where(.entry-content, body#tinymce) .ellery-media-pair__content > *:first-child {
	margin-block-start: 0;
}

:where(.entry-content, body#tinymce) .ellery-media-pair__content > * + * {
	margin-block-start: var(--ellery-space-4, 1.5rem);
}

:where(.entry-content, body#tinymce) .ellery-media-pair__media {
	margin: 0;
	max-width: none;
}

:where(.entry-content, body#tinymce) .ellery-media-pair__media img {
	display: block;
	width: 100%;
	height: auto;
}

:where(.entry-content, body#tinymce) .ellery-closing-cta,
.ellery-closing-cta {
	container: ellery-closing-cta / inline-size;
	max-width: var(--ellery-content, 54rem);
	margin-block-start: calc(var(--ellery-space-7, 4.75rem) / 2 * var(--ellery-section-space-scale));
	margin-inline: auto;
	text-align: center;
}

:where(.entry-content, body#tinymce) .ellery-closing-cta::before,
:where(.entry-content, body#tinymce) .ellery-closing-cta::after,
.ellery-closing-cta::before,
.ellery-closing-cta::after {
	content: "";
	display: block;
	height: 6px;
	background:
		linear-gradient(
			to bottom,
			var(--ellery-rule, rgba(23, 32, 39, 0.16)) 0 1px,
			transparent 1px 5px,
			var(--ellery-rule, rgba(23, 32, 39, 0.16)) 5px 6px
		);
}

:where(.entry-content, body#tinymce) .ellery-closing-cta::before,
.ellery-closing-cta::before {
	margin-block-end: 2.1rem;
}

:where(.entry-content, body#tinymce) .ellery-closing-cta::after,
.ellery-closing-cta::after {
	margin-block-start: 2.1rem;
}

:where(.entry-content, body#tinymce) .ellery-closing-cta h2,
:where(.entry-content, body#tinymce) .ellery-closing-cta h3,
.ellery-closing-cta h2,
.ellery-closing-cta h3 {
	margin-block-start: 0;
	margin-inline: auto;
	max-width: 44rem;
	font-size: clamp(1.75rem, 3vw, 2.45rem);
}

:where(.entry-content, body#tinymce) .ellery-closing-cta p,
.ellery-closing-cta p {
	max-width: 44rem;
	margin-inline: auto;
}

@container ellery-closing-cta (max-width: 30rem) {
	.ellery-closing-cta p:not(:has(> a)) {
		text-wrap: balance;
	}
}

:where(.entry-content, body#tinymce) .ellery-heading-only-cta a,
:where(.entry-content, body#tinymce) :is(.ellery-aside-cta, .ellery-closing-cta) a,
:where(.entry-content, body#tinymce) .ellery-cta-link,
.ellery-cta-link {
	--ellery-cta-link-arrow-extension: calc(0.75rem + 40px);
	--ellery-cta-link-arrow-head: 6px;
	--ellery-cta-link-arrow-stroke: 1px;
	--ellery-cta-link-arrow-mask: url('../images/link-arrowhead.svg#regular');
	/* Fit the vector to the existing 45-degree head footprint, without scaling its stroke. */
	--ellery-cta-link-arrow-head-size: calc((var(--ellery-cta-link-arrow-head) - var(--ellery-cta-link-arrow-stroke) / 2) * 1.697056275);
	--ellery-cta-link-arrow-tip-inset: calc(var(--ellery-cta-link-arrow-stroke) * 0.66421356 - var(--ellery-cta-link-arrow-head) * 0.20710678);
	--ellery-cta-link-arrow-right: 0px;
	--ellery-cta-link-arrow-bottom: -0.16em;
	--ellery-cta-link-arrow-rest: -0.04rem;
	--ellery-cta-link-arrow-shift: 0.32rem;
	--ellery-cta-link-arrow-travel: var(--ellery-cta-link-arrow-rest);
	--ellery-cta-link-motion-duration: 300ms;
	--ellery-cta-link-motion-easing: cubic-bezier(0.22, 1, 0.36, 1);

	color: #172027;
	box-sizing: border-box;
	display: inline-block;
	font-weight: 500;
	max-width: 100%;
	opacity: 1;
	padding-inline-end: var(--ellery-cta-link-arrow-extension);
	position: relative;
	text-decoration: none;
	transition: opacity var(--ellery-fast, 140ms) ease;
}

:where(.entry-content, body#tinymce) .ellery-heading-only-cta a {
	--ellery-cta-link-arrow-extension: clamp(3rem, calc(30cqi - 6rem), 10rem);
	--ellery-cta-link-arrow-head: 0.55rem;
	--ellery-cta-link-arrow-rest: -0.08rem;
	--ellery-cta-link-arrow-shift: clamp(0.62rem, calc(14.083cqi - 3.605rem), 4rem);

	display: inline;
}

:where(.entry-content, body#tinymce) .ellery-heading-only-cta a:focus-visible,
:where(.entry-content, body#tinymce) :is(.ellery-aside-cta, .ellery-closing-cta) a:focus-visible,
:where(.entry-content, body#tinymce) .ellery-cta-link:focus-visible,
.ellery-cta-link:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 0.35em;
}

:where(.entry-content, body#tinymce) .ellery-heading-only-cta a:hover,
:where(.entry-content, body#tinymce) .ellery-heading-only-cta a:focus-visible,
:where(.entry-content, body#tinymce) :is(.ellery-aside-cta, .ellery-closing-cta) a:hover,
:where(.entry-content, body#tinymce) :is(.ellery-aside-cta, .ellery-closing-cta) a:focus-visible,
:where(.entry-content, body#tinymce) .ellery-cta-link:hover,
:where(.entry-content, body#tinymce) .ellery-cta-link:focus-visible,
.ellery-cta-link:hover,
.ellery-cta-link:focus-visible {
	--ellery-cta-link-arrow-travel: var(--ellery-cta-link-arrow-shift);
	opacity: 0.72;
}

:where(.entry-content, body#tinymce) .ellery-heading-only-cta a::before,
:where(.entry-content, body#tinymce) :is(.ellery-aside-cta, .ellery-closing-cta) a::before,
:where(.entry-content, body#tinymce) .ellery-cta-link::before,
.ellery-cta-link::before {
	content: "";
	position: absolute;
	/* The shaft enters the vector's inner corner by 3/4 of its stroke width. */
	right: calc(var(--ellery-cta-link-arrow-right) - var(--ellery-cta-link-arrow-travel) + var(--ellery-cta-link-arrow-tip-inset));
	bottom: var(--ellery-cta-link-arrow-bottom);
	left: 0;
	/* Native borders keep stacked shafts equally weighted at fractional display scales. */
	height: 0;
	border-block-start: var(--ellery-cta-link-arrow-stroke) solid currentColor;
	transition: right var(--ellery-cta-link-motion-duration) var(--ellery-cta-link-motion-easing);
}

:where(.entry-content, body#tinymce) .ellery-heading-only-cta a::after,
:where(.entry-content, body#tinymce) :is(.ellery-aside-cta, .ellery-closing-cta) a::after,
:where(.entry-content, body#tinymce) .ellery-cta-link::after,
.ellery-cta-link::after {
	content: "";
	position: absolute;
	right: calc(var(--ellery-cta-link-arrow-right) - var(--ellery-cta-link-arrow-head) * 0.20710678 + var(--ellery-cta-link-arrow-stroke) * 0.70710678 - var(--ellery-cta-link-arrow-head-size) / 2);
	bottom: calc(var(--ellery-cta-link-arrow-bottom) + var(--ellery-cta-link-arrow-stroke) / 2 - var(--ellery-cta-link-arrow-head-size) / 2);
	width: var(--ellery-cta-link-arrow-head-size);
	height: var(--ellery-cta-link-arrow-head-size);
	background: currentColor;
	mask: var(--ellery-cta-link-arrow-mask) center / 100% 100% no-repeat;
	transform: translateX(var(--ellery-cta-link-arrow-travel));
	transition: transform var(--ellery-cta-link-motion-duration) var(--ellery-cta-link-motion-easing);
}

:where(.entry-content, body#tinymce) .ellery-closing-cta p:has(> a),
.ellery-closing-cta p:has(> a) {
	display: grid;
	gap: var(--ellery-space-2, 0.625rem);
	justify-items: center;
}

:where(.entry-content, .editor-styles-wrapper, body#tinymce) figure {
	margin-inline: 0;
}

:where(.entry-content, .editor-styles-wrapper, body#tinymce) figcaption,
:where(.entry-content, .editor-styles-wrapper, body#tinymce) .wp-caption-text {
	color: var(--ellery-ink-soft, #4f5957);
	font-size: var(--ellery-text-sm, 0.9375rem);
}

:where(.entry-content, .editor-styles-wrapper, body#tinymce) table {
	width: 100%;
	border-collapse: collapse;
}

:where(.entry-content, .editor-styles-wrapper, body#tinymce) th,
:where(.entry-content, .editor-styles-wrapper, body#tinymce) td {
	padding: 0.65rem;
	border: 1px solid var(--ellery-rule, rgba(23, 32, 39, 0.16));
	text-align: start;
	vertical-align: top;
}

:where(.entry-content, .editor-styles-wrapper, body#tinymce) pre {
	overflow: auto;
	padding: 1rem;
	background: var(--wp--preset--color--subtle, #f4f1ea);
}

:where(.entry-content, .editor-styles-wrapper, body#tinymce) code {
	font-size: 0.9em;
}

.aligncenter {
	display: block;
	margin-inline: auto;
}

.alignleft {
	float: left;
	margin: 0.35rem var(--ellery-space-5, 2.25rem) var(--ellery-space-3, 1rem) 0;
}

.alignright {
	float: right;
	margin: 0.35rem 0 var(--ellery-space-3, 1rem) var(--ellery-space-5, 2.25rem);
}

img.alignleft:is(.size-medium, .size-large, .size-full),
figure.alignleft:is(.size-medium, .size-large, .size-full),
.wp-caption.alignleft:has(img:is(.size-medium, .size-large, .size-full)),
img.alignright:is(.size-medium, .size-large, .size-full),
figure.alignright:is(.size-medium, .size-large, .size-full),
.wp-caption.alignright:has(img:is(.size-medium, .size-large, .size-full)) {
	width: min(42%, 24rem) !important;
	max-width: 100%;
}

:where(.entry-content, .editor-styles-wrapper, body#tinymce) img.alignleft,
:where(.entry-content, .editor-styles-wrapper, body#tinymce) img.alignright,
:where(.entry-content, .editor-styles-wrapper, body#tinymce) figure.alignleft img,
:where(.entry-content, .editor-styles-wrapper, body#tinymce) figure.alignright img,
:where(.entry-content, .editor-styles-wrapper, body#tinymce) .wp-caption.alignleft img,
:where(.entry-content, .editor-styles-wrapper, body#tinymce) .wp-caption.alignright img {
	display: block;
	max-width: 100%;
	height: auto;
}

.alignwide {
	width: min(100%, var(--ellery-canvas, 76rem));
	max-width: var(--ellery-canvas, 76rem);
}

.alignfull {
	width: 100vw;
	max-width: 100vw;
	margin-inline: calc(50% - 50vw);
}

.wp-caption,
.wp-caption img {
	max-width: 100%;
}

.gallery {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

.gallery-item {
	flex: 1 1 12rem;
	margin: 0;
}

.entry-title,
.page-title {
	margin: 0 0 var(--ellery-space-5, 2.25rem);
	color: var(--ellery-ink, #172027);
	font-family: var(--ellery-font-body, "Source Sans 3", "Segoe UI", Arial, sans-serif);
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.085em;
	text-transform: uppercase;
}

.entry-title::after,
.page-title::after {
	content: "";
	display: block;
	width: 3rem;
	height: 1px;
	margin-top: 1rem;
	background: var(--ellery-accent, #4f6658);
	opacity: 0.75;
}

.post-summary .entry-title {
	margin-bottom: var(--ellery-space-3, 1rem);
	font-family: var(--ellery-font-display, "Newsreader", Georgia, "Times New Roman", serif);
	font-size: clamp(1.45rem, 2vw, 1.8rem);
	font-weight: 500;
	line-height: var(--ellery-leading-tight, 1.08);
	letter-spacing: -0.015em;
	text-transform: none;
}

.post-summary .entry-title::after {
	content: none;
}

.post-summary .entry-title a {
	color: inherit;
	text-decoration: none;
}

.post-summary .entry-title a:hover {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

@media (max-width: 48rem) {
	:root { --ellery-section-space-scale: 0.5; }
	/* Scale editorial section boundaries, leaving paragraph/list/control spacing intact. */
	:where(.entry-content, .editor-styles-wrapper, body#tinymce) > * + :is(section, aside, .ellery-media-pair) {
		margin-block-start: calc(var(--ellery-space-4, 1.5rem) * var(--ellery-section-space-scale));
	}
	/* Heading Fancy Links shrink to their longest rendered line after wrapping. */
	:where(.entry-content, body#tinymce) :is(h1, h2, h3, h4, h5, h6) > .ellery-cta-link {
		inline-size: var(--ellery-cta-wrap-width, auto);
	}
	.alignleft,
	.alignright {
		float: none;
		display: block;
		margin-inline: auto;
	}

	:where(.entry-content, .editor-styles-wrapper, body#tinymce) .alignleft,
	:where(.entry-content, .editor-styles-wrapper, body#tinymce) .alignright {
		margin-block: var(--ellery-space-4, 1.5rem);
	}

	img.alignleft:is(.size-medium, .size-large, .size-full),
	figure.alignleft:is(.size-medium, .size-large, .size-full),
	.wp-caption.alignleft:has(img:is(.size-medium, .size-large, .size-full)),
	img.alignright:is(.size-medium, .size-large, .size-full),
	figure.alignright:is(.size-medium, .size-large, .size-full),
	.wp-caption.alignright:has(img:is(.size-medium, .size-large, .size-full)) {
		width: min(100%, 34rem) !important;
	}

	:where(.entry-content, body#tinymce) .ellery-media-pair {
		grid-template-columns: 1fr;
		gap: var(--ellery-space-4, 1.5rem);
	}

	:where(.entry-content, body#tinymce) .ellery-media-pair--media-left .ellery-media-pair__content {
		order: 0;
	}

}

@media (max-width: 42rem) {
	:where(.entry-content, .editor-styles-wrapper, body#tinymce) h1,
	:where(.entry-content, .editor-styles-wrapper, body#tinymce) h2 {
		font-size: clamp(1.75rem, 8vw, 2.25rem);
	}

	:where(.entry-content, .editor-styles-wrapper, body#tinymce) h3 {
		font-size: 1.4rem;
	}

	:where(.entry-content, body#tinymce) .ellery-booking-headline {
		font-size: 1.4rem;
	}

	:where(.entry-content, .editor-styles-wrapper, body#tinymce) h1,
	:where(.entry-content, .editor-styles-wrapper, body#tinymce) h2,
	:where(.entry-content, .editor-styles-wrapper, body#tinymce) h3,
	:where(.entry-content, .editor-styles-wrapper, body#tinymce) h4 {
		margin-block-start: calc(var(--ellery-space-5, 2.25rem) * var(--ellery-section-space-scale));
	}

	.entry-title,
	.page-title {
		margin-bottom: var(--ellery-space-4, 1.5rem);
	}
}


/* Photographic spread primitives, promoted from the Local Additional CSS experiment. */

.ellery-photo-spread {
	display: grid;
	gap: clamp(0.65rem, 1.3vw, 1rem);
	width: 100%;
	margin-block: calc(var(--ellery-space-7, 4.75rem) * var(--ellery-section-space-scale));
}

.ellery-photo-spread figure {
	min-width: 0;
	margin: 0;
}

.ellery-photo-spread img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Keep existing Ellery caption language, but tighten it slightly
   for editorial-photo use. */
.ellery-photo-spread figcaption {
	margin-top: 0.5rem;
	font-size: 0.75rem;
	line-height: 1.35;
}


/* ---------------------------------------------------------
   1. MAJOR / MINOR
   Large image + smaller companion aligned to the bottom.
   --------------------------------------------------------- */

.ellery-photo-spread--major-minor {
	grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.55fr);
	align-items: end;
}

.ellery-photo-spread--major-minor > figure:first-child {
	aspect-ratio: 4 / 3;
}

.ellery-photo-spread--major-minor > figure:last-child {
	aspect-ratio: 4 / 5;
}


/* ---------------------------------------------------------
   2. OFFSET PAIR
   Smaller image drops down beside a dominant tall image.
   --------------------------------------------------------- */

.ellery-photo-spread--offset-pair {
	grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
	align-items: start;
}

.ellery-photo-spread--offset-pair > figure:first-child {
	aspect-ratio: 4 / 5;
	margin-top: clamp(2.5rem, 7vw, 5rem);
}

.ellery-photo-spread--offset-pair > figure:last-child {
	aspect-ratio: 3 / 4;
}


/* ---------------------------------------------------------
   3. TRIPTYCH
   Three unequal images; middle image dominates vertically.
   --------------------------------------------------------- */

.ellery-photo-spread--triptych {
	grid-template-columns:
		minmax(0, 0.82fr)
		minmax(0, 1.28fr)
		minmax(0, 0.9fr);
	align-items: center;
}

.ellery-photo-spread--triptych > figure:nth-child(1),
.ellery-photo-spread--triptych > figure:nth-child(3) {
	aspect-ratio: 4 / 5;
}

.ellery-photo-spread--triptych > figure:nth-child(2) {
	aspect-ratio: 3 / 4;
}


/* ---------------------------------------------------------
   4. WIDE PLATE
   One unapologetically large photograph.
   --------------------------------------------------------- */

.ellery-photo-spread--wide {
	display: block;
}

.ellery-photo-spread--wide figure {
	width: 100%;
}

.ellery-photo-spread--wide img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}


/* ---------------------------------------------------------
   5. INSET PLATE
   Single image held deliberately off the left edge.
   --------------------------------------------------------- */

.ellery-photo-spread--inset {
	display: block;
	width: 82%;
	margin-inline-start: auto;
}

.ellery-photo-spread--inset img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}


/* ---------------------------------------------------------
   MOBILE
   Fancy geometry gives way to readable image sequence.
   --------------------------------------------------------- */

@media (max-width: 48rem) {

	.ellery-photo-spread {
		grid-template-columns: 1fr;
		gap: var(--ellery-space-3, 1rem);
		margin-block: calc(var(--ellery-space-6, 3.25rem) * var(--ellery-section-space-scale));
	}

	.ellery-photo-spread--offset-pair > figure:first-child {
		margin-top: 0;
	}

	.ellery-photo-spread--major-minor > figure,
	.ellery-photo-spread--offset-pair > figure,
	.ellery-photo-spread--triptych > figure {
		aspect-ratio: auto;
	}

	.ellery-photo-spread--major-minor img,
	.ellery-photo-spread--offset-pair img,
	.ellery-photo-spread--triptych img {
		height: auto;
		aspect-ratio: auto;
		object-fit: contain;
	}

	.ellery-photo-spread--inset {
		width: 100%;
		margin-inline-start: 0;
	}
}

/* ---------------------------------------------------------
   6. EQUAL PAIR
   Two same-size images side by side.
   Especially useful for portrait photography.
   --------------------------------------------------------- */

.ellery-photo-spread--equal-pair {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: stretch;
}

.ellery-photo-spread--equal-pair > figure {
	aspect-ratio: 4 / 5;
}

/* Catering art direction. These authored classes control presentation only;
 * they do not make a photograph interactive or lightbox-eligible. */
.ellery-catering-photo {
	--catering-mat-inset: clamp(1rem, 1.75vw, 1.3rem);
	--catering-inner-stroke: rgba(57, 65, 55, 0.20);
	box-sizing: border-box;
	padding: var(--catering-mat-inset) var(--catering-mat-inset) calc(var(--catering-mat-inset) * 1.85);
	border: 1.5px solid rgba(57, 65, 55, 0.62);
	background: #f5f1e9;
	box-shadow: 0 2px 5px rgba(35, 38, 30, 0.065), 0 12px 25px rgba(35, 38, 30, 0.055);
}

.ellery-photo-spread.ellery-catering-photo {
	margin-block: calc(clamp(3.5rem, 6vw, 5.5rem) * var(--ellery-section-space-scale));
	margin-inline: auto;
	gap: clamp(0.65rem, 1.15vw, 0.9rem);
}

.ellery-catering-photo figure {
	position: relative;
	min-width: 0;
	min-height: 0;
	margin: 0;
	overflow: hidden;
}

.ellery-catering-photo figure::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
	border: 1.5px solid var(--catering-inner-stroke);
	pointer-events: none;
}

.ellery-catering-photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ellery-catering-photo.ellery-photo-spread--wide {
	max-width: 48rem;
}

.ellery-catering-photo.ellery-photo-spread--wide img {
	aspect-ratio: 3 / 2;
}

.ellery-catering-photo.ellery-photo-spread--triptych {
	max-width: 47rem;
	grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.73fr);
	grid-template-rows: repeat(2, minmax(0, 1fr));
	align-items: stretch;
}

.ellery-catering-photo.ellery-photo-spread--triptych > figure {
	aspect-ratio: auto;
}

.ellery-catering-photo.ellery-photo-spread--triptych > figure:first-child {
	grid-column: 1;
	grid-row: 1 / 3;
	aspect-ratio: 4 / 5;
}

.ellery-catering-photo.ellery-photo-spread--triptych > figure:nth-child(2) {
	grid-column: 2;
	grid-row: 1;
}

.ellery-catering-photo.ellery-photo-spread--triptych > figure:nth-child(3) {
	grid-column: 2;
	grid-row: 2;
}

.ellery-catering-photo.ellery-photo-spread--triptych img {
	object-position: 50% 44%;
}

.ellery-catering-photo.ellery-photo-spread--triptych > figure:nth-child(3) img {
	object-position: 50% 46%;
}

.ellery-catering-photo.ellery-photo-spread--offset-pair {
	max-width: 44rem;
	grid-template-columns: minmax(0, 1.24fr) minmax(0, 0.76fr);
	align-items: start;
}

.ellery-catering-photo.ellery-photo-spread--offset-pair > figure:first-child {
	margin-top: 0;
	aspect-ratio: 4 / 3;
}

.ellery-catering-photo.ellery-photo-spread--offset-pair > figure:last-child {
	aspect-ratio: 3 / 4;
}

.ellery-catering-photo.ellery-photo-spread--equal-pair {
	max-width: 43rem;
	grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.78fr);
	align-items: start;
}

.ellery-catering-photo.ellery-photo-spread--equal-pair > figure:first-child {
	aspect-ratio: 1 / 1;
}

.ellery-catering-photo.ellery-photo-spread--equal-pair > figure:last-child {
	aspect-ratio: 3 / 4;
}

.ellery-catering-photo + h3,
.ellery-catering-photo + section {
	margin-top: calc(clamp(3.5rem, 6vw, 5rem) * var(--ellery-section-space-scale));
}

.ellery-catering-photo--cocktail {
	width: min(100%, 39rem);
	margin: calc(clamp(2.5rem, 5vw, 4rem) * var(--ellery-section-space-scale)) auto;
}

.ellery-catering-photo--plated {
	width: min(100%, 30rem);
	margin-inline: auto;
}

/* Linked photographs retain the same mount geometry in Classic Editor too. */
.ellery-catering-photo > a,
.ellery-catering-photo figure > a {
	display: block;
	height: 100%;
}

.ellery-catering-photo > img,
.ellery-catering-photo > a > img {
	max-width: 100%;
	height: auto;
	margin: 0;
	outline: 1.5px solid var(--catering-inner-stroke);
	outline-offset: -1.5px;
}

@media (max-width: 48rem) {
	.ellery-catering-photo {
		--catering-mat-inset: 0.8rem;
		width: 100%;
		max-width: none;
	}

	.ellery-photo-spread.ellery-catering-photo {
		max-width: none;
		margin-block: calc(2.8rem * var(--ellery-section-space-scale));
		margin-inline: 0;
	}

	.ellery-catering-photo.ellery-photo-spread--triptych {
		grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
	}

	.ellery-catering-photo.ellery-photo-spread--offset-pair,
	.ellery-catering-photo.ellery-photo-spread--equal-pair {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 34rem) {
	.ellery-catering-photo.ellery-photo-spread--triptych {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-template-rows: auto auto;
	}

	.ellery-catering-photo.ellery-photo-spread--triptych > figure:first-child {
		grid-column: 1 / -1;
		grid-row: 1;
		aspect-ratio: 4 / 3;
	}

	.ellery-catering-photo.ellery-photo-spread--triptych > figure:nth-child(2) {
		grid-column: 1;
		grid-row: 2;
		aspect-ratio: 4 / 5;
	}

	.ellery-catering-photo.ellery-photo-spread--triptych > figure:nth-child(3) {
		grid-column: 2;
		grid-row: 2;
		aspect-ratio: 4 / 5;
	}

	.ellery-catering-photo.ellery-photo-spread--offset-pair,
	.ellery-catering-photo.ellery-photo-spread--equal-pair {
		grid-template-columns: 1fr;
	}
}
