.zs-gs-widget {
	--zs-gs-gap: 20px;
	--zs-gs-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
	--zs-gs-card-padding: 14px;
	width: 100%;
	box-sizing: border-box;
}

.zs-gs-widget *,
.zs-gs-widget *::before,
.zs-gs-widget *::after {
	box-sizing: border-box;
}

.zs-gs-carousel {
	position: relative;
	padding: 20px 0;
}

.zs-gs-track {
	display: flex !important;
	/* stretch, not flex-start, so every card is as tall as the tallest
	   one regardless of how many lines its caption runs to. Forced,
	   because themes/Elementor commonly reset align-items on rows. */
	align-items: stretch !important;
	flex-wrap: nowrap !important;
	gap: var(--zs-gs-gap, 20px) !important;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	/* Vertical/horizontal breathing room so the slide shadows are not
	   clipped by the track's own overflow. */
	padding: 8px 12px 24px !important;
	/* Keep that side inset visible at snap positions, so the first/last
	   card's shadow is not flush against the clipped edge. */
	scroll-padding-inline: 12px;
	margin: 0 !important;
	scrollbar-width: none;
}

.zs-gs-track::-webkit-scrollbar {
	display: none;
}

/*
 * Desktop: 3 slides per view.
 *
 * Deliberately verbose selector (widget > carousel > track > slide) plus
 * !important on every layout property: this markup renders inside a theme
 * /Elementor section whose own grid and column rules otherwise reset the
 * padding and align-self of any direct child. The custom properties carry
 * literal fallbacks for the same reason -- if a global stylesheet ever
 * wipes the custom property, the card keeps its padding and shadow.
 */
.zs-gs-widget .zs-gs-carousel .zs-gs-track > .zs-gs-slide {
	scroll-snap-align: start !important;
	flex: 0 0 calc((100% - (var(--zs-gs-gap, 20px) * 2)) / 3) !important;
	align-self: stretch !important;
	height: auto !important;
	min-height: 0 !important;
	max-height: none !important;
	text-align: center !important;
	margin: 0 !important;
	padding: var(--zs-gs-card-padding, 14px) !important;
	background-color: #fff !important;
	box-shadow: var(--zs-gs-shadow, 0 2px 10px rgba(0, 0, 0, 0.12)) !important;
}

/*
 * Square image box via the padding-top percentage technique rather than
 * the `aspect-ratio` property -- some theme/global stylesheets reset or
 * override `aspect-ratio` on nested elements, which silently breaks it
 * and leaves a content-driven (non-square, non-full-height) box with
 * dead space below the image. Padding-top percentage is not something
 * themes typically touch, so it holds regardless of what else is
 * loaded on the page.
 */
.zs-gs-widget .zs-gs-slide-image {
	position: relative !important;
	width: 100% !important;
	height: 0 !important;
	padding-top: 100% !important;
	overflow: hidden !important;
	margin: 0 !important;
}

.zs-gs-widget .zs-gs-slide-image img {
	display: block !important;
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	object-fit: cover !important;
}

.zs-gs-widget .zs-gs-slide p.zs-gs-slide-caption {
	display: block !important;
	width: auto !important;
	margin: 0 !important;
	padding: 12px 0 0 !important;
	font-size: 15px !important;
	line-height: 1.4 !important;
	color: #222 !important;
}

/* --------------------------------------------------------------------
   Prev/Next arrow buttons -- overlaid on top of the track (not beside
   it), isolated from theme/Elementor styling.
   -------------------------------------------------------------------- */
.zs-gs-widget .zs-gs-carousel button.zs-gs-nav,
.zs-gs-widget .zs-gs-carousel button.zs-gs-nav:link,
.zs-gs-widget .zs-gs-carousel button.zs-gs-nav:visited {
	all: unset !important;
	box-sizing: border-box !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	position: absolute !important;
	top: 50% !important;
	transform: translateY(-50%) !important;
	z-index: 2 !important;
	width: 40px !important;
	height: 40px !important;
	min-width: 40px !important;
	min-height: 40px !important;
	margin: 0 !important;
	padding: 0 !important;
	background-color: rgba(255, 255, 255, 0.9) !important;
	background-image: none !important;
	border: 1px solid #ddd !important;
	border-radius: 50% !important;
	outline: none !important;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25) !important;
	text-shadow: none !important;
	text-decoration: none !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	font-family: inherit !important;
	font-size: 14px !important;
	font-weight: 400 !important;
	line-height: 1 !important;
	color: #333 !important;
	cursor: pointer !important;
	-webkit-appearance: none !important;
	appearance: none !important;
}

.zs-gs-widget .zs-gs-carousel button.zs-gs-prev {
	left: 12px !important;
}

.zs-gs-widget .zs-gs-carousel button.zs-gs-next {
	right: 12px !important;
}

.zs-gs-widget .zs-gs-carousel button.zs-gs-nav::before,
.zs-gs-widget .zs-gs-carousel button.zs-gs-nav::after {
	content: none !important;
}

.zs-gs-widget .zs-gs-carousel button.zs-gs-nav:hover,
.zs-gs-widget .zs-gs-carousel button.zs-gs-nav:focus,
.zs-gs-widget .zs-gs-carousel button.zs-gs-nav:active {
	background-color: #fff !important;
	border-color: #ccc !important;
	color: #333 !important;
}

/* Tablet: 2 slides per view */
@media (max-width: 1024px) {
	.zs-gs-widget .zs-gs-carousel .zs-gs-track > .zs-gs-slide {
		flex-basis: calc(50% - (var(--zs-gs-gap, 20px) / 2)) !important;
	}
}

/* Mobile: 1 slide per view */
@media (max-width: 600px) {
	.zs-gs-widget .zs-gs-carousel .zs-gs-track > .zs-gs-slide {
		flex-basis: 100% !important;
	}

	.zs-gs-widget .zs-gs-carousel button.zs-gs-nav {
		width: 32px !important;
		height: 32px !important;
		min-width: 32px !important;
		min-height: 32px !important;
	}
}
