/* Zelfde kaarten als het rosterarchief, maar 4 per rij met een foto. */

.st-image-grid__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (max-width: 1024px) {
	.st-image-grid__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 768px) {
	.st-image-grid__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 480px) {
	.st-image-grid__grid {
		grid-template-columns: 1fr;
	}
}

.st-image-grid__card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	height: 100%;
	margin: 0;
	padding: 12px 12px 16px;
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.08);
	border: 2px solid rgba(255, 255, 255, 0.2);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	text-align: center;
	transition: border-color 0.2s ease, transform 0.2s ease;
}

.st-image-grid__card:hover,
.st-image-grid__card:focus-within {
	border-color: rgba(255, 255, 255, 0.6);
	transform: translateY(-2px);
}

.st-image-grid__photo {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: 12px;
}

/* Hele kaart klikbaar via de foto. */
.st-image-grid__photo::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 20px;
}

.st-image-grid__photo:focus-visible {
	outline: none;
}

.st-image-grid__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.st-image-grid__labels {
	display: flex;
	justify-content: center;
	gap: 6px;
	max-width: 100%;
}

/* AI-gegenereerd: oranje, zoals het M+ label in het roster. Blijft heel, de naam wordt eventueel afgekapt. */
.st-image-grid .st-roster-label.st-image-grid__ai {
	flex-shrink: 0;
	background: #d35400;
	border-color: #fb8c00;
	overflow: visible;
}

/* Basisstijl van .st-roster-label staat ook hier, voor pagina's zonder de roster-CSS. */
.st-image-grid .st-roster-label {
	display: inline-block;
	max-width: 100%;
	padding: 3px 10px;
	border-radius: 20px;
	background: #5516C8;
	border: 1px solid rgb(120, 53, 238);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1.3;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Titel van de foto, boven het uploader-label. */
.st-image-grid__title {
	color: #fff;
	font-weight: 700;
	overflow-wrap: anywhere;
}

/* Uploader-label: link boven de klikbare kaart, wit (het thema kleurt links anders paars). */
.st-image-grid .st-image-grid__uploader,
.st-image-grid a.st-image-grid__uploader:link,
.st-image-grid a.st-image-grid__uploader:visited {
	color: #fff;
}

.st-image-grid__uploader {
	position: relative;
	z-index: 1;
	text-decoration: none;
}

.st-image-grid a.st-image-grid__uploader:hover,
.st-image-grid a.st-image-grid__uploader:focus-visible {
	background: rgb(120, 53, 238);
	color: #fff;
	text-decoration: none;
}

.st-image-grid__empty {
	color: rgba(255, 255, 255, 0.75);
}

.st-image-grid__pagination {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin: 32px 0 0;
}

.st-image-grid__pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.08);
	border: 2px solid rgba(255, 255, 255, 0.2);
	/* !important: Beaver Builder zet globaal a.page-numbers { color: ... !important }. */
	color: #fff !important;
	text-decoration: none;
}

.st-image-grid__pagination a.page-numbers:hover,
.st-image-grid__pagination a.page-numbers:focus-visible {
	border-color: rgba(255, 255, 255, 0.6);
	text-decoration: none;
}

.st-image-grid__pagination .page-numbers.current {
	background: #5516C8;
	border-color: rgb(120, 53, 238);
}
