/*
 * Content-and-image (patterns/content-and-image.php): a core Media & Text
 * block in a full-width section. The text starts on the page gutter, the
 * photo fills its column up to the right page edge.
 */

.kt-content-and-image .kt-content-and-image__media-text {
	margin: 0;
}

.kt-content-and-image .wp-block-media-text__content {
	padding-block: var(--wp--preset--spacing--20);
	padding-inline: var(--wp--style--root--padding-left, 16px) var(--wp--preset--spacing--60);
}

.kt-content-and-image .wp-block-media-text__content > * {
	margin-block: 0;
}

.kt-content-and-image .kt-content-and-image__heading {
	margin-block-start: var(--wp--preset--spacing--40);
	line-height: 1;
}

.kt-content-and-image .wp-block-media-text__content > p:not(.is-style-eyebrow) {
	line-height: 1.45;
}

.kt-content-and-image .kt-content-and-image__heading + p {
	margin-block-start: var(--wp--preset--spacing--50);
}

.kt-content-and-image .wp-block-media-text__content > p + p:not(.is-style-eyebrow) {
	margin-block-start: var(--wp--preset--spacing--40);
}

/* Phone: photo on top (core stacking), then the text on the page gutters. */
@media (max-width: 600px) {

	.kt-content-and-image.wp-block-group {
		padding-block-start: 0 !important; /* The photo meets the section above. */
	}

	.kt-content-and-image .wp-block-media-text__media {
		min-height: 60vw;
	}

	.kt-content-and-image .wp-block-media-text__content {
		padding-block: var(--wp--preset--spacing--60) 0;
		padding-inline: var(--wp--style--root--padding-left, 16px) var(--wp--style--root--padding-right, 16px);
	}
}
