/* First-screen layout shared by the editorial, archive and guide templates. */
#primary {
	--hero-height: clamp(23rem, 57vh, 34rem);
	--hero-gutter: clamp(1rem, 4vw, 3rem);
	--hero-inset: clamp(2rem, 4.5vw, 4.25rem);
	--hero-line: min(calc(100% - 2 * var(--hero-gutter)), var(--wk-wide, 1180px));
	--hero-title: clamp(2.125rem, 5.5vw, 4.5rem);
	--hero-deck: clamp(1rem, 1.45vw, 1.2rem);
	--hero-shade: linear-gradient(90deg, rgba(8,28,40,.86) 0%, rgba(8,28,40,.69) 44%, rgba(8,28,40,.14) 100%), linear-gradient(0deg, rgba(8,28,40,.42), transparent 80%);
}

/* Scope layout, media and text rules to actual opening banners. */
#primary :is(.wk-tour-banner, .wk-home-hero, .wk-page-hero, .wk-post-hero, .wk-pillar-hero, .sg-hero, .wk-hotel-hero, .wk-guide-hero, .sc-hero, .aq-hero, .bm-hero, .dh-hero, .ip-hero, .kh-hero, .kp-hero, .zoo-hero, .wkbg-hero, .wlbg-hero, .wwbg-hero, .wk-archive-header, .wk-legal-hero) {
	position: relative;
	isolation: isolate;
	display: flow-root;
	box-sizing: border-box;
	width: 100%;
	max-width: none;
	height: auto;
	min-height: var(--hero-height);
	margin: 0;
	padding: 0;
	overflow: hidden;
	border: 0;
	border-radius: 0;
	background: linear-gradient(115deg, #122f3c, #174953);
	color: #fff;
	text-align: start;

	&::before { content: none; }
	&::after {
		content: "";
		position: absolute;
		z-index: 1;
		inset: 0;
		background: var(--hero-shade);
		pointer-events: none;
	}

	& > :is([class*="-hero-media"], figure[class*="-hero-image"], .wk-guide-photo, .scv-tour-media-main, .wk-hotel-hero__image, .sc-hero-photo) {
		position: absolute;
		z-index: 0;
		inset: 0;
		width: 100%;
		max-width: none;
		height: 100%;
		min-height: 0;
		margin: 0;
		padding: 0;
		aspect-ratio: auto;
		object-fit: cover;
	}
	& > :is([class*="-hero-media"], figure[class*="-hero-image"], .wk-guide-photo, .scv-tour-media-main) img {
		display: block;
		width: 100%;
		height: 100%;
		object-fit: cover;
	}
	& > :is([class*="-hero-media"], figure[class*="-hero-image"])::after,
	& > .wk-hotel-hero__shade { display: none; }

	& > :is(.site-shell, .wkbg-hero-inner, .wlbg-hero-inner, .wwbg-hero-inner) {
		position: relative;
		z-index: 2;
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		justify-content: flex-end;
		gap: 0;
		box-sizing: border-box;
		width: var(--hero-line);
		max-width: none;
		height: auto;
		min-height: var(--hero-height);
		margin: 0 auto;
		padding: var(--hero-inset) 0;
	}
	& :is([class*="-hero-copy"], .wk-hotel-hero__copy, .wk-hero-content) {
		width: 100%;
		max-width: none;
		margin: 0;
		padding: 0;
	}
	& h1 {
		max-width: min(100%, 29ch);
		margin: 0;
		color: white;
		font: 700 var(--hero-title)/1.04 var(--wk-font-display, Georgia, serif);
		letter-spacing: -.04em;
		text-transform: none;
		text-wrap: balance;
		overflow-wrap: anywhere;
	}
	& :is([class$="-deck"], [class*="-deck "], .wk-hotel-hero__dek, .wk-hero-description, .sc-hero-inner > p, .wk-legal-hero > .site-shell > p, .archive-description) {
		max-width: 65ch;
		margin: .875rem 0 0;
		color: #f4f7f8;
		font: 400 var(--hero-deck)/1.5 var(--wk-font-body, system-ui, sans-serif);
		letter-spacing: normal;
		text-wrap: pretty;
	}
	& :is(.wk-pillar-deck, .archive-description) > p { margin: 0; font: inherit; color: inherit; }
	& :is(.wk-eyebrow, .wk-legal-eyebrow, .wk-hotel-eyebrow, .wk-guide-access) {
		margin: 0 0 .5rem;
		color: #e2f1ef;
		font: 700 .8125rem/1.35 var(--wk-font-body, system-ui, sans-serif);
		letter-spacing: .085em;
		text-transform: uppercase;
	}
	& :is(.wk-hero-actions, .wk-guide-actions, .wk-hotel-hero__actions, .sc-hero-actions) { margin: 1.125rem 0 0; }
	& :is(.wk-hero-actions, .wk-guide-actions, .wk-hotel-hero__actions, .sc-hero-actions) a { min-height: 44px; }
	& a:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
}

/* Covers the editable block and tour plugin breadcrumb markup as well. */
#primary :is(.wk-breadcrumbs, .sc-breadcrumbs, .scv-breadcrumbs, .wkbg-breadcrumbs, .wlbg-breadcrumbs, .wwbg-breadcrumbs) {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: .125rem .5rem;
	max-width: 100%;
	margin: 0 0 .875rem;
	padding: 0;
	background: transparent;
	color: #fff;
	font: 600 .875rem/1.5 var(--wk-font-body, system-ui, sans-serif);
	letter-spacing: normal;
	text-transform: none;
	text-align: start;
	overflow-wrap: anywhere;

	& :is(a, p, span) { margin: 0; padding: 0; min-height: 0; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; }
	& a { display: inline-block; padding-block: 2px; text-decoration: underline; text-underline-offset: .18em; }
	& a:hover { text-decoration-thickness: 2px; }
}

#primary .wk-home-hero .wk-hero-quick {
	align-self: stretch;
	margin-top: 1.5rem;
}
#primary .wk-guide-hero .wk-guide-intro :is(.wk-guide-date, .wk-guide-time, .wk-guide-venue) {
	color: #fff;
	line-height: 1.45;
	margin: .25rem 0 0;
}
#primary .wk-guide-hero .wk-guide-intro h1 { margin-bottom: .625rem; }
#primary .wk-guide-hero .wk-guide-actions a:not(.wk-guide-primary) { color: #fff; }

/* Tour photography is an interactive gallery. Keep the thumbnails and booking controls operable. */
#primary .scv-tour-hero {
	min-height: var(--hero-height);
	align-items: start;
}
#primary .scv-tour-hero h1 {
	margin-block: 0 .875rem;
	font: 700 var(--hero-title)/1.04 var(--wk-font-display, Georgia, serif);
	letter-spacing: -.04em;
	overflow-wrap: anywhere;
}
#primary .scv-tour-hero .scv-breadcrumbs { color: #244653; }
#primary .scv-tour-media-main { aspect-ratio: 3 / 2; overflow: hidden; }
#primary .scv-tour-media-main .scv-hero-main-image { width: 100%; height: 100%; object-fit: cover; }
#primary .scv-tour-thumbs .scv-thumb { aspect-ratio: 4 / 3; min-height: 44px; overflow: hidden; }
#primary .scv-tour-thumbs .scv-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Bring the plugin's existing title and main photograph into the same banner. */
#primary .scv-shell:has(.wk-tour-banner),
#primary .scv-shell:has(.wk-tour-banner) .scv-container {
	width: 100%;
	max-width: none;
	padding-inline: 0;
	margin-inline: 0;
}
#primary .scv-tour-hero:has(.wk-tour-banner) {
	display: block;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}
#primary .scv-tour-media:has(.wk-tour-banner) { display: block; }
#primary .scv-tour:has(.wk-tour-banner) > :not(.scv-tour-hero, .scv-mobile-cta),
#primary .scv-shell:has(.wk-tour-banner) .scv-topbar,
#primary .scv-tour-hero:has(.wk-tour-banner) :is(.scv-tour-thumbs, .scv-tour-summary) {
	box-sizing: border-box;
	width: var(--hero-line);
	margin-inline: auto;
}
#primary .scv-tour-hero:has(.wk-tour-banner) .scv-tour-thumbs { margin-block: .875rem; }
#primary .wk-tour-banner .scv-tour-media-main { border-radius: 0; border: 0; }
#primary .wk-tour-banner .site-shell { pointer-events: none; }
#primary .wk-tour-banner .scv-breadcrumbs { color: #fff; }
#primary .wk-tour-banner .scv-breadcrumbs a { pointer-events: auto; }
#primary .wk-tour-banner h1 { margin: 0; }
#primary .wk-tour-banner .scv-photo-count { top: .75rem; right: .75rem; bottom: auto; }
@media (max-width: 45rem) {
	#primary {
		--hero-height: clamp(26.25rem, 57svh, 34rem);
		--hero-shade: linear-gradient(0deg, rgba(8,28,40,.86), rgba(8,28,40,.62) 62%, rgba(8,28,40,.3));
	}
	#primary .wk-home-hero .wk-hero-quick {
		display: flex;
		flex-wrap: wrap;
		gap: .125rem .875rem;
	}
	#primary .wk-home-hero .wk-hero-quick a {
		min-height: 44px;
		padding: .375rem 0;
		border: 0;
		font-size: .875rem;
	}
}

/* Secondary links and facts stay in the document immediately after the photograph. */
#primary .wk-hero-details {
	width: 100%;
	max-width: none;
	margin: 0;
	background: #eef4f3;
	color: #173a46;
	border-bottom: 1px solid #cfdddc;
}
#primary .wk-hero-details > .site-shell {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: .625rem 1.25rem;
	box-sizing: border-box;
	width: var(--hero-line);
	margin: auto;
	padding: .75rem 0;
}
#primary .wk-hero-details .site-shell > * {
	display: flex;
	flex-wrap: wrap;
	gap: .4rem .65rem;
	width: auto;
	height: auto;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
}
#primary .wk-hero-details :is(span, p, .sg-fact) {
	display: inline-flex;
	align-items: center;
	width: auto;
	min-height: 0;
	margin: 0;
	padding: .32rem .7rem;
	border: 1px solid #c9d9d6;
	border-radius: 1rem;
	background: #fff;
	color: #244753;
	font: 600 .875rem/1.4 var(--wk-font-body, system-ui, sans-serif);
}
#primary .wk-hero-details a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	width: auto;
	margin: 0;
	padding: .4rem .7rem;
	border: 0;
	background: transparent;
	color: #074b5a;
	font: 700 .95rem/1.4 var(--wk-font-body, system-ui, sans-serif);
	text-decoration: underline;
	text-underline-offset: .2em;
}
#primary .wk-hero-details .wk-hero-quick span { border: 0; padding: 0; background: none; }
#primary .wk-hero-details a:focus-visible { outline: 3px solid #176172; outline-offset: 2px; }
@media (max-width: 22.5rem) {
	#primary { --hero-inset: 1.25rem; }
}
/* Stage photography usually places performers in the upper part of the frame. */
#primary .wk-guide-photo img { object-position: 50% 25%; }
#primary .wk-guide-photo img[src*="/dukes-live-music-"] { object-position: 12% 0%; }
