Nanostructured device stops light in its tracks