/*
 * Photo next to content (components of the Escola do Queijo and Tipologia pages): a photo
 * column that takes the height of the content beside it, both pushed to the edges of the
 * 1216px container. The base proportions are the 495px photo and 618px content of
 * 837:14942; a section narrows or widens its columns with its own flex-basis.
 */
.media-split {
	display: flex;
	align-items: stretch;
	justify-content: space-between;
	gap: var(--space-6);
}

.media-split__media {
	flex: 0 0 40.71%;
	min-height: 320px;
	border-radius: var(--radius-card);
	overflow: hidden;
	background-color: var(--color-surface-subtle);
}

.media-split__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.media-split__content {
	flex: 0 1 50.82%;
	min-width: 0;
}

.media-split--media-end .media-split__media {
	order: 2;
}

@media (max-width: 1023px) {
	.media-split,
	.media-split--media-end {
		flex-direction: column;
	}

	.media-split--media-end .media-split__media {
		order: 0;
	}

	.media-split__media {
		flex-basis: auto;
		aspect-ratio: 4 / 3;
		min-height: 0;
	}
}
