/* IMV Day Tour Hero - completely separate namespace ------------------ */

html.imv-day-tour-hero-page,
body.imv-day-tour-hero-page {
	max-width: 100%;
	overflow-x: hidden !important;
}

@supports (overflow: clip) {
	html.imv-day-tour-hero-page,
	body.imv-day-tour-hero-page {
		overflow-x: clip !important;
	}
}

.imv-day-tour-hero,
.imv-day-tour-hero * {
	box-sizing: border-box;
}

.imv-day-tour-hero {
	--imv-dt-overlay-top: rgba(0,0,0,0);
	--imv-dt-overlay-mid: rgba(0,0,0,.12);
	--imv-dt-overlay-bottom: rgba(0,0,0,.84);
	--imv-dt-glass-bg: rgba(255,255,255,.12);
	--imv-dt-glass-border: rgba(255,255,255,.28);

	position: relative;
	width: 100vw !important;
	max-width: 100vw !important;
	height: 748px;
	min-height: 748px;

	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;

	overflow: hidden;
	overflow-x: clip;
	background: #111;
	font-family: "Inter", Arial, sans-serif;
}

.imv-day-tour-hero__backgrounds,
.imv-day-tour-hero__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.imv-day-tour-hero__backgrounds {
	z-index: 1;
}

.imv-day-tour-hero__bg {
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	will-change: opacity;
	transform: none !important;
	-webkit-transform: none !important;
}

.imv-day-tour-hero__bg--current {
	z-index: 1;
	opacity: 1;
}

.imv-day-tour-hero__bg--next {
	z-index: 2;
	opacity: 0;
}

.imv-day-tour-hero__overlay {
	position: absolute;
	inset: 0;
	z-index: 3;
	pointer-events: none;
	background: linear-gradient(
		180deg,
		var(--imv-dt-overlay-top) 0%,
		var(--imv-dt-overlay-top) 37%,
		var(--imv-dt-overlay-mid) 62%,
		var(--imv-dt-overlay-bottom) 100%
	);
}

.imv-day-tour-hero__content {
	position: absolute;
	z-index: 5;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	max-width: 100%;
	min-width: 0;

	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 45px;

	padding: 0 58px 38px;
}

.imv-day-tour-hero__info {
	flex: 1 1 auto;
	min-width: 0;
	max-width: 570px;
}

.imv-day-tour-hero__back {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin: 0 0 14px;
	color: rgba(255,255,255,.68);
	font-family: "Inter", Arial, sans-serif;
	font-size: 11px;
	font-weight: 400;
	line-height: 1.4;
	text-decoration: none;
	transition: color .2s ease;
}

.imv-day-tour-hero__back:hover {
	color: #fff;
}

.imv-day-tour-hero__eyebrow {
	margin: 0 0 14px;
	color: rgba(255,255,255,.60);
	font-family: "Inter", Arial, sans-serif;
	font-size: 11px;
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: .20em;
	text-transform: uppercase;
}

.imv-day-tour-hero__title {
	margin: 0;
	color: #fff;
	font-family: "Playfair Display", Georgia, serif;
	font-size: 36px;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: 0;
}

.imv-day-tour-hero__thumbs {
	flex: 0 1 auto;
	max-width: 100%;
	min-width: 0;

	display: flex;
	align-items: flex-end;
	gap: 8px;

	padding: 8px 0 20px;
	overflow: visible;
	scrollbar-width: none;
}

.imv-day-tour-hero__thumbs::-webkit-scrollbar {
	display: none;
}

.imv-day-tour-hero__thumb {
	position: relative;
	flex: 0 0 80px;
	width: 80px;
	height: 52px;

	padding: 0;
	margin: 0;

	border: 1px solid rgba(255,255,255,.10) !important;
	border-radius: 4px;

	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;

	color: inherit !important;
	-webkit-appearance: none !important;
	appearance: none !important;

	box-shadow: none;
	text-shadow: none !important;
	filter: none !important;

	overflow: visible;
	outline: none;
	cursor: pointer;
	line-height: 1;
	font: inherit;

	transition:
		width .26s cubic-bezier(.2,.7,.2,1),
		height .26s cubic-bezier(.2,.7,.2,1),
		flex-basis .26s cubic-bezier(.2,.7,.2,1),
		border-color .18s ease,
		padding .18s ease;
}

.imv-day-tour-hero__thumb:hover,
.imv-day-tour-hero__thumb:focus,
.imv-day-tour-hero__thumb:focus-visible,
.imv-day-tour-hero__thumb:active {
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
	color: inherit !important;
	filter: none !important;
	text-decoration: none !important;
}

.imv-day-tour-hero__thumb::before,
.imv-day-tour-hero__thumb::after {
	content: none !important;
	display: none !important;
}

.imv-day-tour-hero__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center center;
	image-rendering: auto;

	border: 0;
	border-radius: 4px;
	opacity: .88;
	pointer-events: none;

	transition: opacity .2s ease;
}

.imv-day-tour-hero__thumb:not(.is-active):hover img {
	opacity: 1;
}

.imv-day-tour-hero__thumb.is-active,
.imv-day-tour-hero__thumb.is-active:hover,
.imv-day-tour-hero__thumb.is-active:focus,
.imv-day-tour-hero__thumb.is-active:active {
	flex-basis: 114px;
	width: 114px;
	height: 67px;
	padding: 4px;

	background: var(--imv-dt-glass-bg) !important;
	background-color: var(--imv-dt-glass-bg) !important;
	background-image: none !important;

	border: 1px solid var(--imv-dt-glass-border) !important;

	-webkit-backdrop-filter: blur(10px) saturate(140%);
	backdrop-filter: blur(10px) saturate(140%);

	box-shadow:
		0 7px 24px rgba(0,0,0,.22),
		inset 0 1px 0 rgba(255,255,255,.16);
}

.imv-day-tour-hero__thumb.is-active img {
	opacity: 1;
}

.imv-day-tour-hero__arrow {
	position: absolute;
	left: 50%;
	bottom: -17px;

	width: 11px;
	height: 11px;

	opacity: 0;
	border-top: 3px solid #fff;
	border-left: 3px solid #fff;
	border-right: 0 !important;
	border-bottom: 0 !important;
	border-radius: 1px;

	transform: translateX(-50%) rotate(45deg);
	transition: opacity .2s ease;
	pointer-events: none;
}

.imv-day-tour-hero__thumb.is-active .imv-day-tour-hero__arrow {
	opacity: 1;
}

.imv-day-tour-hero__editor-notice {
	padding: 18px 20px;
	border: 1px dashed #c8c8c8;
	background: #fff;
	color: #444;
	font: 14px/1.5 Arial, sans-serif;
}


/*
 * Desktop image-composition fix.
 * 1335.84 × 748.23 is essentially 16:9. Keeping that same ratio at wider
 * desktop widths prevents background-size:cover from over-cropping/zooming
 * the source image.
 */
@media (min-width: 1025px) {
	.imv-day-tour-hero.imv-day-tour-hero--ratio-16-9 {
		height: min(56.25vw, 100vh) !important;
		min-height: min(56.25vw, 100vh) !important;
	}
}

/* Tablet */
@media (max-width: 1024px) {
	.imv-day-tour-hero {
		height: 650px;
		min-height: 650px;
	}

	.imv-day-tour-hero__content {
		flex-direction: column;
		align-items: flex-start;
		gap: 24px;
		padding: 0 32px 36px;
	}

	.imv-day-tour-hero__info {
		width: 100%;
		max-width: 100%;
	}

	.imv-day-tour-hero__thumbs {
		width: 100%;
		overflow-x: auto;
		overflow-y: visible;
		padding: 6px 0 22px;
		-webkit-overflow-scrolling: touch;
	}
}

/* Mobile */
@media (max-width: 767px) {
	.imv-day-tour-hero {
		height: 100svh;
		min-height: 100svh;
	}

	.imv-day-tour-hero__content {
		gap: 20px;
		padding: 0 18px 26px;
	}

	.imv-day-tour-hero__title {
		font-size: 32px;
		line-height: 1.2;
	}

	.imv-day-tour-hero__eyebrow {
		letter-spacing: .14em;
	}
}
