Atomic scale dynamics of thermal and driven motion in photonic nanostructures