 Complete the following phrase:  The Apponyi fortress is an ancient hillside castle that may have been first built under the Great Moravian Empire and took a high medieval shape in the 13th century. It once belonged to Matthew III Csák, and subsequently to the Kings Demesne for most of the 14th century. It was granted to the family in 1392 by Sigismund of Luxemburg, following which they took up the Apponyi name. The Apponyis made major alterations and extensions in the 15th, 16th and 17th centuries. It fell into ruin in the 17th century following fire in 1645. Count Lazar Apponyi moved to the more comfortable Apponyi Castle downhill in the village, which he had started to build. The fortress was last used as a stronghold during Rákóczis War of Independence; following the Habsburg 