Medieval church with a valuable late Gothic core, renovated in the Baroque style in the early 18th century