If your photos live anywhere, they live in iCloud, which makes this the highest-stakes toggle of the three.
Since iOS 15.2, Apple lets you name Legacy Contacts, people who can access your iCloud data after you die [1]. Setup lives at Settings, tap your name, Sign-In & Security, Legacy Contact. You can name more than one person [1].
Choosing a Legacy Contact generates an access key. To request access after you die, your contact needs that key and your death certificate [1]. Share the key and check that they have it. If they accept your invitation, their device stores a copy in their Apple Account settings. You can also print a copy to keep with your estate planning documents [1].
Without the key, the other route is a court order. In the U.S. and some other places, family can request access to a deceased person’s Apple Account with one, and if Apple grants the request, they can get certain data. Documentation requirements vary by country or region. Some data may be end-to-end encrypted, and Apple can’t decrypt it; they may be asked for a device passcode or other information [11]. This process doesn’t unlock a passcode-protected iPhone or iPad without erasing it [11].
What they get, once approved: photos, messages, notes, mail, contacts, files, essentially the personal archive, for a limited window, three years, to download what matters [2]. What they don’t get, ever: your Keychain passwords, payment information, and your licensed media, because you never owned those movies anyway [1].