/**
 * Gallery Listing — Style 2: Masonry
 *
 * A Pinterest-style masonry built with pure CSS columns, so every image keeps its
 * natural aspect ratio and the tiles pack tightly. Column count is control-driven.
 *
 * @package captain-widgets-kit
 * @since   1.5.0
 */

.captwiki-gallery.captwiki-style-2 .captwiki-gallery__grid {
	column-count: var( --captwiki-gallery-cols );
	column-gap: var( --captwiki-gallery-gap );
}

.captwiki-gallery.captwiki-style-2 .captwiki-gallery__item {
	display: inline-block;
	width: 100%;
	margin-bottom: var( --captwiki-gallery-gap );
	break-inside: avoid;
}

/* Natural height — no forced ratio. */
.captwiki-gallery.captwiki-style-2 .captwiki-gallery__img {
	height: auto;
}
