Photographers have fought against depth-of-field since the beginning. To get more depth of field, we have to use a smaller aperture and that means a slower shutter speed. It’s just the way photography works.
For years, we’ve been able to take photos of a subject, focus in different places, and then blend those photos later to increase our depth-of-field. Then about 10 years ago camera manufacturers started putting focus stacking in the camera. Today, Canon calls it focus bracketing in the Canon R5.
To activate focus bracketing on the R5, go to Shooting Menu 5. The menu then offers options such as how many photos to take and how far to focus into the scene.
A little icon shows on the shooting screen while Focus Bracketing is active. Push the shutter button and the camera rapidly fires a series of photos. It doesn’t blend the photos in camera but provides the RAW files for blending later. I use Photoshop to do my blending. (Instructions are below.)
Notice the tiny imperfections in the photo on the left. Look closely at the tails. See the little blue highlights? That’s where the birds moved their tails. Focus bracketing doesn’t work well on moving subjects.
My instructions for blending a focus bracket (1) Open all the photos in Photoshop in a Layer. In Bridge, highlight the photos then select Tools>Photoshop>Load Files into Photoshop Layers. In Lightroom, highlight the photos then select Photo>Edit In>Open in Layers in Photoshop; (2) Select all the photos once they are in the Layers Pallette; (3) Select Edit>Auto Align; (4) Select Edit>Auto Blend, (5) Select Layer>Flatten.
I suggest you focus a bit closer than needed for your first photo of the series. That way you get some foreground in focus.
Have you tried focus stacking or focus bracketing? Success?