(CNN) Thailand has heightened security amid funeral preparations for King Bhumibol Adulyadej, a revered figure who helped unify the nation in his 70-year reign. He was 88.

Here's the latest:

• The Thai cabinet approved a public holiday for government offices Friday. The cabinet is asking the public not to hold any "entertainment activities" for a month, according to an announcement on Thai state television. The holiday is discretionary for private companies.

• Crown Prince Maha Vajiralongkorn is the king's appointed successor

• Thousands gathered at the hospital, shouting "Long live the king!"

• Civil servants are ordered to wear black clothes for one year in mourning from Friday

• US President Barack Obama described the king as a man of "grace and warmth"

The announcement came in a statement from the Royal Palace read on state TV Thursday and followed a dayslong outpouring of support since the king was hospitalized October 3. He underwent medical procedures over the weekend.

Photos: Thailand's King Bhumibol Adulyadej: A life in pictures Thailand's Bhumibol Adulyadej was crowned king on May 5, 1950. News of the 88-year-old's death was announced Thursday, October 13, via a statement from the Royal Palace read on state TV. He was the world's longest-reigning living monarch. Hide Caption 1 of 16 Photos: Thailand's King Bhumibol Adulyadej: A life in pictures Bhumibol, left, is pictured in 1935 with his older brother, the former King Ananda Mahidol, in Lausanne, Switzerland, where the boys attended school. King Ananda was 20 when he died of a gunshot wound under mysterious circumstances. His 18-year-old brother, known then as Prince Phumiphon Aduldet, later assumed the throne to become King Bhumibol Adulyadej. Hide Caption 2 of 16 Photos: Thailand's King Bhumibol Adulyadej: A life in pictures Bhumibol and his future wife, Princess Sirikit Kityakara, are pictured in Lausanne in 1949. The couple married a year later at Srapathum Palace in Bangkok, Thailand. Hide Caption 3 of 16 Photos: Thailand's King Bhumibol Adulyadej: A life in pictures The King and Queen pose with their children, Crown Prince Vajiralongkorn and Princess Ubol Ratana, on the steps of Bangkok's Chitralada Palace in 1955. Two more daughters, Princesses Maha Chakri Sirindhorn and Chulabhorn Walailak, were born in 1955 and 1957. Hide Caption 4 of 16 Photos: Thailand's King Bhumibol Adulyadej: A life in pictures The royal couple ride with U.S. President Dwight Eisenhower during a five-day state visit to the United States in 1960. Hide Caption 5 of 16 Photos: Thailand's King Bhumibol Adulyadej: A life in pictures The King, far right, plays the saxophone during a 1960 jam session with legendary jazz clarinetist Benny Goodman and his band in New York. Hide Caption 6 of 16 Photos: Thailand's King Bhumibol Adulyadej: A life in pictures The King walks with his wife and their 13-year-old son, Crown Prince Vajiralongkorn, during a visit to Britain in 1966. Hide Caption 7 of 16 Photos: Thailand's King Bhumibol Adulyadej: A life in pictures The King convenes the first meeting of his country's National Reform Assembly during a ceremony held in Bangkok in 1976. The King put the monarchy at the center of Thai society, acting as a force for community and tradition even as the country flipped between political crises and military coups. Hide Caption 8 of 16 Photos: Thailand's King Bhumibol Adulyadej: A life in pictures The King raises a camera to take a photo in 1995. He was given his first camera in 1934, which ignited a lifelong enthusiasm for photography. He has often been seen with a camera around his neck during public appearances. Hide Caption 9 of 16 Photos: Thailand's King Bhumibol Adulyadej: A life in pictures The King and Queen survey a rice crop made possible by a Royal Irrigation Project in 1996. The project formed part of the Royal Development Projects, which focused on developing remote rural areas. The King has taken an interest in environmental projects throughout his long reign. Hide Caption 10 of 16 Photos: Thailand's King Bhumibol Adulyadej: A life in pictures The King reviews an honor guard with Queen Sirikit and Crown Prince Vajiralongkorn during the annual military parade to celebrate his birthday in 2006. Hide Caption 11 of 16 Photos: Thailand's King Bhumibol Adulyadej: A life in pictures The King lights candles at a ceremony to mark Coronation Day in Bangkok in 2007. Hide Caption 12 of 16 Photos: Thailand's King Bhumibol Adulyadej: A life in pictures The King is wheeled towards his yacht in 2010, during a rare public appearance to open a new flood gate and two bridges in Bangkok. Hide Caption 13 of 16 Photos: Thailand's King Bhumibol Adulyadej: A life in pictures The King is pictured with family members in 2012. He addressed a crowd from a balcony on his 85th birthday. Hide Caption 14 of 16 Photos: Thailand's King Bhumibol Adulyadej: A life in pictures The King is seen through a car window as he leaves the Siriraj hospital in Bangkok in 2015. Hide Caption 15 of 16 Photos: Thailand's King Bhumibol Adulyadej: A life in pictures A portrait of the King is held on the eve of his 88th birthday as people gather outside the Siriraj hospital in 2015. The King of Thailand is regarded as a demi-god by many Thais, and his popularity has been viewed as a unifying force during times of political unrest. Hide Caption 16 of 16

The king died at 3:52 p.m. in a "peaceful manner," the Royal Palace said, as thousands waited outside Siriraj Hospital in nervous anticipation of the news.

Bhumibol ascended to the throne 70 years ago, making him the world's longest-reigning monarch before his death.

Thai Prime Minister Prayut Chan-o-cha said "he needs time to jointly mourn with Thai people."

The prime minister urged people to be vigilant about national security.

"Everyone will need to be alert in every region and throughout the country to ensure safety," he said.

A people shattered

Hundreds of people had for days gathered at Bangkok's Siriraj Hospital where the king was being treated, and as the sun began to set, the crowd swelled into the thousands.

A Thai woman cries upon hearing that the nation's monarch had died.

They were dressed predominantly in pink -- an auspicious color believed to restore health -- and yellow, which is the color of the king, based on the fact he was born on a Monday.

Some outside the hospital said they didn't know where else to go for comfort, and many said they had hoped he would live to 120.

JUST WATCHED Thai people turn out to show support for king Replay More Videos ... MUST WATCH Thai people turn out to show support for king 04:00

Many in the crowd prayed, sang the royal anthem and repeatedly shouted, "Long live the king."

The announcement, around 7 p.m., cut through the crowd and gave way to devastated wailing and long embraces. Others stared at their phones, sharing messages from friends and family on social media.

Ovartvoraporn Bhakchuda, a Thai woman outside the hospital, was unable to hold back tears, saying she hoped the news was not true.

"We lost our father today," she said. "He is a father ... that wanted to do everything, the best thing, for his kids."

While many cried upon hearing of the Thai king's death, others stared silently in shock.

"With all my heart I hope that miracle will happen. I want to believe in miracles ... I still believe up until now that this is a lie."

Period of mourning

According to the palace statement, all government buildings will fly the Thai flag at half-staff for 30 days starting October 14, and all civil servants have been ordered to wear black clothing for a year as a sign of mourning, the palace said.

"I would like to ask all Thais to listen to the credible source of news and invite all Thais to dress in a way to mourn his passing for one year to offer our condolences," the prime minister said in a television address.

He further urged citizens to remain calm, for the sake of the country's stability, and said soldiers would be stationed in "every area throughout the kingdom" to boost security.

"Do not let anyone seek an advantage during this time of crisis," Prayut said.

Even on Bangkok's famous Khao San Road -- known for its bright lights, nightclubs and swarms of backpackers -- the mood was somber. Restaurants and food vendors remained open, but had been told by police to close by midnight. The usual loud dance music was absent as nightclubs closed for the night.

Tributes from around the world

Condolences began pouring in from world leaders. Obama said the king was a man of "grace and warmth," and recalled his "deep affection and compassion for the Thai people," when he visited the monarch in 2012.

"As the revered leader and only monarch that most Thais have ever known, His Majesty was a tireless champion of his country's development and demonstrated unflagging devotion to improving the standard of living of the Thai people," Obama said.

JUST WATCHED Thailand mourns King's death: 'He is our father' Replay More Videos ... MUST WATCH Thailand mourns King's death: 'He is our father' 02:09

British Prime Minister Theresa May said: "His Majesty guided the kingdom of Thailand with dignity, dedication and vision throughout his life. He will be greatly missed."

Indian Prime Minister Narendra Modi described the king as "one of the tallest leaders of our times."

King Bhumibol Adulyadej or Rama 9, was widely revered by his people. My thoughts are with his countless well-wishers & family. — Narendra Modi (@narendramodi) 13 October 2016

Russian President Vladimir Putin said the king had "won the sincere love of his people and high authority abroad for the decades of his reign," Russia's state-run news agency TASS reported.

Singaporean Deputy Prime Minister Teo Chee Hean, in a Facebook post, described the king as a "wise and much-loved monarch who did much for the people of Thailand."

UN Secretary-General Ban Ki-moon, in a statement released by a spokesman, praised the king's "long dedication to his country and his legacy as a unifying national leader."

The government of Indonesia called the king's death "a great loss" to the Association of Southeast Asian Nations -- a 10-member bloc dedicated to economic, political and security cooperation -- as well as the world.

The Philippines said the king was "a Father of the Nation, whom the Thai people revered and loved dearly. He will surely be missed. We are one with the royal family, the Thai government, and the Thai nation during this period of deep mourning.

A 70-year reign of 'respect'

The king appealed to the rich urban elite as well as to the poor agricultural workers. During his reign, he skillfully charted a course that put the monarchy at the center of Thai society, acting as a force for community and tradition even as the country lurched between political crises and more than a dozen military coups, both attempted and successful.

Many mourners wore the king's color, yellow, based on the day of the week he was born.

He acceded to the throne in 1946 in the aftermath of Thailand's occupation by Japan during World War II. Until his death, he reigned over more than 20 prime ministers and many constitutional changes. He also helped the country navigate the disruptive effects of the Vietnam War during the 1960s and '70s.

For most Thais, he is the only monarch they have ever known, and before his death, analysts expressed concern that his passing will remove a vital point of unity in an increasingly divided country.

Also known as Rama IX -- a reference to his lineage stretching from Rama I, the founder of the Chakri dynasty -- Bhumibol commanded great love and respect within Thailand. An energetic public relations machine promoted his popularity, which led to his portrait being adorned with marigolds from Bangkok office lobbies to the poorest of rural homes.

The king's health had been in slow decline for some time. The palace said a team of royal physicians had tried its best and provided the closest care.

Thai King Bumibhol Adulyadej at a ceremony performed by monks in 2007.

Toward the end of his reign, his presence in public life waned. Doctors at the Siriraj Hospital had earlier said he was having problems with his kidneys, blood flow to the left side of his heart and blood pressure.

Last month, he was treated for a severe infection, reduced kidney function and fluid in his lung. He had surgery to remove his gallbladder last year.