While the castle today is filled with laughter and galleries, its past holds a much darker secret. In the nineteenth century, the glory of the imperial residence faded, and the Austrian authorities converted these stone corridors into a penitentiary. For nearly 150 years, it served as a prison for both common criminals and famous political activists, including the iconic Slovenian writer Ivan Cankar, who was held here in 1914. As you walk through the courtyard, look for the solitary confinement cells beneath the Palatium. These cramped, stone spaces were designed to reform the soul through isolation. In one cell, you can even see a modern hologram that projects the names of those who once lived within these walls. Even though it was a place of hardship, the prison years were actually what saved the castle from being demolished for its building materials in the late 1700s. Today, you can visit the Penitentiary exhibit to feel the haunting contrast between the confinement of the past and the freedom of the beautiful grounds you see today.