Thais in their thousands, dressed in somber black and white, descended on the Grand Palace complex in Bangkok on Saturday to mourn the death of King Bhumibol Adulyadej, but were met with the unexpected closure of the palace.

The crowds lining outside the palace since dawn were subdued and orderly despite the swelling numbers. People shared food and handed each other water and wet towels to cope with the Southeast Asian heat. Around midmorning, police announced the palace was closed for seven days. Still, most people waiting remained outside.

Buddhist funeral ceremonies began at the Grand Palace on Friday after a royal motorcade led by a van carrying Bhumibol's body and monks drove to the palace from nearby Siriraj Hospital, where the king died Thursday aged 88.

People sat four to five rows deep on both sides of the road, sobbing openly and bowing as the convoy passed. Most held portraits of the king in regal yellow robes. Some pulled currency notes from their wallets: all bank notes carry the king's face. Many had camped 24 hours since Thursday.

Bhumibol's death after 70 years on the throne was a momentous event in Thailand, where the monarch has been glorified as an anchor for a fractious society that for decades has been turned on its head by frequent coups. Thailand suffered particularly intense political turmoil in the past 10 years that pitted arch-royalists against forces seeking a redistribution of the economic pie.

But in recent years, Bhumibol had suffered from a variety of illnesses and seemed far removed from the upheavals of Thai politics, including the 2014 coup that brought Prime Minister Prayuth Chan-ocha, an army general, to power.

"His death means that the Thai political system must find an alternative focal point around which to unite the country's factionalized population," said Tom Pepinsky, a Southeast Asia expert at Cornell University.

He said one challenge that royalists will face is the possibility that the monarchy's popularity would be undermined by the crowning of heir apparent Crown Prince Maha Vajiralongkorn, who does not command the same respect his father did.

The government on Thursday unexpectedly announced that the crown prince did not want to be immediately named king to give the nation time to mourn.

Deputy Prime Minister Wissanu Krea-ngam said that the head of the Privy Council, which is an advisory body to the king, is automatically the regent until a new monarch is crowned.

There was no official statement that the council's head, Prem Tinsulanonda, had been named regent, creating uncertainty, but Wissanu said an announcement wasn't needed because the process is mandated by Thailand's Constitution.

A one-year mourning period for the government has been declared together with a 30-day moratorium on state and official events. But no substantial demands have been made of the private sector.

The government has only urged people to refrain from organizing entertainment events for a month, apparently mindful of the need to ensure that the sputtering economy, which relies heavily on tourism, does not suffer too much.