/* ==========================================================================
   Homepage Hero Slider: Per-Slide Content, Design, and Media
   ========================================================================== */

body.nls-dc.home .nls-hero-slider,
body.nls-dc.home .nls-hero-slide {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

body.nls-dc.home .nls-hero-slider {
	overflow: hidden;
	z-index: 2;
}

body.nls-dc.home .nls-hero-slide {
	opacity: 0;
	transition: opacity 1.4s cubic-bezier(0.25, 1, 0.5, 1);
	background: var(--nls-navy, #0a1f44);
	display: flex;
	flex-direction: column;
	justify-content: center;
	pointer-events: none;
}

body.nls-dc.home .nls-hero-slide.is-active {
	opacity: 1;
	z-index: 2;
	pointer-events: auto;
}

body.nls-dc.home .nls-hero-slide.is-leaving {
	opacity: 1;
	z-index: 1;
	transition: opacity 1.4s cubic-bezier(0.25, 1, 0.5, 1);
	pointer-events: none;
}

body.nls-dc.home .nls-hero-slide .nls-home-hero__inner {
	position: relative;
	z-index: 4;
	transition: opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

body.nls-dc.home .nls-hero-slide:not(.is-active) .nls-home-hero__inner {
	opacity: 0.8;
}

body.nls-dc.home .nls-hero-slide.is-active .nls-home-hero__inner {
	opacity: 1;
}

/* Layering inside each slide */
body.nls-dc.home .nls-hero-slide__media {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
}

body.nls-dc.home .nls-hero-slide .nls-home-hero__photo {
	display: block;
	width: 100%;
	height: 100%;
	position: absolute;
	inset: 0;
	object-fit: var(--nls-hero-media-fit, cover);
	object-position: var(--nls-hero-focal-x, 100%) var(--nls-hero-focal-y, 50%);
}

/* Video smooth fade-in over fallback image */
body.nls-dc.home .nls-hero-slide video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: var(--nls-hero-media-fit, cover);
	object-position: var(--nls-hero-focal-x, 100%) var(--nls-hero-focal-y, 50%);
	opacity: 0;
	transition: opacity 1.2s ease;
	z-index: 2;
}

body.nls-dc.home .nls-hero-slide video.is-playing {
	opacity: 1;
}

/* On mobile viewports, never show or load video */
@media (max-width: 767px) {
	body.nls-dc.home .nls-hero-slide .nls-home-hero__photo,
	body.nls-dc.home .nls-hero-slide video {
		object-fit: var(--nls-hero-media-fit-mobile, cover);
		object-position: var(--nls-hero-focal-x-mobile, 80%) var(--nls-hero-focal-y-mobile, 50%);
	}
	body.nls-dc.home .nls-hero-slide {
		--nls-hero-c1: var(--nls-hero-c1-mobile, var(--nls-hero-c1));
		--nls-hero-c2: var(--nls-hero-c2-mobile, var(--nls-hero-c2));
		--nls-hero-overlay: var(--nls-hero-overlay-mobile, var(--nls-hero-overlay));
	}
}

body.nls-dc.home .nls-hero-slide .nls-home-hero__overlay {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: 2;
}

body.nls-dc.home .nls-hero-slide .nls-home-hero__motif {
	position: absolute;
	z-index: 3;
}

body.nls-dc.home .nls-hero-slide .nls-home-hero__inner {
	position: relative;
	z-index: 4;
}

/* Hide fallback when slider is active */
body.nls-dc.home .is-slider-ready > [data-nls-hero-fallback] {
	display: none !important;
}

/* ==========================================================================
   Per-Slide Content Placements & Alignments
   ========================================================================== */

body.nls-dc.home .nls-hero-slide[data-nls-hero-content$="-left"] .nls-home-hero__inner,
body.nls-dc.home .nls-hero-slide[data-nls-hero-content="centre-left"] .nls-home-hero__inner {
	align-self: flex-start;
	margin-inline: 0;
	margin-left: var(--nls-hero-inset-x, var(--nls-hero-edge, 1.5rem));
	align-items: stretch;
}

body.nls-dc.home .nls-hero-slide[data-nls-hero-content$="-right"] .nls-home-hero__inner,
body.nls-dc.home .nls-hero-slide[data-nls-hero-content="centre-right"] .nls-home-hero__inner {
	align-self: flex-end;
	margin-inline: 0;
	margin-right: var(--nls-hero-inset-x, var(--nls-hero-edge, 1.5rem));
	align-items: stretch;
}

body.nls-dc.home .nls-hero-slide[data-nls-hero-content="centre"] .nls-home-hero__inner,
body.nls-dc.home .nls-hero-slide[data-nls-hero-content$="-centre"] .nls-home-hero__inner {
	align-self: center;
	margin-inline: auto;
	padding-inline: var(--nls-hero-inset-x, 0px);
	align-items: stretch;
}

body.nls-dc.home .nls-hero-slide[data-nls-hero-content^="top-"] .nls-home-hero__inner {
	justify-content: flex-start;
	padding-top: calc(clamp(5.5rem, 12vh, 8rem) + var(--nls-hero-inset-y, 0px));
	padding-bottom: clamp(4.5rem, 10vh, 7rem);
}

body.nls-dc.home .nls-hero-slide[data-nls-hero-content^="below-navbar"] .nls-home-hero__inner {
	justify-content: flex-start;
	padding-top: calc(
		var(--nls-hero-header-extent, 5.75rem)
		+ var(--nls-hero-below-nav-gap, 16px)
		+ var(--nls-hero-inset-y, 0px)
	);
	padding-bottom: clamp(4.5rem, 10vh, 7rem);
}

body.nls-dc.home .nls-hero-slide[data-nls-hero-content^="bottom-"] .nls-home-hero__inner {
	justify-content: flex-end;
}

body.nls-dc.home .nls-hero-slide[data-nls-hero-content="centre"] .nls-home-hero__inner,
body.nls-dc.home .nls-hero-slide[data-nls-hero-content="centre-left"] .nls-home-hero__inner,
body.nls-dc.home .nls-hero-slide[data-nls-hero-content="centre-right"] .nls-home-hero__inner {
	justify-content: center;
}

body.nls-dc.home .nls-hero-slide[data-nls-hero-a1="left"] .nls-home-hero__line--1,
body.nls-dc.home .nls-hero-slide[data-nls-hero-a2="left"] .nls-home-hero__line--2 {
	text-align: left;
}

body.nls-dc.home .nls-hero-slide[data-nls-hero-a1="centre"] .nls-home-hero__line--1,
body.nls-dc.home .nls-hero-slide[data-nls-hero-a2="centre"] .nls-home-hero__line--2 {
	text-align: center;
}

body.nls-dc.home .nls-hero-slide[data-nls-hero-a1="right"] .nls-home-hero__line--1,
body.nls-dc.home .nls-hero-slide[data-nls-hero-a2="right"] .nls-home-hero__line--2 {
	text-align: right;
}

body.nls-dc.home .nls-hero-slide[data-nls-hero-alede="left"] .nls-home-hero__lede {
	text-align: left;
	margin-inline: 0;
}

body.nls-dc.home .nls-hero-slide[data-nls-hero-alede="centre"] .nls-home-hero__lede {
	text-align: center;
	margin-inline: auto;
}

body.nls-dc.home .nls-hero-slide[data-nls-hero-alede="right"] .nls-home-hero__lede {
	text-align: right;
	margin-inline: 0 0;
	margin-left: auto;
}

body.nls-dc.home .nls-hero-slide[data-nls-hero-alede="left"] .nls-home-hero__rule {
	margin-left: 0;
	margin-right: auto;
}

body.nls-dc.home .nls-hero-slide[data-nls-hero-alede="centre"] .nls-home-hero__rule {
	margin-inline: auto;
}

body.nls-dc.home .nls-hero-slide[data-nls-hero-alede="right"] .nls-home-hero__rule {
	margin-left: auto;
	margin-right: 0;
}

body.nls-dc.home .nls-hero-slide[data-nls-hero-alede="left"] .nls-home-hero__actions {
	justify-content: flex-start;
}

body.nls-dc.home .nls-hero-slide[data-nls-hero-alede="centre"] .nls-home-hero__actions {
	justify-content: center;
}

body.nls-dc.home .nls-hero-slide[data-nls-hero-alede="right"] .nls-home-hero__actions {
	justify-content: flex-end;
}

/* ==========================================================================
   Slider Controls
   ========================================================================== */

body.nls-dc.home .nls-hero-slider-controls {
	position: absolute;
	z-index: 5;
	left: 50%;
	bottom: 24px;
	transform: translateX(-50%);
	display: flex;
	align-items: center;
	gap: 4px;
	max-width: calc(100% - 24px);
	padding: 4px;
	border-radius: 6px;
	background: rgba(10,31,68,.88);
	box-shadow: 0 4px 16px rgba(0,0,0,.25);
	backdrop-filter: blur(4px);
}

@media (max-width: 1023px) {
	body.nls-dc.home .nls-hero-slider-controls {
		bottom: 20px;
	}
}

@media (max-width: 767px) {
	body.nls-dc.home .nls-hero-slider-controls {
		bottom: 16px;
	}
}

body.nls-dc.home .nls-hero-slider-controls button {
	display: inline-flex;
	flex: 0 0 44px;
	align-items: center;
	justify-content: center;
	width: 44px;
	min-height: 44px;
	padding: 0;
	border: 1px solid transparent;
	border-radius: 3px;
	background: transparent;
	color: #fff;
	font-family: inherit;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

body.nls-dc.home .nls-hero-slider-controls [data-nls-hero-pause] {
	font-size: 16px;
}

body.nls-dc.home .nls-hero-slider-controls button:hover {
	background: rgba(255,255,255,.15);
}

body.nls-dc.home .nls-hero-slider-controls button:focus-visible {
	outline: 3px solid var(--nls-gold, #c4a35a);
	outline-offset: 1px;
	background: #0a1f44;
}

body.nls-dc.home .nls-hero-slider-dots {
	display: flex;
	align-items: center;
	min-width: 0;
	overflow-x: auto;
	padding: 3px;
}

body.nls-dc.home .nls-hero-slider-dots button {
	flex-basis: 24px;
	width: 24px;
	min-height: 36px;
}

body.nls-dc.home .nls-hero-slider-dots span {
	width: 8px;
	height: 8px;
	border: 1px solid #fff;
	border-radius: 50%;
}

body.nls-dc.home .nls-hero-slider-dots [aria-current="true"] span {
	background: var(--nls-gold, #c4a35a);
	border-color: var(--nls-gold, #c4a35a);
}

body.nls-dc.home [data-nls-hero-slider][hidden],
body.nls-dc.home [data-nls-hero-controls][hidden],
body.nls-dc.home [data-nls-hero-controls] [hidden] {
	display: none !important;
}

@media (prefers-reduced-motion: reduce) {
	body.nls-dc.home .nls-hero-slide {
		transition: none !important;
	}
	body.nls-dc.home .nls-hero-slide video {
		display: none !important;
	}
}

/* ==========================================================================
   Admin UI Styles for Slide Selector & Repeater
   ========================================================================== */

.nls-hero-slides-admin {
	margin: 16px 0;
}

.nls-hero-slides-nav {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	background: #f6f7f7;
	border: 1px solid #c3c4c7;
	padding: 8px 12px;
	border-radius: 4px;
	margin-bottom: 16px;
}

.nls-hero-slides-nav .nls-hero-slides-label {
	font-weight: 600;
	margin-right: 4px;
}

.nls-hero-slide-tabs-list {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

.nls-hero-slide-tab.is-active {
	background: #2271b1 !important;
	border-color: #2271b1 !important;
	color: #fff !important;
	font-weight: 600;
}

.nls-hero-slide-pane {
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	padding: 16px 20px;
	margin-bottom: 20px;
}

.nls-hero-slide-toolbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: 1px solid #dcdcde;
	padding-bottom: 12px;
	margin-bottom: 16px;
}

.nls-hero-slide-actions {
	display: flex;
	gap: 6px;
}
