/*
 * Generic image gallery carousels (Vollsun WooCommerce Suite).
 * Reuses the Partdo theme's klbth-slider / klbth-module styles and
 * CSS variables; only the gallery cards themselves are styled here.
 */

.vollsun-gallery {
	margin: 1.875rem 0;
}

.vollsun-gallery-card {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	    -ms-flex-direction: column;
	        flex-direction: column;
	height: 100%;
	padding: 1.25rem;
	background-color: #fff;
	border: 1px solid var(--color-info-dark);
	border-radius: 0.5rem;
	text-align: center;
}

/*
 * Equal-height slides: stretch the slick track so every card in a row
 * shares the same height regardless of title/description length.
 */
.vollsun-gallery-slider .slick-track {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
}

.vollsun-gallery-slider .slick-slide {
	height: auto;
}

.vollsun-gallery-slider .slick-slide > .slider-item {
	height: 100%;
}

/*
 * Fixed 3:4 image box: the ratio stays constant at any container width,
 * the original image is letterboxed inside it. Clicking opens the
 * original image in a Magnific Popup modal.
 */
.vollsun-gallery-image {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	    -ms-flex-align: center;
	        align-items: center;
	-webkit-box-pack: center;
	    -ms-flex-pack: center;
	        justify-content: center;
	width: 100%;
	aspect-ratio: 3 / 4;
	margin-bottom: 0.875rem;
	overflow: hidden;
	cursor: zoom-in;
}

.vollsun-gallery-image img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	-o-object-fit: contain;
	   object-fit: contain;
}

.vollsun-gallery-title {
	margin-bottom: 0.5rem;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.4;
}

.vollsun-gallery-description {
	margin-bottom: 0;
	font-size: 0.8125rem;
	line-height: 1.5;
	color: var(--color-body);
}

@media screen and (max-width: 575.98px) {
	.vollsun-gallery-card {
		padding: 0.875rem;
	}

	.vollsun-gallery-image {
		margin-bottom: 0.625rem;
	}

	.vollsun-gallery-title {
		font-size: 0.875rem;
	}

	.vollsun-gallery-description {
		font-size: 0.75rem;
	}
}

/*
 * Gallery lightbox: fullscreen white background with the close
 * button pinned to the top-right corner.
 */
.vollsun-gallery-lightbox.mfp-bg {
	background: #fff;
	opacity: 1;
}

.vollsun-gallery-lightbox .mfp-image-holder .mfp-close {
	position: fixed !important;
	top: 12px !important;
	right: 16px !important;
	width: 44px !important;
	height: 44px !important;
	line-height: 1 !important;
	padding: 0 !important;
	color: transparent !important;
	font-size: 0 !important;
	text-align: center !important;
	background-color: rgba(0, 0, 0, 0.06) !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333333' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: center !important;
	background-size: 18px 18px !important;
	border-radius: 50% !important;
	opacity: 1 !important;
}

.vollsun-gallery-lightbox .mfp-image-holder .mfp-close::before {
	content: none !important;
}

.vollsun-gallery-lightbox .mfp-image-holder .mfp-close:hover,
.vollsun-gallery-lightbox .mfp-image-holder .mfp-close:focus {
	background-color: rgba(0, 0, 0, 0.12) !important;
}

.vollsun-gallery-lightbox .mfp-image-holder .mfp-figure::after {
	box-shadow: none;
}

.vollsun-gallery-lightbox .mfp-image-holder .mfp-counter {
	color: #9a9a9a;
}