It’s possible to have a lot of things on focus all at once. It’s called having a large depth of field.
But aesthetically, it’s often more desirable to have a “narrower” depth of field so that the subject of a photo is in good focus and other things are blurred.
Latest Answers