/* Fotocollage in "Tekst en beeld" (1.3.16) */
.cbt-collage-media { position: relative; }
.cbt-collage {
	position: relative;
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	grid-template-rows: repeat(5, 1fr);
	gap: 6px;
	aspect-ratio: 5 / 4;
	width: 100%;
}
.cbt-collage__vak {
	position: relative;
	overflow: hidden;
	border-radius: 4px;
	background: #efe9df;
	min-width: 0;
	min-height: 0;
}
.cbt-collage .cbt-collage__vak img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	display: block;
	transition: opacity .9s ease, scale 1.2s ease;
}
.cbt-collage__vak img.is-nieuw { opacity: 0; scale: 1.06; }
@media (hover: hover) {
	.cbt-collage__vak:hover img { scale: 1.05; }
}

/* 13 vakken in een raster van 6 × 5 */
.cbt-collage__vak:nth-child(1)  { grid-column: 1 / 3; grid-row: 1 / 3; }
.cbt-collage__vak:nth-child(2)  { grid-column: 3 / 5; grid-row: 1 / 2; }
.cbt-collage__vak:nth-child(3)  { grid-column: 5 / 7; grid-row: 1 / 3; }
.cbt-collage__vak:nth-child(4)  { grid-column: 3 / 4; grid-row: 2 / 3; }
.cbt-collage__vak:nth-child(5)  { grid-column: 4 / 5; grid-row: 2 / 4; }
.cbt-collage__vak:nth-child(6)  { grid-column: 1 / 2; grid-row: 3 / 5; }
.cbt-collage__vak:nth-child(7)  { grid-column: 2 / 4; grid-row: 3 / 5; }
.cbt-collage__vak:nth-child(8)  { grid-column: 5 / 7; grid-row: 3 / 4; }
.cbt-collage__vak:nth-child(9)  { grid-column: 5 / 6; grid-row: 4 / 6; }
.cbt-collage__vak:nth-child(10) { grid-column: 6 / 7; grid-row: 4 / 6; }
.cbt-collage__vak:nth-child(11) { grid-column: 1 / 3; grid-row: 5 / 6; }
.cbt-collage__vak:nth-child(12) { grid-column: 4 / 5; grid-row: 4 / 6; }
.cbt-collage__vak:nth-child(13) { grid-column: 3 / 4; grid-row: 5 / 6; }

/* De swoosh komt van links de pagina in: alles buiten beeld wordt afgesneden, zonder horizontale scroll. */
.cb-block:has(.cbt-collage) { overflow-x: clip; }

/* Tussendoor (1.3.17): de swoosh ligt op de collage, maar deze vakken liggen erboven.
   Zo loopt hij afwisselend over en onder de foto's: over 6 en 11, onder 7, over 12 en 5, onder 8, over 3. */
.cbt-collage__vak:nth-child(7),
.cbt-collage__vak:nth-child(8) {
	z-index: 3;
	box-shadow: 0 8px 22px rgba(17, 17, 17, .30), 0 0 0 3px #fff;
}

/* De swoosh: het spoor dat ze achterlaten */
.cbt-collage__swoosh {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: visible;
	pointer-events: none;
	z-index: 2;
	filter: drop-shadow(0 2px 6px rgba(17, 17, 17, .28));
}
.cbt-collage__spoor {
	fill: none;
	stroke-linecap: round;
	stroke-dasharray: 1;
	stroke-dashoffset: 0;
}
.cbt-collage__spoor--geel  { stroke: #FFDE01; stroke-width: 17; }
.cbt-collage__spoor--blauw { stroke: #6BD2E7; stroke-width: 7; }
.cbt-collage.is-wacht .cbt-collage__spoor { stroke-dashoffset: 1; }
.cbt-collage.is-teken .cbt-collage__spoor { transition: stroke-dashoffset 3.2s cubic-bezier(.45, .05, .3, 1); }
.cbt-collage.is-teken .cbt-collage__spoor--blauw { transition-delay: .3s; }

@media (max-width: 700px) {
	.cbt-collage { gap: 4px; }
	.cbt-collage__spoor--geel  { stroke-width: 13; }
	.cbt-collage__spoor--blauw { stroke-width: 5; }
}
@media (prefers-reduced-motion: reduce) {
	.cbt-collage .cbt-collage__vak img { transition: none; }
	.cbt-collage .cbt-collage__spoor { transition: none !important; stroke-dashoffset: 0 !important; }
}
