Complex sentence: The gallery's original ribs made from sandstone from Mittenwald have been preserved, but after the main vault was damaged by earthquake in the 17th century, it was rebuilt in baroque style.
Split into simpler sentences: The gallery's original ribs made from sandstone from Mittenwald have been preserved. After the main vault was damaged by earthquake in the 17th century, it was rebuilt in baroque style.