/* Folder gallery block (front end + editor preview) */
.adw-mle-gallery {
	display: grid;
	grid-template-columns: repeat( var( --adw-mle-gallery-columns, 3 ), 1fr );
	gap: 16px;
	margin: 0 0 1.5em;
}

.adw-mle-gallery .adw-mle-gallery-item {
	margin: 0;
	min-width: 0;
}

.adw-mle-gallery .adw-mle-gallery-item img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 4px;
}

.adw-mle-gallery .adw-mle-gallery-item figcaption {
	margin-top: 6px;
	font-size: 0.85em;
	line-height: 1.4;
	opacity: 0.8;
}

/* One column on phones regardless of the configured count. */
@media ( max-width: 600px ) {
	.adw-mle-gallery {
		grid-template-columns: 1fr;
	}
}
