Zoom Orthographic camera to keep object in view

I have an orthographic camera that is centered on a given point or object. I have a second object that is moving through the field of view. Is there a way to zoom the camera back (increase field of view) to keep both objects in view?

camera.orthographicSize = …;

this is the same property as the one in the inspector with the name ‘Size’

There is no FOV in orthographic so you use the Size variable of the camera to act as a FOV.

You can increase that size based on the position of your second object: