LOS ANGELES — Californians celebrated Easter online or in their cars as they spent the fourth straight weekend under statewide orders to stay indoors to slow the spread of the coronavirus.

Some 5,000 people tuned in to see the famed Easter Sunday service at San Francisco’s Grace Cathedral. At least 500 worshipers joined via Facebook Live to hear the priest Nicolas Sanchez Toledano lead service from St. Patrick’s Catholic Church in Los Angeles.

“It’s not the best quality, but it didn’t matter,” he said afterwards. “There’s a feeling that we are the church — the people, not the building.”

From his usual spot at the altar, Sanchez Toledano was still able to see the faces of his parishioners. A volunteer spent the week printing out their photos and taping them to pews so the church wouldn’t feel so empty during one of Christianity’s holiest days.

To the south, an Orange County church drew a large turnout for a drive-in service in a parking lot. Churchgoers in their cars tuned into a radio station where they could hear the Rev. Robert Schuller of Schuller Ministries deliver his Easter sermon.

Last week restrictions tightened further at recreation spots that often see their largest crowds during the Easter holiday. Most major sites and many beaches already were closed to public use. But across California, social-distancing orders were expanded through the weekend to cover many regional and local parks, trails, picnic spots and other public spaces.

Many communities found ways to keep the celebrations going even with stay-at-home orders in place. East of San Francisco, Alameda County firefighters surprised families in Castro Valley by hiding plastic Easter eggs on their front yards. The department said the eggs were packed safely by park and recreation employees in the area.

A church in San Jose that in previous years celebrated with an egg drop from a hot air balloon shifted its plans by giving away Easter eggs and free masks and toiletries as part of its service at a drive-in movie theater. Micaiah Irmler, the pastor of Southridge Church, told KNTV that he wanted to show worshipers they can practice social distancing without being spiritually distanced from one another.

Gov. Gavin Newsom implored people Friday not to be complacent even as the state’s top health official said the COVID-19 outbreak might not be as devastating as officials had feared — due in large part to people heeding orders to avoid close contact with others and remain at home as much as possible.

California has more than 23,000 confirmed COVID-19 cases and 675 deaths, according to data compiled Sunday night by John Hopkins University, figures far lower than New York, where the infections have been most prevalent and deadly.

Dr. Mark Ghaly, secretary of the California Health and Human Services Agency, said models state officials have created to track the virus had been showing a peak by the middle of next month, but the picture has improved as people limited their movement.

Even so, Newsom implored people to continue practicing social distancing.

“Let’s just do this together. Give us a few more weeks to see where these trend lines go,” Newsom said.

For most people, the new coronavirus causes mild or moderate symptoms, such as fever and cough that clear up in two to three weeks. For some, especially older adults and people with existing health problems, it can cause more severe illness, including life-threatening pneumonia, or death.

Los Angeles Mayor Eric Garcetti, who ordered all parks closed from Saturday evening through Monday morning, also extended the city’s remain-home order to May 15 and warned that easing it too soon might open the door to more infections.

Over the weekend, Los Angeles County reported 56 deaths, raising the number of COVID-19 deaths there to almost 300.

“As many Angelenos celebrate the Easter holiday today, I want to acknowledge those families that are grieving the loss of a loved one associated with the COVID-19 pandemic,” said Barbara Ferrer, the county’s director of public health. “My thoughts and prayers are with all those who are experiencing loss, illness, and distress today.”

The county also reported on Sunday the lowest number of new cases — 323 — since the beginning of the month, indicating that social distancing measures helped slow the rate of spread.

At one county jail, however, authorities reported a jump in cases. The Riverside County Sheriff’s office said Saturday at least 80 inmates and 55 employees tested positive for the coronavirus, up from the 13 inmates and 26 employees the office said had the coronavirus on April 3.

Sheriff Chad Bianco told a local radio station the sick inmates were receiving proper medical care and that he does not to plan to release anybody early to create more space in the jail.

Nguyen reported from Oakland.