/*
Theme Name: Strasbourg Ayrstalk
Theme URI: https://ayrstalk.co.uk/
Description: The South Ayrshire Stalking site. A child theme of Strasbourg: brand colours and type, image page headers, the site header and footer.
Author: Pressing Space
Author URI: https://pressingspace.com/
Template: strasbourg
Version: 1.0.0
Requires at least: 6.7
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: strasbourg-ayrstalk
*/

/*
 * The original site was built on Bootstrap 4's grid, and its content was laid
 * out against that grid. The redesign keeps the same measurements so every
 * page sits as it did:
 *
 *   - a centred container of 720, 960 or 1140px, with a 15px gutter (below
 *     768px the page is fluid, with 28px either side, as the phone designs are);
 *   - body copy in the middle eight of twelve columns from 768px up;
 *   - one change of type scale, at 992px.
 *
 * WordPress reads the two widths from custom properties, so they are set here
 * per breakpoint. They are set on the body (not :root, where WordPress puts its
 * own) so they win whatever order the stylesheets load in.
 *
 * This stylesheet is also loaded into the block editor, which has no body or
 * .wp-site-blocks of its own: there the content sits in .is-root-container.
 * Rules name both, so a page looks the same while it is being edited.
 */

body,
.is-root-container {
	--ayrstalk-container: 1140px;
	--ayrstalk-column: calc(var(--ayrstalk-container) / 12);
	--ayrstalk-content: calc(var(--ayrstalk-column) * 8 - 30px);
	--wp--style--global--wide-size: calc(var(--ayrstalk-container) - 30px);
	--wp--style--global--content-size: var(--ayrstalk-content);

	/*
	 * Type and spacing. The values are the Figma file's and live in theme.json
	 * (settings.custom), where a site's Global Styles can override them. These
	 * names are the ones the rules below use: the desktop set here, the mobile
	 * set below 992px.
	 */
	--ayrstalk-h1-size: var(--wp--custom--typography--desktop--heading-1--size);
	--ayrstalk-h1-line: var(--wp--custom--typography--desktop--heading-1--line);
	--ayrstalk-h1-track: var(--wp--custom--typography--desktop--heading-1--tracking);
	--ayrstalk-h2-size: var(--wp--custom--typography--desktop--heading-2--size);
	--ayrstalk-h2-line: var(--wp--custom--typography--desktop--heading-2--line);
	--ayrstalk-h2-track: var(--wp--custom--typography--desktop--heading-2--tracking);
	--ayrstalk-h3-size: var(--wp--custom--typography--desktop--heading-3--size);
	--ayrstalk-h3-line: var(--wp--custom--typography--desktop--heading-3--line);
	--ayrstalk-h3-track: var(--wp--custom--typography--desktop--heading-3--tracking);
	--ayrstalk-h4-size: var(--wp--custom--typography--desktop--heading-4--size);
	--ayrstalk-h4-line: var(--wp--custom--typography--desktop--heading-4--line);
	--ayrstalk-h4-track: var(--wp--custom--typography--desktop--heading-4--tracking);
	--ayrstalk-h5-size: var(--wp--custom--typography--desktop--heading-5--size);
	--ayrstalk-h5-line: var(--wp--custom--typography--desktop--heading-5--line);
	--ayrstalk-h5-track: var(--wp--custom--typography--desktop--heading-5--tracking);
	--ayrstalk-h6-size: var(--wp--custom--typography--desktop--heading-6--size);
	--ayrstalk-h6-line: var(--wp--custom--typography--desktop--heading-6--line);
	--ayrstalk-h6-track: var(--wp--custom--typography--desktop--heading-6--tracking);
	--ayrstalk-h7-size: var(--wp--custom--typography--desktop--heading-7--size);
	--ayrstalk-h7-line: var(--wp--custom--typography--desktop--heading-7--line);
	--ayrstalk-h7-track: var(--wp--custom--typography--desktop--heading-7--tracking);
	--ayrstalk-text-size: var(--wp--custom--typography--desktop--text--size);
	--ayrstalk-small-size: var(--wp--custom--typography--desktop--small--size);
	--ayrstalk-text-line: var(--wp--custom--typography--desktop--text--line);
	--ayrstalk-small-line: var(--wp--custom--typography--desktop--small--line);
	--ayrstalk-text-track: var(--wp--custom--typography--desktop--text--tracking);
	--ayrstalk-small-track: var(--wp--custom--typography--desktop--small--tracking);

	--ayrstalk-space: var(--wp--custom--spacing--desktop--section);
	--ayrstalk-gap-heading: var(--wp--custom--spacing--desktop--heading);
	--ayrstalk-gap-text: var(--wp--custom--spacing--desktop--paragraph);
	--ayrstalk-gap-media: var(--wp--custom--spacing--desktop--media);
	--ayrstalk-gap-button: var(--wp--custom--spacing--desktop--button);
	--ayrstalk-gap-lead: var(--wp--custom--spacing--desktop--lead);
	--ayrstalk-article-top: var(--wp--custom--spacing--desktop--article-top);
	--ayrstalk-article-bottom: var(--wp--custom--spacing--desktop--article-bottom);
}

@media (max-width: 1199.98px) {

	body,
	.is-root-container {
		--ayrstalk-container: 960px;
	}
}

@media (max-width: 991.98px) {

	body,
	.is-root-container {
		--ayrstalk-container: 720px;
		--ayrstalk-h1-size: var(--wp--custom--typography--mobile--heading-1--size);
		--ayrstalk-h1-line: var(--wp--custom--typography--mobile--heading-1--line);
		--ayrstalk-h1-track: var(--wp--custom--typography--mobile--heading-1--tracking);
		--ayrstalk-h2-size: var(--wp--custom--typography--mobile--heading-2--size);
		--ayrstalk-h2-line: var(--wp--custom--typography--mobile--heading-2--line);
		--ayrstalk-h2-track: var(--wp--custom--typography--mobile--heading-2--tracking);
		--ayrstalk-h3-size: var(--wp--custom--typography--mobile--heading-3--size);
		--ayrstalk-h3-line: var(--wp--custom--typography--mobile--heading-3--line);
		--ayrstalk-h3-track: var(--wp--custom--typography--mobile--heading-3--tracking);
		--ayrstalk-h4-size: var(--wp--custom--typography--mobile--heading-4--size);
		--ayrstalk-h4-line: var(--wp--custom--typography--mobile--heading-4--line);
		--ayrstalk-h4-track: var(--wp--custom--typography--mobile--heading-4--tracking);
		--ayrstalk-h5-size: var(--wp--custom--typography--mobile--heading-5--size);
		--ayrstalk-h5-line: var(--wp--custom--typography--mobile--heading-5--line);
		--ayrstalk-h5-track: var(--wp--custom--typography--mobile--heading-5--tracking);
		--ayrstalk-h6-size: var(--wp--custom--typography--mobile--heading-6--size);
		--ayrstalk-h6-line: var(--wp--custom--typography--mobile--heading-6--line);
		--ayrstalk-h6-track: var(--wp--custom--typography--mobile--heading-6--tracking);
		--ayrstalk-h7-size: var(--wp--custom--typography--mobile--heading-7--size);
		--ayrstalk-h7-line: var(--wp--custom--typography--mobile--heading-7--line);
		--ayrstalk-h7-track: var(--wp--custom--typography--mobile--heading-7--tracking);
		--ayrstalk-text-size: var(--wp--custom--typography--mobile--text--size);
		--ayrstalk-small-size: var(--wp--custom--typography--mobile--small--size);
		--ayrstalk-text-line: var(--wp--custom--typography--mobile--text--line);
		--ayrstalk-small-line: var(--wp--custom--typography--mobile--small--line);
		--ayrstalk-text-track: var(--wp--custom--typography--mobile--text--tracking);
		--ayrstalk-small-track: var(--wp--custom--typography--mobile--small--tracking);

		--ayrstalk-space: var(--wp--custom--spacing--mobile--section);
		--ayrstalk-gap-heading: var(--wp--custom--spacing--mobile--heading);
		--ayrstalk-gap-text: var(--wp--custom--spacing--mobile--paragraph);
		--ayrstalk-gap-media: var(--wp--custom--spacing--mobile--media);
		--ayrstalk-gap-button: var(--wp--custom--spacing--mobile--button);
		--ayrstalk-gap-lead: var(--wp--custom--spacing--mobile--lead);
		--ayrstalk-article-top: var(--wp--custom--spacing--mobile--article-top);
		--ayrstalk-article-bottom: var(--wp--custom--spacing--mobile--article-bottom);
	}
}

@media (max-width: 767.98px) {

	body,
	.is-root-container {
		/* No fixed column below the tablet's: the page runs edge to edge, less its padding. */
		--ayrstalk-container: 100vw;
		--ayrstalk-content: calc(var(--ayrstalk-container) - 30px);
	}
}

/*
 * The fold: header photographs and heroes stop at 95% of the screen's height,
 * so a sliver of what follows always shows and it is plain there is more
 * below. Each has a floor as well (320px for a header, 360px for a hero, 200px
 * for a stacked hero's photograph), so a phone on its side still has room for
 * the logo and title. These are minimum heights: long text makes them taller,
 * it is never cut off.
 */
body,
.is-root-container {
	--ayrstalk-fold: 95vh;
}

/* The small viewport: what is visible with a phone's address bar showing. */
@supports (height: 1svh) {

	body,
	.is-root-container {
		--ayrstalk-fold: 95svh;
	}
}

/* Text ------------------------------------------------------------------ */

/*
 * In page content the space between things comes from their own margins, as
 * it did on the original site, not from a gap WordPress adds between blocks.
 * Everything below that sets a margin builds on this.
 */
:root .wp-block-post-content > *,
:root .wp-block-post-content :where(.is-layout-flow, .is-layout-constrained) > * {
	margin-block: 0;
}

:root .wp-block-post-content :is(ul, ol, .wp-block-table) {
	margin-block-end: var(--ayrstalk-gap-text);
}

/* A picture, film or quotation in the run of the page stands clear of the text. */
:root .wp-block-post-content > :is(.wp-block-image, .wp-block-embed, .wp-block-gallery, .wp-block-video, .wp-block-pullquote) {
	margin-block: var(--ayrstalk-gap-media);
}

:root .wp-block-post-content :is(.wp-block-column, .wp-block-group) > :is(.wp-block-image, .wp-block-embed) {
	margin-block-end: var(--ayrstalk-gap-text);
}

:root :is(.wp-site-blocks, .is-root-container) hr {
	margin-block: 1rem;
}

/* No balancing of lines: they break where they always did. */
h1,
h2,
h3,
h4,
h5,
h6,
p,
li,
figcaption,
blockquote,
.wp-block-post-title,
.wp-block-query-title {
	text-wrap: wrap;
}

/*
 * Paragraphs: the design's text style, a paragraph's gap apart.
 * :root is there for weight: WordPress removes the top margin of whatever comes
 * first in a container, and on this site the first heading keeps its space.
 */
:root :is(.wp-site-blocks, .is-root-container) p {
	font-size: var(--ayrstalk-text-size);
	letter-spacing: var(--ayrstalk-text-track);
	line-height: var(--ayrstalk-text-line);
	margin-block: var(--ayrstalk-gap-text);
}

:root :is(.wp-site-blocks, .is-root-container) :is(h1, h2, h3, h4, h5, h6) {
	margin-block: var(--ayrstalk-space);
}

/* In the design a heading sits close above the text it introduces. */
/* In the editor the content wrapper is itself the root container, hence the second selector. */
:root :is(.wp-site-blocks, .is-root-container) .wp-block-post-content > :is(h1, h2, h3, h4, h5, h6):has(+ p),
:root .is-root-container.wp-block-post-content > :is(h1, h2, h3, h4, h5, h6):has(+ p) {
	margin-block-end: var(--ayrstalk-gap-heading);
}

/*
 * The heading styles as classes, typed into existing content: "h4" on an h3
 * and so on. New content should use the editor's own typography controls.
 */

/* A heading restyled this way sits closer to what follows it. */
:root :is(.wp-site-blocks, .is-root-container) :is(h1, h2, h3, h4, h5, h6):is(.h1, .h2, .h3, .h4, .h5, .h6) {
	margin-block-end: var(--ayrstalk-gap-heading);
}

:is(.wp-site-blocks, .is-root-container) :is(h1, h2, h3, h4, h5, h6, p, span).h1 {
	font-size: var(--ayrstalk-h1-size);
	letter-spacing: var(--ayrstalk-h1-track);
	line-height: var(--ayrstalk-h1-line);
}

:is(.wp-site-blocks, .is-root-container) :is(h1, h2, h3, h4, h5, h6, p, span).h2 {
	font-size: var(--ayrstalk-h2-size);
	letter-spacing: var(--ayrstalk-h2-track);
	line-height: var(--ayrstalk-h2-line);
}

:is(.wp-site-blocks, .is-root-container) :is(h1, h2, h3, h4, h5, h6, p, span).h3 {
	font-size: var(--ayrstalk-h3-size);
	letter-spacing: var(--ayrstalk-h3-track);
	line-height: var(--ayrstalk-h3-line);
}

:is(.wp-site-blocks, .is-root-container) :is(h1, h2, h3, h4, h5, h6, p, span).h4 {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--ayrstalk-h4-size);
	font-weight: 300;
	letter-spacing: var(--ayrstalk-h4-track);
	line-height: var(--ayrstalk-h4-line);
	text-transform: none;
}

:is(.wp-site-blocks, .is-root-container) :is(h1, h2, h3, h4, h5, h6, p, span).h5 {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--ayrstalk-h5-size);
	font-weight: 400;
	letter-spacing: var(--ayrstalk-h5-track);
	line-height: var(--ayrstalk-h5-line);
	text-transform: uppercase;
}

:is(.wp-site-blocks, .is-root-container) :is(h1, h2, h3, h4, h5, h6, p, span).h6 {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--ayrstalk-h6-size);
	font-weight: 400;
	letter-spacing: var(--ayrstalk-h6-track);
	line-height: var(--ayrstalk-h6-line);
	text-transform: uppercase;
}

:is(.wp-site-blocks, .is-root-container) :is(h1, h2, h3, h4, h5, h6, p, span).h7 {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--ayrstalk-h7-size);
	font-weight: 600;
	letter-spacing: var(--ayrstalk-h7-track);
	line-height: var(--ayrstalk-h7-line);
	text-transform: none;
}

/* On a paragraph these classes also bring the heading colour, except on a coloured panel. */
:is(.wp-site-blocks, .is-root-container) :is(p, span):is(.h1, .h2, .h3, .h4, .h5, .h6, .h7) {
	color: var(--wp--preset--color--primary);
}

:is(.wp-site-blocks, .is-root-container) :is(.wp-block-strasbourg-hero, .wp-block-strasbourg-promo, .ayrstalk-footer, .ayrstalk-page-header, .has-text-color) :is(p, span):is(.h1, .h2, .h3, .h4, .h5, .h6, .h7) {
	color: inherit;
}

/* Links: amber underline, as on the original site ----------------------- */

a {
	text-decoration-color: var(--wp--preset--color--secondary);
	text-decoration-thickness: 0.125rem;
	text-underline-offset: 0.3em;
}

a:hover,
a:focus {
	text-decoration-color: currentcolor;
	text-decoration-line: underline;
}

/* Buttons: amber with an inset keyline that thickens on hover ----------- */

.wp-block-button__link {
	box-shadow: inset 0 0 0 2px var(--wp--preset--color--primary);
	text-decoration: none;
}

.wp-block-button__link:hover,
.wp-block-button__link:focus-visible {
	box-shadow: inset 0 0 0 4px var(--wp--preset--color--primary);
	text-decoration: none;
}

/* On the dark panels the keyline would vanish; use the button's own colour. */
.has-primary-background-color .wp-block-button__link,
.wp-block-strasbourg-hero .wp-block-button__link,
.wp-block-strasbourg-promo .wp-block-button__link {
	box-shadow: inset 0 0 0 2px currentcolor;
}

.has-primary-background-color .wp-block-button__link:hover,
.wp-block-strasbourg-hero .wp-block-button__link:hover,
.wp-block-strasbourg-promo .wp-block-button__link:hover {
	box-shadow: inset 0 0 0 4px currentcolor;
}

/* Photographs: the amber offset ---------------------------------------- */

.wp-block-image img,
.wp-block-gallery img,
.wp-block-latest-posts__featured-image img,
.wp-block-post-template .wp-block-post-featured-image img,
.wp-block-strasbourg-feature img,
.wp-block-strasbourg-profile img {
	box-shadow: var(--wp--custom--spacing--card--offset) var(--wp--custom--spacing--card--offset) 0 var(--wp--preset--color--secondary);
}

.wp-block-image img[src$=".svg"] {
	box-shadow: none;
}

/* Page header: photograph or solid colour, with the site header on it --- */

.ayrstalk-page-header {
	background-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
	margin-block: 0;
	position: relative;
}

/*
 * 560px tall from 992px; below that 480px, or taller on a phone so a wide
 * photograph is not cropped to a letterbox. !important: the cover block writes
 * its own min-height inline.
 */
.wp-block-cover.ayrstalk-page-header {
	align-items: stretch;

	/* Shows where a page has no photograph. */
	background-color: var(--wp--preset--color--primary);
	min-height: clamp(20rem, var(--ayrstalk-fold), 35rem) !important;
	padding: 0;
}

.wp-block-cover.ayrstalk-page-header > .wp-block-cover__inner-container {
	display: flex;
	flex-direction: column;
}

@media (max-width: 991.98px) {

	.wp-block-cover.ayrstalk-page-header {
		min-height: clamp(20rem, var(--ayrstalk-fold), 30rem) !important;
	}
}

/*
 * The photograph is shown as it is, as on the original site. Only the top
 * 200px is shaded, behind the logo and menu, as in the Figma file.
 */
.wp-block-cover.ayrstalk-page-header .wp-block-cover__background {
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0, rgba(0, 0, 0, 0) 200px) !important;
	opacity: 1 !important;
}

.ayrstalk-page-header :is(h1, h2, p, .wp-block-post-title, .wp-block-query-title, .wp-block-post-date) {
	color: var(--wp--preset--color--base);
}

/*
 * The title: the left seven columns of twelve (ten on a phone), in the middle
 * of the photograph from 992px and 80px from the top below that. The site
 * header is laid over the photograph, so it does not push the title down.
 * The size steps down on the narrowest phones so that the longest word in a
 * title ("Qualifications") stays on one line.
 */
.wp-block-cover.ayrstalk-page-header :is(h1, .wp-block-post-title, .wp-block-query-title) {
	/* A plain heading is not border-box as a post title is; without this its padding pushes it off the column. */
	box-sizing: border-box;
	font-size: min(var(--ayrstalk-h1-size), 9.75vw);
	margin-block: auto;
	padding-inline-end: calc(var(--ayrstalk-column) * 5);
	width: 100%; /* Without it a short title shrinks and is centred. */
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.wp-block-cover.ayrstalk-page-header > .wp-block-cover__inner-container > header {
	inset: 0 0 auto;
	margin-inline: 0 !important; /* Already edge to edge; no need to pull out of the gutter. */
	position: absolute;
}

@media (max-width: 991.98px) {

	/* Centred in the photograph below the site header, as in the phone and tablet designs. */
	.wp-block-cover.ayrstalk-page-header :is(h1, .wp-block-post-title, .wp-block-query-title) {
		margin-block: auto;

		/* Clear of the logo (74px) even when the photograph is at its shortest. */
		padding-block: 5.5rem 1rem;
	}
}

@media (max-width: 767.98px) {

	.wp-block-cover.ayrstalk-page-header :is(h1, .wp-block-post-title, .wp-block-query-title) {
		padding-inline-end: calc(var(--ayrstalk-column) * 2);
	}
}

/* A post's date sits under its title, on the same left edge; the two are centred as one. */
/* The home page's photograph is taller: 800px. */
@media (min-width: 992px) {

	.home .wp-block-cover.ayrstalk-page-header {
		min-height: clamp(20rem, var(--ayrstalk-fold), 50rem) !important;
	}
}

.wp-block-cover.ayrstalk-page-header .wp-block-post-date {
	margin-block: 1rem auto;
	max-width: var(--wp--style--global--wide-size);
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
	width: 100%;
}

.wp-block-cover.ayrstalk-page-header :is(h1, .wp-block-post-title):has(+ .wp-block-post-date) {
	margin-block-end: 0;
}

/* Where the photograph is anchored: set per page with the ayrstalk_header_focus field. */
.wp-block-cover.ayrstalk-page-header .wp-block-cover__image-background {
	object-position: var(--ayrstalk-header-focus, 50% 50%);
}

.wp-block-cover.ayrstalk-page-header picture {
	display: contents;
}

/* The solid band used where there is no photograph: archives, search, 404. */
.wp-block-group.ayrstalk-page-header {
	padding-block-end: var(--wp--preset--spacing--60);
}

.wp-block-group.ayrstalk-page-header :is(h1, .wp-block-post-title, .wp-block-query-title) {
	margin-block: var(--wp--preset--spacing--50) 0;
}

/* Site header ----------------------------------------------------------- */

.ayrstalk-header .wp-block-site-logo img {
	box-shadow: none;
	height: 76px;
	width: auto;
}

.ayrstalk-header .wp-block-navigation a {
	text-decoration-color: currentcolor;
}

.ayrstalk-header .wp-block-navigation-item__content:hover,
.ayrstalk-header .wp-block-navigation-item__content:focus {
	text-decoration-line: underline;
}

.ayrstalk-header .wp-block-navigation .wp-block-navigation__container {
	gap: 20px;
}

/*
 * From 992 to 1199px six items do not fit on one line beside the logo. Rather
 * than let the last one drop to a second row, cap each item's width so the
 * long one ("Deer & Land Management") takes two lines and the rest stay on one.
 */
@media (min-width: 992px) and (max-width: 1199.98px) {

	.ayrstalk-header .wp-block-navigation .wp-block-navigation__container {
		align-items: center;
		flex-wrap: nowrap;
		gap: 16px;
	}

	/* Items keep their own width, so the short ones are not squeezed onto two lines as well. */
	.ayrstalk-header .wp-block-navigation .wp-block-navigation__container > .wp-block-navigation-item {
		flex: 0 0 auto;
	}

	.ayrstalk-header .wp-block-navigation .wp-block-navigation-item__content {
		line-height: 1.15;
		max-width: 8.25em;
		text-align: center;
	}
}

/* The design spaces the items wider; there is room for it from 1200px. */
@media (min-width: 1200px) {

	.ayrstalk-header .wp-block-navigation .wp-block-navigation__container {
		gap: 30px;
	}
}

/* The icon's lines fill a little over half of its box; size the box so they come out 26px wide. */
.ayrstalk-header .wp-block-navigation__responsive-container-open svg,
.ayrstalk-header .wp-block-navigation__responsive-container-close svg {
	height: 44px;
	width: 44px;
}

.ayrstalk-header .wp-block-navigation__responsive-container-open {
	margin-inline-end: -9px;
	padding: 0;
}

/*
 * Below 992px: a smaller logo, in line with the text, and the menu behind a
 * button. WordPress switches to the button at 600px; hold it to 992px, where
 * six items stop fitting beside the logo.
 */
@media (max-width: 991.98px) {

	/* The logo and the menu button line up with the edges of the text below. */
	:is(.wp-site-blocks, .is-root-container) .ayrstalk-header {
		padding: 1rem max(28px, calc((100vw - var(--ayrstalk-container)) / 2 + 15px)) 0 !important;
	}

	:is(.wp-site-blocks, .is-root-container) .ayrstalk-header > .alignwide {
		max-width: none;
	}

	.ayrstalk-header .wp-block-site-logo img {
		height: 58px;
	}

	.ayrstalk-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}

	.ayrstalk-header .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}

	/*
	 * The close button sits exactly where the menu button was, so the icon
	 * changes in place: 23px down, and the header's side padding less the 9px
	 * the icon's box overhangs its lines.
	 */
	.ayrstalk-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
		inset-block-start: 23px;
		inset-inline-end: calc(max(28px, calc((100vw - var(--ayrstalk-container)) / 2 + 15px)) - 9px);
		margin: 0;
		padding: 0;
		position: fixed;
	}

	/* The open menu: one item to a line, with a rule between them. */
	.ayrstalk-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
		align-items: stretch;
		gap: 0;
		width: 100%;
	}

	.ayrstalk-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
		align-items: stretch;
		padding-block-start: 4rem;
	}

	.ayrstalk-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
		border-block-end: 1px solid rgba(255, 255, 255, 0.2);
		display: block;
		font-size: 1.25rem;
		padding-block: 1.5rem;
		width: 100%;
	}
}

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

.ayrstalk-footer :is(h2, h3, p, a) {
	color: var(--wp--preset--color--base);
}

:root :is(.wp-site-blocks, .is-root-container) .ayrstalk-footer h2 {
	margin-block: 0 0.75rem;
}

.ayrstalk-footer .wp-block-columns {
	gap: 0 30px;
	margin-block-end: 0;
}

.ayrstalk-footer .wp-block-column > .wp-block-navigation {
	margin-block-start: 0;
}

:root :is(.wp-site-blocks, .is-root-container) .ayrstalk-footer p {
	font-size: 1rem;
	line-height: 1.5;
	margin-block: 0;
}

.ayrstalk-footer .wp-block-column {
	margin-block-end: 3rem;
}

/* Three columns from 768px, where WordPress would still stack them. */
@media (min-width: 768px) {

	.ayrstalk-footer .wp-block-columns:not(.is-not-stacked-on-mobile) {
		flex-wrap: nowrap;
	}

	/* !important: WordPress sets its own stacked width that way. */
	.ayrstalk-footer .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column {
		flex-basis: 0 !important;
		flex-grow: 1;
	}
}

.ayrstalk-footer .wp-block-navigation {
	font-family: var(--wp--preset--font-family--body);
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	line-height: 1.5;
	text-transform: none;
}

.ayrstalk-footer .wp-block-navigation .wp-block-navigation__container {
	gap: 0.75rem;
}

.ayrstalk-footer .wp-block-navigation a {
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--secondary);
	text-decoration-thickness: 0.125rem;
	text-underline-offset: 0.3em;
}

.ayrstalk-footer .wp-block-navigation a:hover {
	text-decoration-color: currentcolor;
}

/* Hero: photograph one side, text the other ----------------------------- */

/*
 * From 992px the photograph takes exactly half the screen and the text takes
 * five columns of the container, starting one column in from the photograph
 * and centred against it. The photograph keeps the design's shape, 720 by 760,
 * up to 760px tall. Below 992px the photograph sits above the text.
 */
:is(.wp-site-blocks, .is-root-container) .wp-block-strasbourg-hero {
	--strasbourg-hero-gap: calc(var(--ayrstalk-column) + 15px);

	margin-block: var(--ayrstalk-space) 0;
}

:is(.wp-site-blocks, .is-root-container) .wp-block-strasbourg-hero + .wp-block-strasbourg-hero {
	margin-block-start: 0;
}

:is(.wp-site-blocks, .is-root-container) .wp-block-strasbourg-hero:last-of-type {
	margin-block-end: 6rem;
}

.wp-block-strasbourg-hero .wp-block-strasbourg-hero__content {
	justify-content: center;
	padding-block: var(--ayrstalk-space);
}

:root :is(.wp-site-blocks, .is-root-container) .wp-block-strasbourg-hero .wp-block-strasbourg-hero__inner > * {
	margin-block: 0 var(--ayrstalk-gap-heading);
}

:root :is(.wp-site-blocks, .is-root-container) .wp-block-strasbourg-hero .wp-block-strasbourg-hero__inner > :has(+ .wp-block-buttons) {
	margin-block-end: var(--ayrstalk-gap-button);
}

:root :is(.wp-site-blocks, .is-root-container) .wp-block-strasbourg-hero .wp-block-strasbourg-hero__inner > :last-child,
:root :is(.wp-site-blocks, .is-root-container) .wp-block-strasbourg-hero .wp-block-strasbourg-hero__inner .wp-block-button {
	margin-block-end: 0;
}

@media (min-width: 992px) {

	.wp-block-strasbourg-hero.has-media {
		min-block-size: max(22.5rem, min(760px, calc(50vw * 760 / 720), var(--ayrstalk-fold)));
	}
}

/* The plugin puts the two side by side from 782px; hold that to 992px. */
@media (min-width: 782px) and (max-width: 991.98px) {

	.wp-block-strasbourg-hero.has-media,
	.wp-block-strasbourg-hero.has-media.is-layout-text-image {
		grid-template-columns: minmax(0, 1fr);
		min-block-size: 0;
	}

	.wp-block-strasbourg-hero.has-media .wp-block-strasbourg-hero__media,
	.wp-block-strasbourg-hero.has-media.is-layout-text-image .wp-block-strasbourg-hero__media {
		aspect-ratio: var(--strasbourg-hero-mobile-ratio, 944 / 760);
		grid-column: 1;
		grid-row: auto;
	}

	.wp-block-strasbourg-hero.has-media .wp-block-strasbourg-hero__content,
	.wp-block-strasbourg-hero.has-media.is-layout-text-image .wp-block-strasbourg-hero__content {
		grid-column: 1;
		grid-row: auto;
		padding-inline: var(--strasbourg-hero-edge);
	}
}

/* Feature and Profile: picture beside text, on the same twelve columns --- */

:is(.wp-site-blocks, .is-root-container) .wp-block-strasbourg-feature {
	margin-block: 2rem;
}

:is(.wp-site-blocks, .is-root-container) .wp-block-strasbourg-profile {
	margin-block: 2.5rem;
}

.wp-block-strasbourg-feature.alignfull,
.wp-block-strasbourg-profile.alignfull {
	padding-inline: 15px;
}

/* Portraits are circles, 350px across at most, centred in their column. */
.wp-block-strasbourg-profile .wp-block-strasbourg-profile__media {
	border-radius: 50%;
	inline-size: min(100%, 350px);
	margin-inline: auto;
}

:root :is(.wp-site-blocks, .is-root-container) :is(.wp-block-strasbourg-feature__content, .wp-block-strasbourg-profile__content) > :first-child {
	margin-block: 0 var(--ayrstalk-gap-heading);
}

/* Stacked, the text follows its picture closely. */
.wp-block-strasbourg-feature .wp-block-strasbourg-feature__container,
.wp-block-strasbourg-profile .wp-block-strasbourg-profile__container {
	gap: 0;
}

@media (max-width: 991.98px) {

	:root :is(.wp-site-blocks, .is-root-container) .wp-block-strasbourg-feature .wp-block-strasbourg-feature__content > :is(h1, h2, h3, h4, h5, h6):first-child {
		margin-block: 1rem;
	}
}

/* Side by side from 768px, a little before the plugin's own 782px. */
@media (min-width: 768px) {

	.wp-block-strasbourg-feature.has-media.is-layout-text-image .wp-block-strasbourg-feature__media,
	.wp-block-strasbourg-profile.has-media.is-layout-text-image .wp-block-strasbourg-profile__media {
		order: 2;
	}

	/* One empty column, then the picture, then the text. */
	.wp-block-strasbourg-feature.has-media .wp-block-strasbourg-feature__container,
	.wp-block-strasbourg-profile.has-media .wp-block-strasbourg-profile__container {
		align-items: start;
		box-sizing: border-box;
		gap: 30px;
		justify-content: start;
		padding-inline-start: var(--ayrstalk-column);
	}

	.wp-block-strasbourg-feature.has-media .wp-block-strasbourg-feature__container {
		grid-template-columns: calc(var(--ayrstalk-column) * 6 - 30px) calc(var(--ayrstalk-column) * 4 - 30px);
	}

	.wp-block-strasbourg-feature.has-media.is-layout-text-image .wp-block-strasbourg-feature__container {
		grid-template-columns: calc(var(--ayrstalk-column) * 4 - 30px) calc(var(--ayrstalk-column) * 6 - 30px);
	}

	.wp-block-strasbourg-profile.has-media .wp-block-strasbourg-profile__container,
	.wp-block-strasbourg-profile.has-media.is-layout-text-image .wp-block-strasbourg-profile__container {
		grid-template-columns: repeat(2, calc(var(--ayrstalk-column) * 5 - 30px));
	}
}

/* A portrait's text is centred against it. */
@media (min-width: 768px) {

	.wp-block-strasbourg-profile.has-media .wp-block-strasbourg-profile__container {
		align-items: center;
	}
}

/*
 * The original theme had no "wide" width, so an image set to wide stayed as
 * wide as the text. Keep those where they were.
 */
.wp-block-post-content > .wp-block-image.alignwide {
	max-width: var(--wp--style--global--content-size);
}

/* Story cards ------------------------------------------------------------ */

/*
 * One card design for posts wherever they are listed: Our Stories, archives
 * and search (the "Story cards" pattern) and the Latest Posts block on the
 * home page. Measurements are from the Figma file's "Latest news" cards: a
 * 380 by 265 photograph with a 6px amber offset, 20px between cards, and the
 * text set in 10px from the photograph's edge.
 */
.ayrstalk-stories .wp-block-post-template,
ul.wp-block-latest-posts.is-grid.is-grid {
	display: grid;
	gap: var(--wp--custom--spacing--card--row-gap) var(--wp--custom--spacing--card--gap);
	grid-template-columns: repeat(3, minmax(0, 1fr));
	padding: 0;
}

@media (max-width: 991.98px) {

	.ayrstalk-stories .wp-block-post-template,
	ul.wp-block-latest-posts.is-grid.is-grid {
		gap: var(--wp--custom--spacing--card--row-gap) var(--wp--custom--spacing--card--gap);
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 575.98px) {

	.ayrstalk-stories .wp-block-post-template,
	ul.wp-block-latest-posts.is-grid.is-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

ul.wp-block-latest-posts.is-grid.is-grid li {
	margin: 0;
	width: auto;
}

:root .ayrstalk-story .wp-block-post-featured-image,
:root .wp-block-latest-posts__featured-image {
	margin-block: 0 var(--wp--custom--spacing--card--image);

	/* Room for the amber offset, so a card's right edge is the offset's. */
	margin-inline-end: var(--wp--custom--spacing--card--offset);
}

/* WordPress clips a featured image to its box, so there the offset goes on the box. */
.ayrstalk-story .wp-block-post-featured-image {
	box-shadow: var(--wp--custom--spacing--card--offset) var(--wp--custom--spacing--card--offset) 0 var(--wp--preset--color--secondary);
}

.ayrstalk-story .wp-block-post-featured-image img {
	box-shadow: none;
}

.wp-block-latest-posts__featured-image {
	box-shadow: var(--wp--custom--spacing--card--offset) var(--wp--custom--spacing--card--offset) 0 var(--wp--preset--color--secondary);
	overflow: hidden;
}

.wp-block-latest-posts__featured-image a {
	display: block;
}

.wp-block-latest-posts__featured-image img {
	box-shadow: none;
	display: block;
}

/* The photograph draws in a little when any link in its card is pointed at: the picture, the title or "Find out more". */
@media (prefers-reduced-motion: no-preference) {

	.wp-block-latest-posts__featured-image img {
		transition: transform 0.4s ease;
	}

	.ayrstalk-story:has(a:hover, a:focus-visible) .wp-block-post-featured-image img,
	.wp-block-latest-posts > li:has(a:hover, a:focus-visible) .wp-block-latest-posts__featured-image img {
		transform: scale(1.03);
	}
}

.ayrstalk-story .wp-block-post-featured-image img,
.wp-block-latest-posts__featured-image img {
	aspect-ratio: 380 / 265;
	height: auto;
	object-fit: cover;
	width: 100%;
}

/* Title: Nunito Light 38 on 46. */
:root :is(.wp-site-blocks, .is-root-container) .ayrstalk-story .wp-block-post-title,
:root .wp-block-latest-posts__post-title {
	color: var(--wp--preset--color--primary);
	display: block;
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--ayrstalk-h4-size);
	font-weight: 300;
	letter-spacing: var(--ayrstalk-h4-track);
	line-height: var(--ayrstalk-h4-line);
	margin-block: 0 var(--wp--custom--spacing--card--title);
	padding-inline: 10px;
	text-decoration: none;
	text-transform: none;
}

/* Between the desktop and tablet designs three cards are narrow: a smaller title. */
@media (min-width: 992px) and (max-width: 1199.98px) {

	:root :is(.wp-site-blocks, .is-root-container) .ayrstalk-story .wp-block-post-title,
	:root .wp-block-latest-posts__post-title {
		font-size: 1.875rem;
		line-height: 2.375rem;
	}
}

.ayrstalk-story .wp-block-post-title a {
	color: inherit;
	text-decoration: none;
}

.ayrstalk-story .wp-block-post-title a:hover,
.wp-block-latest-posts__post-title:hover {
	text-decoration: underline;
}

/* Summary: 14 on 24, then "Find out more" at 18 on 28. */
.ayrstalk-story .wp-block-post-excerpt,
.wp-block-latest-posts__post-full-content,
.wp-block-latest-posts__post-excerpt {
	margin-block: 0;
	padding-inline: 10px;
}

:root :is(.wp-site-blocks, .is-root-container) .ayrstalk-story .wp-block-post-excerpt__excerpt,
:root :is(.wp-site-blocks, .is-root-container) :is(.wp-block-latest-posts__post-full-content, .wp-block-latest-posts__post-excerpt),
:root :is(.wp-site-blocks, .is-root-container) :is(.wp-block-latest-posts__post-full-content, .wp-block-latest-posts__post-excerpt) p {
	color: var(--wp--preset--color--contrast);
	font-size: var(--ayrstalk-small-size);
	letter-spacing: var(--ayrstalk-small-track);
	line-height: var(--ayrstalk-small-line);
	margin-block: 0;
}

:root :is(.wp-site-blocks, .is-root-container) .ayrstalk-story .wp-block-post-excerpt__more-text {
	font-size: var(--ayrstalk-text-size);
	line-height: var(--ayrstalk-text-line);
	margin-block: var(--wp--custom--spacing--card--text) 0;
}

/* Article ------------------------------------------------------------------ */

/*
 * A story, as drawn in the Figma file's "Article Page": the text column starts
 * under the title rather than in the middle of the page, opens with the
 * story's summary set large, and is followed by three more stories on grey.
 */
.ayrstalk-article {
	--ayrstalk-article-inset: max(0px, calc((100% - var(--wp--style--global--wide-size)) / 2));

	padding-block: var(--ayrstalk-article-top) var(--ayrstalk-article-bottom);
}

:root .ayrstalk-article :is(.ayrstalk-article__lead, .wp-block-post-content) > :not(.alignfull, .alignwide) {
	/* !important because WordPress centres the column with it. */
	margin-inline: var(--ayrstalk-article-inset) auto !important;
}

/* The summary: Nunito Light 38 on 46. */
:root :is(.wp-site-blocks, .is-root-container) .ayrstalk-article__lead .wp-block-post-excerpt__excerpt {
	color: var(--wp--preset--color--primary);
	font-size: var(--ayrstalk-h4-size);
	font-weight: 300;
	letter-spacing: var(--ayrstalk-h4-track);
	line-height: var(--ayrstalk-h4-line);
	margin-block: 0 var(--ayrstalk-gap-lead);
}

.ayrstalk-article__lead .wp-block-post-excerpt__more-text {
	display: none;
}

:root .ayrstalk-article .wp-block-post-content > :last-child {
	margin-block-end: 0;
}

/* Quotation: the heading face, an amber rule, then who said it. */
.wp-block-pullquote {
	position: relative;
	text-align: start;
}

.ayrstalk-article .wp-block-post-content > .wp-block-pullquote {
	box-sizing: border-box;
	padding-inline-start: 52px;
}

.wp-block-pullquote blockquote {
	margin: 0;
	position: relative;
}

.wp-block-pullquote blockquote::before {
	color: var(--wp--preset--color--base-2);
	content: "\201C";
	font-size: 17.5rem;
	inset-block-start: -2.5rem;
	inset-inline-start: 1.25rem;
	line-height: 1;
	pointer-events: none;
	position: absolute;
	z-index: -1;
}

:root :is(.wp-site-blocks, .is-root-container) .wp-block-pullquote p {
	font-size: inherit;
	line-height: inherit;
	margin-block: 0;
}

.wp-block-pullquote cite {
	border-block-start: 4px solid var(--wp--preset--color--secondary);
	color: var(--wp--preset--color--contrast);
	display: block;
	font-family: var(--wp--preset--font-family--body);
	font-size: 1rem;
	font-style: normal;
	font-weight: 700;
	letter-spacing: -0.002em;
	line-height: 1.5rem;
	margin-block-start: 17px;
	max-inline-size: 563px;
	padding-block-start: 12px;
	text-transform: none;
}

/* "Latest news" under a story: white, then grey from behind the photographs. */
.ayrstalk-latest {
	background: linear-gradient(to bottom, transparent 138px, var(--wp--preset--color--base-2) 138px);
	margin-block: 0;
	padding-block: 0 100px;
}

:root :is(.wp-site-blocks, .is-root-container) .ayrstalk-latest > h2 {
	margin-block: 0 40px;
}

:root .ayrstalk-latest > .wp-block-query {
	margin-block: 0;
}

:root .ayrstalk-latest > .wp-block-buttons {
	margin-block: 90px 0;
}

.ayrstalk-latest + .wp-block-template-part > .ayrstalk-footer,
.ayrstalk-latest + footer .ayrstalk-footer {
	margin-block-start: 0 !important;
}

/* A picture heading a column: 30px to its title, 14px on to the text. */
:root :is(.wp-site-blocks, .is-root-container) .wp-block-column > .wp-block-image:has(+ :is(h1, h2, h3, h4, h5, h6)) {
	margin-block-end: var(--wp--custom--spacing--card--image);
}

:root :is(.wp-site-blocks, .is-root-container) .wp-block-column > .wp-block-image + :is(h1, h2, h3, h4, h5, h6) {
	margin-block: 0 var(--wp--custom--spacing--card--title);
}

/* "Find out more" sits on one line across a row, however long each card's text is. */
.ayrstalk-stories .wp-block-post-template > li {
	display: flex;
}

.ayrstalk-story {
	flex: 1 1 auto;
}

.ayrstalk-story .wp-block-post-excerpt {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
}

:root :is(.wp-site-blocks, .is-root-container) .ayrstalk-story .wp-block-post-excerpt__more-text {
	margin-block: auto 0;
	padding-block-start: var(--wp--custom--spacing--card--text);
}

/*
 * The same for cards built from columns: a column that opens with a picture
 * and ends in a link on its own. (Not every column ending in a link: the
 * contact page's email and Facebook columns must sit level with the phone's.) Margins do not collapse in a flex column, so each child carries only
 * the space below it.
 */
.wp-block-column:has(> .wp-block-image:first-child):has(> p:last-child > a:only-child) {
	display: flex;
	flex-direction: column;
}

:root :is(.wp-site-blocks, .is-root-container) .wp-block-column:has(> .wp-block-image:first-child):has(> p:last-child > a:only-child) > :is(p, h1, h2, h3, h4, h5, h6) {
	margin-block: 0 var(--ayrstalk-gap-text);
}

:root :is(.wp-site-blocks, .is-root-container) .wp-block-column:has(> .wp-block-image:first-child):has(> p:last-child > a:only-child) > p:last-child {
	margin-block: auto 0;
}

/* Columns: 28px apart from 992px, 8px below ------------------------------ */

.wp-block-post-content .wp-block-columns {
	gap: 8px 28px;
}

@media (max-width: 991.98px) {

	.wp-block-post-content .wp-block-columns {
		gap: 8px;
	}
}

/* Team portraits on the home page -------------------------------------- */

.wp-block-image.is-style-rounded img {
	aspect-ratio: 1;
	border-radius: 50%;
	object-fit: cover;
}

.profile-preview {
	padding-inline: 20px;
}

.profile-preview figure img {
	display: block;
	margin-inline: auto;
}

@media (max-width: 991.98px) {

	.profile-preview {
		margin-block-end: 2rem;
	}
}

/*
 * Spacing and alignment classes typed into existing content when the site
 * ran on Bootstrap. Kept so that content does not need editing.
 */

.text-center {
	text-align: center;
}

.mt-0 {
	margin-top: 0 !important;
}

.mt-3 {
	margin-top: 1rem !important;
}

.mt-4 {
	margin-top: 1.5rem !important;
}

.mb-0 {
	margin-bottom: 0 !important;
}

.mb-2 {
	margin-bottom: 0.5rem !important;
}

.mb-3 {
	margin-bottom: 1rem !important;
}

.mb-4 {
	margin-bottom: 1.5rem !important;
}

.p-0 {
	padding: 0 !important;
}

.pt-0 {
	padding-top: 0 !important;
}

.pt-4 {
	padding-top: 1.5rem !important;
}

.pb-4 {
	padding-bottom: 1.5rem !important;
}

/* Bootstrap's .container: a centred column at the site's wide width. */
.wp-block-group.container {
	box-sizing: content-box;
	margin-inline: auto !important;
	max-width: var(--wp--style--global--wide-size) !important;
	padding-inline: var(--wp--style--root--padding-left) var(--wp--style--root--padding-right);
}

.has-global-padding > .wp-block-group.container {
	padding-inline: 0;
}

/* Phones and tablets, from the Figma file's 375 and 768 frames ------------- */

/*
 * Stacked, a hero's photograph is square on a phone (375 tall at 375 wide) and
 * a wide band on a tablet (288 tall at 768). In between it eases from one to
 * the other, so nothing jumps as the window is resized.
 */
@media (max-width: 991.98px) {

	.wp-block-strasbourg-hero.has-media .wp-block-strasbourg-hero__media,
	.wp-block-strasbourg-hero.has-media.is-layout-text-image .wp-block-strasbourg-hero__media {
		aspect-ratio: auto;
		block-size: max(12.5rem, min(100vw, clamp(288px, calc(458px - 22vw), 375px), calc(var(--ayrstalk-fold) * 0.7)));
	}
}

@media (max-width: 767.98px) {

	/* A quotation lines up with the text around it. */
	.ayrstalk-article .wp-block-post-content > .wp-block-pullquote {
		padding-inline-start: 0;
	}
}

@media (max-width: 767.98px) {

	/* 28px either side of the page, at every width up to the tablet's. */
	body,
	.is-root-container {
		--wp--style--root--padding-left: 28px;
		--wp--style--root--padding-right: 28px;
	}

	.wp-block-strasbourg-hero {
		--strasbourg-hero-gutter: 28px;
	}

	.wp-block-strasbourg-feature.alignfull,
	.wp-block-strasbourg-profile.alignfull {
		padding-inline: 28px;
	}
}

@media (max-width: 575.98px) {

	/* Buttons fill the column. */
	.wp-block-post-content .wp-block-button,
	.ayrstalk-latest .wp-block-button {
		width: 100%;
	}

	.wp-block-post-content .wp-block-button__link,
	.ayrstalk-latest .wp-block-button__link {
		box-sizing: border-box;
		display: block;
		text-align: center;
		width: 100%;
	}

	/* Cards: text flush with the photograph, and the summary at reading size. */
	:root :is(.wp-site-blocks, .is-root-container) .ayrstalk-story .wp-block-post-title,
	:root .wp-block-latest-posts__post-title,
	.ayrstalk-story .wp-block-post-excerpt,
	.wp-block-latest-posts__post-full-content,
	.wp-block-latest-posts__post-excerpt {
		padding-inline: 0;
	}

	:root :is(.wp-site-blocks, .is-root-container) .ayrstalk-story .wp-block-post-excerpt__more-text {
		font-weight: 700;
	}
}

/* Block editor ------------------------------------------------------------ */

/*
 * The editor writes the two widths from theme.json into its own rules as fixed
 * numbers. Point them back at the custom properties, so the column narrows at
 * the same window widths as it does on the site.
 */
.editor-styles-wrapper .block-editor-block-list__layout.is-root-container > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
	max-width: var(--wp--style--global--content-size);
}

.editor-styles-wrapper .block-editor-block-list__layout.is-root-container > .alignwide {
	max-width: var(--wp--style--global--wide-size);
}

/* A story is edited as it reads: the column under the title, not centred. */
.editor-styles-wrapper.post-type-post .block-editor-block-list__layout.is-root-container > :not(.alignfull, .alignwide) {
	margin-inline: max(0px, calc((100% - var(--wp--style--global--wide-size)) / 2)) auto !important;
}

@media (min-width: 768px) {

	.editor-styles-wrapper.post-type-post .is-root-container > .wp-block-pullquote {
		box-sizing: border-box;
		padding-inline-start: 52px;
	}
}
