/* Home page hero: stacked gradients (squashed vertically), centered logo */
.camp-caw-home-hero {
	position: relative;
	width: 100%;
	height: 100svh;
	height: 100vh;
	overflow: hidden;
}

/* Homepage header video: full-height -> shrinking cropped header */
.chenny-header-video-shell {
	position: relative;
	width: 100%;
}

.chenny-header-video-spacer {
	display: none;
}

.chenny-header-video {
	position: relative;
	width: 100%;
	height: 100vh; /* JS will override with pixel height */
	box-sizing: border-box;
	background: #fff;
	border-radius: 0.01px; /* Prevent pixel-imperfection issues in Chrome */
	overflow: hidden;
	padding-top: 0;
	padding-bottom: 0;
	padding-left: var(--wp--style--root--padding-left, 1.5rem);
	padding-right: var(--wp--style--root--padding-right, 1.5rem);
	margin-top: 0;
	margin-bottom: 0;
}

.chenny-header-video__frame {
	position: relative;
	height: 100%;
	border-radius: 23px;
	overflow: hidden;
	background: #111;
	box-shadow: 0 1px 10px rgba(0, 0, 0, 0.10);
}

.chenny-header-video__video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center; /* always crop from middle vertically */
	display: block;
}

.chenny-header-video__bar {
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 84px;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.20) 70%, rgba(0,0,0,0) 100%);
	transition: opacity 180ms ease;
	pointer-events: none;
	opacity: 1;
}

.chenny-header-video.is-collapsed .chenny-header-video__bar {
	opacity: 1;
}

.chenny-header-video__bar-text {
	color: #fff;
	font-family: "Special Gothic Expanded One", sans-serif;
	font-weight: 400;
	font-size: 36px;
	line-height: 1;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	text-align: center;
}

.chenny-header-video__tagline {
	display: none; /* desktop only */
	position: absolute;
	left: 1.25rem;
	bottom: 10px;
	z-index: 30;
	pointer-events: none;
	max-width: min(505px, calc(100% - 2.5rem));
}

.chenny-header-video__tagline-text {
	color: #fff;
	font-family: "Special Gothic Expanded One", sans-serif;
	font-weight: 400;
	font-style: normal;
	font-size: 40px;
	line-height: 1.3;
	letter-spacing: 0;
	text-transform: none;
	display: inline-block;
}

/* Bottom-right: countdown + ENROLL NOW (same pill style as photos gallery Login) */
.chenny-header-video__enroll {
	position: absolute;
	right: 1.25rem;
	bottom: 10px;
	z-index: 30;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0.5rem;
	max-width: min(280px, calc(100% - 2.5rem));
	pointer-events: none;
	transition: opacity 180ms ease;
}

.chenny-header-video__enroll .chenny-header-video__enroll-btn {
	pointer-events: auto;
}

.chenny-header-video__countdown {
	margin: 0;
	text-align: right;
	color: #fff;
	font-family: "Special Gothic Expanded One", sans-serif;
	font-weight: 400;
	font-size: 15px;
	line-height: 1.35;
	word-wrap: break-word;
}

.chenny-header-video__countdown-line1,
.chenny-header-video__countdown-line2 {
	font: inherit;
	color: inherit;
}

.chenny-header-video__enroll-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transform: rotate(-90deg);
}

/* Compact header variant: always render at collapsed height. */
.chenny-header-video-shell--compact .chenny-header-video {
	position: relative;
	height: 104px;
	padding: 10px;
}

.chenny-header-video-shell--compact .chenny-header-video__tagline,
.chenny-header-video-shell--compact .chenny-header-video__enroll {
	display: none !important;
}

.chenny-header-video-shell--compact .chenny-header-video__bar {
	opacity: 1;
}

.chenny-header-video-shell--compact .chenny-header-video-spacer--compact {
	display: none;
}

@media (min-width: 782px) {
	.chenny-header-video-shell.is-desktop-mode .chenny-header-video-spacer {
		display: block;
	}

	.chenny-header-video-shell.is-desktop-mode .chenny-header-video {
		position: fixed;
		left: 0;
		right: 0;
		top: 0;
		z-index: 20;
	}

	.chenny-header-video-shell.is-desktop-mode .chenny-header-video {
		padding: 10px;
	}

	.admin-bar .chenny-header-video-shell.is-desktop-mode .chenny-header-video {
		top: 32px;
	}

	.chenny-header-video-shell--compact .chenny-header-video-spacer--compact {
		display: block;
		height: 104px;
	}

	.chenny-header-video-shell--compact .chenny-header-video {
		position: fixed;
		left: 0;
		right: 0;
		top: 0;
		z-index: 20;
	}

	.admin-bar .chenny-header-video-shell--compact .chenny-header-video {
		top: 32px;
	}

	.chenny-header-video__tagline {
		display: block;
	}
}

@media (max-width: 781px) {
	/* Don’t clip full-bleed shell (negative margins) inside alignfull / shortcode wrappers. */
	.wp-block-group.alignfull:has(.chenny-header-video-shell),
	.wp-block-shortcode:has(.chenny-header-video-shell) {
		overflow-x: visible;
	}

	/* Full-bleed red header (matches .is-style-camp-caw-section-header-red #BC3226) */
	.chenny-header-video-shell {
		width: 100vw;
		max-width: 100vw;
		margin-left: calc(50% - 50vw);
		margin-right: calc(50% - 50vw);
	}

	.chenny-header-video {
		position: relative;
		height: auto;
		min-height: 220px;
		padding: 0;
		padding-left: 0;
		padding-right: 0;
		background: #bc3226;
	}

	.chenny-header-video-shell--compact .chenny-header-video {
		padding: 0;
		height: auto;
		min-height: 104px;
	}

	/* height:100% + hidden video leaves no in-flow content; use explicit height so the bar isn’t covered/collapsed. */
	.chenny-header-video__frame {
		border-radius: 0;
		box-shadow: none;
		background: #bc3226;
		height: auto;
		min-height: 220px;
	}

	.chenny-header-video-shell--compact .chenny-header-video__frame {
		min-height: 84px;
		height: 100%;
	}

	.chenny-header-video__video {
		display: none !important;
	}

	/* Above .chenny-header-video__enroll (z-index:30) so title + menu stay visible. */
	.chenny-header-video__bar {
		opacity: 1;
		background: transparent;
		z-index: 40;
		pointer-events: none;
	}

	.chenny-header-video__bar-text {
		color: #fff;
		font-size: clamp(1.125rem, 6.5vw, 2rem);
		padding-left: 3rem;
		padding-right: 3rem;
		box-sizing: border-box;
		max-width: 100%;
		position: relative;
		z-index: 1;
	}

	/* Countdown / “Register for next year” — desktop only; keep ENROLL NOW visible */
	.chenny-header-video__countdown {
		display: none !important;
	}
}

.camp-caw-home-hero__gradients {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
}

.camp-caw-home-hero__gradient {
	flex: 1;
	min-height: 0;
}

/* Top: red to orange */
.camp-caw-home-hero__gradient--top {
	background: linear-gradient(180deg, #BC3226 0%, #c94a3f 40%, #d96a45 70%, #e07a50 100%);
}

/* Bottom: reddish to purple */
.camp-caw-home-hero__gradient--bottom {
	background: linear-gradient(180deg, #BC4331 11%, #7B3E50 48%);
}

.camp-caw-home-hero__logo-wrap {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
}

.camp-caw-home-hero__logo {
	width: 20rem;
	max-width: 80vw;
	height: auto;
	object-fit: contain;
}

/* Omit empty paragraph in mobile header (hero) group */
.wp-block-group.alignfull:has(.camp-caw-home-hero) p:empty {
	display: none;
}

/* Hide hero on desktop widths */
@media (min-width: 782px) {
	.camp-caw-home-hero {
		display: none;
	}
}

@media (max-width: 781px) {
	.camp-caw-home-hero {
		margin-left: 0;
		margin-right: 0;
		width: 100%;
	}

	/* Stacked above header video: flush to video block (no extra band). */
	.camp-caw-home-hero--before-header-video {
		margin-bottom: 0;
	}
}
