Lesson 1, trams do not play well in shared terrain. No room for error. Stupid scheme, stupid execution turned once wide Main St. to a canyon inhospitable to autos, pedestrians and in this case the cyclist.
Lesson 2, trams may approach from any direction on any track at any time. Wake up people.
Lesson 3, end the madness, trams must be grade separated or not be at all. Closing Main St. is not a solution, ultimately you would wall off the entire length of Main and put turnstiles at tram entry points, no general pedestrian traffic would be allowed. There you go, the tram is a mistake so let's turn the screws on the residents to keep them out of the way of the tram.