/*
 * Blogteksten (ACF-veld blog_tekst in widget .aw-blog-css)
 * De teksten gebruiken tabellen van twee kolommen (tekst + foto).
 * Op mobiel stapelen we die: eerst de tekst, dan de foto.
 */
@media (max-width: 767px) {
	.aw-blog-css table,
	.aw-blog-css tbody,
	.aw-blog-css td {
		display: block;
		width: 100% !important;
	}

	.aw-blog-css table {
		margin: 0 !important;
	}

	.aw-blog-css tr {
		display: flex;
		flex-direction: column;
	}

	.aw-blog-css td {
		padding: 0 !important;
	}

	/* Cel met alleen een foto: na de tekst, met wat ruimte eromheen */
	.aw-blog-css td:has(img):not(:has(p, ul, ol)) {
		order: 2;
		margin: 8px 0 24px;
	}

	.aw-blog-css td img {
		display: block;
		width: 100%;
		height: auto;
		max-height: 420px;
		object-fit: cover;
		margin: 0;
	}

	/* Foto die in een kop staat: geen kop-ruimte eromheen */
	.aw-blog-css td h2:has(> img) {
		margin: 0;
		line-height: 0;
	}
}
