This week marks 20 years since the official opening of the Scottish Parliament building at Holyrood.
It was controversial from the very start. The home originally earmarked for the new legislature - at the old Royal High School - was vetoed; public debate over the location of a new building focused on rival proposals for Leith or Calton Hill, but then Holyrood emerged as the favoured site at the last minute; a competition to choose an architect for the project was won by Catalan Enric Miralles; but when the project began it as still not clear what space and accommodation the parliament would really need, so the requirements kept changing.
The first estimate of the cost of a new building - before either the site or a design had been agreed - was between £10m and £40m. And it was going to be ready by 2001.
The final cost ended up at £414m and the building was officially opened by the Queen on October 9, 2004, with hundreds of workers on site until the day before, putting finishing touches to the project.
Here’s a look back at how the building, now such a familiar sight, came into being.

5. Enric Miralles wins competition to design parliament
Scottish Secretary Donald Dewar (right) - later to become First Minister - chaired a panel to choose a designer for the new parliament. The winner was Catalan architect Enric Miralles, who was paired with Edinburgh-based architects RMJM for the project. Mr Miralles famously said his design for the parliament was inspired by upturned boats. Sadly, both Mr Miralles and Mr Dewar died before the project was completed. | TSPL Photo: Ian Rutherford

6. Temporary home on The Mound
While the new building was being constructed, the Scottish Parliament's temporary home was at the Church of Scotland's General Assembly Hall on The Mound. MSPs were given offices in the former Lothian Regional Council building on George IV Bridge and committee meetings were held across the road in the Lothian Regional chambers. | TSPL Photo: Neil Hanna

7. Parliament's first debating chamber
The Assembly Hall was fitted out as a horseshoe-shaped debating chamber for the Scottish Parliament. It was expected to be needed for a couple of years until the new building was ready, but MSPs ended up staying for five. When costs started to mount for the new building, some MSPs argued they should scrap it and stay at The Mound. | TSPL Photo: Jon Savage

8. Costs already rising when MSPs first elected
Once the parliament was elected in May 1999, Donald Dewar handed over responsibility for the building project to the Scottish Parliamentary Corporate Body, chaired by presiding officer Sir David Steel. At its first meeting it was told the price had increased to £109 million. Backbench MSPs Donald Gorrie and Margo MacDonald proposed a pause on the project, but their call was defeated by just one vote. | TSPL Photo: Neil Hanna

