/* BLOC eb/model — viewer 3D (.glb) avec repli CSS si WebGL indisponible */
.wp-block-eb-model {
	position: relative;
	aspect-ratio: 1 / 0.92;
	width: 100%;
}
.wp-block-eb-model.eb-crochets::before,
.wp-block-eb-model.eb-crochets::after { width: 34px; height: 34px; }
.eb-model__viewer {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	background: transparent;
	--poster-color: transparent;
	--progress-bar-color: transparent;
	--progress-bar-height: 2px;
	outline: none;
}
.eb-model__note {
	position: absolute; left: 0; bottom: -2.2rem;
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--eb-muted);
}

/* Repli (WebGL indisponible) : image fixe de la machine */
.eb-model__fallback { display: none; position: absolute; inset: 0; place-items: center; padding: 6%; }
.is-fallback > .eb-model__fallback,
.is-fallback .eb-model__fallback { display: grid; }
.is-fallback > model-viewer, .is-fallback model-viewer { visibility: hidden; }
.eb-model__fallback img { max-width: 100%; max-height: 100%; object-fit: contain; }
