On a cold cache the gallery opened on the linked photo, but the large main view showed the place's first photo. The gallery opens as soon as the linked event is in the store, then the remaining photos stream in and parsePlacePhotos promotes the first landscape to index 0, shifting the linked photo's offset. scrollToNewPhoto only re-ran when the focused event changed, so the track stayed at the old offset while the thumbnail highlight (driven by the template, not the scroll position) looked correct. Re-align to the focused slide when the photo set changes, keyed by the joined event ids so it only fires on a genuine add/remove/reorder. The re-align is deferred with requestAnimationFrame so the DOM has updated, and setupCarousel re-observes the slides the same way so the intersection observer keeps tracking them.