/* Seasonal snowfall effect on the homepage hero (see js/snow.js) */
.hero-snow {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 20;
    /* Lets flakes use cqh units to fall the full height of the hero */
    container-type: size;
}

.hero-snow .snowflake {
    position: absolute;
    top: 0;
    left: var(--x);
    width: var(--size);
    height: var(--size);
    background: #fff;
    border-radius: 50%;
    opacity: var(--opacity);
    filter: blur(var(--blur));
    animation: hero-snowfall var(--duration) linear var(--delay) infinite;
    will-change: transform;
}

@keyframes hero-snowfall {
    0% {
        transform: translate3d(0, -20px, 0);
    }
    50% {
        transform: translate3d(var(--sway), 50cqh, 0);
    }
    100% {
        transform: translate3d(0, calc(100cqh + 20px), 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-snow {
        display: none;
    }
}
