/* Plain, functional grid for the [mpa_gallery] shortcode. Visual design/branding is a separate, later decision; this just needs to work and be responsive. */

.mpa-gallery-section {
	margin-bottom: 48px;
}

.mpa-gallery-section-header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 16px;
}

.mpa-gallery-section-header h2 {
	margin: 0;
}

.mpa-gallery-view-all {
	font-size: 14px;
	text-decoration: none;
	white-space: nowrap;
}

.mpa-gallery-grid {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 220px, 1fr ) );
	gap: 20px;
}

.mpa-gallery-card {
	display: block;
	text-decoration: none;
	color: inherit;
	border: 1px solid #e2e2e2;
	border-radius: 8px;
	overflow: hidden;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.mpa-gallery-card:hover {
	box-shadow: 0 6px 16px rgba( 0, 0, 0, 0.1 );
	transform: translateY( -2px );
}

.mpa-gallery-card-thumb img {
	width: 100%;
	height: 160px;
	object-fit: cover;
	display: block;
}

.mpa-gallery-card-body {
	padding: 12px 14px;
}

.mpa-gallery-card-body h3 {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
}
