{#
/**
 * @file
 * Theme override to display a media item.
 *
 * Available variables:
 * - name: Name of the media.
 * - content: Media content.
 *
 * @see template_preprocess_media()
 *
 * @ingroup themeable
 */
#}
{% set classes = [
  'media',
  media.bundle() ? 'media--type-' ~ media.bundle()|clean_class,
  not media.isPublished() ? 'media--unpublished',
  view_mode ? 'media--view-mode-' ~ view_mode|clean_class,
] %}

<div {{ attributes.addClass(classes) }}>
  {{ title_suffix.contextual_links }}
  {% block media_content %}
    {% if content %}
      {{ content }}
    {% endif %}
  {% endblock media_content %}
</div>
