{% set id = random(99999) %}
<div class="block-{{block.key}}" id="block-{{id}}">

    {% if block.content.video != null %}
        <div class="block-{{block.key}}__video">
            {% include "../layout/partials/video.twig" with {"video": block.content.video } %}
        </div>
    {% else %}    
        <div class="block-{{block.key}}__img">
            {% include "../layout/partials/picture.twig" with {"image": block.content.image } %}
        </div>
    {% endif %}
    

    {% set block_title = {"key": "title", "tag": "h1", "classes": "block-title--lg" } %}
    {% include "./title.twig" with {"block": block_title, "title": block.content.title } %}

</div>