/* Hero Slideshow (posts & products) — full-height Swiper slideshow with a side rail,
   bottom counter, stage / cover media and staggered caption entrances.
   All tunables are custom properties on .msw-hero (set by the Style tab). */
.msw-hero {
	--ms-hero-h: 100svh;
	--ms-hero-offset: 0px;
	--ms-hero-min: 560px;
	--ms-hero-bg: #0B0C0B;
	--ms-hero-text: #FFFFFF;
	--ms-hero-muted: rgba(255, 255, 255, 0.62);
	--ms-hero-accent: #D8C4A0;
	--ms-hero-ov-from: rgba(0, 0, 0, 0.72);
	--ms-hero-ov-to: rgba(0, 0, 0, 0.12);
	--ms-hero-ov-angle: 90deg;
	--ms-hero-glow: rgba(216, 196, 160, 0.26);
	--ms-hero-ring: rgba(255, 255, 255, 0.14);
	--ms-hero-stage-w: 62%;
	--ms-hero-stage-x: 100%;
	--ms-hero-stage-y: 60%;
	--ms-hero-stage-fit: contain;
	--ms-hero-stage-shadow: 60px;
	--ms-hero-focus: center center;
	--ms-hero-zoom: 1.12;
	--ms-hero-valign: center;
	--ms-hero-pos: flex-start;
	--ms-hero-content-w: 560px;
	--ms-hero-stagger: 110ms;
	--ms-hero-cap-delay: 260ms;
	--ms-hero-gap-eyebrow: 28px;
	--ms-hero-gap-title: 28px;
	--ms-hero-gap-text: 36px;
	--ms-hero-btn-color: #0B0C0B;
	--ms-hero-btn-bg: #FFFFFF;
	--ms-hero-btn-border: #FFFFFF;
	--ms-hero-btn-color-h: #FFFFFF;
	--ms-hero-btn-bg-h: transparent;
	--ms-hero-btn-border-h: #FFFFFF;
	--ms-hero-btn-radius: 999px;
	--ms-hero-link: #FFFFFF;
	--ms-hero-link-h: var(--ms-hero-accent);
	--ms-hero-dot: rgba(255, 255, 255, 0.35);
	--ms-hero-dot-active: var(--ms-hero-accent);
	--ms-hero-dot-gap: 14px;
	--ms-hero-dot-len: 26px;
	--ms-hero-rail-offset: 40px;
	--ms-hero-counter: rgba(255, 255, 255, 0.7);
	--ms-hero-bar-w: 120px;
	--ms-hero-counter-offset: 36px;
	--ms-hero-edge-x: 120px;
	--ms-hero-arrow-size: 48px;
	--ms-hero-arrow-color: #FFFFFF;
	--ms-hero-arrow-border: rgba(255, 255, 255, 0.3);
	--ms-hero-arrow-bg: transparent;
	--ms-hero-arrow-color-h: #0B0C0B;
	--ms-hero-arrow-bg-h: #FFFFFF;
	--ms-hero-delay: 6000ms;
	--ms-hero-speed: 1100ms;
	position: relative;
	width: 100%;
	height: calc(var(--ms-hero-h) - var(--ms-hero-offset));
	min-height: var(--ms-hero-min);
	background: var(--ms-hero-bg);
	color: var(--ms-hero-text);
	overflow: hidden;
	box-sizing: border-box;
}

.msw-hero *,
.msw-hero *::before,
.msw-hero *::after {
	box-sizing: border-box;
}

.msw-hero .msw-icon {
	display: inline-block;
	width: 1em;
	height: 1em;
	flex: 0 0 auto;
	vertical-align: middle;
}

.msw-hero__swiper {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.msw-hero__slide {
	position: relative;
	height: 100%;
	min-height: var(--ms-hero-min);
	overflow: hidden;
	background: var(--ms-hero-bg);
}

/* Before Swiper runs (or without it): the first slide only, stacked layout. */
.msw-hero:not(.is-ready) .swiper-wrapper {
	display: block;
	height: 100%;
}

.msw-hero:not(.is-ready) .msw-hero__slide:not(:first-child) {
	display: none;
}

/* ---------------------------------------------------------------------
 * Media
 * ------------------------------------------------------------------- */
.msw-hero__media {
	position: absolute;
	inset: 0;
	overflow: hidden;
	z-index: 1;
}

.msw-hero .msw-hero__img,
.msw-hero .msw-hero__video {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: var(--ms-hero-focus);
	margin: 0;
}

.msw-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(var(--ms-hero-ov-angle), var(--ms-hero-ov-from), var(--ms-hero-ov-to));
	pointer-events: none;
}

/* Stage: the picture sits on a lit floor beside the text */
.msw-hero-media-stage .msw-hero__overlay {
	display: none;
}

.msw-hero__stage {
	position: absolute;
	left: var(--ms-hero-stage-x);
	top: var(--ms-hero-stage-y);
	width: var(--ms-hero-stage-w);
	height: 80%;
	transform: translate(calc(-1 * var(--ms-hero-stage-x)), calc(-1 * var(--ms-hero-stage-y)));
}

.msw-hero .msw-hero__stage .msw-hero__img {
	position: relative;
	z-index: 2;
	object-fit: var(--ms-hero-stage-fit);
	object-position: center bottom;
	filter: drop-shadow(0 40px var(--ms-hero-stage-shadow) rgba(0, 0, 0, 0.55));
}

.msw-hero__glow,
.msw-hero__ring {
	display: none;
	position: absolute;
	pointer-events: none;
}

.msw-hero-glow-yes .msw-hero__glow {
	display: block;
	inset: -25% -15% -10%;
	background: radial-gradient(ellipse at 55% 62%, var(--ms-hero-glow) 0%, rgba(0, 0, 0, 0) 58%);
	filter: blur(30px);
	z-index: 0;
}

.msw-hero-ring-yes .msw-hero__ring {
	display: block;
	left: 4%;
	right: 4%;
	bottom: 3%;
	height: 24%;
	border: 1px solid var(--ms-hero-ring);
	border-radius: 50%;
	z-index: 1;
}

/* ---------------------------------------------------------------------
 * Caption
 * ------------------------------------------------------------------- */
.msw-hero__inner {
	position: relative;
	z-index: 3;
	display: flex;
	align-items: var(--ms-hero-valign);
	justify-content: var(--ms-hero-pos);
	gap: 48px;
	height: 100%;
	padding: 96px var(--ms-hero-edge-x);
}

.msw-hero__content {
	display: flex;
	flex-direction: column;
	align-items: var(--ms-align, flex-start);
	max-width: var(--ms-hero-content-w);
	min-width: 0;
	text-align: left;
}

.msw-hero__side {
	margin-left: auto;
	flex: 0 0 auto;
	max-width: 320px;
	text-align: right;
}

.msw-hero-side-below .msw-hero__inner {
	flex-direction: column;
	align-items: var(--ms-hero-pos);
	justify-content: var(--ms-hero-valign);
	gap: 32px;
}

.msw-hero-side-below .msw-hero__side {
	margin-left: 0;
	text-align: left;
}

.msw-hero .msw-hero__eyebrow {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 var(--ms-hero-gap-eyebrow);
	font-size: 12px;
	line-height: 1.4;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--ms-hero-muted);
}

.msw-hero .msw-hero__index {
	font-variant-numeric: tabular-nums;
}

.msw-hero .msw-hero__title {
	margin: 0 0 var(--ms-hero-gap-title);
	padding: 0;
	background: none;
	border: 0;
	font-size: clamp(38px, 5.4vw, 76px);
	line-height: 1.02;
	font-weight: 300;
	letter-spacing: -0.02em;
	color: var(--ms-hero-text);
}

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

.msw-hero .msw-hero__accent {
	color: var(--ms-hero-accent);
}

.msw-hero .msw-hero__text {
	margin: 0 0 var(--ms-hero-gap-text);
	font-size: 17px;
	line-height: 1.65;
	color: var(--ms-hero-muted);
	max-width: 46ch;
}

.msw-hero .msw-hero__price {
	margin: 0 0 var(--ms-hero-gap-text);
	font-size: 22px;
	line-height: 1.3;
	color: var(--ms-hero-text);
}

.msw-hero .msw-hero__price del {
	opacity: 0.5;
	margin-right: 8px;
}

.msw-hero .msw-hero__price ins {
	text-decoration: none;
}

.msw-hero .msw-hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 28px;
}

/* Main button (three classes: beats Site Settings button rules) */
.msw-hero .msw-hero__actions a.msw-hero__btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin: 0;
	padding: 15px 28px;
	border: 1px solid var(--ms-hero-btn-border);
	border-radius: var(--ms-hero-btn-radius);
	background: var(--ms-hero-btn-bg);
	color: var(--ms-hero-btn-color);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.06em;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	box-shadow: none;
	transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.msw-hero .msw-hero__actions a.msw-hero__btn:hover,
.msw-hero .msw-hero__actions a.msw-hero__btn:focus-visible {
	background: var(--ms-hero-btn-bg-h);
	color: var(--ms-hero-btn-color-h);
	border-color: var(--ms-hero-btn-border-h);
	border-radius: var(--ms-hero-btn-radius);
	text-decoration: none;
}

.msw-hero .msw-hero__actions a.msw-hero__btn .msw-icon {
	width: 16px;
	height: 16px;
	transition: transform 0.3s ease;
}

.msw-hero .msw-hero__actions a.msw-hero__btn:hover .msw-icon--arrow {
	transform: translateX(4px);
}

/* WooCommerce add-to-cart states (same feedback as the Products widget) */
.msw-hero .msw-hero__actions a.msw-hero__btn > * {
	transition: opacity 0.25s ease;
}

.msw-hero .msw-hero__actions a.msw-hero__btn.loading,
.msw-hero .msw-hero__actions a.msw-hero__btn.added {
	color: transparent; /* the label fades out even if something rewrote the anchor */
}

.msw-hero .msw-hero__actions a.msw-hero__btn.loading > *,
.msw-hero .msw-hero__actions a.msw-hero__btn.added > * {
	opacity: 0;
}

.msw-hero .msw-hero__actions a.msw-hero__btn.loading::before,
.msw-hero .msw-hero__actions a.msw-hero__btn.added::before {
	content: '';
	position: absolute;
	left: 50%;
	top: 50%;
	box-sizing: border-box;
	color: var(--ms-hero-btn-color);
}

.msw-hero .msw-hero__actions a.msw-hero__btn.loading:hover::before,
.msw-hero .msw-hero__actions a.msw-hero__btn.added:hover::before {
	color: var(--ms-hero-btn-color-h);
}

.msw-hero .msw-hero__actions a.msw-hero__btn.loading::before {
	width: 1.25em;
	height: 1.25em;
	margin: -0.625em 0 0 -0.625em;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: msw-hero-spin 0.7s linear infinite, msw-hero-fade 0.25s ease;
}

.msw-hero .msw-hero__actions a.msw-hero__btn.added::before {
	width: 0.55em;
	height: 1em;
	margin: -0.62em 0 0 -0.27em;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	animation: msw-hero-check 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.msw-hero .msw-hero__actions a.msw-hero__btn.added.msw-out::before {
	opacity: 0;
	animation: none;
	transition: opacity 0.25s ease;
}

.msw-hero .msw-hero__actions a.msw-hero__btn.loading::after,
.msw-hero .msw-hero__actions a.msw-hero__btn.added::after {
	display: none;
}

.msw-hero .msw-hero__actions .added_to_cart {
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ms-hero-link);
	text-decoration: underline;
	text-underline-offset: 4px;
	background: none;
	border: 0;
	padding: 0;
}

/* Secondary link */
.msw-hero .msw-hero__actions a.msw-hero__link {
	display: inline-flex;
	align-items: center;
	gap: 18px;
	padding: 10px 0;
	border: 0;
	border-bottom: 1px solid currentColor;
	background: none;
	color: var(--ms-hero-link);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	transition: color 0.3s ease;
}

.msw-hero .msw-hero__actions a.msw-hero__link:hover {
	color: var(--ms-hero-link-h);
}

.msw-hero .msw-hero__actions a.msw-hero__link .msw-icon {
	width: 14px;
	height: 14px;
	color: var(--ms-hero-accent);
}

/* Side stat */
.msw-hero .msw-hero__side-label {
	margin: 0 0 22px;
	font-size: 12px;
	line-height: 1.4;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--ms-hero-muted);
}

.msw-hero .msw-hero__side-value {
	margin: 0 0 18px;
	font-size: clamp(40px, 4.6vw, 66px);
	line-height: 1;
	font-weight: 300;
	letter-spacing: -0.02em;
	color: var(--ms-hero-text);
	font-variant-numeric: tabular-nums;
}

.msw-hero .msw-hero__side-value small {
	font-size: 0.34em;
	font-weight: 400;
	letter-spacing: 0;
	margin-left: 0.3em;
	color: var(--ms-hero-muted);
	vertical-align: baseline;
}

.msw-hero .msw-hero__side-value .price,
.msw-hero .msw-hero__side-value .amount {
	font: inherit;
	color: inherit;
}

.msw-hero .msw-hero__side-note {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: var(--ms-hero-muted);
}

/* ---------------------------------------------------------------------
 * Caption entrances — staggered by --i, played on the active slide
 * ------------------------------------------------------------------- */
.msw-hero__item {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.9s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1), filter 0.9s ease, clip-path 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
	transition-delay: calc(var(--ms-hero-cap-delay) + var(--i, 0) * var(--ms-hero-stagger));
	will-change: opacity, transform;
}

.msw-hero--cap-slide-left .msw-hero__item {
	transform: translateX(-44px);
}

.msw-hero--cap-mask .msw-hero__item {
	transform: translateY(14px);
	clip-path: inset(0 0 100% 0);
}

.msw-hero--cap-blur .msw-hero__item {
	transform: none;
	filter: blur(14px);
}

.msw-hero--cap-none .msw-hero__item {
	opacity: 1;
	transform: none;
	transition: none;
}

.msw-hero__slide.swiper-slide-active .msw-hero__item,
.msw-hero:not(.is-ready) .msw-hero__slide:first-child .msw-hero__item {
	opacity: 1;
	transform: none;
	filter: none;
}

/* Only Mask needs clipping. Leave room for glyph overhangs at tight line heights. */
.msw-hero--cap-mask .msw-hero__slide.swiper-slide-active .msw-hero__item,
.msw-hero--cap-mask:not(.is-ready) .msw-hero__slide:first-child .msw-hero__item {
	clip-path: inset(-1em);
}

.msw-hero__slide:not(.swiper-slide-active) .msw-hero__item {
	transition-delay: 0ms;
	transition-duration: 0.4s;
}

.msw-hero:not(.is-ready) .msw-hero__slide:first-child .msw-hero__item {
	transition: none;
}

/* Cinematic: the picture settles from a slight zoom while the caption enters */
.msw-hero--fx-cinematic .msw-hero__img,
.msw-hero--fx-fade .msw-hero__img {
	transform: scale(1.06);
	transition: transform calc(var(--ms-hero-speed) * 1.6) cubic-bezier(0.22, 0.61, 0.36, 1);
}

.msw-hero--fx-cinematic .msw-hero__slide.swiper-slide-active .msw-hero__img,
.msw-hero--fx-fade .msw-hero__slide.swiper-slide-active .msw-hero__img,
.msw-hero:not(.is-ready) .msw-hero__img {
	transform: none;
}

/* Keep both pictures moving throughout the incoming fade, dwell and outgoing
   fade. Alternate forever when autoplay is off or navigation is paused. */
.msw-hero--fx-zoom .msw-hero__slide.swiper-slide-active .msw-hero__img,
.msw-hero--fx-zoom .msw-hero__slide.msw-hero__slide--leaving .msw-hero__img {
	animation: msw-hero-kb calc(var(--ms-hero-delay) + var(--ms-hero-speed) + var(--ms-hero-speed)) linear infinite;
	animation-direction: var(--ms-hero-kb-direction, alternate);
}

/* A separate state from Swiper's transition/hover pause: keep the zoom timeline. */
.msw-hero.mauve-animation-paused .msw-hero__img,
.msw-hero.mauve-animation-paused .msw-hero__dot span::after,
.msw-hero.mauve-animation-paused .msw-hero__bar i {
	animation-play-state: paused !important;
}
@keyframes msw-hero-kb {
	from { transform: scale(1); }
	to   { transform: scale(var(--ms-hero-zoom)); }
}

/* ---------------------------------------------------------------------
 * Rail: current number · dots · total
 * ------------------------------------------------------------------- */
.msw-hero__rail {
	position: absolute;
	top: 50%;
	right: var(--ms-hero-rail-offset);
	z-index: 5;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	transform: translateY(-50%);
}

.msw-hero-rail-left .msw-hero__rail {
	right: auto;
	left: var(--ms-hero-rail-offset);
}

.msw-hero .msw-hero__rail-num {
	font-size: 12px;
	line-height: 1;
	letter-spacing: 0.16em;
	color: var(--ms-hero-muted);
	font-variant-numeric: tabular-nums;
}

.msw-hero .msw-hero__rail-cur {
	color: var(--ms-hero-accent);
}

.msw-hero .msw-hero__dots {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--ms-hero-dot-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

.msw-hero .msw-hero__dots li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.msw-hero .msw-hero__dots .msw-hero__dot {
	appearance: none;
	-webkit-appearance: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	min-height: 16px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	cursor: pointer;
}

.msw-hero .msw-hero__dots .msw-hero__dot span {
	position: relative;
	display: block;
	width: 4px;
	height: 4px;
	border-radius: 2px;
	background: var(--ms-hero-dot);
	overflow: hidden;
	transition: height 0.45s cubic-bezier(0.22, 0.61, 0.36, 1), background-color 0.3s ease;
}

.msw-hero .msw-hero__dots .msw-hero__dot:hover span {
	background: var(--ms-hero-text);
}

.msw-hero .msw-hero__dots .msw-hero__dot.is-active span {
	height: var(--ms-hero-dot-len);
	background: var(--ms-hero-dot);
}

.msw-hero .msw-hero__dots .msw-hero__dot.is-active span::after {
	content: '';
	position: absolute;
	inset: 0;
	background: var(--ms-hero-dot-active);
	transform: scaleY(0);
	transform-origin: top center;
	animation: msw-hero-fill var(--ms-hero-delay) linear forwards;
}

.msw-hero.is-paused .msw-hero__dots .msw-hero__dot.is-active span::after,
.msw-hero.is-paused .msw-hero__bar i {
	animation-play-state: paused;
}

.msw-hero--static .msw-hero__dots .msw-hero__dot.is-active span::after,
.msw-hero--static .msw-hero__bar i {
	animation: none;
	transform: none;
}

@keyframes msw-hero-fill {
	to { transform: scaleY(1); }
}

/* ---------------------------------------------------------------------
 * Bottom counter
 * ------------------------------------------------------------------- */
.msw-hero__counter {
	position: absolute;
	bottom: var(--ms-hero-counter-offset);
	left: var(--ms-hero-edge-x);
	z-index: 5;
	display: flex;
	align-items: center;
	gap: 18px;
	color: var(--ms-hero-counter);
	font-size: 12px;
	line-height: 1;
	letter-spacing: 0.2em;
	font-variant-numeric: tabular-nums;
}

.msw-hero-counterpos-center .msw-hero__counter {
	left: 50%;
	transform: translateX(-50%);
}

.msw-hero-counterpos-right .msw-hero__counter {
	left: auto;
	right: var(--ms-hero-edge-x);
}

.msw-hero__fraction {
	display: inline-flex;
	align-items: baseline;
	gap: 8px;
}

.msw-hero .msw-hero__counter-cur {
	color: var(--ms-hero-text);
}

.msw-hero__bar {
	position: relative;
	display: block;
	width: var(--ms-hero-bar-w);
	height: 1px;
	background: rgba(255, 255, 255, 0.18);
	overflow: hidden;
}

.msw-hero__bar i {
	position: absolute;
	inset: 0;
	display: block;
	background: var(--ms-hero-accent);
	transform: scaleX(0);
	transform-origin: left center;
	animation: msw-hero-fillx var(--ms-hero-delay) linear forwards;
}

@keyframes msw-hero-fillx {
	to { transform: scaleX(1); }
}

.msw-hero .msw-hero__numeral {
	font-size: clamp(56px, 7vw, 110px);
	line-height: 0.9;
	font-weight: 200;
	letter-spacing: -0.03em;
	color: transparent;
	-webkit-text-stroke: 1px rgba(255, 255, 255, 0.4);
	transition: opacity 0.4s ease;
}

.msw-hero .msw-hero__hint {
	letter-spacing: 0.08em;
	text-transform: none;
	opacity: 0.7;
}

/* ---------------------------------------------------------------------
 * Arrows
 * ------------------------------------------------------------------- */
.msw-hero__arrows {
	position: absolute;
	z-index: 5;
	display: flex;
	gap: 10px;
	right: var(--ms-hero-edge-x);
	bottom: var(--ms-hero-counter-offset);
}

.msw-hero .msw-hero__arrows .msw-hero__arrow {
	appearance: none;
	-webkit-appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--ms-hero-arrow-size);
	height: var(--ms-hero-arrow-size);
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 1px solid var(--ms-hero-arrow-border);
	border-radius: 50%;
	background: var(--ms-hero-arrow-bg);
	color: var(--ms-hero-arrow-color);
	font-size: 0;
	line-height: 1;
	cursor: pointer;
	box-shadow: none;
	transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
}

.msw-hero .msw-hero__arrows .msw-hero__arrow .msw-icon {
	width: 18px;
	height: 18px;
}

.msw-hero .msw-hero__arrows .msw-hero__arrow:hover,
.msw-hero .msw-hero__arrows .msw-hero__arrow:focus-visible {
	background: var(--ms-hero-arrow-bg-h);
	color: var(--ms-hero-arrow-color-h);
	border-color: var(--ms-hero-arrow-bg-h);
	border-radius: 50%;
}

.msw-hero .msw-hero__arrows .msw-hero__arrow.swiper-button-disabled {
	opacity: 0.3;
	cursor: default;
}

.msw-hero-arrows-sides .msw-hero__arrows {
	position: absolute;
	inset: 0;
	z-index: 5;
	display: block;
	pointer-events: none;
}

.msw-hero-arrows-sides .msw-hero__arrows .msw-hero__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	pointer-events: auto;
}

.msw-hero-arrows-sides .msw-hero__arrows .msw-hero__arrow--prev {
	left: 24px;
}

.msw-hero-arrows-sides .msw-hero__arrows .msw-hero__arrow--next {
	right: 24px;
}

/* ---------------------------------------------------------------------
 * Responsive
 * ------------------------------------------------------------------- */
@media (max-width: 1024px) {
	.msw-hero {
		--ms-hero-edge-x: 56px;
		--ms-hero-rail-offset: 24px;
	}

	.msw-hero__inner {
		padding: 80px var(--ms-hero-edge-x);
	}
}

@media (max-width: 767px) {
	.msw-hero {
		--ms-hero-edge-x: 24px;
		--ms-hero-rail-offset: 14px;
		--ms-hero-counter-offset: 24px;
		--ms-hero-stage-w: 100%;
		--ms-hero-stage-x: 50%;
	}

	.msw-hero__inner {
		flex-direction: column;
		align-items: var(--ms-hero-pos);
		justify-content: var(--ms-hero-valign);
		gap: 28px;
		padding: 72px var(--ms-hero-edge-x) 88px;
	}

	.msw-hero__side {
		margin-left: 0;
		text-align: left;
	}

	.msw-hero:not(.msw-hero-railm-yes) .msw-hero__rail {
		display: none;
	}

	/* stage → picture above the text */
	.msw-hero-media-stage.msw-hero-stage-m-below .msw-hero__slide {
		display: flex;
		flex-direction: column;
	}

	.msw-hero-media-stage.msw-hero-stage-m-below .msw-hero__media {
		position: relative;
		inset: auto;
		flex: 0 0 44%;
		min-height: 220px;
	}

	.msw-hero-media-stage.msw-hero-stage-m-below .msw-hero__stage {
		left: 6%;
		top: 10%;
		width: 88%;
		height: 84%;
		transform: none;
	}

	.msw-hero-media-stage.msw-hero-stage-m-below .msw-hero__inner {
		flex: 1 1 auto;
		height: auto;
		padding-top: 16px;
	}

	/* stage → background on phones */
	.msw-hero-media-stage.msw-hero-stage-m-cover .msw-hero__stage {
		left: 0;
		top: 0;
		width: 100%;
		height: 100%;
		transform: none;
	}

	.msw-hero-media-stage.msw-hero-stage-m-cover .msw-hero__stage .msw-hero__img {
		object-fit: cover;
		filter: none;
	}

	.msw-hero-media-stage.msw-hero-stage-m-cover .msw-hero__overlay {
		display: block;
	}
}

/* ---------------------------------------------------------------------
 * Motion preferences & keyframes
 * ------------------------------------------------------------------- */
@keyframes msw-hero-spin {
	to { transform: rotate(360deg); }
}

@keyframes msw-hero-fade {
	from { opacity: 0; }
	to   { opacity: 1; }
}

@keyframes msw-hero-check {
	0%   { transform: rotate(45deg) scale(0.4); opacity: 0; }
	100% { transform: rotate(45deg) scale(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
	.msw-hero__item {
		transition-duration: 0.01ms;
		transition-delay: 0ms;
	}

	.msw-hero--fx-zoom .msw-hero__slide.swiper-slide-active .msw-hero__img,
	.msw-hero--fx-zoom .msw-hero__slide.msw-hero__slide--leaving .msw-hero__img,
	.msw-hero--fx-cinematic .msw-hero__img,
	.msw-hero--fx-fade .msw-hero__img {
		animation: none;
		transition: none;
		transform: none;
	}
}
