It's rare for a pope to resign before their death.
They are elected and die in the role.
within 10 days of the pope's death or resignation the cardinals meet to elect a new pope.
e- I think there is also an age limit, they can't be 80 years old or over, at a specific time.
Someone correct me if I'm wrong please.
Wasn’t Francis 88 when he died?
Or did you mean when they’re elected