Pan and Zoom on touchscreen with Cinemachine

i am working on a big scrollable image which is living inside a "scroll rect" and which i can scroll with the mousewheel. I got his perfectly working.

Now i would like to zoom in to the image and pan it keeping it inside the screen and starting the zoom/pan in the center of the fingers touching the screen and on release the zoom should jump back to the original size.
The behaviour should be like when you zoom and pan on instagram.

Is there somebody that could point me to a possible solution? I really like the smooth movement of the cinemachine so i opted to go this route but my coding skills are not that good.

Appreciate every help. Thanks in advance!

hey dude i have the same problem as you did you find the solution?