/* Hero Slider (Aurelle NY). Colours and sizes are custom properties, set from
   the widget's Style tab. */

.aurelle-slider {
	--as-arrow-size: 46px;
	--as-arrow-color: #fff;
	--as-arrow-bg: rgba( 46, 38, 43, 0.35 );
	--as-dot: rgba( 255, 255, 255, 0.45 );
	--as-dot-active: #fff;
	position: relative;
	width: 100%;
	height: 78vh;
	min-height: 240px;
	overflow: hidden;
	isolation: isolate;
	box-sizing: border-box;
}

.aurelle-slider *,
.aurelle-slider *::before,
.aurelle-slider *::after {
	box-sizing: inherit;
}

.aurelle-slider__slides {
	position: absolute;
	inset: 0;
}

/* Stacked. Before the script runs only the first shows. */
.aurelle-slide {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	opacity: 0;
	will-change: transform, opacity;
}

.aurelle-slide.is-current {
	opacity: 1;
	z-index: 2;
}

/* The slide's own background, beneath the template. */
.aurelle-slide__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
}

/* !important: themes and Elementor reset img and video to max-width:100%;
   height:auto, which collapses cover-fit media. */
.aurelle-slide__bg img,
.aurelle-slide__bg video {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	object-fit: cover !important;
	object-position: center !important;
}

@keyframes aurelleSliderZoom {
	from {
		transform: scale( 1 );
	}
	to {
		transform: scale( 1.12 );
	}
}

.aurelle-slide__bg.is-zooming img {
	animation: aurelleSliderZoom 14s ease-in-out infinite alternate;
	transform-origin: 60% 45%;
}

.aurelle-slide__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
}

/* The template fills the slide, so a container inside it can centre its
   content or push it to the bottom. */
.aurelle-slide__content {
	position: relative;
	z-index: 2;
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	min-height: 0;
}

/* Room for a header lying over the slider, measured by slider.js. The
   background is a layer of its own, so it still runs full width beneath. */
.aurelle-slider[data-header="auto"] .aurelle-slide__content {
	padding-top: var( --as-header, 0px );
}

.aurelle-slide__content > .elementor {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	min-height: 0;
}

.aurelle-slide__content > .elementor > .e-con,
.aurelle-slide__content > .elementor > .elementor-section,
.aurelle-slide__content > .elementor > .elementor-section-wrap {
	flex: 1 1 auto;
}

/* Paused, by the visitor or their motion preference. */
.aurelle-slider.is-paused .aurelle-slide__bg.is-zooming img {
	animation-play-state: paused;
}

/* ---------------------------------------------------------------------
   Controls
   ------------------------------------------------------------------ */

.aurelle-slider__arrow {
	position: absolute;
	top: 50%;
	z-index: 5;
	display: grid;
	place-items: center;
	width: var( --as-arrow-size );
	height: var( --as-arrow-size );
	margin: calc( var( --as-arrow-size ) / -2 ) 0 0;
	padding: 0;
	border: 1px solid rgba( 255, 255, 255, 0.45 );
	border-radius: 50%;
	background: var( --as-arrow-bg );
	color: var( --as-arrow-color );
	cursor: pointer;
	backdrop-filter: blur( 6px );
	transition: background-color 0.2s ease, opacity 0.2s ease;
}

.aurelle-slider__arrow:hover {
	background: rgba( 46, 38, 43, 0.7 );
}

.aurelle-slider__arrow--prev {
	left: 18px;
}

.aurelle-slider__arrow--next {
	right: 18px;
}

.aurelle-slider__arrow svg {
	width: 40%;
	height: 40%;
}

.aurelle-slider__dots {
	position: absolute;
	bottom: 24px;
	left: 50%;
	z-index: 5;
	display: flex;
	align-items: center;
	gap: 8px;
	transform: translateX( -50% );
}

.aurelle-slider__dot {
	position: relative;
	width: 8px;
	height: 8px;
	margin: 0;
	padding: 0;
	overflow: hidden;
	border: 0;
	border-radius: 999px;
	background: var( --as-dot );
	cursor: pointer;
	transition: width 0.35s cubic-bezier( 0.2, 0.7, 0.1, 1 ), background-color 0.2s ease;
}

/* A bigger target than it looks. */
.aurelle-slider__dot::before {
	content: "";
	position: absolute;
	inset: -10px -4px;
}

.aurelle-slider__dot[aria-current="true"] {
	width: 42px;
}

.aurelle-slider__timer {
	position: absolute;
	inset: 0;
	background: var( --as-dot-active );
	transform: scaleX( 0 );
	transform-origin: left center;
}

.aurelle-slider__dot[aria-current="true"] .aurelle-slider__timer {
	transform: scaleX( var( --as-progress, 0 ) );
}

.aurelle-slider--no-timer .aurelle-slider__dot[aria-current="true"] .aurelle-slider__timer {
	transform: scaleX( 1 );
}

/* ---------------------------------------------------------------------
   A bar filling as the slide runs, and the slide's number.
   ------------------------------------------------------------------ */

.aurelle-slider__progress {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 6;
	height: var( --as-bar-height, 3px );
	background: var( --as-bar-track, rgba( 255, 255, 255, 0.25 ) );
	pointer-events: none;
}

.aurelle-slider__progress span {
	display: block;
	height: 100%;
	width: calc( var( --as-bar, 0 ) * 100% );
	background: var( --as-bar-color, #fff );
	/* It follows a moment in the slide rather than animating between two
	   states, so linear -- eased, it lags behind what it is showing. */
	transition: width 0.1s linear;
}

.aurelle-slider__count {
	position: absolute;
	left: var( --as-count-gap, 16px );
	bottom: var( --as-count-gap, 16px );
	z-index: 6;
	color: #fff;
	font-size: 14px;
	font-variant-numeric: tabular-nums;
	text-shadow: 0 1px 2px rgba( 46, 38, 43, 0.45 );
	pointer-events: none;
}

/* ---------------------------------------------------------------------
   A link over the whole slide.
   ------------------------------------------------------------------ */

.aurelle-slide__link {
	position: absolute;
	inset: 0;
	z-index: 3;
}

/*
 * The content layer gives up its own z-index on a linked slide.
 *
 * With one, everything inside it is stacked within that layer, and a link
 * over the slide -- higher than the layer as a whole -- covers the
 * template's own buttons however high they are raised inside it. Without
 * it the template still paints above the background, and the rules below
 * can lift its buttons over the slide's link.
 */
.aurelle-slide--linked .aurelle-slide__content {
	z-index: auto;
}

/* The slide's own links, buttons and fields sit above that one, so they
   keep their own behaviour and only the rest of the slide follows it. */
.aurelle-slide__content a,
.aurelle-slide__content button,
.aurelle-slide__content input,
.aurelle-slide__content select,
.aurelle-slide__content textarea,
.aurelle-slide__content [role="button"] {
	position: relative;
	z-index: 4;
}

.aurelle-slider__pause {
	position: absolute;
	right: 16px;
	bottom: 16px;
	z-index: 6;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	border: 1px solid rgba( 255, 255, 255, 0.55 );
	border-radius: 50%;
	background: rgba( 69, 58, 64, 0.45 );
	color: #fff;
	cursor: pointer;
	opacity: 0.75;
	transition: opacity 0.15s ease, background-color 0.15s ease;
}

.aurelle-slider__pause[hidden] {
	display: none;
}

.aurelle-slider__pause:hover,
.aurelle-slider__pause:focus-visible {
	opacity: 1;
	background: rgba( 69, 58, 64, 0.75 );
}

.aurelle-slider__pause svg {
	width: 14px;
	height: 14px;
	pointer-events: none;
}

.aurelle-slider__icon-play,
.aurelle-slider__pause[aria-pressed="true"] .aurelle-slider__icon-pause {
	display: none;
}

.aurelle-slider__pause[aria-pressed="true"] .aurelle-slider__icon-play {
	display: block;
}

.aurelle-slider__arrow:focus-visible,
.aurelle-slider__dot:focus-visible,
.aurelle-slider__pause:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

@media ( max-width: 767px ) {
	.aurelle-slider__arrow {
		display: none;
	}
	.aurelle-slider__pause {
		right: 10px;
		bottom: 10px;
	}
}

/* ---------------------------------------------------------------------
   Editor only
   ------------------------------------------------------------------ */

.aurelle-slider-empty {
	padding: 40px 24px;
	border: 1px dashed #c9bcc1;
	color: #776c71;
	text-align: center;
	font-size: 14px;
}

/* Settings that will look different on the site. */
.aurelle-slider-note {
	margin: 8px 0 0;
	padding: 10px 14px;
	border-left: 3px solid #c4818e;
	background: #fbf1f3;
	color: #453a40;
	font-size: 13px;
	line-height: 1.5;
}

.aurelle-slider-note p {
	margin: 0;
}

.aurelle-slider-note p + p {
	margin-top: 6px;
}

/* Bottom right, beside the pause button: a header lying over the top of
   the slider would otherwise catch the clicks. */
.aurelle-slider__preview {
	position: absolute;
	right: 68px;
	bottom: 20px;
	z-index: 20;
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 4px;
	border-radius: 8px;
	background: rgba( 30, 25, 28, 0.85 );
	box-shadow: 0 4px 14px rgba( 0, 0, 0, 0.25 );
	font: 500 12px/1 system-ui, sans-serif;
}

.aurelle-slider__preview button {
	margin: 0;
	padding: 6px 9px;
	border: 0;
	border-radius: 5px;
	background: transparent;
	color: #fff;
	font: inherit;
	cursor: pointer;
}

.aurelle-slider__preview button:hover {
	background: rgba( 255, 255, 255, 0.12 );
}

.aurelle-slider__preview [aria-pressed="true"] {
	background: #fff;
	color: #2b2528;
}

.aurelle-slider__preview .aurelle-slider__preview-play[aria-pressed="true"] {
	background: #9b4f64;
	color: #fff;
}

.aurelle-slider__preview-jump {
	min-width: 26px;
	font-variant-numeric: tabular-nums;
}

/* Above the pause button on phones, clear of the dots. */
@media ( max-width: 767px ) {
	.aurelle-slider__preview {
		right: 10px;
		bottom: 60px;
	}
}

/* ---------------------------------------------------------------------
   Less motion. slider.js starts the slider paused; this covers the moment
   before it runs, and Elementor's own entrance animations, which it plays
   regardless.
   ------------------------------------------------------------------ */

@media ( prefers-reduced-motion: reduce ) {
	.aurelle-slider:not( .is-playing ) .aurelle-slide__bg.is-zooming img {
		animation-play-state: paused;
	}
	.aurelle-slider:not( .is-playing ) .animated {
		animation: none !important;
	}
	.aurelle-slider__dot,
	.aurelle-slider__arrow,
	.aurelle-slider__pause {
		transition: none;
	}
}

/* ---------------------------------------------------------------------
   Text reveal (Advanced → Text reveal on Heading and Text Editor)
   ------------------------------------------------------------------ */

/* Out of sight inside a slider until slider.js reveals it. If the script
   never runs, the text appears after three seconds regardless. */
@keyframes aurelleSplitFailsafe {
	to {
		opacity: 1;
	}
}

.aurelle-slider .aurelle-split-pending {
	opacity: 0;
	animation: aurelleSplitFailsafe 0.01s linear 3s forwards;
}

.aurelle-split__piece,
.aurelle-split__word {
	display: inline-block;
}

.aurelle-split__word {
	white-space: nowrap;
}

.aurelle-split .aurelle-split__piece {
	transition-property: opacity, transform, filter;
	transition-duration: 0.6s, 0.8s, 0.7s;
	transition-timing-function: ease, cubic-bezier( 0.2, 0.7, 0.1, 1 ), ease;
	transition-delay: calc( var( --as-delay, 0ms ) + var( --i, 0 ) * var( --as-stagger, 70ms ) );
}

.aurelle-split:not( .is-revealed ) .aurelle-split__piece {
	opacity: 0;
	transition: none;
}

.aurelle-split--rise:not( .is-revealed ) .aurelle-split__piece {
	transform: translateY( 0.45em );
}

.aurelle-split--blur:not( .is-revealed ) .aurelle-split__piece {
	filter: blur( 8px );
}

.aurelle-split--still .aurelle-split__piece {
	transition: none !important;
}

/* The words whole, for screen readers only. */
.aurelle-split__sr {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect( 0 0 0 0 ) !important;
	clip-path: inset( 50% ) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

@media ( prefers-reduced-motion: reduce ) {
	.aurelle-slider .aurelle-split-pending {
		opacity: 1;
		animation: none;
	}
}

/* ---------------------------------------------------------------------
   A Slide template in Elementor's editor: shaped like a slide.
   Height and background come from the template's Slide preview settings.
   ------------------------------------------------------------------ */

.elementor-editor-active .aurelle-slide-document {
	display: flex;
	flex-direction: column;
}

.elementor-editor-active .aurelle-slide-document > .e-con,
.elementor-editor-active .aurelle-slide-document > .elementor-section,
.elementor-editor-active .aurelle-slide-document > .elementor-section-wrap {
	flex: 1 1 auto;
}

/* ---------------------------------------------------------------------
   Preview in slider
   ------------------------------------------------------------------ */

.aurelle-slide-preview {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: center;
	gap: 12px;
	padding: 24px;
	background: rgba( 20, 15, 18, 0.88 );
	box-sizing: border-box;
}

.aurelle-slide-preview__stage {
	position: relative;
	width: 100%;
	overflow: hidden;
	isolation: isolate;
	border-radius: 6px;
	box-shadow: 0 20px 60px rgba( 0, 0, 0, 0.45 );
}

.aurelle-slide-preview__layer {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.aurelle-slide-preview__layer > .aurelle-slide-document {
	flex: 1 1 auto;
	min-height: 0 !important;
}

.aurelle-slide-preview__before {
	align-items: center;
	justify-content: center;
	background: linear-gradient( 135deg, #453a40, #2e262b );
	color: rgba( 255, 255, 255, 0.7 );
	font: 500 13px/1 system-ui, sans-serif;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.aurelle-slide-preview__bar {
	display: flex;
	align-items: center;
	gap: 10px;
	color: #fff;
	font: 13px/1.3 system-ui, sans-serif;
}

.aurelle-slide-preview__bar span {
	flex: 1 1 auto;
	opacity: 0.8;
}

.aurelle-slide-preview__bar button {
	margin: 0;
	padding: 8px 14px;
	border: 1px solid rgba( 255, 255, 255, 0.4 );
	border-radius: 5px;
	background: transparent;
	color: #fff;
	font: inherit;
	cursor: pointer;
}

.aurelle-slide-preview__bar .aurelle-slide-preview__close {
	width: 36px;
	padding: 6px 0;
	font-size: 18px;
	line-height: 1;
}

.aurelle-slide-preview__bar button:hover,
.aurelle-slide-preview__bar button:focus-visible {
	background: rgba( 255, 255, 255, 0.12 );
	outline: 2px solid #fff;
	outline-offset: 2px;
}
