Dan saw all the paintings. He left right after.
Dan left right after to see all the paintings.
Dan left all the paintings after seeing them.
Right after seeing all the paintings, he left.
He left and then saw the paintings right after.
Translation: Immediately after seeing all the pictures, she left.