/*!
 * Nedclan Hero Slider — base styles.
 * Per-slider colors, sizes and positions are generated inline for each slider.
 */

.nhs-slider {
	position: relative;
	display: block;
	width: 100%;
	margin-left: auto;
	margin-right: auto;
	overflow: hidden;
	container-type: inline-size;
	isolation: isolate;
	line-height: normal;
	-webkit-tap-highlight-color: transparent;
}

.nhs-slider *,
.nhs-slider *::before,
.nhs-slider *::after {
	box-sizing: border-box;
}

/* Break out of boxed theme containers. --nhs-vw is set by JS (excludes the scrollbar). */
.nhs-slider.nhs-fullwidth {
	width: var(--nhs-vw, 100vw);
	max-width: var(--nhs-vw, 100vw) !important;
	margin-left: calc(50% - var(--nhs-vw, 100vw) / 2);
	margin-right: calc(50% - var(--nhs-vw, 100vw) / 2);
}

/* The track always has the exact proportions of the banner, so images are never distorted. */
.nhs-slider .nhs-track {
	position: relative;
	width: 100%;
	overflow: hidden;
	touch-action: pan-y;
}

@supports not (aspect-ratio: 1 / 1) {
	.nhs-slider .nhs-track::before {
		content: "";
		display: block;
		padding-top: var(--nhs-pt, 41.6667%);
	}
}

.nhs-slider .nhs-slide {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	opacity: 0;
	visibility: hidden;
	z-index: 0;
	overflow: hidden;
}

.nhs-slider .nhs-slide.is-active {
	opacity: 1;
	visibility: visible;
	z-index: 2;
}

.nhs-slider .nhs-slide.is-leaving {
	opacity: 1;
	visibility: visible;
	z-index: 1;
}

.nhs-slider .nhs-media {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	display: block;
	margin: 0;
	overflow: hidden;
}

.nhs-slider .nhs-media img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	object-fit: cover;
	transform-origin: center center;
	-webkit-user-select: none;
	user-select: none;
	-webkit-user-drag: none;
}

.nhs-slider .nhs-overlay {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 1;
	pointer-events: none;
}

.nhs-slider .nhs-slide-link {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 2;
	display: block;
	border: 0;
	background: transparent;
	text-decoration: none;
}

.nhs-slider .nhs-slide-link:focus-visible {
	outline: 3px solid #fff;
	outline-offset: -6px;
	box-shadow: inset 0 0 0 6px rgba(0, 0, 0, 0.55);
}

/* Text overlay. Clicks on text pass through to the banner link; only the button is clickable itself. */
.nhs-slider .nhs-content-wrap {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 3;
	display: flex;
	pointer-events: none;
}

.nhs-slider .nhs-content {
	max-width: 100%;
	pointer-events: none;
}

.nhs-slider .nhs-content a,
.nhs-slider .nhs-content .nhs-btn {
	pointer-events: auto;
}

.nhs-slider .nhs-title,
.nhs-slider .nhs-sub,
.nhs-slider .nhs-sub2,
.nhs-slider .nhs-copy {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	overflow-wrap: break-word;
}

.nhs-slider .nhs-title::before,
.nhs-slider .nhs-title::after {
	content: none;
}

.nhs-slider .nhs-btn-wrap {
	margin: 0;
	padding: 0;
}

.nhs-slider .nhs-btn {
	display: inline-block;
	border-style: solid;
	text-decoration: none;
	text-align: center;
	line-height: 1.2;
	cursor: pointer;
	box-shadow: none;
	text-shadow: none;
	min-height: 0;
	max-width: 100%;
}

.nhs-slider span.nhs-btn {
	cursor: default;
}

.nhs-slider .nhs-btn:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

/* Arrows */
.nhs-slider .nhs-arrow {
	position: absolute;
	top: 50%;
	z-index: 6;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin: 0;
	padding: 0;
	font-size: 0;
	line-height: 1;
	cursor: pointer;
	box-shadow: none;
	text-shadow: none;
	min-width: 0;
	min-height: 0;
	-webkit-appearance: none;
	appearance: none;
	transform: translateY(-50%);
	transition: background-color 0.25s ease, color 0.25s ease, transform 0.2s ease, opacity 0.25s ease;
}

.nhs-slider .nhs-arrow svg {
	display: block;
	width: 22px;
	height: 22px;
	pointer-events: none;
}

.nhs-slider .nhs-arrow:active {
	transform: translateY(-50%) scale(0.92);
}

.nhs-slider .nhs-arrow:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

.nhs-slider .nhs-arrow[disabled] {
	opacity: 0.35;
	cursor: default;
}

/* Dots */
.nhs-slider .nhs-dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 24px;
	z-index: 6;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 0 20px;
	pointer-events: none;
}

.nhs-slider .nhs-dot {
	position: relative;
	flex: 0 0 auto;
	width: 10px;
	height: 10px;
	margin: 0;
	padding: 0;
	cursor: pointer;
	box-shadow: none;
	min-width: 0;
	min-height: 0;
	pointer-events: auto;
	-webkit-appearance: none;
	appearance: none;
	transition: width 0.35s var(--nhs-ease, ease), background-color 0.25s ease, border-color 0.25s ease;
}

/* Larger tap target without changing the look. */
.nhs-slider .nhs-dot::after {
	content: "";
	position: absolute;
	top: -8px;
	right: -4px;
	bottom: -8px;
	left: -4px;
}

.nhs-slider .nhs-dot:focus-visible {
	outline: 2px solid #111;
	outline-offset: 3px;
}

/* ---------- Slide animations ---------- */
.nhs-slider .nhs-slide.is-entering {
	z-index: 3;
}

.nhs-anim-fade .nhs-slide.is-entering {
	animation: nhs-fade-in var(--nhs-speed) var(--nhs-ease) both;
}

.nhs-anim-slide .nhs-slide.is-entering.nhs-dir-next {
	animation: nhs-in-from-right var(--nhs-speed) var(--nhs-ease) both;
}
.nhs-anim-slide .nhs-slide.is-leaving.nhs-dir-next {
	animation: nhs-out-to-left var(--nhs-speed) var(--nhs-ease) both;
}
.nhs-anim-slide .nhs-slide.is-entering.nhs-dir-prev {
	animation: nhs-in-from-left var(--nhs-speed) var(--nhs-ease) both;
}
.nhs-anim-slide .nhs-slide.is-leaving.nhs-dir-prev {
	animation: nhs-out-to-right var(--nhs-speed) var(--nhs-ease) both;
}

.nhs-anim-slide-up .nhs-slide.is-entering.nhs-dir-next {
	animation: nhs-in-from-bottom var(--nhs-speed) var(--nhs-ease) both;
}
.nhs-anim-slide-up .nhs-slide.is-leaving.nhs-dir-next {
	animation: nhs-out-to-top var(--nhs-speed) var(--nhs-ease) both;
}
.nhs-anim-slide-up .nhs-slide.is-entering.nhs-dir-prev {
	animation: nhs-in-from-top var(--nhs-speed) var(--nhs-ease) both;
}
.nhs-anim-slide-up .nhs-slide.is-leaving.nhs-dir-prev {
	animation: nhs-out-to-bottom var(--nhs-speed) var(--nhs-ease) both;
}

.nhs-anim-zoom-in .nhs-slide.is-entering {
	animation: nhs-zoom-in var(--nhs-speed) var(--nhs-ease) both;
}

.nhs-anim-zoom-out .nhs-slide.is-entering {
	animation: nhs-zoom-out var(--nhs-speed) var(--nhs-ease) both;
}

.nhs-anim-blur .nhs-slide.is-entering {
	animation: nhs-blur-in var(--nhs-speed) var(--nhs-ease) both;
}

.nhs-anim-reveal .nhs-slide.is-entering.nhs-dir-next {
	animation: nhs-reveal-next var(--nhs-speed) var(--nhs-ease) both;
}
.nhs-anim-reveal .nhs-slide.is-entering.nhs-dir-prev {
	animation: nhs-reveal-prev var(--nhs-speed) var(--nhs-ease) both;
}
.nhs-anim-reveal .nhs-slide.is-leaving.nhs-dir-next {
	animation: nhs-drift-left var(--nhs-speed) var(--nhs-ease) both;
}
.nhs-anim-reveal .nhs-slide.is-leaving.nhs-dir-prev {
	animation: nhs-drift-right var(--nhs-speed) var(--nhs-ease) both;
}

@keyframes nhs-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes nhs-in-from-right { from { transform: translate3d(100%, 0, 0); } to { transform: translate3d(0, 0, 0); } }
@keyframes nhs-in-from-left { from { transform: translate3d(-100%, 0, 0); } to { transform: translate3d(0, 0, 0); } }
@keyframes nhs-out-to-left { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-100%, 0, 0); } }
@keyframes nhs-out-to-right { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(100%, 0, 0); } }
@keyframes nhs-in-from-bottom { from { transform: translate3d(0, 100%, 0); } to { transform: translate3d(0, 0, 0); } }
@keyframes nhs-in-from-top { from { transform: translate3d(0, -100%, 0); } to { transform: translate3d(0, 0, 0); } }
@keyframes nhs-out-to-top { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, -100%, 0); } }
@keyframes nhs-out-to-bottom { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, 100%, 0); } }
@keyframes nhs-zoom-in { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
@keyframes nhs-zoom-out { from { opacity: 0; transform: scale(1.15); } to { opacity: 1; transform: scale(1); } }
@keyframes nhs-blur-in { from { opacity: 0; filter: blur(18px); transform: scale(1.03); } to { opacity: 1; filter: blur(0); transform: scale(1); } }
@keyframes nhs-reveal-next { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
@keyframes nhs-reveal-prev { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes nhs-drift-left { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-12%, 0, 0); } }
@keyframes nhs-drift-right { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(12%, 0, 0); } }

/* Ken Burns slow zoom */
.nhs-kenburns .nhs-slide.is-active .nhs-media img,
.nhs-kenburns .nhs-slide.is-leaving .nhs-media img {
	animation: nhs-kb var(--nhs-kb, 8000ms) linear both;
}
@keyframes nhs-kb { from { transform: scale(1); } to { transform: scale(1.08); } }

/* ---------- Text & button animations ---------- */
.nhs-ready:not(.nhs-canim-none) .nhs-slide:not(.nhs-content-in) .nhs-anim-item {
	opacity: 0;
}

.nhs-slider .nhs-slide.nhs-content-in .nhs-anim-item {
	animation-duration: var(--nhs-cspeed, 700ms);
	animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
	animation-fill-mode: both;
	animation-delay: calc(var(--nhs-cdelay, 0ms) + var(--nhs-i, 0) * var(--nhs-stagger, 120ms));
}

.nhs-canim-fade-up .nhs-slide.nhs-content-in .nhs-anim-item { animation-name: nhs-c-up; }
.nhs-canim-fade-down .nhs-slide.nhs-content-in .nhs-anim-item { animation-name: nhs-c-down; }
.nhs-canim-fade-left .nhs-slide.nhs-content-in .nhs-anim-item { animation-name: nhs-c-left; }
.nhs-canim-fade-right .nhs-slide.nhs-content-in .nhs-anim-item { animation-name: nhs-c-right; }
.nhs-canim-fade .nhs-slide.nhs-content-in .nhs-anim-item { animation-name: nhs-c-fade; }
.nhs-canim-zoom .nhs-slide.nhs-content-in .nhs-anim-item { animation-name: nhs-c-zoom; }
.nhs-canim-none .nhs-slide .nhs-anim-item { animation: none; }

@keyframes nhs-c-up { from { opacity: 0; transform: translate3d(0, 26px, 0); } to { opacity: 1; transform: none; } }
@keyframes nhs-c-down { from { opacity: 0; transform: translate3d(0, -26px, 0); } to { opacity: 1; transform: none; } }
@keyframes nhs-c-left { from { opacity: 0; transform: translate3d(36px, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes nhs-c-right { from { opacity: 0; transform: translate3d(-36px, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes nhs-c-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes nhs-c-zoom { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
	.nhs-slider .nhs-slide,
	.nhs-slider .nhs-media img,
	.nhs-slider .nhs-anim-item {
		animation: none !important;
	}
	.nhs-slider .nhs-anim-item {
		opacity: 1 !important;
	}
}

/* Editor / admin notice */
.nhs-notice {
	padding: 14px 16px;
	border: 1px dashed #b32d2e;
	background: #fcf0f1;
	color: #8a2424;
	font-size: 14px;
}
