during its three-century reign , the royal house of medici amassed unfathomable wealth and influence , producing four popes , two queens of france , and the largest financial institution in all of europe .