Thinking the rally started in the evening, Andrea and Heather planned to spend the first half of the day at the beach. Which identifies the noun the participal phrase modifies

Thinking the rally started in the evening, Andrea and Heather planned to spend the first half of the day at the beach. Which identifies the noun the participal phrase modifies