Make Drupal Easy: Drupal 8: How to get a Drupal image style URL from a media field in a twig template

Drupal media and image style

Retrieving the image URL from an image field in Drupal 8 and 9 seemed pretty straightforward too. Even the solution for getting the image style URL from a simple image field can be found quite easily. Getting the image URL from a media field can also be looked up easily.