Brick church built in the Gothic style in 1340-1360, John Paul II raised it to the status of a basilica