/* Pixelz360 cube animation — cubes only (from pixelz360-hero-final-8) */

.px-cube-animation {
	position: relative;
	overflow: hidden;
	min-height: clamp(560px, 88vh, 860px);
	width: 100%;
	height: 100%;
}

.px-cube-animation .cube-scene {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100vh;
	display: block;
	z-index: 1;
	touch-action: none;
}

.px-cube-animation .cube-hint {
	position: absolute;
	left: 50%;
	bottom: 1.1rem;
	transform: translateX(-50%);
	z-index: 10;
	font-size: 0.78rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #5a6e82;
	pointer-events: none;
}

/* Elementor hero overlay — fill parent, sit behind content */
.px-cube-animation--bare {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	min-height: 0;
	display: block;
	z-index: 1;
}

.elementor-widget-shortcode.home-cube-animation {
	position: absolute !important;
	inset: 0 !important;
	width: 100% !important;
	height: 100% !important;
	z-index: 1 !important;
	pointer-events: none;
}

.elementor-widget-shortcode.home-cube-animation .elementor-shortcode {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.elementor-widget-shortcode.home-cube-animation .px-cube-animation--bare {
	pointer-events: auto;
}

.e-con.e-child:has(.home-cube-animation) {
	position: absolute !important;
	inset: 0 !important;
	width: 100% !important;
	height: 100% !important;
	z-index: 1 !important;
	pointer-events: none;
}

.e-con.e-child:has(.home-cube-animation) .px-cube-animation--bare {
	pointer-events: auto;
}

@media (max-width: 767px) {
	.px-cube-animation .cube-scene {
		touch-action: auto;
		pointer-events: none;
	}

	.elementor-widget-shortcode.home-cube-animation .px-cube-animation--bare,
	.e-con.e-child:has(.home-cube-animation) .px-cube-animation--bare {
		pointer-events: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.px-cube-animation .cube-hint {
		display: none;
	}
}
