Techart, Blender, Geometry Node, Procedural, Programming.
where it was. This is similar to how we moved the mesh to origin, but for rotation. First we save the rotation of the instance for use further down. Instance Rotation node gives you Euler angles. You can save that as a vector and work with that later, though I decided to work with Quaternion