<article class="d-flex flex-column media-block" data-opened-modal-id="{{ article.id }}">
{% if article.video_source is defined %}
<a href="" class="position-relative" data-toggle="modal" data-target="#Video-{{ article.id }}">
{% if article.video_source.type == 'asset' %}
<video width="100%" poster="{{ article.video_source.poster is defined and article.video_source.poster ? article.video_source.poster.getThumbnail('article-news') }}">
<source src="{{ article.video_source.data }}" type="video/mp4">
Your browser does not support the video tag.
</video>
<div style="position: absolute; top:50%; left:50%; transform: translate(-50%,-50%);">
{{ block('videoPlayIcon', 'svg-icons/svg-icons.html.twig') }}
</div>
{% else %}
<!--* If featured imaged is uploaded then override default poster image from youtube api-->
{% if article.feature_image is defined and article.feature_image %}
{{ article.feature_image is defined and article.feature_image ? article.feature_image.getThumbnail('article-news').getHtml({width: '100%', height: '100%'}) | raw }}
{% else %}
<img src="https://img.youtube.com/vi/{{ article.video_source.data }}/maxresdefault.jpg" alt="Youtube poster image" class="w-100">
{% endif %}
<div style="position: absolute; top:50%; left:50%; transform: translate(-50%,-50%);">
{{ block('videoPlayIcon', 'svg-icons/svg-icons.html.twig') }}
</div>
{% endif %}
</a>
{% else %}
<a href="{{ article.href is defined ? article.href : 'javascript:;' }}" class="position-relative media-block-image">
<div class="media-block-overlay"></div>
<img src="{{ article.feature_image is defined ? article.feature_image.getThumbnail('article-news') }}" alt="{{ article.title }}" class="img-fluid">
</a>
{% endif %}
<div class="d-flex flex-column mt-2 mt-lg-2 mt-md-2">
<div class="{{ article.published_at is defined and article.published_at ? 'd-flex' : 'd-none' }}">
{{ block('smallClock', 'svg-icons/svg-icons.html.twig') }}
<small class="ml-2 ml-lg-2 ml-md-2 text-grayLight40">
{{ article.published_at is defined ? article.published_at }}
</small>
</div>
<a href="{{ article.href is defined ? article.href : 'javascript:;' }}" class="text-navyBlue"
{{ article.video_source is defined ? "data-toggle=modal data-target=#Video-" ~ article.id }}>
<h4 class="mt-2 mt-lg-2 mt-md-2 font-weight-bold mb-2 mb-lg-2 mb-md-2">
{{ article.title is defined ? article.title }}
</h4>
</a>
<p class="text-deepGray">
{{ article.content is defined ? article.content | u.truncate(160) | raw }}
</p>
</div>
</article>