/**
 * Gallery Listing — Style 4: Polaroid Cards
 *
 * Each image sits in a white card with a framed photo and a centred caption below,
 * lifting gently on hover. Warm, tactile and friendly.
 *
 * @package captain-widgets-kit
 * @since   1.5.0
 */

.captwiki-gallery.captwiki-style-4 .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-4 .captwiki-gallery__item {
	padding: 12px 12px 6px;
	background: #ffffff;
	border-radius: 14px;
	box-shadow: 0 14px 30px -18px rgba( 17, 24, 39, 0.4 );
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.captwiki-gallery.captwiki-style-4 .captwiki-gallery__item:hover {
	transform: translateY( -6px );
	box-shadow: 0 26px 46px -20px rgba( 17, 24, 39, 0.5 );
}

.captwiki-gallery.captwiki-style-4 .captwiki-gallery__media {
	position: relative;
	padding-bottom: var( --captwiki-gallery-ratio );
	border-radius: 8px;
}

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

.captwiki-gallery.captwiki-style-4 .captwiki-gallery__caption {
	align-items: center;
	text-align: center;
	padding: 14px 6px 10px;
}

.captwiki-gallery.captwiki-style-4 .captwiki-gallery__desc {
	color: #9ca3af;
}
