.wp-block-sz2027-hero {
	--sz-link-color: var(--wp--preset--color--azure);
	--sz-hero-wave: 70px;
	position: relative;
	container-type: inline-size;
	display: grid;
	grid-template-columns:
		minmax(0, calc(50% - var(--sz-hero-wave) / 2))
		minmax(0, calc(50% + var(--sz-hero-wave) / 2));
	gap: 0;
	padding: 0;
	margin-top: 0;
	margin-bottom: 0;
	border-radius: 0;
	isolation: isolate;

	> * { min-width: 0; margin-top: 0; margin-bottom: 0; }

	/* The paper masks cut the same wave across both the blue area and the photo. */
	&::before, &::after {
		content: "";
		position: absolute;
		z-index: 2;
		inset: 0 0 auto;
		height: var(--sz-hero-wave);
		background: var(--wp--preset--color--paper);
		mask: url('../../assets/images/wave.svg') center / 100% 100% no-repeat;
		pointer-events: none;
	}

	&::after { inset: auto 0 0; rotate: 180deg; }

	.hero-content {
		max-width: 520px;
		align-self: center;
		padding-top: calc(var(--sz-hero-wave) + var(--wp--preset--spacing--section));
		padding-bottom: calc(var(--sz-hero-wave) + var(--wp--preset--spacing--section));
		padding-left: max(var(--wp--preset--spacing--gutter), calc((100cqw - var(--wp--style--global--content-size, 1440px)) / 2));
		padding-right: clamp(32px, 5vw, 80px);

		> * { margin-top: 0; margin-bottom: 0; }
		> * + * { margin-top: var(--wp--preset--spacing--cards); }
		> p { max-width: 70ch; }
		> .wp-block-buttons { margin-top: var(--wp--preset--spacing--heading); }
	}

	.hero-badge {
		display: inline-block;
		padding: 4px 14px;
		border-radius: 999px;
	}

	.hero-media {
		position: relative;
		container-type: size;
		align-self: stretch;

		.components-placeholder { height: 100%; padding-left: var(--sz-hero-wave); }

		.wp-block-image {
			position: absolute;
			inset: 0;
			width: 100%;
			height: 100%;
			margin: 0;
		}

		.wp-block-image img {
			display: block;
			width: 100%;
			height: 100%;
			object-fit: cover;
			border-radius: 0;
		}

		/* Rotate the existing horizontal mask; its width follows this column's height. */
		&::after {
			content: "";
			position: absolute;
			z-index: 1;
			inset: 100% auto auto 0;
			width: 100cqh;
			height: var(--sz-hero-wave);
			background: var(--wp--preset--color--navy);
			mask: url('../../assets/images/wave.svg') center / 100% 100% no-repeat;
			rotate: -90deg;
			transform-origin: top left;
			pointer-events: none;
		}
	}

	@media (width < 950px) {
		grid-template-columns: minmax(0, 1fr);

		.hero-content {
			padding-left: var(--wp--preset--spacing--gutter);
			padding-bottom: var(--wp--preset--spacing--section);
		}

		.hero-media {
			min-height: clamp(280px, 55vw, 560px);
			&::after { display: none; }
		}
	}
}
