/* HERO-2: full-image hero. The Cover block is the section itself. */

/*
 * The Cover keeps the vertical padding of a section and takes the side padding
 * of the page, so its text lines up with every other section.
 * Text on a photograph uses the strongest text colour of the colour style.
 */
.wprk-hero-2.wp-block-cover {
	color: var(--wprk-heading);
	/* Tall on a laptop, never taller than a comfortable screenful on a large monitor. */
	min-height: clamp(26rem, 70vh, 46rem);
	padding-block: var(--wp--preset--spacing--70);
	padding-left: var(--wp--style--root--padding-left, clamp(1rem, 4vw, 2rem));
	padding-right: var(--wp--style--root--padding-right, clamp(1rem, 4vw, 2rem));
}

.wprk-hero-2 > .wp-block-cover__inner-container {
	padding-inline: 0;
}

/*
 * The overlay takes the background of the colour style, so light and tinted
 * stay readable as well. An overlay colour chosen by hand is left alone.
 */
.wprk-hero-2 > .wp-block-cover__background.has-dark-background-color {
	background-color: var(--wprk-bg) !important;
}

.wprk-hero-2 .wprk-hero-2__content {
	margin-inline: auto;
	max-width: var(--wp--style--global--wide-size);
}

/* A short accent rule above the text. */
.wprk-hero-2 .wprk-hero-2__content::before {
	background-color: var(--wprk-accent);
	content: "";
	display: block;
	height: 2px;
	margin-block-end: var(--wp--preset--spacing--40);
	width: 3rem;
}

.wprk-hero-2 .wprk-hero-2__content > * {
	margin-block: 0;
	max-width: 40rem;
}

.wprk-hero-2 .wprk-hero-2__content > * + * {
	margin-block-start: var(--wp--preset--spacing--30);
}

.wprk-hero-2 .wprk-hero-2__content > .wprk-eyebrow + * {
	margin-block-start: var(--wp--preset--spacing--20);
}

.wprk-hero-2 .wprk-eyebrow,
.wprk-hero-2 .wprk-lead {
	color: inherit;
}

.wprk-hero-2 .wprk-hero-2__content > .wp-block-buttons {
	gap: var(--wp--preset--spacing--20);
	margin-block-start: var(--wp--preset--spacing--40);
}
