{% extends 'areas/hero/editables.html.twig' %}
{% block view %}
{% if heroType == 'big-image' %}
<section class="l-hero">
<div class="container">
<div class="row">
<div class="col">
<div class="c-hero {{componentMargin}} {% if editmode %}c-hero__editmode{% endif %} {% if heroType == 'big-image' %} c-hero__bigImage{% endif %}">
{% if heroType == 'big-image' %}
{# gradient #}
{% set gradient %}
{% if heroGradientOpacity.number %}
{% set opacity = heroGradientOpacity.number / 100 %}
{% endif %}
{% if heroShade is not defined or heroShade is null %}
{% set heroShade = 'multi' %}
{% endif %}
<div class="gradient-{{heroGradient}} gradient-color-{{heroShade}}"{% if heroGradientOpacity.number %} style="--gradientOpacity: {{opacity}}; --gradientSize: {{heroGradientSize}}%"{% endif %}></div>
{% endset %}
{% if heroImageSingle.getThumbnail('content-full') != '' %}
<div class="c-hero__image background-image js-big-image" style="background-image: url({{heroImageSingle.getThumbnail('content-full').getPath()}}); background-position: {{imagePosition|replace({'-' : ' '})}}">
{{gradient}}
<div class="c-hero__text">
<div class="container">
<div class="row">
<div class="c-col col-xs-12 col-lg-10 e-rte">
{{ replaceHeroVars(headline) | raw}}
</div>
</div>
</div>
</div>
{% if document.getProperty('showBreadcrumb') %}
<div class="c-hero__back js-hero-back-button d-none">
{% if document.getProperty('backPage') is defined and document.getProperty('backPage') is not null %}
<div class="c-hero__back-button" data-back="{{ document.getProperty('backPage').getFullPath() }}">{{'html.hero.backButton' | trans}}</div>
{% else %}
<div class="c-hero__back-button">{{'html.hero.backButton' | trans}}</div>
{% endif %}
</div>
{% endif %}
</div>
{% endif %}
{% endif %}
</div>
</div>
</div>
</div>
</section>
{% else %}
<section class="l-hero"></section>
{% endif %}
{% endblock %}