Instead of rotating the camera’ transform directly you should add or use (I don’t have the SmoothFollow script here right now) a Vector3 point of interest that the camera is looking at via interpolation and finally Transform’s LookAt();
Use the inputs to modify the point of interest relative to the character, and in the Update() have the camera view vector try to look at the point of interest.
To help you debug, add a little cube to the scene and update it to the camera’s point of interest location.
Think of how to have things smoothly adjust (preferably in FixedUpdate()) instead of just modifying transforms directly.