/*
 * Kalusto (patterns/kalusto-content.php, synced as `kanta-tuki-kalusto`).
 *
 * The excavator silhouette is a fixed decoration of the section, not content:
 * site editors replace only the four illustrations.
 */

.kt-kalusto.wp-block-group {
	background-color: var(--wp--preset--color--black);
	background-image: url(../images/kalusto-silhouette.svg);
	background-position: right bottom;
	background-repeat: no-repeat;
	background-size: cover;
}

.kt-kalusto > * {
	margin-block: 0;
}

.kt-kalusto__header {
	row-gap: var(--wp--preset--spacing--40);
}

.kt-kalusto__header .wp-block-heading {
	line-height: 0.95;
}

.kt-kalusto__header > * {
	margin: 0;
}

.kt-kalusto .kt-kalusto__lead {
	max-width: 52rem;
	line-height: 1.4;
}

.kt-kalusto .kt-kalusto__groups.wp-block-group {
	max-width: 1064px;
	margin-block-start: var(--wp--preset--spacing--80);
	margin-inline: auto;
	column-gap: var(--wp--preset--spacing--40);
	row-gap: var(--wp--preset--spacing--60);
}

.kt-kalusto__item > * {
	margin-block: 0;
}

.kt-kalusto__illustration.wp-block-image {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	height: 139px;
	margin: 0 auto;
}

.kt-kalusto__illustration img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.kt-kalusto .kt-kalusto__title {
	margin-block-start: var(--wp--preset--spacing--50);
	color: var(--wp--preset--color--off-white);
	line-height: 1.05;
}

.kt-kalusto .kt-kalusto__description {
	margin-block-start: var(--wp--preset--spacing--20);
	line-height: 1.45;
}

.kt-kalusto .kt-kalusto__note {
	margin-block-start: var(--wp--preset--spacing--70);
	font-size: var(--wp--preset--font-size--base);
	line-height: 1.25;
}

@media (max-width: 781px) {

	.kt-kalusto__header > p.has-text-align-right {
		text-align: left;
	}

	/* Tall single column: the silhouette sits at the bottom; above it the
	   ground is the silhouette's own sky colour (decoration, not a preset;
	   !important beats the block's black background preset class). */
	.kt-kalusto.wp-block-group {
		background-color: #4c4c4c !important;
		background-position: 80% 100%;
		background-size: 180% auto;
	}
}
