/*
 * [cvrt_field format="gallery"]: a mosaic in CSS columns.
 * Themes can set --cvrt-gallery-gap and --cvrt-gallery-radius on the
 * gallery or any ancestor.
 * Inside Elementor, `.elementor img` (0,1,1) and the widget `figure { margin: 0 }`
 * reset (0,5,1) beat a lone class: the image rules are scoped to
 * `.cvrt-gallery .cvrt-gallery-image` (0,2,0) and the vertical gap is
 * padding, which those resets never touch.
 */
.cvrt-gallery {
	column-count: 3;
	column-gap: var(--cvrt-gallery-gap, 11px);
}
.cvrt-gallery.cvrt-gallery-cols-1 {
	column-count: 1;
}
.cvrt-gallery.cvrt-gallery-cols-2 {
	column-count: 2;
}
.cvrt-gallery.cvrt-gallery-cols-4 {
	column-count: 4;
}
.cvrt-gallery.cvrt-gallery-cols-5 {
	column-count: 5;
}
.cvrt-gallery.cvrt-gallery-cols-6 {
	column-count: 6;
}
.cvrt-gallery-item {
	break-inside: avoid;
	margin: 0;
	padding-block-end: var(--cvrt-gallery-gap, 11px);
}
.cvrt-gallery .cvrt-gallery-image {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--cvrt-gallery-radius, 8px);
}
.cvrt-gallery-caption {
	margin-top: 0.35em;
	font-size: 0.875em;
}
@media (max-width: 1024px) {
	.cvrt-gallery:not(.cvrt-gallery-cols-1) {
		column-count: 2;
	}
}
@media (max-width: 480px) {
	.cvrt-gallery:not(.cvrt-gallery-cols-1) {
		column-count: 1;
	}
}
