/* Kraskaart galerij */
.kk-galerij-app {
	--kk-accent-tekst: #9A3412;
	--kk-inkt: #13233F;
	--kk-lijn: #C9CFD9;
	display: flex;
	flex-direction: column;
	gap: 32px;
	color: var(--kk-inkt);
}
.kk-svg { display: block; width: 100%; height: 100%; }

.kk-filters { display: flex; flex-wrap: wrap; gap: 10px; }
.kk-filter {
	min-height: 44px;
	padding: 0 18px;
	border-radius: 999px;
	border: 1px solid var(--kk-lijn);
	background: #FFFFFF;
	color: var(--kk-inkt);
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
}
.kk-filter:hover { border-color: var(--kk-inkt); background: #FFFFFF; color: var(--kk-inkt); }
.kk-filter[aria-pressed="true"] { background: var(--kk-inkt); border-color: var(--kk-inkt); color: #FFFFFF; }
.kk-filter:focus-visible, .kk-draai:focus-visible { outline: 3px solid var(--kk-accent-tekst); outline-offset: 2px; }

.kk-galerij {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 40px 28px;
}
.kk-tegel { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.kk-kaart { display: block; text-decoration: none; color: inherit; perspective: 1400px; }
.kk-kaart:focus-visible { outline: 3px solid var(--kk-accent-tekst); outline-offset: 4px; }

.kk-flip {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 105 / 74;
	transition: transform 0.6s ease;
	transform-style: preserve-3d;
}
.kk-zijde {
	position: absolute;
	inset: 0;
	display: block;
	overflow: hidden;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	box-shadow: 0 1px 2px rgba(19, 35, 63, 0.14), 0 10px 28px rgba(19, 35, 63, 0.12);
	background: #FFFFFF;
}
.kk-zijde--achter { transform: rotateY(180deg); }
@media (hover: hover) {
	.kk-tegel--draaibaar .kk-kaart:hover .kk-flip { transform: rotateY(180deg); }
}
.kk-tegel--draaibaar .kk-kaart:focus-visible .kk-flip,
.kk-tegel--draaibaar.is-omgedraaid .kk-flip { transform: rotateY(180deg); }

.kk-onderschrift { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: nowrap; min-width: 0; }
/* Lange namen op één regel, afgekapt met puntjes (vooral op tablets). */
.kk-naam { flex: 1 1 auto; min-width: 0; font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kk-actie { flex: none; font-size: 14px; font-weight: 600; color: var(--kk-accent-tekst); text-decoration: none; white-space: nowrap; }
.kk-actie:hover { text-decoration: underline; color: var(--kk-accent-tekst); }
.kk-draai { flex: none; }
.kk-draai {
	display: none;
	min-height: 44px;
	padding: 0 14px;
	border: 1px solid var(--kk-lijn);
	border-radius: 8px;
	background: #FFFFFF;
	color: var(--kk-inkt);
	font: inherit;
	font-size: 14px;
	cursor: pointer;
}
/* Touchscherm (ook tablets die zich als 'muis' melden): knop om de achterzijde te zien. */
@media (hover: none), (pointer: coarse), (any-pointer: coarse) { .kk-draai { display: inline-flex; align-items: center; } }
@media (prefers-reduced-motion: reduce) { .kk-flip { transition: none; } }

/* Meer ontwerpen laden (telefoon) */
.kk-galerij__meer { display: flex; justify-content: center; margin: 0; }
.kk-galerij__meer[hidden] { display: none; }
body .kk-galerij-app button.kk-meer {
	display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px;
	border: 1px solid var(--kk-inkt); border-radius: 999px; background: #FFFFFF; color: var(--kk-inkt);
	font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
}
body .kk-galerij-app button.kk-meer:hover { background: var(--kk-inkt); color: #FFFFFF; }
body .kk-galerij-app button.kk-meer:focus-visible { outline: 3px solid var(--kk-accent-tekst); outline-offset: 2px; }
