{% set showcase_image = page.media.images|first %}
{% if showcase_image %}
	<div class="modular-row showcase{% if page == page.parent.collection.first %} flush-top{% endif %}" style="background-image: url({{ showcase_image.url }});">
{% else %}
<div class="modular-row showcase">
{% endif %}

    <div class="presentation-event">
        {{ content|raw }}
        <div class="boutons-event">
            {% for button in page.header.buttons %}
                {% if button.url %}
                    <a class="bouton{% if button.primary %} primary{% endif %}" href="{{ button.url }}" target="_blank">{{ button.text }}</a>
                {% else %}
                    <a class="bouton{% if button.primary %} primary{% endif %}" href="{{page.media[button.pdf].url|e }}" target="_blank">{{ button.text }}</a>
                {% endif %}
            {% endfor %}
        </div>
    </div>    

</div>
