.sch-dither {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9; /* fallback; o inline/controle sobrescreve */
	overflow: hidden;
	line-height: 0;
	isolation: isolate;
}

/* Imagem original: fonte do canvas + alt para leitores de tela + fallback */
.sch-dither__img {
	position: absolute !important;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	opacity: 0;
	pointer-events: none;
	user-select: none;
}

.sch-dither__canvas {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	image-rendering: crisp-edges;
	image-rendering: pixelated;
	opacity: 0;
	transition: opacity 0.25s ease;
}

.sch-dither.is-ready .sch-dither__canvas {
	opacity: var(--sd-canvas-op, 1);
}

/* Sem acesso aos pixels (CORS) → mostra a foto normal */
.sch-dither.is-fallback .sch-dither__img {
	opacity: 1 !important; /* vence o controle "Opacidade da original" do Elementor */
}

.sch-dither.is-fallback .sch-dither__canvas {
	display: none;
}
