Hey all, could anyone please help me understand enharmonic modulation using pivot chords? I attached an example that include this modulation, but I don't get it! Any help is appreciated, thanks.

photo.jpg