/**
 * Gallery Listing — Style 1: Uniform Grid
 *
 * An even grid of equal-ratio tiles. Clean, predictable and the all-purpose
 * default. Column count and image ratio are control-driven.
 *
 * @package captain-widgets-kit
 * @since   1.5.0
 */

.captwiki-gallery.captwiki-style-1 .captwiki-gallery__grid {
	display: grid;
	grid-template-columns: repeat( var( --captwiki-gallery-cols ), minmax( 0, 1fr ) );
	gap: var( --captwiki-gallery-gap );
}

.captwiki-gallery.captwiki-style-1 .captwiki-gallery__media {
	position: relative;
	padding-bottom: var( --captwiki-gallery-ratio );
}

.captwiki-gallery.captwiki-style-1 .captwiki-gallery__img {
	position: absolute;
	top: 0;
	left: 0;
}
