/* Fill the parent container even when it is a centred flex column (Elementor containers on mobile).
   :where() keeps this at zero specificity so any width/alignment set in Elementor still wins. */
:where(.elementor-widget-ssw_showcase_slider) { align-self: stretch; min-width: 0; }

.ssw-wrap {
	--ssw-w: 80%;
	--ssw-gap: 30px;
	--ssw-ratio: 1.96;
	--ssw-speed: 700ms;
	--ssw-inactive: #ffffff;
	--ssw-inactive-opacity: .65;
	--ssw-shade: .35;
	--ssw-dot: rgba(255, 255, 255, .35);
	--ssw-dot-active: #ffffff;
	--ssw-dot-h: 2px;

	position: relative;
	width: 100%;
	overflow: hidden;
	font-family: "Sora", "Helvetica Neue", Arial, sans-serif;
	box-sizing: border-box;
	-webkit-user-select: none;
	user-select: none;
}
.ssw-wrap *, .ssw-wrap *::before, .ssw-wrap *::after { box-sizing: border-box; }

/* "Stretch to full browser width": break out of a boxed container so the previews can show.
   JS refines these values to the exact window width / offset; the CSS below is the no-JS fallback. */
.ssw-wrap.ssw-fullbleed {
	width: var(--ssw-bleed-w, 100vw);
	max-width: none;
	margin-left: var(--ssw-bleed-l, calc(50% - 50vw));
}

/* Stage: height is derived from the active slide's width and the chosen ratio */
.ssw-stage {
	position: relative;
	width: 100%;
	height: 0;
	padding-bottom: calc(var(--ssw-w) / var(--ssw-ratio));
	touch-action: pan-y;
	cursor: grab;
}
.ssw-stage.is-dragging { cursor: grabbing; }

.ssw-slide {
	--o: 0;
	position: absolute;
	top: 0;
	bottom: 0;
	left: calc((100% - var(--ssw-w)) / 2);
	width: var(--ssw-w);
	overflow: hidden;
	transform: translate3d(calc(var(--o) * (100% + var(--ssw-gap))), 0, 0);
	transition: transform var(--ssw-speed) cubic-bezier(.65, .05, .25, 1);
	will-change: transform;
}
.ssw-slide.ssw-no-anim { transition: none; }
.ssw-slide.is-active { z-index: 2; }

/* Slide images are CSS backgrounds (not <img> tags) so that theme / optimisation-plugin rules such as
   `img { height: auto !important }` can never stop cover / contain from filling the slide. */
.ssw-wrap .ssw-img {
	position: absolute;
	top: 0; right: 0; bottom: 0; left: 0;
	background-repeat: no-repeat;
	background-position: center center;
	background-size: cover;
	pointer-events: none;
}

/* Faded look for the neighbouring slides */
.ssw-slide::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--ssw-inactive);
	opacity: var(--ssw-inactive-opacity);
	transition: opacity var(--ssw-speed) ease;
	pointer-events: none;
	z-index: 3;
}
.ssw-slide.is-active::after { opacity: 0; }
.ssw-slide:not(.is-active) { cursor: pointer; }

/* Bottom shade so the text is always readable */
.ssw-shade {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 55%;
	background: linear-gradient(to top, rgba(0, 0, 0, var(--ssw-shade)), rgba(0, 0, 0, 0));
	pointer-events: none;
	z-index: 1;
}

.ssw-content {
	position: absolute;
	left: 50%;
	bottom: 110px;
	width: calc(100% - 48px);
	max-width: 720px;
	transform: translateX(-50%);
	text-align: center;
	z-index: 2;
	opacity: 0;
	transition: opacity .45s ease;
}
.ssw-slide.is-active .ssw-content {
	opacity: 1;
	transition-delay: .25s;
}

.ssw-title {
	margin: 0 0 14px;
	padding: 0;
	font-size: 24px;
	font-weight: 300;
	line-height: 1.2;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: #fff;
}
.ssw-desc {
	margin: 0;
	padding: 0;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.5;
	color: #fff;
}

/* Arrows sit on an overlay that is exactly as wide as the active slide */
.ssw-nav {
	position: absolute;
	top: 0;
	left: calc((100% - var(--ssw-w)) / 2);
	width: var(--ssw-w);
	height: calc(100% - 0px);
	pointer-events: none;
	z-index: 5;
}
.ssw-wrap .ssw-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 64px;
	margin: 0;
	padding: 0;
	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	color: #fff;
	cursor: pointer;
	pointer-events: auto;
	opacity: .9;
	transition: opacity .2s ease, transform .2s ease;
}
.ssw-wrap .ssw-arrow:hover,
.ssw-wrap .ssw-arrow:focus { background: none; color: #fff; opacity: 1; }
.ssw-wrap .ssw-arrow:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.ssw-prev { left: 200px; }
.ssw-next { right: 200px; }
.ssw-prev:hover { transform: translateY(-50%) translateX(-3px); }
.ssw-next:hover { transform: translateY(-50%) translateX(3px); }
.ssw-arrow svg { width: 24px; height: 24px; display: block; }

/* Segmented progress bars */
.ssw-dots {
	position: absolute;
	left: 0; right: 0;
	bottom: 20px;
	display: flex;
	justify-content: center;
	gap: 10px;
	z-index: 5;
	pointer-events: none;
}
.ssw-wrap .ssw-dot {
	position: relative;
	width: 70px;
	height: 16px;
	margin: 0;
	padding: 0;
	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	cursor: pointer;
	pointer-events: auto;
}
.ssw-wrap .ssw-dot::before {
	content: "";
	position: absolute;
	left: 0; right: 0;
	top: 50%;
	height: var(--ssw-dot-h);
	transform: translateY(-50%);
	background: var(--ssw-dot);
	transition: background-color .3s ease;
}
.ssw-wrap .ssw-dot:hover,
.ssw-wrap .ssw-dot:focus { background: none; }
.ssw-wrap .ssw-dot.is-active::before { background: var(--ssw-dot-active); }
.ssw-wrap .ssw-dot:focus-visible { outline: 2px solid var(--ssw-dot-active); outline-offset: 2px; }

@media (max-width: 767px) {
	.ssw-wrap { --ssw-ratio: 1.2; --ssw-w: 90%; --ssw-gap: 16px; }
	.ssw-content { bottom: 56px; }
	.ssw-prev { left: 6px; }
	.ssw-next { right: 6px; }
	.ssw-title { font-size: 17px; margin-bottom: 8px; }
	.ssw-desc { font-size: 13px; }
	.ssw-wrap .ssw-dot { width: 40px; }
}

@media (prefers-reduced-motion: reduce) {
	.ssw-slide, .ssw-slide::after, .ssw-content { transition-duration: .01ms; }
}
