/* Noble Structures: Hero slideshow (WPBakery element, ticket #24842).
   Height follows the old slider: 1200x1000 (max 1000px tall) above 1024px wide,
   1024x768 to 779px, 778x560 to 481px, 680x950 on phones. */

.ns-hero-row,
.ns-hero-row > .x-container,
.ns-hero-row .x-column,
.ns-hero-row .wpb_wrapper {
	margin: 0 !important;
	padding: 0 !important;
	width: 100% !important;
	max-width: none !important;
	float: none !important;
}

.ns-hero {
	position: relative;
	display: block;
	width: 100%;
	overflow: hidden;
	aspect-ratio: 1200 / 1000;
	max-height: 1000px;
	margin: 0;
	background: transparent;
}

@media (max-width: 1024px) {
	.ns-hero { aspect-ratio: 1024 / 768; }
}
@media (max-width: 778px) {
	.ns-hero { aspect-ratio: 778 / 560; }
}
@media (max-width: 480px) {
	.ns-hero { aspect-ratio: 680 / 950; }
}

.ns-hero .ns-hero__slide {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	opacity: 0;
	z-index: 0;
	/* power2.inOut, as the old slider */
	transition: opacity var(--ns-fade, 4000ms) cubic-bezier(0.455, 0.03, 0.515, 0.955);
}
.ns-hero .ns-hero__slide.is-active {
	opacity: 1;
	z-index: 2;
}
.ns-hero .ns-hero__slide.is-prev {
	opacity: 1;
	z-index: 1;
	transition: none;
}
.ns-hero .ns-hero__slide img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	object-fit: cover;
	object-position: 50% 50%;
	transform: scale(1);
	transform-origin: 50% 50%;
}
.ns-hero .ns-hero__slide.is-zoom img {
	transform: scale(var(--ns-zoom, 1.1));
	transition: transform var(--ns-zoom-time, 10000ms) linear 300ms;
}

/* Heading over the photos. Sizes and positions follow the old slider layer:
   above 778px wide, 68/82px Raleway 300 at 250px from the top, scaled by width/1200
   (on a centred 1200px grid when wider); tablet: left 35px on a 778 grid, no letter spacing;
   phones (480px and under): 45/56px, 221px from the top, 35px from the left, on a 680 grid. */
.ns-hero { container-type: inline-size; }
.ns-hero .ns-hero__text {
	--ns-w: min(100cqw, 1200px);
	position: absolute;
	z-index: 5;
	left: max(0px, (100cqw - 1200px) / 2);
	top: calc(var(--ns-w) * 250 / 1200);
	margin: 0;
	padding: 0;
	color: #fff;
	font-family: "Raleway", sans-serif;
	font-weight: 300;
	font-style: normal;
	font-size: round(calc(var(--ns-w) * 68 / 1200), 1px);
	line-height: round(calc(var(--ns-w) * 82 / 1200), 1px);
	letter-spacing: calc(var(--ns-w) * 2 / 1200);
	text-align: left;
	text-transform: none;
	white-space: nowrap;
	pointer-events: none;
	animation: ns-hero-text-in 300ms cubic-bezier(0.645, 0.045, 0.355, 1) both;
}
@media (max-width: 778px) {
	.ns-hero .ns-hero__text {
		left: calc(100cqw * 35 / 778);
		letter-spacing: 0;
	}
}
@media (max-width: 480px) {
	.ns-hero .ns-hero__text {
		left: calc(100cqw * 35 / 680);
		top: calc(100cqw * 221 / 680);
		font-size: round(calc(100cqw * 45 / 680), 1px);
		line-height: round(calc(100cqw * 56 / 680), 1px);
		letter-spacing: calc(100cqw * 3 / 680);
	}
}
@keyframes ns-hero-text-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
	.ns-hero .ns-hero__slide.is-zoom img { transform: scale(1); transition: none; }
}
