@media screen and (min-width: 768px) and (max-width: 1200px) {
	body {
		background-color: #000 !important;
		background-image: url('https://younesbachir.com/wp-content/uploads/2026/10/mg_9705_edited.jpg') !important;
		background-size: cover !important;
		background-position: center top !important;
		background-attachment: fixed !important;
	}
}

body {
	background-color: #000 !important;
	background-image: url('https://younesbachir.com/wp-content/uploads/2026/10/mg_9705_edited.jpg') !important;
	background-size: cover !important;
	background-position: center top !important;
	background-attachment: fixed !important;
}

body.home .wp-block-post-content {
	max-width: none !important;
	width: 100% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

body.home .yb-onepage {
	width: min(100vw, 1120px) !important;
	max-width: 1120px !important;
	left: 0 !important;
	margin: -24px auto 0 !important;
	padding: 0 clamp(16px, 4vw, 36px) !important;
	box-sizing: border-box !important;
}

/* Compact music control for mobile; sound starts after the user taps play. */
#site-background-music {
	display: none !important;
}

@media screen and (max-width: 767px) {
	#site-background-music {
		display: block !important;
		position: fixed !important;
		right: 12px !important;
		bottom: 12px !important;
		width: 72px !important;
		height: 32px !important;
		z-index: 9999 !important;
		opacity: .9;
	}
}

@media screen and (max-width: 767px) {
	#site-background-music {
		bottom: 56px !important;
	}
}

@media screen and (max-width: 767px) {
	#site-background-music {
		width: 100px !important;
	}
}

/* Portada: oculta la banda superior del tema para dejar visible la parte alta de la imagen. */
body.home .wp-site-blocks > header.wp-block-template-part {
	display: none !important;
}

/* Reproductor junto a Biography en móvil. */
.yb-music-row {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 28px;
}

.yb-music-row h2 {
	margin: 0 !important;
}

@media screen and (max-width: 767px) {
	#site-background-music {
		position: static !important;
		right: auto !important;
		bottom: auto !important;
		width: 92px !important;
		height: 30px !important;
		z-index: auto !important;
		vertical-align: middle;
	}
}

/* Desplaza el onepage 5 cm hacia abajo para mostrar más fondo por arriba. */
body.home .yb-onepage {
	margin-top: 5cm !important;
}

/* Compensa el colapso del margen y desplaza visualmente el bloque. */
body.home .yb-onepage {
	margin-top: 0 !important;
	top: 5cm !important;
	margin-bottom: 5cm !important;
}

/* Desplazamiento reducido a 2 cm. */
body.home .yb-onepage {
	margin-top: 0 !important;
	top: 2cm !important;
	margin-bottom: 2cm !important;
}

/* Desplazamiento ajustado a 4 cm. */
body.home .yb-onepage {
	margin-top: 0 !important;
	top: 4cm !important;
	margin-bottom: 4cm !important;
}

/* Móvil: recupera la posición inicial y deja visible la foto de fondo. */
@media screen and (max-width: 767px) {
	body.home {
		background-image: url('https://younesbachir.com/wp-content/uploads/2026/10/mg_9705_edited.jpg?mobile=20261013') !important;
		background-size: cover !important;
		background-position: center top !important;
		background-attachment: fixed !important;
	}
	
	body.home .yb-onepage {
		top: 0 !important;
		margin-top: 0 !important;
		margin-bottom: 0 !important;
		background: rgba(0, 0, 0, .72) !important;
	}
}