.mx_photo_album {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
	width: 100%;
	clear: both;
}

.mx_photo_album .mx_buttons {
	grid-column: 1 / -1;
	margin: 0 0 10px;
}

/* Foto en subalbum */
.mx_photo_album_subalbum,
.mx_photo_album_image {
	min-width: 0;
	border: 1px solid #e5e5e5;
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.mx_photo_album_subalbum:hover,
.mx_photo_album_image:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.10);
}

/* Volledige kaart klikbaar */
.mx_photo_album_subalbum a,
.mx_photo_album_image a {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

/* Afbeelding */
.mx_photo_album_subalbum img,
.mx_photo_album_image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

/* Titel */
.mx_photo_album_subalbum span,
.mx_photo_album_image span {
	display: block;
	width: 100%;
	max-width: none !important;
	padding: 12px 14px;
	box-sizing: border-box;
	font-size: 15px;
	line-height: 1.35;
	text-align: center;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Tablet */
@media (max-width: 1024px) {
	.mx_photo_album {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 16px;
	}
}

/* Kleine tablet */
@media (max-width: 768px) {
	.mx_photo_album {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 14px;
	}
}

/* Mobiel */
@media (max-width: 480px) {
	.mx_photo_album {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.mx_photo_album_subalbum span,
	.mx_photo_album_image span {
		padding: 9px 8px;
		font-size: 14px;
	}
}