WordPress Gallery CSS

Some themes like Hello Elementor are missing some base CSS for the WordPress [gallery] shortcode. Use the following CSS to add Gallery support to themes that have no gallery css built in.

/** EPL Gallery CSS **/
.epl-gallery-entry .gallery {
	display: grid;
	gap: 0.5em;
	grid-template-columns: 1fr 1fr;
}
.epl-gallery-entry .gallery-item {
	margin: 0;
	padding: 0;
}
.epl-gallery-entry .gallery-item img,
.epl-gallery-entry .gallery-item a {
	display: block
}
.epl-gallery-entry .gallery-item img {
	width:100%;
	object-fit: cover;
}

@media screen and ( min-width: 500px ) {
	.epl-gallery-entry .gallery-columns-1 {
		grid-template-columns: 1fr;
	}
	.epl-gallery-entry .gallery-columns-2 {
		grid-template-columns: 1fr 1fr;
	}
	.epl-gallery-entry .gallery-columns-3 {
		grid-template-columns: 1fr 1fr 1fr;
	}
	.epl-gallery-entry .gallery-columns-4 {
		grid-template-columns: 1fr 1fr 1fr 1fr;
	}
	.epl-gallery-entry .gallery-columns-5 {
		grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
	}
}

Add to the WordPress > Customizer > Additional CSS.