/* BuKò Snow – popup neve. I valori variabili arrivano dalle impostazioni (inline style su #snow-popup). */

#snow-popup {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	z-index: 9999;
}

#snow-popup-cont {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: var(--buko-snow-overlay-color, #000);
	opacity: var(--buko-snow-overlay-opacity, 0.8);
	z-index: 99999;
	cursor: pointer;
}

#snow-popup-img {
	position: fixed;
	z-index: 999999;
	top: 50%;
	left: 50%;
	width: min(var(--buko-snow-img-px, 340px), var(--buko-snow-img-vh, 65vh));
	height: auto;
	transform: translate(-50%, -50%);
	cursor: pointer;
}

#snow-popup-img img {
	width: 100%;
	height: 100%;
	display: inline-block;
}

/* Neve senza immagine: livello trasparente sopra la pagina, non blocca i click. */
#snow-layer {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	pointer-events: none;
	z-index: 9999;
}

/* I fiocchi non devono intercettare i click (sull'immagine o sulla pagina). */
#snow-popup .snowfall-flakes,
#snow-layer .snowfall-flakes {
	pointer-events: none;
}
