Pius IX is trending as the longest-serving pope (1846-1878), shaping modern Catholicism amid political upheaval. Born Giovanni Mastai-Ferretti.