.wss-slider {
	--wss-ratio: 16 / 9;
	--wss-speed: 600ms;
	--wss-bg: #111;
	--wss-control-bg: rgba(0, 0, 0, 0.45);
	--wss-control-bg-hover: rgba(0, 0, 0, 0.7);
	--wss-control-color: #fff;
	--wss-dot: rgba(255, 255, 255, 0.5);
	--wss-dot-active: #fff;

	position: relative;
	width: 100%;
	overflow: hidden;
	-webkit-user-select: none;
	user-select: none;
}

.wss-stage {
	position: relative;
	overflow: hidden;
	background: var(--wss-bg);
}

.wss-viewport {
	position: relative;
	overflow: hidden;
	touch-action: pan-y;
	aspect-ratio: var(--wss-ratio);
}

.wss-slider--auto .wss-viewport {
	aspect-ratio: auto;
}

/* Phones: optional taller ratio (set as --wss-ratio-mobile). */
@media (max-width: 767px) {
	.wss-viewport {
		aspect-ratio: var(--wss-ratio-mobile, var(--wss-ratio));
	}
}

.wss-slider--lightbox .wss-viewport {
	cursor: zoom-in;
}

.wss-track {
	height: 100%;
}

/* Fixed ratio: pin the track to the viewport so tall photos can't stretch it. */
.wss-slider:not(.wss-slider--auto) .wss-track {
	position: absolute;
	inset: 0;
	height: auto;
}

.wss-slide {
	position: relative;
	margin: 0;
	height: 100%;
}

.wss-slide .wss-image {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	-webkit-user-drag: none;
}

.wss-slider--contain .wss-slide .wss-image {
	object-fit: contain;
}

.wss-slider--auto .wss-slide .wss-image {
	height: auto;
}

/* Slide: horizontal track moved by transform. */
.wss-slider--slide .wss-track {
	display: flex;
	transition: transform var(--wss-speed) cubic-bezier(0.25, 0.8, 0.25, 1);
	will-change: transform;
}

.wss-slider--slide .wss-slide {
	flex: 0 0 100%;
}

.wss-slider--slide.wss-slider--auto .wss-track {
	align-items: center;
}

.wss-slider--slide.is-dragging .wss-track {
	transition: none;
}

/* Fade: every slide stacked in the same grid cell. */
.wss-slider--fade .wss-track {
	display: grid;
}

.wss-slider--fade:not(.wss-slider--auto) .wss-track {
	grid-template: 100% / 100%;
}

.wss-slider--fade .wss-slide {
	grid-area: 1 / 1;
	min-width: 0;
	min-height: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity var(--wss-speed) ease, visibility 0s linear var(--wss-speed);
}

.wss-slider--fade .wss-slide.is-active {
	opacity: 1;
	visibility: visible;
	transition: opacity var(--wss-speed) ease, visibility 0s;
	z-index: 1;
}

.wss-slider--fade.wss-slider--auto .wss-slide {
	align-self: center;
}

/* Before JS runs: show only the first slide. */
.wss-slider:not(.is-ready) .wss-slide:not(:first-child) {
	visibility: hidden;
}

.wss-caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 2.5em 1.25em 2.75em;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
	color: #fff;
	font-size: 0.9375rem;
	line-height: 1.4;
	text-align: center;
}

.wss-arrow {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: -22px 0 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--wss-control-bg);
	color: var(--wss-control-color);
	cursor: pointer;
	transition: background 0.2s, opacity 0.2s;
}

.wss-arrow:hover,
.wss-arrow:focus-visible {
	background: var(--wss-control-bg-hover);
}

.wss-arrow:focus-visible,
.wss-dot:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.wss-arrow[disabled] {
	opacity: 0.3;
	cursor: default;
}

.wss-arrow svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.wss-arrow--prev {
	left: 12px;
}

.wss-arrow--next {
	right: 12px;
}

/* Arrows: white square flush with the edges, thin black chevron. */
.wss-slider--arrows-square .wss-arrow {
	width: 50px;
	height: 50px;
	margin-top: -25px;
	border-radius: 0;
	background: #fff;
	color: #000;
}

.wss-slider--arrows-square .wss-arrow:hover,
.wss-slider--arrows-square .wss-arrow:focus-visible {
	background: #fff;
}

.wss-slider--arrows-square .wss-arrow:focus-visible {
	outline-color: #000;
	outline-offset: -4px;
}

.wss-slider--arrows-square .wss-arrow svg {
	width: 10px;
	height: 19px;
	stroke-width: 1.6;
}

.wss-slider--arrows-square .wss-arrow--prev {
	left: 0;
}

.wss-slider--arrows-square .wss-arrow--next {
	right: 0;
}

/* Full-screen button, top right. */
.wss-expand {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 4px;
	background: var(--wss-control-bg);
	color: var(--wss-control-color);
	cursor: pointer;
	transition: background 0.2s;
}

.wss-expand:hover,
.wss-expand:focus-visible {
	background: var(--wss-control-bg-hover);
}

.wss-slider--arrows-square .wss-expand {
	top: 0;
	right: 0;
	width: 40px;
	height: 40px;
	border-radius: 0;
	background: #fff;
	color: #000;
}

.wss-expand svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
}

.wss-expand:focus-visible {
	outline: 2px solid #fff;
	outline-offset: -4px;
}

.wss-slider--arrows-square .wss-expand:focus-visible {
	outline-color: #000;
}

.wss-dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 12px;
	z-index: 2;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px;
	padding: 0 12px;
}

.wss-dot {
	/* 24px hit area around a 10px dot. */
	position: relative;
	width: 24px;
	height: 24px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
}

.wss-dot::before {
	content: "";
	position: absolute;
	top: 7px;
	left: 7px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--wss-dot);
	transition: background 0.2s, transform 0.2s;
}

.wss-dot[aria-current="true"]::before {
	background: var(--wss-dot-active);
	transform: scale(1.2);
}

/* Thumbnails: small squares under the photo, scrollable when they don't fit.
   width 0 + min-width 100%: a long strip must not widen a flex/shrink-to-fit parent (e.g. an Elementor column with side margins). */
.wss-thumbnav {
	width: 0;
	min-width: 100%;
	display: flex;
	gap: 8px;
	margin-top: 8px;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-behavior: smooth;
	scrollbar-width: thin;
}

/* Touch screens scroll the strip by swiping: no scrollbar needed. */
@media (hover: none) {
	.wss-thumbnav {
		scrollbar-width: none;
	}

	.wss-thumbnav::-webkit-scrollbar {
		display: none;
	}
}

.wss-thumbnav__item {
	flex: 0 0 64px;
	width: 64px;
	height: 64px;
	margin: 0;
	padding: 0;
	border: 0;
	background: #eee;
	cursor: pointer;
	opacity: 0.5;
	transition: opacity 0.2s;
}

.wss-thumbnav__item:hover,
.wss-thumbnav__item[aria-current="true"] {
	opacity: 1;
}

.wss-thumbnav__item img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	-webkit-user-drag: none;
}

.wss-thumbnav__item[aria-current="true"] img {
	/* Inset border drawn over the image. */
	outline: 2px solid #000;
	outline-offset: -2px;
}

.wss-thumbnav__item:focus-visible {
	outline: 2px solid #000;
	outline-offset: 2px;
}

@media (max-width: 600px) {
	.wss-thumbnav {
		gap: 6px;
		margin-top: 6px;
	}

	.wss-thumbnav__item {
		flex-basis: 48px;
		width: 48px;
		height: 48px;
	}

	.wss-arrow {
		width: 36px;
		height: 36px;
		margin-top: -18px;
	}

	.wss-arrow--prev {
		left: 8px;
	}

	.wss-arrow--next {
		right: 8px;
	}

	.wss-slider--arrows-square .wss-arrow {
		width: 40px;
		height: 40px;
		margin-top: -20px;
	}
}

/* Before/after comparison. */
.wss-compare {
	--wss-ratio: 16 / 9;
	--wss-pos: 50%;

	position: relative;
	width: 100%;
	margin: 0;
	overflow: hidden;
	aspect-ratio: var(--wss-ratio);
	background: #111;
	cursor: ew-resize;
	touch-action: pan-y;
	-webkit-user-select: none;
	user-select: none;
}

.wss-compare__layer {
	position: absolute;
	inset: 0;
}

.wss-compare__layer--before {
	clip-path: inset(0 calc(100% - var(--wss-pos)) 0 0);
}

.wss-compare .wss-compare__image {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	pointer-events: none;
	-webkit-user-drag: none;
}

.wss-compare__label {
	position: absolute;
	bottom: 15px;
	padding: 6px 14px;
	border-radius: 4px;
	background: #fff;
	box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.1);
	color: #000;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.5;
	white-space: nowrap;
}

.wss-compare__label--before {
	left: 15px;
}

.wss-compare__label--after {
	right: 15px;
}

.wss-compare__line {
	position: absolute;
	top: 0;
	bottom: 0;
	left: var(--wss-pos);
	width: 3px;
	margin-left: -1.5px;
	background: rgba(255, 255, 255, 0.75);
	pointer-events: none;
}

.wss-compare__handle {
	position: absolute;
	top: 50%;
	left: var(--wss-pos);
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 70px;
	height: 70px;
	margin: -35px 0 0 -35px;
	border-radius: 27px;
	background: #fff;
	box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.1);
	color: #000;
	cursor: ew-resize;
}

.wss-compare__handle:focus-visible {
	outline: 2px solid #000;
	outline-offset: 4px;
}

.wss-compare__handle svg {
	width: 8px;
	height: 14px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

@media (max-width: 600px) {
	.wss-compare__handle {
		gap: 8px;
		width: 48px;
		height: 48px;
		margin: -24px 0 0 -24px;
		border-radius: 18px;
	}

	.wss-compare__label {
		bottom: 10px;
		padding: 4px 10px;
		font-size: 12px;
	}

	.wss-compare__label--before {
		left: 10px;
	}

	.wss-compare__label--after {
		right: 10px;
	}
}

/* Photo credit, small in the corner; note line under the slider. */
.wss-credit {
	position: absolute;
	right: 12px;
	bottom: 10px;
	z-index: 2;
	color: rgba(255, 255, 255, 0.85);
	font-size: 11px;
	line-height: 1.3;
	letter-spacing: 0.04em;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
	white-space: nowrap;
	pointer-events: none;
}

/* Before/after: bottom corners hold the labels, so sign at the top. */
.wss-compare .wss-credit {
	top: 10px;
	bottom: auto;
}

.wss-note {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 8px 0 0;
	color: #777;
	font-size: 13px;
	line-height: 1.4;
}

.wss-note svg {
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linejoin: round;
}

/*
 * Big slider (hero): full-width photos, white text box bottom-left.
 * Sequence on each slide: photo cross-fades, box drops in, label wipes in,
 * title words rise one by one, then the text.
 */
.wss-hero {
	--wss-hero-height: min(745px, 72vw);
	--wss-hero-kicker: #ac8c66;
	--wss-hero-title-font: Teko, sans-serif;
	--wss-hero-ease: cubic-bezier(0.65, 0, 0.35, 1);

	position: relative;
	overflow: hidden;
	background: #111;
	touch-action: pan-y;
}

/* Break out of the page column to the full window width (the theme hides horizontal overflow). */
.wss-hero--full {
	width: 100vw;
	margin-left: calc(50% - 50vw);
}

.wss-hero__slides {
	display: grid;
	height: var(--wss-hero-height);
}

.wss-hero__slide {
	position: relative;
	grid-area: 1 / 1;
	min-width: 0;
	min-height: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 1s ease, visibility 0s linear 1s;
}

.wss-hero__slide.is-active {
	z-index: 1;
	opacity: 1;
	visibility: visible;
	transition: opacity 1s ease, visibility 0s;
}

.wss-hero__media {
	position: absolute;
	inset: 0;
}

.wss-hero .wss-hero__image {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	-webkit-user-drag: none;
}

.wss-hero__box {
	position: absolute;
	left: 0;
	bottom: 0;
	box-sizing: border-box;
	width: 436px;
	min-height: 266px;
	padding: 46px 50px 76px;
	background: #fff;
	opacity: 0;
	transform: translateY(-50px);
}

.wss-hero__kicker {
	margin: 0 0 6px;
	color: var(--wss-hero-kicker);
	font-size: 12px;
	font-weight: 600;
	line-height: 25px;
	letter-spacing: 2px;
	text-transform: uppercase;
	clip-path: inset(0 100% 0 0);
}

.wss-hero__title {
	margin: 0 0 17px;
	color: #000;
	font-family: var(--wss-hero-title-font);
	font-size: 44px;
	font-weight: 400;
	line-height: 1;
	letter-spacing: 0;
	text-transform: none;
}

.wss-hero__title a {
	color: inherit;
	text-decoration: none;
}

.wss-hero__word {
	display: inline-block;
	opacity: 0;
	transform: translateY(35px);
}

.wss-hero__text {
	max-width: 316px;
	margin: 0;
	color: rgba(0, 0, 0, 0.65);
	font-size: 15px;
	line-height: 22px;
	opacity: 0;
	transform: translateY(35px);
}

/* Entrance, only while the slide is active (leaving resets instantly, ready for next time).
   Gated by .is-ready, added by the script one frame after load, so the first slide animates too. */
.wss-hero.is-ready .is-active .wss-hero__box {
	opacity: 1;
	transform: none;
	transition: opacity 1s var(--wss-hero-ease) 0.44s, transform 1s var(--wss-hero-ease) 0.44s;
}

.wss-hero.is-ready .is-active .wss-hero__kicker {
	clip-path: inset(0 0 0 0);
	transition: clip-path 0.4s var(--wss-hero-ease) 1.5s;
}

.wss-hero.is-ready .is-active .wss-hero__word {
	opacity: 1;
	transform: none;
	transition: opacity 0.35s var(--wss-hero-ease), transform 0.35s var(--wss-hero-ease);
	transition-delay: calc(1.79s + var(--wss-word, 0) * 0.05s);
}

.wss-hero.is-ready .is-active .wss-hero__text {
	opacity: 1;
	transform: none;
	transition: opacity 0.45s var(--wss-hero-ease) 2.07s, transform 0.45s var(--wss-hero-ease) 2.07s;
}

.wss-hero__nav {
	position: absolute;
	left: 40px;
	bottom: 10px;
	z-index: 2;
	display: flex;
}

.wss-hero__arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #0c0c0c;
	cursor: pointer;
}

.wss-hero__arrow svg {
	width: 9px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: transform 0.2s;
}

.wss-hero__arrow--prev:hover svg {
	transform: translateX(-3px);
}

.wss-hero__arrow--next:hover svg {
	transform: translateX(3px);
}

.wss-hero__arrow:focus-visible {
	outline: 2px solid #0c0c0c;
	outline-offset: -2px;
}

/* Tablets: slightly smaller box. */
@media (max-width: 1024px) {
	.wss-hero__box {
		width: 360px;
		min-height: 219px;
		padding: 32px 41px 66px;
	}

	.wss-hero__title {
		font-size: 36px;
	}

	.wss-hero__text {
		max-width: 260px;
		font-size: 14px;
		line-height: 21px;
	}

	.wss-hero__nav {
		left: 31px;
	}
}

/* Phones: photo on top, texts on white underneath. */
@media (max-width: 767px) {
	.wss-hero__slides {
		height: auto;
	}

	.wss-hero__slide {
		display: flex;
		flex-direction: column;
		background: #fff;
	}

	.wss-hero__media {
		position: relative;
		inset: auto;
		aspect-ratio: 20 / 19;
	}

	.wss-hero__box {
		position: relative;
		flex: 1;
		width: auto;
		min-height: 0;
		padding: 22px 20px 64px;
		transform: translateY(-20px);
	}

	.wss-hero__kicker {
		margin-bottom: 8px;
		font-size: 11px;
		line-height: 20px;
	}

	.wss-hero__title {
		font-size: 31px;
	}

	.wss-hero__word {
		transform: translateY(12px);
	}

	.wss-hero__text {
		max-width: none;
		font-size: 14px;
		line-height: 21px;
		transform: translateY(12px);
	}

	.wss-hero__nav {
		left: 10px;
		bottom: 12px;
	}

	.wss-hero .wss-credit {
		top: 10px;
		bottom: auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wss-hero__slide,
	.wss-hero__slide.is-active,
	.wss-hero.is-ready .is-active .wss-hero__box,
	.wss-hero.is-ready .is-active .wss-hero__kicker,
	.wss-hero.is-ready .is-active .wss-hero__word,
	.wss-hero.is-ready .is-active .wss-hero__text {
		transition: none;
	}
}

/* Full-screen viewer. */
html.wss-lightbox-open,
html.wss-lightbox-open body {
	overflow: hidden;
}

.wss-lightbox {
	position: fixed;
	inset: 0;
	z-index: 999999;
	overflow: hidden;
	background: rgba(0, 0, 0, var(--wss-lightbox-fade, 1));
	color: #fff;
	touch-action: none;
	-webkit-user-select: none;
	user-select: none;
}

.wss-lightbox[hidden] {
	display: none;
}

.wss-lightbox__track {
	display: flex;
	height: 100%;
	transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
	will-change: transform;
}

.wss-lightbox.is-dragging .wss-lightbox__track {
	transition: none;
}

.wss-lightbox__slide {
	display: flex;
	flex: 0 0 100%;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	height: 100%;
	margin: 0;
	padding: 56px 72px;
}

.wss-lightbox .wss-lightbox__image {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	-webkit-user-drag: none;
}

.wss-lightbox__bar {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 56px;
	padding-left: 20px;
	font-size: 14px;
	letter-spacing: 0.08em;
	pointer-events: none;
}

.wss-lightbox__close {
	width: 56px;
	height: 56px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: #fff;
	cursor: pointer;
	pointer-events: auto;
}

.wss-lightbox__close svg {
	width: 24px;
	height: 24px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
}

.wss-lightbox__arrow {
	position: absolute;
	top: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	margin: -25px 0 0;
	padding: 0;
	border: 0;
	background: #fff;
	color: #000;
	cursor: pointer;
	transition: opacity 0.2s;
}

.wss-lightbox__arrow[hidden] {
	display: none;
}

.wss-lightbox__arrow[disabled] {
	opacity: 0.25;
	cursor: default;
}

.wss-lightbox__arrow svg {
	width: 10px;
	height: 19px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
}

.wss-lightbox__arrow--prev {
	left: 0;
}

.wss-lightbox__arrow--next {
	right: 0;
}

.wss-lightbox__close:focus-visible,
.wss-lightbox__arrow:focus-visible {
	outline: 2px solid #fff;
	outline-offset: -4px;
}

.wss-lightbox__arrow:focus-visible {
	outline-color: #000;
}

.wss-lightbox .wss-lightbox__credit {
	right: 16px;
	bottom: 14px;
}

/* Phones and tablets: photo edge to edge, swipe instead of arrows. */
@media (max-width: 767px), (hover: none) {
	.wss-lightbox__slide {
		padding: 56px 0;
	}

	.wss-lightbox__arrow {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wss-slider {
		--wss-speed: 0ms;
	}

	.wss-lightbox__track {
		transition: none;
	}
}
