/* =====================================
   GP Gallery — layout fix
   Bug: with 1-2 photos the grid stretched
   them to odd widths; only looked right
   with 3-4. Fix: fixed-width cards that
   wrap and stay left-aligned regardless
   of count.
   NOTE: if the site's base .gp-gallery-grid
   rule lives in WP Customizer > Additional
   CSS (as the citizen-search styles do),
   this file may need !important or to be
   pasted there too, since Customizer CSS
   often loads after theme stylesheets.
===================================== */
.gp-gallery-grid {
	display: flex !important;
	flex-wrap: wrap !important;
	gap: 20px !important;
	justify-content: flex-start !important;
}

.gp-gallery-grid .gp-card {
	flex: 0 1 300px !important;
	max-width: 300px !important;
}

@media (max-width: 480px) {
	.gp-gallery-grid .gp-card {
		flex-basis: 100% !important;
		max-width: 100% !important;
	}
}
