Most people assume their family can just get into their phone or accounts after they die. Usually they can't, and the account often gets wiped instead.
iPhone: Settings > tap your name > Sign-In & Security > Legacy Contact > Add Legacy Contact. They get an access key. After you die, they use the key and your death certificate to get your photos and data.
Google (Android, Gmail, Google Photos): search "Inactive Account Manager" in your Google account settings. Choose up to 10 people and what each one gets. If your account goes unused for a period you set, they're sent your data to download.
It takes about 5 minutes each.
Do your parents' while you're at it.