A national lifeguard shortage exacerbated by the COVID-19 pandemic has prompted communities to cut back on pools and hours.