{% assign media = media %}
{% assign videoType = videoType | default: 'normal' %}

{% if videoType == "normal" %}

  {% if video_src != 'none' %}
    <div class="shx-video">
      <div class="shx-video__wrapper">
        {%- echo media | media_tag: image_size: "2048x", autoplay: true, loop: true, controls: false, preload: "none" -%}
      </div>
    </div>
  {% endif %}

{% elsif videoType == "card_product" %}

  {%- echo media | media_tag: image_size: "2048x", autoplay: false, muted: true, loop: true, controls: false, preload: "none", class: "shx-video-card-product" -%}

{% endif %}