Self-organization of frozen light in near-zero-index media with cubic nonlinearity