Focus here to maximise depth of field to infinity
Hyperfocal distance for a 24 mm lens at f/8 on 35 mm full-frame: 2.42 m.
Next stepWide-angle lenses (24 mm) have short hyperfocal distances - ideal for landscape and architecture work. Try zone focusing: set focus at 2.42 m and shoot without autofocus.