{% from '@openform_front_templates/_includes/_icons.html.twig' import fullscreen, zoomin, zoomout, arrowObjectPrev, arrowObjectNext, arrowright, info, copyrights, infoClose %}
{% set ImageSlides = entity.ImageSlide|filterVisibles(app.request.locale) %}
<div style="{% if not entity.showHeader %}height:100vh; padding-top:{{rootParent is defined and rootParent.headerHeight is defined and rootParent.headerHeight ? rootParent.headerHeight : 90}}px; {% elseif rootParent is defined and rootParent.headerHeight is defined and rootParent.headerHeight %}height: calc(100vh - {{rootParent.headerHeight}}px);{% else %} height: calc( 100vh - 90px );{% endif %}">
<div class="collections__container" style="height: {{entity.lineHeight ? 100 - entity.lineHeight : 91}}%; padding: 2% 0;">
<div class="collections__container__wrapper" style="margin:{{entity.isInvertedTemplate is defined and entity.isInvertedTemplate ? '0 1.75% 0 0' : '0 0 0 1.75%' }}; width: {{entity.imageColumnWidth ? 100 - entity.imageColumnWidth : '51'}}%">
{% if ImageSlides|length > 0 %}
<div class="collections__wrapper" style="height: {{entity.heightTop|default('61') }}%; background: {{entity.imageBackgroundColor|default('#F8F7F0') }};r">
{% set data = ImageSlides[0] %}
{% set img = openform_front_util.getImagePathByType(data.Thumb ?? '','original') %}
{# {% set img = openform_front_util.getImagePathByType(data.Thumb ?? '','detal') %}
{% set imgPagination = openform_front_util.getImagePathByType(data.Thumb ?? '','list') %} #}
<div class="js-zoom" data-alt="{{data.Translation[app.request.locale].alt}}" style="height: 100%; display:flex; justify-content: center; align-items: center;">
<div class="collection-gallery__item" style="{{data.imageWidth ? 'width:' ~ data.imageWidth ~ '%;' : 'width: 100%;'}}
{{data.imageHeight ? 'height:' ~ data.imageHeight ~ '%;' : 'height: 100%;'}}
{{data.imageWidth ? 'max-width:' ~ data.imageWidth ~ '%;' : 'max-width: 100%;'}}
{{data.imageHeight ? 'max-height:' ~ data.imageHeight ~ '%;' : 'max-height: 100%;'}}">
<style>
.my-zoomist-1 img{
{% if data.imageBorderColor and data.imageBorderWidth %}border: {{data.imageBorderColor}} solid {{data.imageBorderWidth}}px;{% endif %}"
}
.my-zoomist-1 .zoomist-wrapper{
background:{{data.imageBackgroundColor ? data.imageBackgroundColor : entity.imageBackgroundColor ? entity.imageBackgroundColor : '#F8F7F0' }};
}
</style>
<div class="my-zoomist my-zoomist-1" data-zoomist-src="{{img}}"></div>
</div>
<div class="collection-gallery__wrap">
<div class="collection-gallery__content block__text">
</div>
<style>
{% if not data.Translation[app.request.locale].copyrights %}
.collection-gallery-buttons{{data.id}} .object__info--info::before {
left: 0px;
}
{% endif %}
</style>
<div class="collection-gallery__buttons collection-gallery-buttons{{data.id}}">
{% if data.Translation[app.request.locale].text is defined and data.Translation[app.request.locale].text %}
<div class="object__info-wrap">
<button class="collection-gallery__buttons__btn" type="button" aria-expanded="false" data-expanded="js-info-1" tabindex="0">{{info(('T_INFO')|trans({}, 'openform_front', app.request.locale))}}</button>
<div class="object__info object__info--info js-info-1" data-lenis-prevent>
<div class="object__info__text block__text">{{data.Translation[app.request.locale].text|raw}}</div>
<button class="object__info__close js-expanded-close" type="button">{{infoClose()}}</button>
</div>
</div>
{% endif %}
{% if data.Translation[app.request.locale].copyrights %}
<div class="object__info-wrap">
<button class="collection-gallery__buttons__btn" type="button" aria-expanded="false" data-expanded="js-copyright-1" tabindex="0">{{copyrights(('T_INFO')|trans({}, 'openform_front', app.request.locale))}}</button>
<div class="object__info object__info--copyright js-copyright-1" data-lenis-prevent>
<div class="object__info__text block__text">{{data.Translation[app.request.locale].copyrights|raw}}</div>
<button class="object__info__close js-expanded-close" type="button">{{infoClose()}}</button>
</div>
</div>
{% endif %}
<button class="collection-gallery__buttons__btn js-fullscreen" data-alt="{{data.Translation[app.request.locale].alt}}" tabindex="0" data-color="{{data.imageBackgroundColor is defined and data.imageBackgroundColor ? data.imageBackgroundColor }}"
data-image="{{img}}"
data-description="{{data.Translation[app.request.locale].text}}"
data-copyrights="{{data.Translation[app.request.locale].copyrights}}"
data-start="0"
data-imagestyle="{% if data.imageBorderColor and data.imageBorderWidth %}border: {{data.imageBorderColor}} solid {{data.imageBorderWidth}}px;{% endif %}"
>
{{fullscreen(('T_FULLSCREEN')|trans({}, 'openform_front', app.request.locale))}}
</button>
<button class="collection-gallery__buttons__btn js-zoom-out">{{zoomout(('T_ZOOMOUT')|trans({}, 'openform_front', app.request.locale))}}</button>
<button class="collection-gallery__buttons__btn js-zoom-in">{{zoomin(('T_ZOOMIN')|trans({}, 'openform_front', app.request.locale))}}</button>
</div>
</div>
</div>
</div>
{% endif %}
<div class="collections__wrapper-content" style="background: {{entity.background|default('#F5DB7B') }}; width: 100%; height: {{entity.heightTop ? 100 - entity.heightTop : 39 }}%;" data-lenis-prevent>
<div class="collections__content">
{% if entity.Translation[app.request.locale].titleHtml is defined and entity.Translation[app.request.locale].titleHtml %}
<div class="collections__content__title block__h3">
{{ entity.Translation[app.request.locale].titleHtml|raw }}
</div>
{% endif %}
{% if entity.link is defined and entity.link %}
<a href="{{entity.link}}" class="block-text__btns__btn button-read-more button-read-more--black">
<span>{{('T_RELICT_LINK')|trans({}, 'openform_front', app.request.locale)}}</span>
{{arrowright()}}
</a>
{% endif %}
{% if entity.Translation[app.request.locale].text is defined and entity.Translation[app.request.locale].text %}
<div class="collections__content__text block__text">
{{ entity.Translation[app.request.locale].text|raw }}
</div>
{% endif %}
{% if entity.filePath is defined and entity.filePath and openform_front_util.isMp3File(entity.filePath) %}
<div class="block-image__image__audio">
<div class="block-audio__player">
<audio controls class="js-audio-player block-audio__inner">
<source src="{{ entity.filePath }}">
Your browser does not support the audio element.
</audio>
</div>
</div>
{% endif %}
{% if entity.Translation[app.request.locale].description is defined and entity.Translation[app.request.locale].description %}
<div class="collections__content__text block__text">
{{ entity.Translation[app.request.locale].description|raw }}
</div>
{% endif %}
{% if entity.Translation[app.request.locale].attributesText is defined and entity.Translation[app.request.locale].attributesText %}
<div class="collections__content__text block__text">
{{ entity.Translation[app.request.locale].attributesText|raw }}
</div>
{% endif %}
</div>
</div>
</div>
{% if ImageSlides|length > 1 %}
<div class="collections__wrapper" style="width: {{entity.imageColumnWidth ? 100 - entity.imageColumnWidth : '49'}}%; background: {{entity.imageBackgroundColor|default('#F8F7F0') }}; margin: 0 1.75%;">
{% set data = ImageSlides[1] %}
{% set img = openform_front_util.getImagePathByType(data.Thumb ?? '','original') %}
{# {% set img = openform_front_util.getImagePathByType(data.Thumb ?? '','detal') %}
{% set imgPagination = openform_front_util.getImagePathByType(data.Thumb ?? '','list') %} #}
<div class="js-zoom" data-alt="{{data.Translation[app.request.locale].alt}}" style="height: 100%; display:flex; justify-content: center; align-items: center;">
<div class="collection-gallery__item" style="{{data.imageWidth ? 'width:' ~ data.imageWidth ~ '%;' : 'width: 100%;'}}
{{data.imageHeight ? 'height:' ~ data.imageHeight ~ '%;' : 'height: 100%;'}}
{{data.imageWidth ? 'max-width:' ~ data.imageWidth ~ '%;' : 'max-width: 100%;'}}
{{data.imageHeight ? 'max-height:' ~ data.imageHeight ~ '%;' : 'max-height: 100%;'}}">
<style>
.my-zoomist-2 img{
{% if data.imageBorderColor and data.imageBorderWidth %}border: {{data.imageBorderColor}} solid {{data.imageBorderWidth}}px;{% endif %}"
}
.my-zoomist-2 .zoomist-wrapper{
background:{{data.imageBackgroundColor ? data.imageBackgroundColor : entity.imageBackgroundColor ? entity.imageBackgroundColor : '#F8F7F0' }};
}
</style>
<div class="my-zoomist my-zoomist-2" data-zoomist-src="{{img}}"></div>
</div>
<div class="collection-gallery__wrap">
<div class="collection-gallery__content block__text">
</div>
<style>
{% if not data.Translation[app.request.locale].copyrights %}
.collection-gallery-buttons{{data.id}} .object__info--info::before {
left: 0px;
}
{% endif %}
</style>
<div class="collection-gallery__buttons collection-gallery-buttons{{data.id}}">
{% if data.Translation[app.request.locale].text is defined and data.Translation[app.request.locale].text %}
<div class="object__info-wrap">
<button class="collection-gallery__buttons__btn" type="button" aria-expanded="false" data-expanded="js-info-2" tabindex="0">{{info(('T_INFO')|trans({}, 'openform_front', app.request.locale))}}</button>
<div class="object__info object__info--info js-info-2" data-lenis-prevent>
<div class="object__info__text block__text">{{data.Translation[app.request.locale].text|raw}}</div>
<button class="object__info__close js-expanded-close" type="button">{{infoClose()}}</button>
</div>
</div>
{% endif %}
{% if data.Translation[app.request.locale].copyrights %}
<div class="object__info-wrap">
<button class="collection-gallery__buttons__btn" type="button" aria-expanded="false" data-expanded="js-copyright-2" tabindex="0">{{copyrights(('T_INFO')|trans({}, 'openform_front', app.request.locale))}}</button>
<div class="object__info object__info--copyright js-copyright-2" data-lenis-prevent>
<div class="object__info__text block__text">{{data.Translation[app.request.locale].copyrights|raw}}</div>
<button class="object__info__close js-expanded-close" type="button">{{infoClose()}}</button>
</div>
</div>
{% endif %}
<button class="collection-gallery__buttons__btn js-fullscreen" data-alt="{{data.Translation[app.request.locale].alt}}" tabindex="0" data-color="{{data.imageBackgroundColor is defined and data.imageBackgroundColor ? data.imageBackgroundColor }}"
data-image="{{img}}"
data-description="{{data.Translation[app.request.locale].text}}"
data-copyrights="{{data.Translation[app.request.locale].copyrights}}"
data-start="1"
data-imagestyle="{% if data.imageBorderColor and data.imageBorderWidth %}border: {{data.imageBorderColor}} solid {{data.imageBorderWidth}}px;{% endif %}"
>
{{fullscreen(('T_FULLSCREEN')|trans({}, 'openform_front', app.request.locale))}}
</button>
<button class="collection-gallery__buttons__btn js-zoom-out">{{zoomout(('T_ZOOMOUT')|trans({}, 'openform_front', app.request.locale))}}</button>
<button class="collection-gallery__buttons__btn js-zoom-in">{{zoomin(('T_ZOOMIN')|trans({}, 'openform_front', app.request.locale))}}</button>
</div>
</div>
</div>
</div>
{% endif %}
</div>
{% if entity.imageFooterTextColor %}
<style>
.object__nav__button{
color: {{entity.imageFooterTextColor}};
}
.object__nav__button path{
fill: {{entity.imageFooterTextColor}};
}
</style>
{% endif %}
<div class="collections__arrows" style="background: {{entity.imageFooterBackgroundColor|default('#F8F4DC') }}; height: {{entity.lineHeight|default('9') }}%; color:{{entity.imageFooterTextColor|default('#231F17') }} !important;">
{% for key, Relict in entity.RelictPack.getVisibleRelicts(app.request.locale) %}
{% if entity.id == Relict.id %}
{% if entity.RelictPack.getVisibleRelicts(app.request.locale)[key - 1] is defined %}
{% set prevElement = entity.RelictPack.getVisibleRelicts(app.request.locale)[key - 1] %}
{% set href = toolkit_route_localizer.generate('relict_item',{ slug : prevElement.Translation[app.request.locale].slug }, app.request.locale) %}
<a href="{{href}}" class="object__nav__button">{{arrowObjectPrev(('T_RELICT_PREV')|trans({}, 'openform_front', app.request.locale))}}{{ ('T_RELICT_PREV')|trans({}, 'openform_front', app.request.locale) }}</a>
{% endif%}
{% if entity.RelictPack.getVisibleRelicts(app.request.locale)|length > 0 %}
<div class="collections__arrows__numbers">
<span>{{ key + 1 }}</span>/{{ entity.RelictPack.getVisibleRelicts(app.request.locale) is defined ? entity.RelictPack.getVisibleRelicts(app.request.locale)|length }}
</div>
{% endif %}
{% if entity.RelictPack.getVisibleRelicts(app.request.locale)[key + 1] is defined %}
{% set nextElement = entity.RelictPack.getVisibleRelicts(app.request.locale)[key + 1] %}
{% set href = toolkit_route_localizer.generate('relict_item',{ slug : nextElement.Translation[app.request.locale].slug }, app.request.locale) %}
<a href="{{href}}" class="object__nav__button object__nav__button--right">{{ ('T_RELICT_NEXT')|trans({}, 'openform_front', app.request.locale) }}{{arrowObjectNext(('T_RELICT_NEXT')|trans({}, 'openform_front', app.request.locale))}}</a>
{% endif%}
{% endif %}
{% endfor %}
</div>
</div>