Medieval castle with extensive baroque fortifications, a cultural monument with historical exhibition