GOLETA, Calif. (CBS SF & AP) — A California wildfire spurred by strong gusts mushroomed in size and burned out of control Thursday in a remote coastal area west of Santa Barbara, forcing the evacuations of hundreds of campers, some homes and an oil refinery as it crept toward the ocean.

Heat and wind were expected to pose problems for firefighters battling a nearly 2-square-mile blaze outside Santa Barbara.

READ MORE: 4.8 Magnitude Earthquake Strikes Monterey, San Luis Obispo Counties

Cooler temperatures gave firefighters a break early Thursday, and water-dropping aircraft were expected to resume runs after sunrise. But officials warned that the conditions would not last.

Hundreds of people were forced from campgrounds in Los Padres National Forest on Wednesday night as the fire raced through dry brush along hillsides, Santa Barbara County fire Capt. Dave Zaniboni said.

Winds gusting to nearly 40 mph pushed the flames through canyons full of heavy brush, leading officials to order mandatory evacuations for Refugio Canyon, Venadito Canyon and Las Flores Canyon, which includes an ExxonMobil refinery, the Santa Barbara County Sheriff’s Office said.

Also closed was Refugio State Beach, which was off-limits for months last year following a massive oil spill.

Zaniboni said he didn’t have a specific number of residences or people affected but that the oil refinery has a cleared buffer zone.

READ MORE: Oakland Police Seize Flamethrower, Drugs, Cash In Illegal Casino Bust

“The refinery has fire around it and companies in place protecting it,” he said.

ExxonMobil has evacuated non-essential employees, and those that remain are helping protect it against the flames, company spokesman Todd Spitler said.

“Our primary concern is for the safety of our employees, contractors and the environment,” Spitler said.

Some campers taking advantage of the outdoors decided to leave earlier Wednesday before campgrounds were evacuated.

“It’s completely smoked out up there, so we decided to take the kids and get out of there,” Ted Bayard told KEYT-TV from his driver’s seat as his family left popular El Capitan State Beach.

About 50 horses were evacuated from a ranch and taken to a shelter that has been set up at the county fairgrounds. State Route 101 also was closed in both directions near the city of Goleta.

MORE NEWS: Amid Team Struggles, Jimmy Garoppolo To Remain Starting QB For 49ers

TM and © Copyright 2016 CBS Radio Inc. and its relevant subsidiaries. CBS RADIO and EYE Logo TM and Copyright 2016 CBS Broadcasting Inc. Used under license. All Rights Reserved. This material may not be published, broadcast, rewritten. The Associated Press contributed to this repor