/**
 * Shared directory hero used by News / Reviews / Podcasts (partials/dir-hero.php).
 * Listings, Events, Shop, Groups, and Members keep their own hero CSS —
 * do not override their positioning or image washes here.
 */

.itm-dir-hero {
	position: relative;
	left: auto;
	right: auto;
	display: block;
	margin: 0 calc(50% - 50vw) 1.5rem;
	width: 100vw;
	max-width: 100vw;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: #1a1f2a;
	color: #fff;
	overflow: hidden;
}

.itm-dir-hero__media {
	position: absolute;
	inset: 0;
}

.itm-dir-hero__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	display: block;
}

/* Lighter wash so photo stays visible and white type reads cleanly */
.itm-dir-hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		90deg,
		rgba(10, 14, 22, 0.72) 0%,
		rgba(10, 14, 22, 0.48) 42%,
		rgba(10, 14, 22, 0.22) 72%,
		rgba(10, 14, 22, 0.1) 100%
	);
	pointer-events: none;
}

.itm-dir-hero__text {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: flex-end;
	width: min(var(--itm-content-width, 1200px), calc(100% - 2rem));
	margin: 0 auto;
	padding: clamp(1.5rem, 3.6vw, 2.25rem) 0;
	/* ~40% smaller than prior listings hero */
	min-height: clamp(144px, 20.4vw, 228px);
	box-sizing: border-box;
	color: #fff;
}

.itm-dir-hero__copy {
	max-width: 36rem;
	color: #fff;
}

.itm-dir-hero__eyebrow {
	margin: 0 0 0.25rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 0.75rem;
	font-weight: 700;
	color: #fff !important;
	opacity: 0.92;
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55);
}

/* Beat .section h1 dark heading color */
.itm-dir-hero h1.itm-dir-hero__title,
.section .itm-dir-hero__title,
.itm-dir-hero__title {
	margin: 0;
	font-size: clamp(1.55rem, 3.6vw, 2.35rem);
	line-height: 1.15;
	font-weight: 700;
	color: #fff !important;
	text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

.itm-dir-hero__desc {
	margin: 0.35rem 0 0;
	max-width: 34rem;
	font-size: 0.98rem;
	line-height: 1.45;
	color: #fff !important;
	opacity: 0.95;
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}

/* News / Reviews / Podcasts — flush full-bleed hero inside section */
body.itm-dir-hero-surface {
	overflow-x: clip;
}

body.itm-dir-hero-surface .site-main.container {
	padding-top: 0;
}

.itm-news-page.section,
.itm-reviews-page.section,
.itm-podcasts-page.section {
	margin-top: 0;
}

.itm-news-page .itm-dir-hero,
.itm-reviews-page .itm-dir-hero,
.itm-podcasts-page .itm-dir-hero {
	margin-bottom: 1.5rem;
}
