/*
 * Compact hero (data-section «Hero compacto», tmt_part_compact_hero() / pattern transpirenaica/compact-hero):
 * modifier .hero--compact of the base .hero (sections/hero.css, loaded first by inc/setup.php, so these rules
 * win with the same weight). Ported from base.css and mobile.css of 02-preguntas and 03-galerias with
 * docs/class-map.md (--color-velo → --veil, --color-mostaza → --mustard). Height from --hero-compact-h
 * (480 / 340 px, global.css).
 *
 * The photo carries hero__media and hero__media--compact (its own frame in inc/images.php); the crop is
 * written here, never inline, so mobile can move it (45% 0, photo at 112 % high).
 */

.hero--compact {
	min-height: var(--hero-compact-h);
	padding: 168px 0 calc(var(--space-8) + var(--radius-section));
}

.hero--compact .hero__media {
	object-position: 50% 56%;
}

/* Galleries modifier (hero--galerias in the approved design). */
.hero--galleries .hero__media {
	object-position: 50% 62%;
}

/* Flat veil instead of the gradients of the home hero. */
.hero--compact .hero__overlay {
	background: var(--veil);
}

.hero--compact .hero__title {
	margin-bottom: 0;
}

/* Optional eyebrow above the title (empty = not printed, see inc/parts.php). */
.hero__eyebrow {
	margin-bottom: var(--space-3);
	font-family: var(--font-body);
	font-weight: 600;
	font-size: var(--fs-small);
	line-height: 1.2;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--mustard);
}

/* Mobile (≤767 px) */
@media (max-width: 767px) {
	.hero--compact {
		padding: 120px 0 calc(var(--space-6) + var(--radius-section));
	}

	.hero--compact .hero__media {
		bottom: auto;
		height: 112%;
		object-position: 45% 0;
	}

	.hero--galleries .hero__media {
		object-position: 72% 0;
	}

	.hero__eyebrow {
		margin-bottom: var(--space-2);
		font-size: var(--fs-xs);
	}
}
