/* Page hero: text on the left, a house anchored to the bottom right edge. */
.wp-block-group.is-style-page-hero p {
	max-width: 37em;
}

.wp-block-group.is-style-page-hero .wp-block-column:last-child {
	display: flex;
	justify-content: flex-end;
}

/* The text column always sits in the vertical middle of the hero. Its bottom padding is larger than
   the top padding of the hero, so the difference is added above it to keep the space equal. */
.wp-block-group.is-style-page-hero > .wp-block-columns > .wp-block-column:first-child {
	align-self: center;
	padding-top: calc(var(--wp--preset--spacing--70) - var(--wp--preset--spacing--60));
}

/* A hero with a house photo has a minimum height: the columns fill it, so the text centres on the whole hero. */
.wp-block-group.is-style-page-hero:has(.is-style-house-photo) {
	display: flex;
	flex-direction: column;
}

.wp-block-group.is-style-page-hero:has(.is-style-house-photo) > .wp-block-columns {
	flex: 1 1 auto;
	width: 100%;
}

.wp-block-group.is-style-page-hero .wp-block-column:last-child .wp-block-image {
	margin: 0;
	line-height: 0;
}

.wp-block-group.is-style-page-hero .wp-block-column:last-child .wp-block-image img {
	display: block;
}

/* A thin light line above a row of the footer. */
.wp-block-group.is-style-footer-row {
	border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--color-10) 25%, transparent);
}

/* Light grey dot grid behind a section, a dot every 22px. */
.wp-block-group.is-style-dots {
	background-image: radial-gradient(circle at 11px 11px, color-mix(in srgb, var(--wp--preset--color--color-8) 10%, var(--wp--preset--color--color-10)) 1.2px, transparent 1.6px);
	background-size: 22px 22px;
}

/* Speech bubbles: coloured labels that fit their text, slightly tilted, with a tail at the bottom left. */
.wp-block-group.is-style-bubbles p {
	position: relative;
	width: fit-content;
	max-width: 100%;
	padding: 14px 24px;
	border-radius: 10px;
	color: var(--wp--preset--color--color-8);
	font-weight: 600;
	rotate: -1.6deg;
}

.wp-block-group.is-style-bubbles p::after {
	content: "";
	position: absolute;
	left: 30px;
	bottom: -12px;
	width: 16px;
	height: 13px;
	background: inherit;
	clip-path: polygon(0 0, 100% 0, 0 100%);
}

/* Tilt per position, as in the design. */
.wp-block-group.is-style-bubbles > :nth-child(1) { rotate: -1.8deg; }
.wp-block-group.is-style-bubbles > :nth-child(2) { rotate: 1deg; }
.wp-block-group.is-style-bubbles > :nth-child(4) { rotate: -1.5deg; }
.wp-block-group.is-style-bubbles > :nth-child(5) { rotate: -0.5deg; }
.wp-block-group.is-style-bubbles > :nth-child(6) { rotate: -1.5deg; }
.wp-block-group.is-style-bubbles > :nth-child(7) { rotate: 1.5deg; }
.wp-block-group.is-style-bubbles > :nth-child(8) { rotate: -1deg; }
.wp-block-group.is-style-bubbles > .wp-block-group { rotate: none; }
.wp-block-group.is-style-bubbles > .wp-block-group > p:first-child { rotate: -0.3deg; }
.wp-block-group.is-style-bubbles > .wp-block-group > p:last-child { rotate: 1.1deg; }

/* Second tilt set, as in the design of "Wat Maggie's niet is": the bubbles alternate up and down. */
.wp-block-group.is-style-bubbles.is-tilt-alternate > :nth-child(1) { rotate: -1.3deg; }
.wp-block-group.is-style-bubbles.is-tilt-alternate > .wp-block-group > p:first-child { rotate: 1.3deg; }
.wp-block-group.is-style-bubbles.is-tilt-alternate > .wp-block-group > p:last-child { rotate: -1deg; }
.wp-block-group.is-style-bubbles.is-tilt-alternate > :nth-child(3) { rotate: 1.4deg; }
.wp-block-group.is-style-bubbles.is-tilt-alternate > :nth-child(4) { rotate: -1.7deg; }

/* Note card: white, a soft shadow, a red pin on the top edge and a slight tilt. */
.wp-block-group.is-style-note {
	position: relative;
	background-color: var(--wp--preset--color--color-10);
	box-shadow: var(--wp--preset--shadow--note);
	rotate: -1.5deg;
}

.wp-block-group.is-style-note::before {
	content: "";
	position: absolute;
	top: -11px;
	left: 50%;
	width: 22px;
	height: 22px;
	margin-left: -11px;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 35%, color-mix(in srgb, var(--wp--preset--color--color-4) 55%, var(--wp--preset--color--color-10)), var(--wp--preset--color--color-4) 60%);
	box-shadow: 0 2px 3px rgb(0 0 0 / 25%);
}

.wp-block-group.is-style-note p {
	color: color-mix(in srgb, var(--wp--preset--color--color-8) 58%, var(--wp--preset--color--color-10));
}

.wp-block-group:has(> .is-style-note) > .is-style-note:nth-child(5n + 2) { rotate: 1deg; }
.wp-block-group:has(> .is-style-note) > .is-style-note:nth-child(5n + 3) { rotate: 0.5deg; }
.wp-block-group:has(> .is-style-note) > .is-style-note:nth-child(5n + 4) { rotate: 1deg; }
.wp-block-group:has(> .is-style-note) > .is-style-note:nth-child(5n) { rotate: -1deg; }

/* House shape: the group background is cut out in the shape of a house, the number sits inside. */
.wp-block-group.is-style-house-1,
.wp-block-group.is-style-house-5,
.wp-block-group.is-style-house-6 {
	flex-shrink: 0;
	width: 112px;
	padding: 0;
	-webkit-mask: var(--house) center / 100% 100% no-repeat;
	-webkit-mask-size: 100% 100%;
	mask: var(--house) center / 100% 100% no-repeat;
	mask-size: 100% 100%;
}

/* The number sits exactly in the middle of the house, on the dashed line of the steps, in every browser. */
.wp-block-group.is-style-house-1:has(> p),
.wp-block-group.is-style-house-5:has(> p),
.wp-block-group.is-style-house-6:has(> p) {
	position: relative;
}

.wp-block-group.is-style-house-1 > p,
.wp-block-group.is-style-house-5 > p,
.wp-block-group.is-style-house-6 > p {
	position: absolute;
	top: 50%;
	left: 50%;
	margin: 0;
	translate: -50% -50%;
	text-align: center;
	letter-spacing: 0;
}

.wp-block-group.is-style-house-1 { --house: url(../../images/houses/huis-1.svg); aspect-ratio: 416 / 253; }
.wp-block-group.is-style-house-5 { --house: url(../../images/houses/huis-5.svg); aspect-ratio: 415 / 358; }
.wp-block-group.is-style-house-6 { --house: url(../../images/houses/huis-6.svg); aspect-ratio: 417 / 346; }

/* Steps: rows of 96px with a dashed line through the house centres. The steps stand vertically
   centred next to the text column, and each step text centred next to its house. */
.wp-block-group.is-style-steps {
	position: relative;
	align-self: center;
}

.wp-block-group.is-style-steps > .wp-block-group {
	align-items: center;
}

.wp-block-group.is-style-steps > * {
	position: relative;
	z-index: 1;
	min-height: 96px;
}

.wp-block-group.is-style-steps::before {
	content: "";
	position: absolute;
	top: 40px;
	bottom: 60px;
	left: 55px;
	border-left: 2px dashed var(--wp--preset--color--color-1);
}

/* Info box: a lighter shade of the section colour, columns divided by thin lines. */
.wp-block-group.is-style-info-box {
	padding: 20px 0;
	border-radius: var(--wp--preset--border-radius--medium);
	background-color: color-mix(in srgb, var(--wp--preset--color--color-10) 15%, transparent);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.7;
}

.wp-block-group.is-style-info-box > * {
	margin: 0;
	padding: 0 var(--wp--preset--spacing--40);
}

.wp-block-group.is-style-info-box > * + * {
	border-left: 1px solid color-mix(in srgb, currentColor 25%, transparent);
}

/* On the light section colours the box needs more white to read as lighter. */
.has-color-3-background-color .wp-block-group.is-style-info-box,
.has-color-7-background-color .wp-block-group.is-style-info-box {
	background-color: color-mix(in srgb, var(--wp--preset--color--color-10) 40%, transparent);
}

/* When the columns do not fit next to each other, a whole column moves to the next row instead of
   its text being squeezed. Every column has a line on its left; the one at the start of a row sits
   just outside the box and is cut off, so lines only show between columns. */
.wp-block-group.is-style-info-box {
	flex-wrap: wrap !important;
	row-gap: var(--wp--preset--spacing--30);
	overflow: hidden;
}

.wp-block-group.is-style-info-box > * {
	flex: 1 1 auto;
	margin-left: -1px !important;
	border-left: 1px solid color-mix(in srgb, currentColor 25%, transparent);
}

/* Colour card: rounded, the button stays at the bottom, a small house as icon. */
.wp-block-group.is-style-color-card {
	border-radius: var(--wp--preset--border-radius--medium);
}

.wp-block-group.is-style-color-card > .wp-block-buttons {
	margin-top: auto;
	padding-top: var(--wp--preset--spacing--20);
}

.wp-block-group.is-style-color-card > [class*="is-style-house-"] {
	flex: none;
	align-self: flex-start;
	width: 56px;
	height: auto;
}

/* Grid whose cells are centred vertically, for photo and text side by side. */
.wp-block-group.is-style-center-items {
	align-items: center;
}

/* Activity row in the programme, a light line below it. */
.wp-block-group.is-style-activity-row {
	padding: var(--wp--preset--spacing--40) 0;
	border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--color-8) 15%, transparent);
}

/* Date box: day in red capitals, month below it. */
.wp-block-group.is-style-date-box {
	flex-shrink: 0;
	width: 96px;
	min-height: 88px;
	border-radius: var(--wp--preset--border-radius--medium);
	background-color: var(--wp--preset--color--color-10);
	line-height: 1.2;
	text-align: center;
}

/* Homepage hero: the photo in a house shape runs from column 7 to the right edge of the screen and hangs below the hero. */
.wp-block-group.is-style-home-hero {
	position: relative;
	z-index: 1;
	overflow: visible;
}

.wp-block-group.is-style-home-hero .wp-block-image.is-style-hero-photo {
	position: absolute;
	top: 80px;
	left: calc(50% + 12px);
	/* At 1920 the photo runs from column 7 to the screen edge (948px). Wider screens keep that size. */
	width: min(calc(50% - 12px), 948px);
	margin: 0;
}

.wp-block-group.is-style-home-hero .wp-block-image.is-style-hero-photo img {
	display: block;
	width: 100%;
	aspect-ratio: 950.5 / 871.3;
	object-fit: cover;
	-webkit-mask: url(../../images/houses/huis-hero.svg) center / 100% 100% no-repeat;
	-webkit-mask-size: 100% 100%;
	mask: url(../../images/houses/huis-hero.svg) center / 100% 100% no-repeat;
	mask-size: 100% 100%;
}

.wp-block-group.is-style-home-hero .wp-block-buttons:has(.is-style-badge) {
	position: absolute;
	right: max(19px, calc(50% - 941px));
	bottom: -83px;
	z-index: 2;
}

@media (max-width: 1023px) {
	.wp-block-group.is-style-home-hero .wp-block-image.is-style-hero-photo,
	.wp-block-group.is-style-home-hero .wp-block-buttons:has(.is-style-badge) {
		position: static;
	}

	.wp-block-group.is-style-home-hero .wp-block-image.is-style-hero-photo {
		width: min(100%, 560px);
		margin-bottom: var(--wp--preset--spacing--50);
	}
}

/* Card in the shape of a house: a chimney gap at the top right and a door at the bottom right.
   The door is the bottom fifth of the card, the extra bottom padding keeps the text above it. */
.wp-block-group.is-style-house-card {
	min-height: 220px;
	padding-bottom: 62px !important;
	-webkit-mask: url(../../images/houses/kaart-huis.svg) center / 100% 100% no-repeat;
	-webkit-mask-size: 100% 100%;
	mask: url(../../images/houses/kaart-huis.svg) center / 100% 100% no-repeat;
	mask-size: 100% 100%;
}

/* Photo over the full width with a bordeaux panel on the left that ends just past the middle. */
.wp-block-group.is-style-photo-right {
	position: relative;
	overflow: hidden;
}

.wp-block-group.is-style-photo-right > .wp-block-image:first-child {
	position: absolute;
	inset: 0;
	width: 100%;
	max-width: none;
	height: 100%;
	margin: 0 !important;
}

.wp-block-group.is-style-photo-right > .wp-block-image:first-child img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.wp-block-group.is-style-photo-right > .wp-block-image.is-style-side:first-child {
	left: calc(50% + 98px);
	width: auto;
}

/* Same crop as the design: faces stay in view, the image is cut mostly at the bottom. */
.wp-block-group.is-style-photo-right > .wp-block-image:first-child img,
.wp-block-group.is-style-photo-left > .wp-block-image:first-child img,
.wp-block-group.is-style-photo-bg > .wp-block-image:first-child img {
	object-position: 50% 19%;
}

.wp-block-group.is-style-photo-right::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	z-index: 1;
	width: calc(50% + 98px);
	background-color: var(--wp--preset--color--color-1);
}

.wp-block-group.is-style-photo-right > :not(.wp-block-image) {
	position: relative;
	z-index: 2;
}

/* Photo banner with the photo over the right half: a taller band, the photo starts at the middle
   with a cut off top left corner, and the text sits in the vertical middle of the band. */
@media (min-width: 1024px) {
	.wp-block-group.is-style-photo-right.is-photo-half {
		display: flex;
		flex-direction: column;
		justify-content: center;
		min-height: 560px;
	}

	.wp-block-group.is-style-photo-right.is-photo-half > :not(.wp-block-image) {
		width: 100%;
	}

	.wp-block-group.is-style-photo-right.is-photo-half::before {
		width: 50%;
	}

	.wp-block-group.is-style-photo-right.is-photo-half > .wp-block-image.is-style-side:first-child {
		left: 50%;
		clip-path: polygon(118px 0, 100% 0, 100% 100%, 0 100%, 0 105px);
	}
}

/* Below 1024px the panel takes the full width and the side photo is left out, so the text never
   runs under the photo. */
@media (max-width: 1023px) {
	.wp-block-group.is-style-photo-right::before {
		width: 100%;
	}

	.wp-block-group.is-style-photo-right > .wp-block-image.is-style-side:first-child {
		display: none;
	}
}

@media (min-width: 400px) {
	.wp-block-group.is-style-info-box > * {
		white-space: nowrap;
	}
}

/* Donation card: a translucent orange house behind a big number. */
.wp-block-group.is-style-donation-card {
	background-image: url(../../images/houses/huis-donatie.svg);
	background-position: center 39px;
	background-repeat: no-repeat;
	background-size: 354px 261px;
	text-align: center;
	padding-top: 170px !important;
}

/* Paper: white card with a soft shadow and a slight tilt, without a pin. */
.wp-block-group.is-style-paper {
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--color-8) 6%, transparent);
	background-color: var(--wp--preset--color--color-10);
	box-shadow: var(--wp--preset--shadow--note);
	rotate: 1.2deg;
}

.wp-block-group:has(> .is-style-paper) > .is-style-paper:nth-child(2n) {
	rotate: -1.2deg;
}

/* Coloured band behind the top of a section, the cards below it run out of the band. */
.wp-block-group.is-style-band-top {
	background-image: linear-gradient(var(--wp--preset--color--color-7) 0 398px, transparent 398px);
}

/* Band with the dot grid below it: the band lies on top of the dots. */
.wp-block-group.is-style-band-top.is-style-dots {
	background-image:
		linear-gradient(var(--wp--preset--color--color-7) 0 398px, transparent 398px),
		radial-gradient(circle at 11px 11px, color-mix(in srgb, var(--wp--preset--color--color-8) 10%, var(--wp--preset--color--color-10)) 1.2px, transparent 1.6px);
	background-size: auto, 22px 22px;
	background-repeat: no-repeat, repeat;
}

/* News card: white, a soft shadow, the photo with rounded top corners. */
.wp-block-group.is-style-news-card {
	height: 100%;
	border-radius: 10px 10px 0 0;
	background-color: var(--wp--preset--color--color-10);
	box-shadow: var(--wp--preset--shadow--note);
}

.wp-block-group.is-style-news-card .wp-block-post-featured-image {
	margin: 0;
}

.wp-block-group.is-style-news-card .wp-block-post-featured-image img {
	border-radius: 10px 10px 0 0;
}

.wp-block-group.is-style-news-card .wp-block-post-terms a {
	color: var(--wp--preset--color--color-2);
	font-size: var(--wp--preset--font-size--small-plus);
	font-weight: 700;
	letter-spacing: 0.04em;
	text-decoration: none;
	text-transform: uppercase;
}

.wp-block-group.is-style-news-card .wp-block-read-more {
	color: var(--wp--preset--color--color-2);
}

/* Form box: translucent white on a dark background, the fields inline. */
.wp-block-group.is-style-form-box {
	border-radius: 10px;
	background-color: color-mix(in srgb, var(--wp--preset--color--color-10) 12%, transparent);
}

.wp-block-group.is-style-form-box .fluentform .ff-el-group {
	margin-bottom: 16px;
}

.wp-block-group.is-style-form-box .fluentform fieldset {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 0 18px;
}

.wp-block-group.is-style-form-box .fluentform fieldset > .ff-el-group:first-of-type {
	flex-basis: 100%;
}

.wp-block-group.is-style-form-box .fluentform .ff-el-form-check label {
	color: var(--wp--preset--color--color-10);
	font-size: var(--wp--preset--font-size--medium);
}

.wp-block-group.is-style-form-box .fluentform .ff-el-group {
	min-width: 0;
	max-width: 100%;
}

.wp-block-group.is-style-form-box .fluentform .ff-el-form-control {
	width: 282px;
	max-width: 100%;
	height: 52px;
	padding: 0 22px;
	border: 0;
	border-radius: 999px;
	font-size: var(--wp--preset--font-size--medium);
}

.wp-block-group.is-style-form-box .fluentform .ff_submit_btn_wrapper,
.wp-block-group.is-style-form-box .fluentform .ff-el-group:last-of-type {
	margin-bottom: 0;
}

.wp-block-group.is-style-form-box .fluentform .ff-btn-submit {
	height: 52px;
	padding: 0 24px;
	border-radius: 999px;
	background-color: var(--wp--preset--color--color-2) !important;
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 600;
}


/* Full width photo behind the section content. */
.wp-block-group.is-style-photo-bg {
	position: relative;
	overflow: hidden;
}

.wp-block-group.is-style-photo-bg > .wp-block-image:first-child {
	position: absolute;
	inset: 0;
	width: 100%;
	max-width: none;
	height: 100%;
	margin: 0 !important;
}

.wp-block-group.is-style-photo-bg > .wp-block-image:first-child img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.wp-block-group.is-style-photo-bg > :not(.wp-block-image) {
	position: relative;
}

/* Card with a cut off top right corner, like the roof line of a house. */
.wp-block-group.is-style-corner-card {
	clip-path: polygon(0 0, calc(100% - 48px) 0, 100% 50px, 100% 100%, 0 100%);
}

/* Page hero with a photo in a house shape: the photo hangs below the hero, small coloured houses around it. */
.wp-block-group.is-style-page-hero:has(.is-style-house-photo) {
	min-height: 556px;
	position: relative;
	z-index: 1;
	overflow: visible;
	overflow-x: clip;
}

.wp-block-group.is-style-page-hero .wp-block-column:last-child .wp-block-image.is-style-house-photo {
	width: 526px;
	margin-bottom: -97px;
}

/* The three small houses are placed around the photo itself, so they stay in view at every screen width:
   amber above the right of the photo, pink in the open corner next to the roof, orange left of the photo. */
.wp-block-group.is-style-page-hero .wp-block-column:last-child .wp-block-image.is-style-house-photo::before,
.wp-block-group.is-style-page-hero .wp-block-column:last-child .wp-block-image.is-style-house-photo::after,
.wp-block-group.is-style-page-hero:has(.is-style-house-photo) .wp-block-column:last-child::before {
	content: "";
	position: absolute;
	-webkit-mask: url(../../images/houses/huis-6.svg) center / 100% 100% no-repeat;
	-webkit-mask-size: 100% 100%;
	mask: url(../../images/houses/huis-6.svg) center / 100% 100% no-repeat;
	mask-size: 100% 100%;
}

.wp-block-group.is-style-page-hero .wp-block-column:last-child .wp-block-image.is-style-house-photo {
	position: relative;
}

/* On narrower screens the text column gives way, so the photo keeps a readable size. */
@media (min-width: 782px) {
	.wp-block-group.is-style-page-hero:has(.is-style-house-photo) > .wp-block-columns > .wp-block-column:first-child {
		flex: 1 1 0 !important;
		min-width: 0;
	}

	.wp-block-group.is-style-page-hero:has(.is-style-house-photo) > .wp-block-columns > .wp-block-column:last-child {
		flex: 0 0 min(526px, 44%) !important;
	}
}

.wp-block-group.is-style-page-hero .wp-block-column:last-child .wp-block-image.is-style-house-photo::before {
	top: -76px;
	right: -24px;
	width: 72px;
	height: 67px;
	background-color: var(--wp--preset--color--color-7);
}

.wp-block-group.is-style-page-hero .wp-block-column:last-child .wp-block-image.is-style-house-photo::after {
	top: 6px;
	right: 4px;
	width: 48px;
	height: 40px;
	background-color: var(--wp--preset--color--color-5);
}

.wp-block-group.is-style-page-hero:has(.is-style-house-photo) .wp-block-column:last-child {
	position: relative;
}

.wp-block-group.is-style-page-hero:has(.is-style-house-photo) .wp-block-column:last-child::before {
	right: calc(min(526px, 100%) + 32px);
	bottom: 64px;
	width: 40px;
	height: 33px;
	background-color: var(--wp--preset--color--color-2);
}

/* The photo hangs 97px below the hero, so the next section starts its content below the photo. */
@media (min-width: 783px) {
	.wp-block-group.is-style-page-hero:has(.is-style-house-photo) + .wp-block-group {
		padding-top: calc(97px + var(--wp--preset--spacing--70)) !important;
	}
}

@media (max-width: 781px) {
	.wp-block-group.is-style-page-hero .wp-block-column:last-child .wp-block-image.is-style-house-photo::before,
	.wp-block-group.is-style-page-hero .wp-block-column:last-child .wp-block-image.is-style-house-photo::after {
		display: none;
	}
}

/* Map: the embedded map fills the content width at a fixed height, with rounded corners. */
.wp-block-group.is-style-map iframe {
	display: block;
	width: 100%;
	height: 340px;
	border: 0;
	border-radius: var(--wp--preset--border-radius--medium);
}

/* Logo slot: a light grey box of a fixed size that holds a partner logo. */
.wp-block-group.is-style-logo-slot {
	width: 160px;
	min-height: 64px;
	border-radius: var(--wp--preset--border-radius--small);
	background-color: color-mix(in srgb, var(--wp--preset--color--color-8) 12%, var(--wp--preset--color--color-10));
	color: color-mix(in srgb, var(--wp--preset--color--color-8) 60%, var(--wp--preset--color--color-10));
	line-height: 1.3;
}

/* A real logo fills a box of the slot width and 48px high and scales to fit inside it. The fixed
   box also shows an SVG without its own width and height, which would otherwise collapse to
   nothing in the centred slot. A slot with a logo is white, so a logo with a white background (a
   JPG) does not show as a box. */
.wp-block-group.is-style-logo-slot .wp-block-image {
	display: flex;
	justify-content: center;
	width: 100%;
	margin: 0;
}

.wp-block-group.is-style-logo-slot img {
	display: block;
	width: 100%;
	height: 48px;
	object-fit: contain;
}

.wp-block-group.is-style-logo-slot:has(img) {
	background-color: var(--wp--preset--color--color-10);
}

/* A name without a logo breaks inside a long word, such as Exploitatiemaatschappij, instead of
   running out of the slot. */
.wp-block-group.is-style-logo-slot p {
	max-width: 100%;
	overflow-wrap: anywhere;
	hyphens: auto;
}

/* Form card: white with a soft shadow around a form. */
.wp-block-group.is-style-form-card {
	border-radius: var(--wp--preset--border-radius--medium);
	background-color: var(--wp--preset--color--color-10);
	box-shadow: var(--wp--preset--shadow--note);
}

/* Product card: an image area on top and the product details below, with a soft shadow. */
.wp-block-group.is-style-product-card {
	overflow: hidden;
	border-radius: var(--wp--preset--border-radius--medium);
	background-color: var(--wp--preset--color--color-10);
	box-shadow: var(--wp--preset--shadow--note);
}

.wp-block-group.is-style-product-card > .wp-block-image,
.wp-block-group.is-style-product-card > .wp-block-group:first-child {
	margin: 0;
}

/* Mirror of photo-right: the photo fills the left half, the bordeaux panel the right half. */
.wp-block-group.is-style-photo-left {
	position: relative;
	overflow: hidden;
}

.wp-block-group.is-style-photo-left > .wp-block-image:first-child {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 50%;
	max-width: none;
	height: 100%;
	margin: 0 !important;
}

.wp-block-group.is-style-photo-left > .wp-block-image:first-child img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.wp-block-group.is-style-photo-left::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 1;
	width: 50%;
	background-color: var(--wp--preset--color--color-1);
}

.wp-block-group.is-style-photo-left > :not(.wp-block-image) {
	position: relative;
	z-index: 2;
}

/* The text always fills the right half, with room of its own away from the edge of the photo. */
@media (min-width: 1024px) {
	.wp-block-group.is-style-photo-left > :not(.wp-block-image) {
		display: grid;
		grid-template-columns: 1fr 1fr;
	}

	.wp-block-group.is-style-photo-left > :not(.wp-block-image) > .wp-block-group {
		grid-column: 2 !important;
		padding-left: var(--wp--preset--spacing--80);
	}
}

/* Below that the half panel is too narrow for the large quote, so the photo goes and the panel fills the width. */
@media (max-width: 1023px) {
	.wp-block-group.is-style-photo-left > .wp-block-image:first-child {
		display: none;
	}

	.wp-block-group.is-style-photo-left::before {
		width: 100%;
	}
}

/* Dashed box that marks content still to be supplied. */
.wp-block-group.is-style-placeholder {
	border: 1px dashed color-mix(in srgb, var(--wp--preset--color--color-8) 30%, transparent);
	border-radius: var(--wp--preset--border-radius--small);
	color: color-mix(in srgb, var(--wp--preset--color--color-8) 60%, var(--wp--preset--color--color-10));
	text-align: center;
}

/* Portrait slot: a grey box of a fixed ratio, the photo or a label inside. */
.wp-block-group.is-style-portrait {
	aspect-ratio: 236 / 296;
	overflow: hidden;
	border-radius: var(--wp--preset--border-radius--small);
	background-color: color-mix(in srgb, var(--wp--preset--color--color-8) 15%, var(--wp--preset--color--color-10));
	color: color-mix(in srgb, var(--wp--preset--color--color-8) 60%, var(--wp--preset--color--color-10));
}

.wp-block-group.is-style-portrait .wp-block-image,
.wp-block-group.is-style-portrait .wp-block-image img,
.wp-block-group.is-style-portrait .wp-block-post-featured-image,
.wp-block-group.is-style-portrait .wp-block-post-featured-image img {
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
}

/* Link card: a photo on top, a coloured band below with title, text and a round arrow. */
.wp-block-group.is-style-link-card {
	padding: 0 !important;
	position: relative;
	overflow: hidden;
	border-radius: var(--wp--preset--border-radius--small);
}

.wp-block-group.is-style-link-card > .wp-block-image {
	margin: 0;
}

.wp-block-group.is-style-link-card > .wp-block-image img {
	display: block;
	width: 100%;
	aspect-ratio: 636 / 306;
	object-fit: cover;
}

.wp-block-group.is-style-link-card h3 a {
	color: inherit;
	text-decoration: none;
}

.wp-block-group.is-style-link-card h3 a::before {
	content: "";
	position: absolute;
	inset: 0;
}

.wp-block-group.is-style-link-card h3 a::after {
	content: "";
	position: absolute;
	right: 24px;
	bottom: 30px;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--wp--preset--color--color-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 11' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 5.5h11M7.5 1l4.5 4.5L7.5 10'/%3E%3C/svg%3E") center / 13px 11px no-repeat;
}

.wp-block-group.is-style-link-card.has-color-2-background-color h3 a::after {
	background-color: var(--wp--preset--color--color-1);
}

/* Newsletter form inside a coloured panel: email field and button on one line. */
.wp-block-group.is-style-color-card .fluentform fieldset {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.wp-block-group.is-style-color-card .fluentform .ff-el-group {
	flex: 1 1 220px;
	margin: 0;
}

.wp-block-group.is-style-color-card .fluentform .ff-el-group.ff_submit_btn_wrapper {
	flex: 0 0 auto;
}

.wp-block-group.is-style-color-card .fluentform .ff-el-input--label {
	display: none;
}

.wp-block-group.is-style-color-card .fluentform .ff-el-form-control {
	height: 52px;
	padding: 0 22px;
	border: 0;
	border-radius: 999px;
}

.wp-block-group.is-style-color-card .fluentform .ff-btn-submit {
	height: 52px;
	background-color: var(--wp--preset--color--color-1);
}

/* Load more: the next page link of a query, shown as an outline button. */
.wp-block-query-pagination-next {
	display: inline-flex;
	align-items: center;
	padding: 9px 20px;
	border: 1px solid var(--wp--preset--color--color-8);
	border-radius: 999px;
	color: var(--wp--preset--color--color-8);
	font-weight: 600;
	text-decoration: none;
}

/* The empty house shapes keep their ratio in the editor too, where an empty group holds an appender. */
.wp-block-group.is-style-house-1,
.wp-block-group.is-style-house-5,
.wp-block-group.is-style-house-6 {
	min-height: 0;
	overflow: hidden;
}

.wp-block-group[class*="is-style-house-"] > .block-list-appender {
	display: none;
}

/* Page hero with the donation picker: the text column gives way, so the picker keeps room to read. */
@media (min-width: 782px) {
	.wp-block-group.is-style-page-hero:has(.wp-block-maggies-groningen-donate-picker) > .wp-block-columns {
		column-gap: var(--wp--preset--spacing--60);
	}

	.wp-block-group.is-style-page-hero:has(.wp-block-maggies-groningen-donate-picker) > .wp-block-columns > .wp-block-column:first-child {
		flex: 1 1 0 !important;
		min-width: 0;
	}

	.wp-block-group.is-style-page-hero > .wp-block-columns > .wp-block-column:has(.wp-block-maggies-groningen-donate-picker) {
		flex: 0 0 clamp(320px, 42%, 526px) !important;
	}
}

/* Page hero without a photo: the red house floats in the right column instead of standing on the
   bottom edge, with a small amber house above its right side and a small orange one below its left side. */
.wp-block-group.is-style-page-hero:not(:has(.is-style-house-photo, .wp-block-maggies-groningen-donate-picker)) .wp-block-column:last-child {
	align-self: center;
	padding: var(--wp--preset--spacing--50) 64px var(--wp--preset--spacing--70) 0;
}

.wp-block-group.is-style-page-hero:not(:has(.is-style-house-photo)) .wp-block-column:last-child .wp-block-image {
	position: relative;
	line-height: 0;
}

.wp-block-group.is-style-page-hero:not(:has(.is-style-house-photo)) .wp-block-column:last-child .wp-block-image::before,
.wp-block-group.is-style-page-hero:not(:has(.is-style-house-photo)) .wp-block-column:last-child .wp-block-image::after {
	content: "";
	position: absolute;
	-webkit-mask: url(../../images/houses/huis-6.svg) center / 100% 100% no-repeat;
	-webkit-mask-size: 100% 100%;
	mask: url(../../images/houses/huis-6.svg) center / 100% 100% no-repeat;
	mask-size: 100% 100%;
}

.wp-block-group.is-style-page-hero:not(:has(.is-style-house-photo)) .wp-block-column:last-child .wp-block-image::before {
	top: 4px;
	right: -58px;
	width: 34px;
	height: 31px;
	background-color: var(--wp--preset--color--color-7);
}

.wp-block-group.is-style-page-hero:not(:has(.is-style-house-photo)) .wp-block-column:last-child .wp-block-image::after {
	bottom: 14px;
	left: -74px;
	width: 22px;
	height: 18px;
	background-color: var(--wp--preset--color--color-2);
	-webkit-mask-image: url(../../images/houses/huis-1.svg);
	mask-image: url(../../images/houses/huis-1.svg);
}

/* Action bar above the header: one centred line with a small orange house, for a running campaign. */
.wp-block-group.is-style-usp-bar {
	border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--color-8) 8%, transparent);
	line-height: 1.4;
}

.wp-block-group.is-style-usp-bar p::before {
	content: "";
	display: inline-block;
	width: 18px;
	height: 16px;
	margin-right: 12px;
	vertical-align: -2px;
	background-color: var(--wp--preset--color--color-2);
	-webkit-mask: url(../../images/houses/huis-1.svg) center / 100% 100% no-repeat;
	-webkit-mask-size: 100% 100%;
	mask: url(../../images/houses/huis-1.svg) center / 100% 100% no-repeat;
	mask-size: 100% 100%;
}

.wp-block-group.is-style-usp-bar a {
	margin-left: 10px;
	color: var(--wp--preset--color--color-1);
}

.wp-block-group.is-style-usp-bar a::after {
	content: "";
	display: inline-block;
	width: 12px;
	height: 12px;
	margin-left: 6px;
	vertical-align: -1px;
	background-color: currentColor;
	-webkit-mask: url(../../images/arrow.svg) center / contain no-repeat;
	mask: url(../../images/arrow.svg) center / contain no-repeat;
}

/* Light newsletter block above the footer: white with dots instead of the bordeaux panel, the photo
   starts in the middle with the top left corner cut off like a roof, and the six houses stand on the
   bottom edge. The houses in the footer give way when this block closes the page. */
.wp-block-group.is-style-photo-right.is-light {
	padding-bottom: calc(var(--wp--preset--spacing--80) + 68px) !important;
	color: var(--wp--preset--color--color-8);
}

.wp-block-group.is-style-photo-right.is-light::before {
	width: 50%;
	background-color: var(--wp--preset--color--color-10);
	background-image: radial-gradient(circle at 11px 11px, color-mix(in srgb, var(--wp--preset--color--color-8) 10%, var(--wp--preset--color--color-10)) 1.2px, transparent 1.6px);
	background-size: 22px 22px;
}

.wp-block-group.is-style-photo-right.is-light > .wp-block-image.is-style-side:first-child {
	left: 50%;
	clip-path: polygon(118px 0, 100% 0, 100% 100%, 0 100%, 0 105px);
}

.wp-block-group.is-style-photo-right.is-light::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: max(var(--wp--style--root--padding-left, 20px), calc(50% - 648px));
	z-index: 2;
	width: 490px;
	max-width: calc(100% - 40px);
	aspect-ratio: 1470 / 204;
	background: url(../../images/footer-huisjes.png) left bottom / contain no-repeat;
}

.wp-block-group.is-style-photo-right.is-light .wp-block-group.is-style-form-box {
	background-color: var(--wp--preset--color--color-9);
}

.wp-block-group.is-style-photo-right.is-light .wp-block-group.is-style-form-box .fluentform .ff-el-form-check label {
	color: var(--wp--preset--color--color-8);
}

.wp-block-group.is-style-photo-right.is-light .wp-block-group.is-style-form-box .fluentform .ff-el-form-control {
	border: 1px solid var(--wp--preset--color--color-8);
	background-color: var(--wp--preset--color--color-10);
}

body:has(:is(.wp-block-post-content, main) > .is-style-photo-right.is-light:last-child) .is-style-site-footer > .wp-block-group:first-child {
	display: none;
}

@media (max-width: 1023px) {
	.wp-block-group.is-style-photo-right.is-light::before {
		width: 100%;
	}
}

/* Map next to text in a column: the map fills the height of the row. */
.wp-block-column > .wp-block-group.is-style-map {
	height: 100%;
}

.wp-block-column > .wp-block-group.is-style-map iframe {
	height: 100%;
	min-height: 420px;
}

/* Wide colour card: the text on the left, the button on the right at the height of the last line. */
.wp-block-group.is-style-color-card .wp-block-group.is-layout-flex:has(> .wp-block-buttons) > .wp-block-buttons {
	flex-shrink: 0;
}

/* Responsive grid (see inc/responsive-grid.php). Only for grids where every block has a column
   span, a grid that mixes spanned and free blocks keeps the behaviour of WordPress. Below 1024px a
   wide column takes the full row, so text and photo stack instead of being squeezed side by side.
   Small cards (span 2 to 4) go two by two. Below 600px every column is full width. */
@media (max-width: 1023px) {
	/* WordPress drops columns from the grid when they get narrower than 60px, so a span of 6 no
	   longer is half. Below 1024px the grid has two equal columns instead: a wide block takes both,
	   a small card one. Two columns have one gap, so the grid also fits inside a narrow card. */
	.is-layout-grid:has(> .mg-span):not(:has(> :not(.mg-span))) {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		grid-auto-flow: row dense;
	}

	/* A photo keeps its own proportion when it moves to a full row, so the row is not taller than
	   the photo. */
	.is-layout-grid:not(:has(> :not(.mg-span))) > figure.mg-span img {
		height: auto !important;
	}

	/* Two half width photos next to each other get the same square crop, so they are equally high. */
	.is-layout-grid:not(:has(> :not(.mg-span))) > figure:is(.mg-span-2, .mg-span-3, .mg-span-4) img {
		width: 100%;
		height: auto !important;
		aspect-ratio: 1 !important;
		object-fit: cover;
	}

	.is-layout-grid:not(:has(> :not(.mg-span))) > .mg-span {
		grid-column: 1 / -1 !important;
		grid-row: auto !important;
	}

	/* A staggered offset from the wide layout would only leave an odd gap once the columns stack. */
	.is-layout-grid:not(:has(> :not(.mg-span))) > figure.mg-span {
		margin-top: 0 !important;
		margin-bottom: 0 !important;
	}

	.is-layout-grid:not(:has(> :not(.mg-span))) > :is(.mg-span-2, .mg-span-3, .mg-span-4) {
		grid-column: span 1 !important;
	}
}

@media (max-width: 599px) {
	.is-layout-grid:not(:has(> :not(.mg-span))) > :is(.mg-span-2, .mg-span-3, .mg-span-4) {
		grid-column: 1 / -1 !important;
	}
}

/* A row of check pills wraps to a new line instead of running off the screen. */
.wp-block-group:has(> p.is-style-check-pill) {
	flex-wrap: wrap !important;
}

/* Footer between 782 and 1023px: the logo column takes the full width, contact and menu share the
   row below it. */
@media (min-width: 782px) and (max-width: 1023px) {
	.wp-block-group.is-style-site-footer .wp-block-columns {
		flex-wrap: wrap !important;
		row-gap: var(--wp--preset--spacing--60);
	}

	.wp-block-group.is-style-site-footer .wp-block-columns > .wp-block-column:first-child {
		flex-basis: 100% !important;
	}

	.wp-block-group.is-style-site-footer .wp-block-columns > .wp-block-column:not(:first-child) {
		flex-basis: 40% !important;
		flex-grow: 1 !important;
	}
}

/* On a phone the columns of an info box stand below each other, without dividing lines. */
@media (max-width: 599px) {
	.wp-block-group.is-style-info-box {
		flex-direction: column;
	}

	.wp-block-group.is-style-info-box > * {
		margin-left: 0 !important;
		border-left: 0 !important;
	}
}

/* Card grids below 1200px: a card is at least 260px wide, so the number of cards per row follows
   the space instead of every card getting narrower. A card that spans more columns takes the full
   row, a small card (span 2 to 4) keeps one column and only takes the full row below 600px (see
   the responsive grid above). */
@media (max-width: 1199px) {
	.is-layout-grid:has(> :is(.is-style-color-card, .is-style-house-card, .is-style-link-card)) {
		grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)) !important;
	}

	.is-layout-grid:has(> :is(.is-style-color-card, .is-style-house-card, .is-style-link-card)) > .mg-span:not(.mg-span-2, .mg-span-3, .mg-span-4) {
		grid-column: 1 / -1 !important;
	}

	/* House cards go two by two, so four cards make two full rows instead of three and one. */
	.is-layout-grid.is-layout-grid:has(> .is-style-house-card) {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

@media (min-width: 600px) and (max-width: 1199px) {
	.is-layout-grid:has(> :is(.is-style-color-card, .is-style-house-card, .is-style-link-card)) > :is(.mg-span-2, .mg-span-3, .mg-span-4) {
		grid-column: span 1 !important;
	}
}

/* Steps on a phone: a smaller house, so the text next to it keeps enough width. */
@media (max-width: 479px) {
	.wp-block-group.is-style-steps .wp-block-group:is(.is-style-house-1, .is-style-house-5, .is-style-house-6) {
		width: 72px;
	}

	.wp-block-group.is-style-steps .wp-block-group:is(.is-style-house-1, .is-style-house-5, .is-style-house-6) > p {
		font-size: var(--wp--preset--font-size--large) !important;
	}

	.wp-block-group.is-style-steps > * {
		min-height: 64px;
	}

	.wp-block-group.is-style-steps::before {
		top: 28px;
		left: 35px;
	}
}

/* Small phones: coloured cards inside the content get a smaller side padding and the big number
   of a donation card a smaller size, so long words and numbers keep fitting. */
@media (max-width: 479px) {
	.wp-block-post-content .wp-block-group.has-background:not(.alignfull):not(.is-style-link-card) {
		padding-right: 20px !important;
		padding-left: 20px !important;
	}

	/* The arrow of a link card sits at the bottom, so the text needs less room on the right. */
	.wp-block-group.is-style-link-card > .wp-block-group {
		padding-right: 64px !important;
	}

	.wp-block-group.is-style-donation-card .has-jumbo-font-size {
		font-size: 56px !important;
	}
}
