<section class="content-block container container-sm js-fade-in {{ styleModifier | default(null) }} {{ anchorNavItem | default(null) ? 'js-anchor-nav__item' : '' }}"
{% if anchorNavItem | default(null) and anchorNavTitle | default(null) %}
data-anchor-nav-title="{{ anchorNavTitle }}"
{% endif %}>
{{ include('Includes/title-block.html.twig', {
title: title|default(''),
subtitle: subtitle|default(''),
isCentered: true,
}) }}
{% set videoStyleModifier = 'embed-responsive-item' %}
{% set video = getVideoEditable(video) %}
{% if video %}
{% if video.videoType|default('') != 'asset' %}
{% set src = '' %}
{% if video.videoType == 'youtube' %}
{% set src = 'https://www.youtube.com/embed/' %}
{% elseif video.videoType == 'vimeo' %}
{% set src = 'https://player.vimeo.com/video/' %}
{% elseif video.videoType == 'dailymotion' %}
{% set src = 'https://www.dailymotion.com/embed/video/' %}
{% endif %}
{% set src = src ~ video.id %}
<div class="video-area__video embed-responsive embed-responsive-16by9 js-consent-overlay" data-consent-type="marketing">
<div class="js-consent-overlay__overlay consent-overlay embed-responsive-item bg-light-bg d-flex justify-content-center flex-column align-items-center">
{{ 'cookies.accept-cookies-to-show-video' |trans }}
<button type="button" class="btn btn-primary-light mt-4 js-consent-overlay__btn">
{{ 'cookies.accept-marketing-cookies' |trans }}
</button>
</div>
<iframe class="embed-responsive-item js-consent-overlay__iframe"
src=""
frameborder="0"
data-iframe-src="{{ src }}"
allowfullscreen>
</iframe>
</div>
{% else %}
<div class="video-overlay__wrapper js-play-video">
<div class="video-overlay embed-responsive embed-responsive-16by9 js-play-video__overlay">
<span class="icon icon-play video-overlay__icon" title="play" aria-label="play"></span>
<img src="{{ video.getImageThumbnail('video-overlay') }}" class="js-lazy-img embed-responsive-item" >
</div>
<div class="video-overlay__video embed-responsive embed-responsive-16by9">
{{ video|raw }}
{% do jsConfig().add('videoJs', true) %}
</div>
</div>
{% endif %}
{% endif %}
</section>