/* ---------------------------------------------------------------------------
 * Blok: Tekst en media (Figma 124:8027 desktop, 182:12086 mobiel).
 * Foto in een afgeronde kaart met blauwe vink-decoratie rechtsonder,
 * daarnaast kop, tekst en twee knoppen. Foto links of rechts instelbaar.
 * ------------------------------------------------------------------------- */

.blok-tekst-media {
	padding-block: 105px;
}

.blok-tekst-media__rij {
	display: flex;
	align-items: center;
	gap: min(134px, 7vw);
}

.blok-tekst-media--foto-rechts .blok-tekst-media__rij {
	flex-direction: row-reverse;
}

/* Fotokaart: afgeronde hoeken, verhouding 635:550 uit het ontwerp. */
.blok-tekst-media__media {
	position: relative;
	flex: 0 0 45.357%; /* 635px van de 1400px wrapper */
	aspect-ratio: 635 / 550;
	border-radius: var(--radius-sectie);
	overflow: hidden;
	isolation: isolate;
}

.blok-tekst-media__media .blok-tekst-media__foto {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Donkere verlopen boven- en onderaan de foto, zoals in het ontwerp. */
.blok-tekst-media__media::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background-image:
		linear-gradient(to top, rgb(0 0 0 / 0%), rgb(0 0 0 / 60%)),
		linear-gradient(to bottom, rgb(0 0 0 / 0%), rgb(0 0 0 / 60%)),
		linear-gradient(to bottom, rgb(0 0 0 / 0%), rgb(0 0 0 / 80%));
	background-repeat: no-repeat;
	background-size: 100% 19.2%, 100% 19.2%, 100% 34.1%;
	background-position: top, bottom, bottom;
}

/* Blauwe vink-decoratie rechtsonder, loopt iets van de kaart af. */
.blok-tekst-media__vink {
	position: absolute;
	right: 8.03%;
	bottom: -0.64%;
	z-index: 2;
	width: 28.33%;
	color: var(--c-blauw);
	pointer-events: none;
}

.blok-tekst-media__vink svg {
	display: block;
	width: 100%;
	height: auto;
}

.blok-tekst-media__inhoud {
	flex: 1 1 0;
	min-width: 0;
}

.blok-tekst-media__titel {
	margin: 0 0 16px;
	font-size: 36px;
	line-height: 46px; /* vast uit het ontwerp, bewust geen --fs-h2 */
	font-weight: 700;
	color: var(--c-donkerblauw);
}

.blok-tekst-media__tekst {
	color: var(--c-zwart);
	font-size: var(--fs-body);
	line-height: var(--lh-body);
}

.blok-tekst-media__tekst p {
	margin: 0;
}

.blok-tekst-media__tekst p + p {
	margin-top: 26px; /* precies een witregel */
}

.blok-tekst-media__knoppen {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	margin-top: 33px;
}

/* Mobiel: foto boven, alles onder elkaar (ontwerp 390). */
@media (max-width: 767px) {
	.blok-tekst-media {
		padding-block: 50px;
	}

	.blok-tekst-media__rij,
	.blok-tekst-media--foto-rechts .blok-tekst-media__rij {
		flex-direction: column;
		align-items: stretch;
		gap: 40px;
	}

	.blok-tekst-media__media {
		flex-basis: auto;
		width: 100%;
	}

	.blok-tekst-media__titel {
		margin-bottom: 15px;
		font-size: 22px;
		line-height: 28px;
	}

	.blok-tekst-media__knoppen {
		margin-top: 15px;
		flex-direction: column;
		align-items: flex-start;
	}
}
