{% if editmode %}
<div style="height: 120px"></div> {# navbar overlapping #}
<div class="editmode-box editmode-box--info mb-5 text-left">
<div class="editmode-box__header">Settings</div>
<div>
<label>
Background Image
</label>
{{ pimcore_relation('backgroundImage', {'reload': true}) }}
</div>
<div class="mt-2">
<label>
Mobile Background Image (optional)
</label>
{{ pimcore_relation('backgroundImageMobile') }}
</div>
</div>
{% endif %}
{% set bgImageSrc = '' %}
{% set bgImageSrcMobile = '' %}
{% set description = '' %}
{% if not pimcore_relation('backgroundImage').empty %}
{% set description = getImageDescription(pimcore_relation('backgroundImage').element) %}
{% endif %}
{% if not pimcore_relation('backgroundImage').empty %}
{% set bgImageSrc = pimcore_relation('backgroundImage').element.thumbnail('hero--full-height') %}
{% do pimcore_placeholder('backgroundImage').set(bgImageSrc) %}
{% set bgImageSrcMobile = pimcore_relation('backgroundImage').element.thumbnail('hero--full-height--xs') %}
{% do pimcore_placeholder('backgroundImageMobile').set(bgImageSrcMobile) %}
{% endif %}
{% if not pimcore_relation('backgroundImageMobile').empty %}
{% set bgImageSrcMobile = pimcore_relation('backgroundImageMobile').element.thumbnail('hero--full-height--xs') %}
{% do pimcore_placeholder('backgroundImageMobile').set(bgImageSrcMobile) %}
{% endif %}
{% do elements_opengraph().addImage(bgImageSrc) %}
<div class="hero-full-height {{ styleModifier|default('') }}" title="{{ description }}">
<div class="hero-full-height__bg"
style='background-image: url("{{ bgImageSrc|raw }}"); --image-src: url({{ bgImageSrc|raw }}); --image-src-xs: url({{ bgImageSrcMobile|raw }});'>
<div class="hero-full-height__content {{ contentStyleModifier | default(null) }}">
{% if logo|default(null) %}
<div class="container container-sm">
{# logo is needed for mudaba #}
<div class="text-left">
{{ pimcore_image('mudaba-logo', {
thumbnail: 'hero-full-height-logo',
class: 'hero-full-height__brand img-fluid'
}) }}
</div>
</div>
{% endif %}
<div class="container">
{% if editmode or not pimcore_input('subtitle').empty %}
<div class="hero-full-height__sub-title">
{{ pimcore_input('subtitle') }}
</div>
{% endif %}
{% if isNotPortal|default(null) %}
<h2 class="hero-full-height__custom-title">
{{ pimcore_input('headline', {'required': true}) }}
</h2>
{% else %}
<h1 class="hero-full-height__title {{ pimcore_input('headline').data | length > 14 ? 'hero-full-height__title--long' : '' }}">
{{ pimcore_input('headline', {'required': true}) }}
</h1>
{% endif %}
{# <h1>#}
{# <svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 1457 168">#}
{# <defs>#}
{# <linearGradient id="hero-headline-a" x1="50%" x2="50%" y1="26.74%" y2="80.165%">#}
{# <stop offset="0%" stop-color="#EEE"/>#}
{# <stop offset="100%" stop-color="#FFF" stop-opacity="0"/>#}
{# </linearGradient>#}
{# </defs>#}
{# <text fill="url(#hero-headline-a)" dominant-baseline="middle" text-anchor="middle" textLength='1457' class="hero-full-height__title" font-size="140" font-weight="bold" letter-spacing="17.5">#}
{# <tspan x="50%" y="133">{{ pimcore_input('headline', {'required': true}) }}</tspan>#}
{# </text>#}
{# </svg>#}
{# </h1>#}
{% if editmode %}
<span class="alert alert-danger">required</span><br>
{% endif %}
{% if editmode or not pimcore_link('headerimagelink').empty %}
<div class="text-center mt-md-5 mt-3">
{{ pimcore_link('headerimagelink', { class: 'btn btn-primary-light' }) }}
{# <a href="{{ pimcore_link('headerimagelink').href }}" target="{{ pimcore_link('headerimagelink').target|default('_self') }}" class="">{{ pimcore_link('headerimagelink').text }}</a>#}
</div>
{% endif %}
</div>
</div>
</div>
</div>