/* Full Width Slider – Modern engine */

.fwrsw-m {
	--fwrsw-h: 500px;
	--fwrsw-h-t: 400px;
	--fwrsw-h-m: 300px;
	--fwrsw-speed: 1000ms;
	--fwrsw-ease: ease-out;
	position: relative;
	width: 100%;
	height: var(--fwrsw-h);
	overflow: hidden;
	background: #111;
	isolation: isolate;
	outline: none;
	box-sizing: border-box;
}

/* Same breakpoints as the Legacy engine: >=1024 desktop, 768–1023 tablet, <768 phone.
   Height is set in CSS (not JS) so the page never jumps while the slider loads. */
@media (max-width: 1023px) {
	.fwrsw-m { height: var(--fwrsw-h-t); }
}
@media (max-width: 767px) {
	.fwrsw-m { height: var(--fwrsw-h-m); }
}

.fwrsw-m:focus-visible {
	outline: 3px solid #fff;
	outline-offset: -3px;
}

.fwrsw-m *,
.fwrsw-m *::before,
.fwrsw-m *::after {
	box-sizing: border-box;
}

.fwrsw-m__viewport {
	position: absolute;
	inset: 0;
	touch-action: pan-y;
	-webkit-user-select: none;
	user-select: none;
}

.fwrsw-m__slide {
	position: absolute;
	inset: 0;
	visibility: hidden;
	backface-visibility: hidden;
}
.fwrsw-m__slide.is-active,
.fwrsw-m__slide.is-entering {
	visibility: visible;
	z-index: 2;
}
.fwrsw-m__slide.is-leaving {
	visibility: visible;
	z-index: 1;
}

.fwrsw-m--slide .fwrsw-m__slide.fwrsw-anim {
	transition: transform var(--fwrsw-speed) var(--fwrsw-ease);
}
.fwrsw-m--fade .fwrsw-m__slide.fwrsw-anim {
	transition: opacity var(--fwrsw-speed) ease;
}

.fwrsw-m .fwrsw-m__img {
	display: block;
	width: 100%;
	max-width: none;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	object-fit: cover;
	object-position: center;
	-webkit-user-drag: none;
}

/* Whole-slide link */
.fwrsw-m .fwrsw-m__link {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: block;
	cursor: pointer;
	-webkit-user-drag: none;
}
.fwrsw-m .fwrsw-m__link:focus-visible {
	outline: 3px solid #fff;
	outline-offset: -6px;
}

/* Caption */
.fwrsw-m__caption {
	position: absolute;
	z-index: 3;
	left: clamp(16px, 5%, 70px);
	right: clamp(16px, 5%, 70px);
	bottom: clamp(44px, 12%, 72px);
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	pointer-events: none;
}
.fwrsw-m__title,
.fwrsw-m__desc {
	max-width: 100%;
	color: var(--fwrsw-cap-color, #fff);
	background: var(--fwrsw-cap-bg, rgba(0, 0, 0, 0.6));
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
	opacity: 0;
	transform: translate3d(0, 12px, 0);
	transition: opacity 0.5s ease, transform 0.5s ease;
}
.fwrsw-m__title {
	padding: 10px 18px;
	/* --fwrsw-ts is the desktop size in px (default 30): scales down with the screen to 60% of it. */
	font-size: clamp(calc(var(--fwrsw-ts, 30) * 0.6px), calc(var(--fwrsw-ts, 30) * 0.08vw), calc(var(--fwrsw-ts, 30) * 1px));
	font-weight: 600;
	line-height: 1.25;
}
.fwrsw-m__desc {
	max-width: min(640px, 100%);
	padding: 8px 18px;
	font-size: clamp(calc(var(--fwrsw-ds, 16) * 0.8px), calc(var(--fwrsw-ds, 16) * 0.08125vw), calc(var(--fwrsw-ds, 16) * 1px));
	line-height: 1.5;
	background: var(--fwrsw-cap-bg-soft, rgba(0, 0, 0, 0.5));
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.fwrsw-m__slide.is-active:not(.is-entering) .fwrsw-m__title,
.fwrsw-m__slide.is-active:not(.is-entering) .fwrsw-m__desc {
	opacity: 1;
	transform: none;
	transition-delay: 0.2s;
}
.fwrsw-m__slide.is-active:not(.is-entering) .fwrsw-m__desc {
	transition-delay: 0.35s;
}
@media (max-width: 767px) {
	.fwrsw-m__desc { -webkit-line-clamp: 2; }
}

/* Caption position (Pro): horizontal alignment and vertical placement */
.fwrsw-m__caption.is-h-center { align-items: center; text-align: center; }
.fwrsw-m__caption.is-h-right { align-items: flex-end; text-align: right; }
.fwrsw-m__caption.is-v-top { top: clamp(20px, 9%, 64px); bottom: auto; }
.fwrsw-m__caption.is-v-middle { top: 50%; bottom: auto; transform: translateY(-50%); }

/* Caption style (Pro): plain text and gradient overlay drop the boxes */
.fwrsw-m--cap-plain .fwrsw-m__title,
.fwrsw-m--cap-plain .fwrsw-m__desc,
.fwrsw-m--cap-overlay .fwrsw-m__title,
.fwrsw-m--cap-overlay .fwrsw-m__desc {
	padding: 0;
	background: none;
	text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55), 0 1px 3px rgba(0, 0, 0, 0.45);
}
.fwrsw-m--cap-plain .fwrsw-m__title,
.fwrsw-m--cap-overlay .fwrsw-m__title { font-weight: 700; line-height: 1.15; }
.fwrsw-m--cap-plain .fwrsw-m__caption,
.fwrsw-m--cap-overlay .fwrsw-m__caption { gap: 12px; }
.fwrsw-m--cap-overlay .fwrsw-m__slide:has(.fwrsw-m__caption)::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(to top, var(--fwrsw-cap-bg, rgba(0, 0, 0, 0.6)) 0%, transparent 70%);
}
.fwrsw-m--cap-overlay .fwrsw-m__slide.is-v-top:has(.fwrsw-m__caption)::after {
	background: linear-gradient(to bottom, var(--fwrsw-cap-bg, rgba(0, 0, 0, 0.6)) 0%, transparent 70%);
}
.fwrsw-m--cap-overlay .fwrsw-m__slide.is-v-middle:has(.fwrsw-m__caption)::after {
	background: radial-gradient(ellipse at center, var(--fwrsw-cap-bg, rgba(0, 0, 0, 0.6)) 0%, transparent 72%);
}

/* Phone image (Pro): <picture> must not change the image's box */
.fwrsw-m .fwrsw-m__pic { display: contents; }

/* Call-to-action button (Pro) */
.fwrsw-m .fwrsw-m__btn {
	--fwrsw-btn-bg: #03a9f4;
	--fwrsw-btn-fg: #fff;
	display: inline-flex;
	align-items: center;
	margin-top: 6px;
	padding: 12px 26px;
	border: 0;
	border-radius: 999px;
	background: var(--fwrsw-btn-bg);
	color: var(--fwrsw-btn-fg);
	font-size: clamp(13px, 1.1vw, 16px);
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.01em;
	text-decoration: none;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
	pointer-events: auto;
	-webkit-user-drag: none;
	opacity: 0;
	transform: translate3d(0, 12px, 0);
	transition: opacity 0.5s ease, transform 0.5s ease, filter 0.2s ease, box-shadow 0.2s ease;
}
.fwrsw-m a.fwrsw-m__btn:hover,
.fwrsw-m a.fwrsw-m__btn:focus {
	color: var(--fwrsw-btn-fg);
	text-decoration: none;
	filter: brightness(1.08);
	box-shadow: 0 8px 26px rgba(0, 0, 0, 0.32);
}
.fwrsw-m a.fwrsw-m__btn:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 3px;
}
.fwrsw-m__slide.is-active:not(.is-entering) .fwrsw-m__btn {
	opacity: 1;
	transform: none;
	transition-delay: 0.5s, 0.5s, 0s, 0s;
}
@media (max-width: 767px) {
	.fwrsw-m .fwrsw-m__btn { padding: 9px 18px; }
}

/* Arrows – reset theme button styles first */
.fwrsw-m .fwrsw-m__arrow {
	-webkit-appearance: none;
	appearance: none;
	position: absolute;
	z-index: 4;
	top: 50%;
	width: 46px;
	height: 46px;
	min-height: 0;
	margin: -23px 0 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.35);
	color: #fff;
	line-height: 0;
	box-shadow: none;
	text-transform: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: opacity 0.25s ease, background-color 0.2s ease;
}
.fwrsw-m .fwrsw-m__arrow--prev { left: 16px; }
.fwrsw-m .fwrsw-m__arrow--next { right: 16px; }
.fwrsw-m .fwrsw-m__arrow:hover { background: rgba(0, 0, 0, 0.6); }
.fwrsw-m .fwrsw-m__arrow:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
	opacity: 1;
}
.fwrsw-m .fwrsw-m__arrow svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}
@media (hover: hover) and (pointer: fine) {
	.fwrsw-m .fwrsw-m__arrow { opacity: 0; }
	.fwrsw-m:hover .fwrsw-m__arrow,
	.fwrsw-m:focus-within .fwrsw-m__arrow { opacity: 1; }
}
@media (max-width: 767px) {
	/* Phones: arrows move to the bottom corners, level with the pager, so they never cover the caption or its button. */
	.fwrsw-m .fwrsw-m__arrow { top: auto; bottom: 10px; width: 34px; height: 34px; margin-top: 0; }
	.fwrsw-m .fwrsw-m__arrow svg { width: 18px; height: 18px; }
	.fwrsw-m .fwrsw-m__arrow--prev { left: 10px; }
	.fwrsw-m .fwrsw-m__arrow--next { right: 10px; }
	/* Bottom captions sit above the arrow/pager row (top and middle captions override this). */
	.fwrsw-m__caption { bottom: 58px; }

	/* Pro "Arrows on phones" setting: Middle (as on desktop) or Hidden. */
	.fwrsw-m--marrows-middle .fwrsw-m__arrow { top: 50%; bottom: auto; margin-top: -17px; }
	.fwrsw-m--marrows-hidden .fwrsw-m__arrow { display: none; }
	.fwrsw-m--marrows-middle .fwrsw-m__caption:not(.is-v-top):not(.is-v-middle),
	.fwrsw-m--marrows-hidden .fwrsw-m__caption:not(.is-v-top):not(.is-v-middle) { bottom: clamp(44px, 12%, 72px); }
}

/* Pager – frosted pill; active dot stretches into a bar that fills with the autoplay timer */
.fwrsw-m__dots {
	position: absolute;
	z-index: 5;
	left: 50%;
	bottom: 16px;
	transform: translateX(-50%);
	display: flex;
	align-items: center;
	gap: 2px;
	max-width: calc(100% - 32px);
	padding: 4px 8px;
	border-radius: 999px;
	background: rgba(15, 15, 20, 0.32);
	-webkit-backdrop-filter: blur(8px) saturate(140%);
	backdrop-filter: blur(8px) saturate(140%);
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.fwrsw-m .fwrsw-m__dot {
	-webkit-appearance: none;
	appearance: none;
	position: relative;
	flex: 0 0 auto;
	width: 20px;
	height: 24px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	box-shadow: none;
	cursor: pointer;
	transition: width 0.35s cubic-bezier(.4, 0, .2, 1);
}
.fwrsw-m .fwrsw-m__dot[aria-current="true"] { width: 40px; }

/* The visible track of each dot */
.fwrsw-m .fwrsw-m__bar {
	position: absolute;
	top: 50%;
	left: 6px;
	right: 6px;
	height: 8px;
	margin-top: -4px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.45);
	overflow: hidden;
	transition: background-color 0.25s ease, transform 0.2s ease;
}
.fwrsw-m .fwrsw-m__dot:hover .fwrsw-m__bar { background: rgba(255, 255, 255, 0.8); }
.fwrsw-m .fwrsw-m__dot[aria-current="true"] .fwrsw-m__bar { background: #fff; }

/* Autoplay progress: the active bar shows a lighter track that fills to solid white */
.fwrsw-m--autoplay.is-running .fwrsw-m__dot[aria-current="true"] .fwrsw-m__bar {
	background: rgba(255, 255, 255, 0.45);
}
.fwrsw-m .fwrsw-m__bar::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: #fff;
	transform: scaleX(0);
	transform-origin: left center;
}
.fwrsw-m--autoplay.is-running .fwrsw-m__dot[aria-current="true"] .fwrsw-m__bar::after {
	animation: fwrsw-progress var(--fwrsw-interval, 5000ms) linear forwards;
}
@keyframes fwrsw-progress {
	to { transform: scaleX(1); }
}

.fwrsw-m .fwrsw-m__dot:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 1px;
}

/* Hover preview thumbnail ("Show Preview On Hover Pagination") */
.fwrsw-m .fwrsw-m__thumb {
	position: absolute;
	left: 50%;
	bottom: calc(100% + 12px);
	width: 128px;
	height: 72px;
	border-radius: 8px;
	background: #222 center / cover no-repeat;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 0 2px #fff;
	opacity: 0;
	visibility: hidden;
	transform: translate(-50%, 6px) scale(0.96);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
	pointer-events: none;
}
.fwrsw-m .fwrsw-m__thumb::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 100%;
	margin-left: -6px;
	border: 6px solid transparent;
	border-top-color: #fff;
}
@media (hover: hover) and (pointer: fine) {
	.fwrsw-m .fwrsw-m__dot:hover .fwrsw-m__thumb {
		opacity: 1;
		visibility: visible;
		transform: translate(-50%, 0) scale(1);
		transition-delay: 0s;
	}
}
.fwrsw-m .fwrsw-m__dot:focus-visible .fwrsw-m__thumb {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, 0) scale(1);
	transition-delay: 0s;
}

@media (max-width: 767px) {
	.fwrsw-m__dots { bottom: 10px; padding: 2px 6px; }
	.fwrsw-m .fwrsw-m__dot { width: 16px; }
	.fwrsw-m .fwrsw-m__dot[aria-current="true"] { width: 32px; }
	.fwrsw-m .fwrsw-m__bar { left: 4px; right: 4px; height: 6px; margin-top: -3px; }
	.fwrsw-m .fwrsw-m__thumb { display: none; }
}

/* Black stripe transition ("Show Black Stripe Transition") */
.fwrsw-m__stripes {
	position: absolute;
	inset: 0;
	z-index: 3;
	display: flex;
	pointer-events: none;
}
.fwrsw-m__stripes i {
	flex: 1 1 0;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	transform: scaleY(0);
	transform-origin: top center;
}
.fwrsw-m__stripes.is-play i {
	animation: fwrsw-stripe calc(var(--fwrsw-speed) + 400ms) ease-in-out both;
}
.fwrsw-m__stripes.is-play i:nth-child(2n) { transform-origin: bottom center; }
.fwrsw-m__stripes.is-play i:nth-child(1)  { animation-delay: 0ms; }
.fwrsw-m__stripes.is-play i:nth-child(2)  { animation-delay: 30ms; }
.fwrsw-m__stripes.is-play i:nth-child(3)  { animation-delay: 60ms; }
.fwrsw-m__stripes.is-play i:nth-child(4)  { animation-delay: 90ms; }
.fwrsw-m__stripes.is-play i:nth-child(5)  { animation-delay: 120ms; }
.fwrsw-m__stripes.is-play i:nth-child(6)  { animation-delay: 150ms; }
.fwrsw-m__stripes.is-play i:nth-child(7)  { animation-delay: 180ms; }
.fwrsw-m__stripes.is-play i:nth-child(8)  { animation-delay: 210ms; }
.fwrsw-m__stripes.is-play i:nth-child(9)  { animation-delay: 240ms; }
.fwrsw-m__stripes.is-play i:nth-child(10) { animation-delay: 270ms; }
@keyframes fwrsw-stripe {
	0%   { transform: scaleY(0); }
	45%  { transform: scaleY(1); }
	100% { transform: scaleY(0); }
}

@media (prefers-reduced-motion: reduce) {
	.fwrsw-m__title,
	.fwrsw-m__desc,
	.fwrsw-m .fwrsw-m__btn,
	.fwrsw-m .fwrsw-m__arrow,
	.fwrsw-m .fwrsw-m__dot,
	.fwrsw-m .fwrsw-m__bar,
	.fwrsw-m .fwrsw-m__thumb {
		transition: none;
	}
	.fwrsw-m__stripes { display: none; }
}
