What large-scale structure is a nebula considered a concentrated portion of, clumping together under gravity?

Answer

Interstellar medium

A nebula represents a localized accumulation of matter within the broader expanse of space. This expanse, which is filled with sparse gas and dust floating between the stars, is scientifically defined as the interstellar medium (ISM). Nebulae form when regions within this ISM begin to contract, driven by the mutual attraction of gravity. Therefore, a nebula is fundamentally a denser, concentrated pocket of the ISM that has started the initial clumping process necessary for future stellar evolution or as the lingering remnants of past stellar activity. The continued action of interstellar winds often shapes these clumps as they attempt to condense.

What large-scale structure is a nebula considered a concentrated portion of, clumping together under gravity?
Spaceastronomynebulacosmic cloud