/* =============================================================
   Jundo Hero: Bild oder Video (Leistungen & Referenzen)
   Redaktionell steuerbar über die Meta-Box "Hero: Bild oder Video" –
   Beitragsbild ist die Bild-Variante, ein optionales Video ersetzt sie,
   wenn hochgeladen und der Schalter aktiv ist. Eigenständiges CSS statt
   core/cover-Klassen: das Markup kommt per Shortcode (nicht als echter
   Cover-Block im Content), WordPress' pro-Block-CSS-Erkennung
   (has_block()) sieht den Shortcode-Text nicht.
   ============================================================= */

.jundo-hero-media {
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
	min-height: 360px;
	padding: var(--wp--preset--spacing--x-large) 0;
	box-sizing: border-box;
	background-color: var(--wp--preset--color--contrast);
}

@media (min-width: 769px) {
	.jundo-hero-media {
		min-height: 460px;
	}
}

.jundo-hero-media__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.jundo-hero-media__bg img,
.jundo-hero-media__video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

.jundo-hero-media__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: rgba(0, 30, 46, .6);
}

.jundo-hero-media__inner {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: var(--wp--style--global--content-size, 800px);
	margin-inline: auto;
	padding-inline: var(--wp--preset--spacing--small);
}

.jundo-hero-media__title {
	color: var(--wp--preset--color--white);
	margin: 0;
	text-align: center;
}
