Math help dealing with orthographic camera bounds and pinch zoom

The math is making my head hurt tonight. Ortho camera, defaulting to a 3.84 size. I have pinch and zoom and boundaries set already. When the camera zooms in, the ortho size can go down to 1.5. Now my x boundary on the right for example is normally 0.35f… thats as far over as I want it to move. When it’s zoomed in, the right boundary becomes 4.5. But how on earth can I convert that 0.35 to 4.5, or some fraction of when the camera is zoomed? the numbers are just eluding me.

Actually, i think my brain just kicked into gear… if I use this

float maxX = (origCamScale - cam.orthographicSize) * 2;
camPos.x = Mathf.Clamp(camPos.x, -maxX, maxX);

voilà!

That works and I dont need to worry about the 0.35… nevermind… staring at it for hours probably killed me…