/**
 * Hero slider (ADO #41324).
 *
 * Colours are fixed here on purpose: the text sits on photography and has to
 * stay legible, so an editor can change typography, sizes and spacing through
 * the Elementor controls but not the palette. The single exception is the arrow
 * background, which has its own control because it must adapt to the photo.
 *
 * Sizes and spacing that the client should control are driven by Elementor
 * selectors, so avoid hard-coding those unless they are structural.
 */

.sir-hero {
	--sir-text: #ffffff;
	--sir-text-muted: #f2f2f2;
	--sir-ink: #0a2246; /* Sotheby's navy, sampled from the site footer. */
	--sir-scrim-top-opacity: 0.3;
	--sir-scrim-top-height: 14%;
	--sir-scrim-bottom-opacity: 0.5;
	--sir-scrim-bottom-height: 42%;

	position: relative;
	overflow: hidden;
	width: 100%;
}

.sir-hero__viewport {
	overflow: hidden;
	width: 100%;
}

.sir-hero__track {
	display: flex;
	will-change: transform;
}

.sir-hero.is-animating .sir-hero__track {
	transition: transform var(--sir-hero-speed, 600ms) cubic-bezier(0.4, 0, 0.2, 1);
}

/*
 * The screendesign hero is ~2.5:1, but the ratio is a *floor*, not a fixed
 * height: a long headline on a narrow screen has to grow the slide rather than
 * be clipped. The ratio spacer establishes the minimum; content beyond it pushes
 * the slide taller, and the flex track makes every slide match the tallest.
 */
.sir-hero__slide {
	position: relative;
	display: flex;
	flex: 0 0 100%;
	width: 100%;
	min-width: 100%;
	margin: 0;
	padding: 0;
	overflow: hidden;
}

.sir-hero__slide::before {
	content: "";
	flex: 0 0 0;
	width: 0;
	padding-top: calc(100% / var(--sir-hero-ratio, 2.5));
	pointer-events: none;
}

/* Media ------------------------------------------------------------------ */

.sir-hero__media {
	position: absolute;
	inset: 0;
}

.sir-hero__media img,
.sir-hero__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
}

/*
 * Two gradients, one per text zone: a short one under the slide header and a
 * taller one under the headline block. The middle of the photograph stays
 * untouched, which a single full-height wash would flatten.
 */
.sir-hero__scrim {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image:
		linear-gradient(
			180deg,
			rgba(0, 0, 0, var(--sir-scrim-top-opacity)) 0%,
			rgba(0, 0, 0, 0) var(--sir-scrim-top-height)
		),
		linear-gradient(
			0deg,
			rgba(0, 0, 0, var(--sir-scrim-bottom-opacity)) 0%,
			rgba(0, 0, 0, 0) var(--sir-scrim-bottom-height)
		);
}

/*
 * Safety net for bright image areas the gradient cannot fully cover. Kept low
 * enough to stay invisible as an effect and only register as legibility.
 */
.sir-hero--text-shadow .sir-hero__kicker,
.sir-hero--text-shadow .sir-hero__headline,
.sir-hero--text-shadow .sir-hero__facts,
.sir-hero--text-shadow .sir-hero__topbar-meta {
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.sir-hero__overlay-link {
	position: absolute;
	inset: 0;
	z-index: 2;
}

/* Structure -------------------------------------------------------------- */

.sir-hero__inner {
	position: relative;
	z-index: 3;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	flex: 1 1 100%;
	min-height: 100%;
	pointer-events: none;
}

.sir-hero__inner a,
.sir-hero__inner button {
	pointer-events: auto;
}

/* Top bar ---------------------------------------------------------------- */

.sir-hero__topbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 24px;
	padding: 28px 56px;
	color: var(--sir-text);
}

.sir-hero__topbar-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 14px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-size: clamp(10px, 2.6vw, 13px);
}

.sir-hero__objectnr {
	font-weight: 600;
}

.sir-hero__location {
	position: relative;
	padding-left: 18px;
	opacity: 0.9;
}

.sir-hero__location::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	width: 1px;
	height: 1em;
	transform: translateY(-50%);
	background-color: currentColor;
	opacity: 0.5;
}

.sir-hero__cta {
	display: inline-block;
	padding: 12px 26px;
	border: 1px solid var(--sir-text);
	color: var(--sir-text);
	text-decoration: none;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	font-size: clamp(10px, 2.4vw, 12px);
	white-space: nowrap;
	transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}

.sir-hero__cta:hover,
.sir-hero__cta:focus-visible {
	background-color: var(--sir-text);
	color: var(--sir-ink);
}

/* Content ---------------------------------------------------------------- */

.sir-hero__content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-end;
	flex: 1 1 auto;
	padding: 48px 56px 56px;
	text-align: left;
}

.sir-hero__content-inner {
	max-width: 720px;
}

.sir-hero__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
}

.sir-hero__badge {
	display: inline-block;
	padding: 7px 16px;
	border: 1px solid rgba(255, 255, 255, 0.7);
	background-color: rgba(10, 10, 10, 0.55);
	color: var(--sir-text);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	font-size: clamp(9px, 2.3vw, 11px);
	line-height: 1.2;
}

.sir-hero__kicker {
	margin: 0 0 10px;
	color: var(--sir-text);
	letter-spacing: 0.18em;
	text-transform: uppercase;
	font-size: clamp(10px, 2.6vw, 13px);
	line-height: 1.3;
}

.sir-hero__headline {
	margin: 0 0 16px;
	color: var(--sir-text);
	font-size: clamp(21px, 4.6vw, 52px);
	font-weight: 400;
	line-height: 1.15;
}

.sir-hero__facts {
	margin: 0;
	color: var(--sir-text-muted);
	font-size: clamp(12px, 3.1vw, 18px);
	line-height: 1.5;
}

/* Navigation ------------------------------------------------------------- */

.sir-hero__nav {
	position: absolute;
	top: 50%;
	z-index: 4;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	padding: 0;
	transform: translateY(-50%);
	border: 1px solid var(--sir-text);
	border-radius: 50%;
	background-color: rgba(0, 0, 0, 0.25);
	color: var(--sir-text);
	cursor: pointer;
	transition: background-color 200ms ease, opacity 200ms ease;
}

.sir-hero__nav i,
.sir-hero__nav svg {
	display: block;
	font-size: 18px;
	line-height: 1;
	fill: currentColor;
}

.sir-hero__nav:hover,
.sir-hero__nav:focus-visible {
	background-color: rgba(0, 0, 0, 0.55);
}

.sir-hero__nav[disabled] {
	opacity: 0.35;
	cursor: default;
}

.sir-hero__nav--prev {
	left: 24px;
}

.sir-hero__nav--next {
	right: 24px;
}

.sir-hero__nav-icon {
	display: block;
	width: 10px;
	height: 10px;
	border-top: 1.5px solid currentColor;
	border-right: 1.5px solid currentColor;
}

/* Fallback chevron, used only when the icon control is cleared. */
.sir-hero__nav-icon--prev {
	transform: translateX(2px) rotate(-135deg);
}

.sir-hero__nav-icon--next {
	transform: translateX(-2px) rotate(45deg);
}

/*
 * Per screendesign these are short horizontal strokes in the bottom right of
 * the slide, not centred circles.
 */
.sir-hero__dots {
	position: absolute;
	right: 56px;
	bottom: 44px;
	z-index: 4;
	display: flex;
	align-items: center;
	gap: 10px;
}

.sir-hero__dot {
	position: relative;
	width: 28px;
	height: 2px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background-color: rgba(255, 255, 255, 0.45);
	cursor: pointer;
	transition: background-color 200ms ease, opacity 200ms ease;
}

.sir-hero__dot::before {
	/* Keeps the tap target at 44px without changing the visible stroke. */
	content: "";
	position: absolute;
	display: block;
	width: inherit;
	height: 44px;
	transform: translateY(-21px);
}

.sir-hero__dot[aria-selected="true"] {
	background-color: var(--sir-text);
}

.sir-hero__nav:focus-visible,
.sir-hero__dot:focus-visible,
.sir-hero__cta:focus-visible {
	outline: 2px solid var(--sir-text);
	outline-offset: 3px;
}

/* Touch / mobile (block 5) ----------------------------------------------- */

.sir-hero.is-dragging .sir-hero__track {
	transition: none;
}

.sir-hero.is-dragging {
	cursor: grabbing;
}

@media (max-width: 1024px) {
	.sir-hero__topbar {
		padding: 22px 28px;
	}

	.sir-hero__content {
		padding: 32px 28px 48px;
	}

	.sir-hero__dots {
		right: 28px;
		bottom: 26px;
	}

	.sir-hero--arrows-desktop .sir-hero__nav {
		display: none;
	}
}

@media (max-width: 767px) {
	.sir-hero__topbar {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
		padding: 18px 20px;
	}

	.sir-hero__content {
		padding: 24px 20px 56px;
	}

	.sir-hero__dots {
		right: 20px;
		bottom: 20px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sir-hero.is-animating .sir-hero__track {
		transition: none;
	}
}

/* Location line without an object number in front of it needs no divider. */
.sir-hero__location--solo {
	padding-left: 0;
}

.sir-hero__location--solo::before {
	display: none;
}
