Light-matter interactions and nonequilibrium dynamics