Mechanics of Light