The house on the beach is painted ,with a good paint,brighter than sun.
brighter modifier paint or The house.
The driver,who worked for mr beans,fighting for survival
fighting modifies mr beans or driver.
rule of participle phrase it that i modifies the subject of the preceding clause so fighting must modify beans.
The driver,Fighting for survival modifies the driver.
particle modifier modifies the main subject of the sentence or subject of the preceding clause.
[editor: remainder of post deleted, since the example given was an OG question. OG problems are banned on this forum; please read the forum rules!]