/* Site header. Like the original, the logo pair takes 20% of the row (27% up to 991px, 45% up to 479px), each logo at most 150px, and the header height follows the logos. */
.wp-block-group.is-style-site-header .site-header__logos {
	flex: 0 0 auto;
	width: 20%;
}

.wp-block-group.is-style-site-header .site-header__logos .wp-block-image {
	flex: 1 1 0;
	margin: 0;
	line-height: 0;
	max-width: 150px;
}

.wp-block-group.is-style-site-header .site-header__logos img {
	display: block;
	width: 100%;
	height: auto;
}

@media (max-width: 991px) {
	.wp-block-group.is-style-site-header .site-header__logos {
		width: 27%;
	}
}

@media (max-width: 767px) {
	.wp-block-group.is-style-site-header .site-header__logos {
		width: 45%;
	}
}

@media (max-width: 479px) {
	.wp-block-group.is-style-site-header .site-header__cta {
		display: none;
	}
}

/* Site footer: photo column with the KNAP wordmark, green panel with contact, menu and seals. */
.wp-block-group.is-style-site-footer .site-footer__visual {
	display: flex;
}

.wp-block-group.is-style-site-footer .site-footer__visual > .wp-block-cover {
	flex: 1;
	min-height: 100%;
}

.wp-block-group.is-style-site-footer .site-footer__visual .wp-block-cover__inner-container {
	width: 100%;
}

/* The word mark stands on the bottom edge of the photo, as the inline svg of the original that runs out of its box. */
.wp-block-group.is-style-site-footer .site-footer__wordmark {
	margin: 0;
	line-height: 0;
}

.wp-block-group.is-style-site-footer .site-footer__wordmark img {
	display: block;
	width: 100%;
	height: auto;
}

.wp-block-group.is-style-site-footer .site-footer__seals {
	align-items: flex-start;
	align-content: flex-start;
	max-width: 164px;
}

.wp-block-group.is-style-site-footer .site-footer__bar {
	justify-content: space-between;
}

.wp-block-group.is-style-site-footer .site-footer__bar > .wp-block-group {
	margin-left: auto;
	text-align: right;
}

.wp-block-group.is-style-site-footer .site-footer__seals .wp-block-image {
	margin: 0;
}

.wp-block-group.is-style-site-footer .site-footer__register {
	flex-basis: 100%;
}

.wp-block-group.is-style-site-footer a:hover {
	color: var(--wp--preset--color--color-3);
}

/* Above 1720px the original is a grid of 3 and 5 eighths, with the panel content in three columns. */
@media (min-width: 1721px) {
	.wp-block-group.is-style-site-footer > .wp-block-columns > .site-footer__visual {
		flex-basis: 37.5% !important;
	}

	.wp-block-group.is-style-site-footer > .wp-block-columns > .site-footer__panel {
		flex-basis: 62.5% !important;
	}

	.wp-block-group.is-style-site-footer .site-footer__visual > .wp-block-cover {
		padding-left: var(--wp--preset--spacing--45) !important;
		padding-right: var(--wp--preset--spacing--45) !important;
	}

	.wp-block-group.is-style-site-footer .site-footer__content {
		display: flex;
		flex-wrap: wrap;
		justify-content: space-between;
		max-width: 1180px;
		padding-left: var(--wp--preset--spacing--65) !important;
	}

	.wp-block-group.is-style-site-footer .site-footer__content > * {
		margin-block-start: 0;
	}

	/* The bar runs over the full panel; its right padding puts the links on the right edge of the 1180px content above. */
	.wp-block-group.is-style-site-footer .site-footer__bar {
		padding-right: max(var(--wp--preset--spacing--30), calc(100% - 1160px)) !important;
		padding-left: var(--wp--preset--spacing--65) !important;
	}
}

/* The original stacks the footer columns at 991px, core stacks at 782px. Flex basis is inline on the columns, hence !important. */
@media (max-width: 991px) {
	.wp-block-group.is-style-site-footer > .wp-block-columns {
		flex-wrap: wrap !important;
	}

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

@media (max-width: 991px) {
	.wp-block-group.is-style-site-footer .site-footer__visual > .wp-block-cover {
		min-height: 28vw;
	}
}

/* Hero with wordmark. The columns stop at 1720px; beyond that the two button bars continue to the screen edge, as in the original. */
.wp-block-group.is-style-hero-wordmark {
	background: linear-gradient(to right, var(--wp--preset--color--color-2) 50%, var(--wp--preset--color--color-1) 50%) bottom / 100% 50px no-repeat;
}

.wp-block-group.is-style-hero-wordmark {
	overflow: hidden;
}

.wp-block-group.is-style-hero-wordmark > .wp-block-columns {
	max-width: 1720px;
	margin-inline: auto;
}

/* Core stacks columns from 781px, the original only from 767px. */
@media (min-width: 768px) {
	.wp-block-group.is-style-hero-wordmark > .wp-block-columns {
		flex-wrap: nowrap !important;
	}
}

.wp-block-group.is-style-hero-wordmark .hero-wordmark__text {
	background-color: var(--wp--preset--color--color-9);
}

/* The photo shows through the letters, under the dark green at 50%. */
.wp-block-group.is-style-hero-wordmark .hero-wordmark__title {
	margin: 0 0 0 -5px;
	padding: 50px 0 50px var(--wp--preset--spacing--30);
	color: color-mix(in srgb, var(--wp--preset--color--color-3) 50%, transparent);
	background: url("../../images/iwood-R5v8Xtc0ecg-unsplash.png") center / cover;
	-webkit-background-clip: text;
	background-clip: text;
}

.wp-block-group.is-style-hero-wordmark .hero-wordmark__media {
	position: relative;
	display: flex;
}

.wp-block-group.is-style-hero-wordmark .hero-wordmark__media .wp-block-image {
	flex: 1;
	margin: 0;
	line-height: 0;
}

.wp-block-group.is-style-hero-wordmark .hero-wordmark__media img {
	width: 100%;
	/* The editor puts an inline height: auto on every image, hence !important. */
	height: 100% !important;
	object-fit: cover;
}

.wp-block-group.is-style-hero-wordmark .hero-wordmark__media .wp-block-buttons {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
}

@media (max-width: 767px) {
	.wp-block-group.is-style-hero-wordmark > .wp-block-columns {
		flex-wrap: wrap !important;
	}

	.wp-block-group.is-style-hero-wordmark > .wp-block-columns > .wp-block-column {
		flex-basis: 100% !important;
	}

	.wp-block-group.is-style-hero-wordmark .hero-wordmark__title {
		padding-top: 0;
		padding-bottom: 0;
	}

	.wp-block-group.is-style-hero-wordmark .hero-wordmark__media img {
		min-height: 250px;
	}

	/* Stacked, both bars start their arrow and text on the same line, 20px from the edge. Padding is inline on the button, hence !important. */
	.wp-block-group.is-style-hero-wordmark .hero-wordmark__media .wp-block-button__link {
		padding-left: var(--wp--preset--spacing--30) !important;
	}
}

/* Above 1720px the original is a grid of 3 and 5 eighths inside 1720px, 25vw high (at least 520px),
   with a 120px title centred above the bar and the photo running on to the screen edge. */
@media (min-width: 1721px) {
	.wp-block-group.is-style-hero-wordmark > .wp-block-columns {
		box-sizing: border-box;
		height: max(25vw, 520px);
		padding-inline: var(--wp--preset--spacing--30);
	}

	.wp-block-group.is-style-hero-wordmark > .wp-block-columns > .hero-wordmark__text {
		flex-basis: 37.5% !important;
	}

	.wp-block-group.is-style-hero-wordmark > .wp-block-columns > .hero-wordmark__media {
		flex-basis: 62.5% !important;
	}

	.wp-block-group.is-style-hero-wordmark .hero-wordmark__title {
		margin-block: auto;
		padding-left: 0;
		font-size: 120px !important;
	}

	.wp-block-group.is-style-hero-wordmark .hero-wordmark__text .wp-block-button__link {
		padding-left: 0;
	}

	.wp-block-group.is-style-hero-wordmark .hero-wordmark__media .wp-block-image {
		position: absolute;
		top: 0;
		bottom: 0;
		left: 0;
	}

	.wp-block-group.is-style-hero-wordmark .hero-wordmark__media img {
		width: auto;
		max-width: none;
		height: 100%;
	}

	.wp-block-group.is-style-hero-wordmark .hero-wordmark__media .wp-block-buttons {
		right: calc((1720px - 100vw) / 2 - var(--wp--preset--spacing--30));
		background-color: var(--wp--preset--color--color-1);
	}

	.wp-block-group.is-style-hero-wordmark .hero-wordmark__media .wp-block-button__link {
		padding-left: var(--wp--preset--spacing--30) !important;
	}
}

/* Text with photo tiles. The text sticks while the tiles scroll, the tiles form a grid of 2 columns
   where tiles span one or two rows, in the order of the original. */
.wp-block-group.is-style-text-mosaic .text-mosaic__sticky {
	position: sticky;
	top: 50px;
	padding-right: 50px;
}

/* Row heights follow the width of the tile grid (half the content width, the full width when stacked),
   with the proportions of the original at 1440px. */
.wp-block-group.is-style-text-mosaic .text-mosaic__grid {
	--mosaic-w: calc(min(var(--wp--style--global--content-size), 100vw - 40px) / 2);
	grid-template-rows: calc(var(--mosaic-w) * 0.692) calc(var(--mosaic-w) * 0.33) calc(var(--mosaic-w) * 0.33) calc(var(--mosaic-w) * 0.214) calc(var(--mosaic-w) * 0.462);
}

.wp-block-group.is-style-text-mosaic .text-mosaic__grid > .wp-block-cover {
	min-height: 0;
	height: 100%;
}

.wp-block-group.is-style-text-mosaic .text-mosaic__grid > :nth-child(1),
.wp-block-group.is-style-text-mosaic .text-mosaic__grid > :nth-child(3),
.wp-block-group.is-style-text-mosaic .text-mosaic__grid > :nth-child(4),
.wp-block-group.is-style-text-mosaic .text-mosaic__grid > :nth-child(5) {
	grid-row: span 2;
}

/* Above 1720px the original gives the text a third and the tiles two thirds. */
@media (min-width: 1721px) {
	.wp-block-group.is-style-text-mosaic > .wp-block-columns > .wp-block-column:first-child {
		flex-basis: 33.333% !important;
	}

	.wp-block-group.is-style-text-mosaic > .wp-block-columns > .wp-block-column:last-child {
		flex-basis: 66.667% !important;
	}

	.wp-block-group.is-style-text-mosaic .text-mosaic__grid {
		--mosaic-w: calc(var(--wp--style--global--content-size) * 2 / 3);
	}
}

@media (max-width: 991px) {
	.wp-block-group.is-style-text-mosaic > .wp-block-columns {
		flex-wrap: wrap !important;
	}

	.wp-block-group.is-style-text-mosaic > .wp-block-columns > .wp-block-column {
		flex-basis: 100% !important;
	}

	.wp-block-group.is-style-text-mosaic .text-mosaic__sticky {
		position: static;
		padding-right: 0;
	}

	.wp-block-group.is-style-text-mosaic .text-mosaic__grid {
		--mosaic-w: calc(100vw - 40px);
	}
}

@media (max-width: 767px) {
	.wp-block-group.is-style-text-mosaic .text-mosaic__grid {
		grid-template-columns: 1fr;
		grid-template-rows: none;
	}

	.wp-block-group.is-style-text-mosaic .text-mosaic__grid > .wp-block-cover {
		grid-row: auto;
		height: 500px;
	}

	.wp-block-group.is-style-text-mosaic .text-mosaic__grid > :nth-child(4),
	.wp-block-group.is-style-text-mosaic .text-mosaic__grid > :nth-child(6) {
		height: 333px;
	}
}

/* Page banner: green band with breadcrumb and title. Above 1720px the original is 450px high,
   a grid of 3 and 5 eighths with the photo on the right, anchored to the bottom. */
.wp-block-group.is-style-page-banner {
	overflow: hidden;
}

.wp-block-group.is-style-page-banner .page-banner__media {
	display: none;
}

@media (min-width: 1721px) {
	.wp-block-group.is-style-page-banner > .wp-block-columns {
		height: 450px;
	}

	.wp-block-group.is-style-page-banner .page-banner__text {
		flex-basis: 37.5% !important;
		flex-grow: 0;
	}

	.wp-block-group.is-style-page-banner .page-banner__media {
		position: relative;
		display: block;
		flex-basis: 62.5% !important;
	}

	.wp-block-group.is-style-page-banner .page-banner__media .wp-block-image {
		position: absolute;
		bottom: 0;
		left: 0;
		margin: 0;
	}

	.wp-block-group.is-style-page-banner .page-banner__media img {
		width: auto;
		max-width: none;
		height: auto;
	}

	.wp-block-group.is-style-page-banner .wp-block-post-title {
		font-size: 2vw !important;
	}
}

/* Box with a double frame: the inner frame is shifted 20px up and to the left. */
.wp-block-group.is-style-framed {
	border: 1px solid var(--wp--preset--color--color-2);
}

.wp-block-group.is-style-framed > .framed__inner {
	position: relative;
	top: -20px;
	left: -20px;
	box-sizing: border-box;
	width: 100%;
	padding: 90px 140px;
	border: 1px solid var(--wp--preset--color--color-2);
}

.wp-block-group.is-style-framed > .framed__inner > p + p {
	margin-top: 18px;
}

/* On mobile the original drops the frame: text on 20px from the edge. */
@media (max-width: 767px) {
	.wp-block-group:has(> .wp-block-group.is-style-framed) {
		padding-left: var(--wp--preset--spacing--30) !important;
	}

	.wp-block-group.is-style-framed {
		border: 0;
	}

	.wp-block-group.is-style-framed > .framed__inner {
		top: 0;
		left: 0;
		padding: 0;
		border: 0;
	}
}

/* Team: the intro sticks while the team members scroll. */
.wp-block-group.is-style-team .team__sticky {
	position: sticky;
	top: 50px;
	padding-right: 50px;
}

/* Team member card: text left, portrait right, 40px padding except at the bottom. */
.wp-block-group.is-style-team-card {
	padding: 40px 40px 0;
}

.wp-block-group.is-style-team-card > .wp-block-columns {
	gap: 0;
	margin: 0;
}

.wp-block-group.is-style-team-card .team-card__content {
	display: flex;
	flex-basis: 44.737% !important;
	flex-direction: column;
	justify-content: space-between;
	padding-bottom: 40px;
}

.wp-block-group.is-style-team-card .team-card__photo {
	flex-basis: 55.263% !important;
}

.wp-block-group.is-style-team-card .team-card__photo .wp-block-post-featured-image {
	margin: 0;
	aspect-ratio: 420 / 525;
}

.wp-block-group.is-style-team-card .team-card__photo img {
	width: 100%;
	/* The editor puts an inline height: auto on every image, hence !important. */
	height: 100% !important;
	object-fit: cover;
}

.wp-block-group.is-style-team-card .wp-block-post-title {
	line-height: 1.6;
}

@media (max-width: 991px) {
	.wp-block-group.is-style-team > .wp-block-columns {
		flex-wrap: wrap !important;
	}

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

	.wp-block-group.is-style-team .team__sticky {
		position: static;
		padding-right: 0;
	}
}

@media (max-width: 767px) {
	.wp-block-group.is-style-team-card .wp-block-columns {
		flex-direction: column-reverse;
	}
}

/* Address next to the contact form, in the grey green of the original. */
.wp-block-group.is-style-address {
	color: var(--wp--custom--status--bar-border);
}

/* Map with the location card over it: a light fade from the left and the card centred vertically. */
.wp-block-group.is-style-map-location {
	position: relative;
}

.wp-block-group.is-style-map-location > .map-location__card {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	margin: 0;
	background-image: linear-gradient(90deg, var(--wp--preset--color--color-9) 1px, rgb(from var(--wp--preset--color--color-9) r g b / 60%));
}

.wp-block-group.is-style-map-location > .map-location__card > .alignwide {
	width: 100%;
}

.wp-block-group.is-style-map-location .wp-block-heading {
	margin-top: 4px;
}

/* Rows of the woning information, separated by a light line. */
.wp-block-group.is-style-woning-row {
	padding: 20px 0;
	border-bottom: 1px solid var(--wp--custom--status--line);
}

.wp-block-group.is-style-woning-row:first-child {
	padding-top: 0;
}

/* On mobile every section, the footer included, keeps its content 20px from the screen edge. */
@media (max-width: 767px) {
	.wp-block-group.is-style-site-footer .site-footer__content,
	.wp-block-group.is-style-site-footer .site-footer__bar {
		padding-left: var(--wp--preset--spacing--30) !important;
		padding-right: var(--wp--preset--spacing--30) !important;
	}
}
