Depth of field
The range in front of and behind the point of focus where objects will appear to be in focus.
The depth-of-field becomes narrower with a larger aperture (lower f-number), longer focal length lens, and shorter distance between the camera and subject.