{% from '@openform_front_templates/_includes/_icons.html.twig' import fullscreen, zoomin, zoomout, sliderprev, slidernext, arrowright, copyrights, info, infoClose %}
{% set ImageSlides = entity.ImageSlide|filterVisibles(app.request.locale) %}
{% set key4 = 0 %}
{% set height = entity.lineHeightBottom1 and entity.lineHeightTop2 ? 100 - entity.lineHeightBottom1 - entity.lineHeightTop2 : (entity.lineHeightBottom1 == null or entity.lineHeightBottom1 is same as(0)) and entity.lineHeightTop2 ? 94 - entity.lineHeightTop2 : entity.lineHeightBottom1 and (entity.lineHeightTop2 == null or entity.lineHeightTop2 is same as(0)) ? 94 - entity.lineHeightBottom1 : entity.lineHeightBottom1 is same as(0) and entity.lineHeightTop2 is same as(0) ? 100 : 86 %}
<style>
.collections__wrapper:nth-child(1)::after{
height: {{entity.lineHeightBottom1 is same as(0) ? 0 : entity.lineHeightBottom1 ? entity.lineHeightBottom1 : 6 }}% !important;
background-color: {{entity.lineColorBottom1|default('#F6E9B5') }};
}
.collections__wrapper:nth-child(1)::before{
height: {{entity.lineHeightTop2 is same as(0) ? 0 : entity.lineHeightTop2 ? entity.lineHeightTop2 : 6 }}% !important;
background-color: {{entity.lineColorTop2|default('#F6E9B5') }};
}
</style>
<div style="{% if not entity.showHeader %}height:100vh; {% elseif rootParent is defined and rootParent.headerHeight is defined and rootParent.headerHeight %}height: calc(100vh - {{rootParent.headerHeight}}px);{% else %} height: calc( 100vh - 90px );{% endif %} display:flex; background: {{entity.imageBackgroundColor|default('#F8F7F0') }};">
<div class="collections__line" style="height: 92%; margin: auto 0; width: {{entity.lineWidthVertical1 is same as(0) ? 0 : entity.lineWidthVertical1 ? entity.lineWidthVertical1 : 1 }}%; background: {{entity.lineColorVertical1|default('#F6E9B5') }};"></div>
<div class="collections__container" style="width: {{entity.lineWidthVertical1 and entity.lineWidthVertical2 ? 100 - entity.lineWidthVertical1 - entity.lineWidthVertical2 : entity.lineWidthVertical1 and entity.lineWidthVertical2 == null ? 99 - entity.lineWidthVertical1 : entity.lineWidthVertical1 == null and entity.lineWidthVertical2 ? 99 - entity.lineWidthVertical2 : 98}}%; height: {{entity.lineHeightTop1 and entity.lineHeightBottom2 ? 90 - entity.lineHeightTop1 - entity.lineHeightBottom2 : entity.lineHeightTop1 and entity.lineHeightBottom2 == null ? 90 - entity.lineHeightTop1 : entity.lineHeightTop1 == null and entity.lineHeightBottom2 ? 90 - entity.lineHeightBottom2 : 90}}%;">
<div class="collections__container__wrapper">
<div class="collections__wrapper" style="width: {{entity.textAreaWidth|default('47') }}%; height:100%; {{entity.lineHeightBottom1 is same as(0) ? 'padding-bottom: 0;'}} {{entity.lineHeightTop2 is same as(0) ? 'padding-top: 0;'}}" data-lenis-prevent>
<div class="collections__content" style="background: {{entity.background|default('#F5DB7B') }}; height: {{height}}%;">
{% 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.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 %}
{% 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.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 }}
</div>
{% endif %}
</div>
</div>
<div class="collections__wrapper" style="width: {{entity.textAreaWidth ? 100 - entity.textAreaWidth : 53 }}%;">
{% if ImageSlides|length > 0 %}
<div class="js-collection-gallery-standard" style="height: 100%;">
<div class="splide js-collections-gallery-o8 collection-gallery" aria-label="Galeria" style="height: 100%;">
<div class="splide__track">
<ul class="splide__list" style="height: 100%;">
{% for image in ImageSlides %}
{% set key4 = key4 + 1 %}
{% set img = openform_front_util.getImagePathByType(image.Thumb ?? '','original') %}
{# {% set img = openform_front_util.getImagePathByType(image.Thumb ?? '','template8') %}
{% set imgPagination = openform_front_util.getImagePathByType(image.Thumb ?? '','list') %} #}
<li class="splide__slide" style="height: 100%;">
<div class="js-zoom" data-alt="{{image.Translation[app.request.locale].alt}}" style="height: 100%; display:flex; justify-content: center; align-items: center;">
<div class="collection-gallery__item" style="{{image.imageWidth ? 'width:' ~ image.imageWidth ~ '%;' : 'width: 100%;'}}
{{image.imageHeight ? 'height:' ~ image.imageHeight ~ '%;' : 'height: 100%;'}}
{{image.imageWidth ? 'max-width:' ~ image.imageWidth ~ '%;' : 'max-width: 100%;'}}
{{image.imageHeight ? 'max-height:' ~ image.imageHeight ~ '%;' : 'max-height: 100%;'}}
">
<style>
.my-zoomist-{{key4 - 1}} img{
collections__wrapper {% if image.imageBorderColor and image.imageBorderWidth %}border: {{image.imageBorderColor}} solid {{image.imageBorderWidth}}px;{% endif %}"
}
.my-zoomist-{{key4 - 1}} .zoomist-wrapper{
background:{{image.imageBackgroundColor ? image.imageBackgroundColor : entity.imageBackgroundColor ? entity.imageBackgroundColor : '#F8F7F0' }};
}
</style>
<div class="my-zoomist my-zoomist-{{key4 - 1}}" data-zoomist-src="{{img}}"></div>
</div>
<div class="collection-gallery__wrap">
<div class="collection-gallery__content block__text">
</div>
<style>
.collection-gallery-buttons{{image.id}}{
{% if not image.Translation[app.request.locale].copyrights %}
.object__info--info::before {
left: 0px;
}
{% endif %}
}
</style>
<div class="collection-gallery__buttons collection-gallery-buttons{{image.id}}">
{% if image.Translation[app.request.locale].text is defined and image.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-{{image.id}}" tabindex="0">{{info(('T_INFO')|trans({}, 'openform_front', app.request.locale))}}</button>
<div class="object__info object__info--info js-info-{{image.id}}" data-lenis-prevent>
<div class="object__info__text block__text">{{image.Translation[app.request.locale].text|raw}}</div>
<button class="object__info__close js-expanded-close" type="button">{{infoClose()}}</button>
</div>
</div>
{% endif %}
{% if image.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-{{image.id}}" tabindex="0">{{copyrights(('T_INFO')|trans({}, 'openform_front', app.request.locale))}}</button>
<div class="object__info object__info--copyright js-copyright-{{image.id}}" data-lenis-prevent>
<div class="object__info__text block__text">{{image.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="{{image.Translation[app.request.locale].alt}}" tabindex="0" data-color="{{image.imageBackgroundColor is defined and image.imageBackgroundColor ? image.imageBackgroundColor }}"
data-image="{{img}}"
data-description="{{image.Translation[app.request.locale].text}}"
data-copyrights="{{image.Translation[app.request.locale].copyrights}}"
data-start="{{key4 - 1}}"
data-imagestyle="{% if image.imageBorderColor and image.imageBorderWidth %}border: {{image.imageBorderColor}} solid {{image.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>
</li>
{% endfor %}
</ul>
<div class="splide__arrows{{ ImageSlides|length < 2 ? ' hide' }}">
<div class="slider-nav collection-gallery__nav collection-gallery__nav--o8">
<button class="splide__arrow splide__arrow--prev slider-nav__btn slider-nav__btn--prev" disabled>
{{ sliderprev('PREV_SLIDE'|trans({}, 'openform_front', app.request.locale)) }}
</button>
<ul class="splide__pagination collection-gallery__pagination"></ul>
<button class="splide__arrow splide__arrow--next slider-nav__btn slider-nav__btn--next">
{{ slidernext('NEXT_SLIDE'|trans({}, 'openform_front', app.request.locale)) }}
</button>
</div>
</div>
</div>
</div>
</div>
{% endif %}
</div>
</div>
<div class="collections__container__wrapper">
{% if entity2 is defined %}
{% set ImageSlides2 = entity2.ImageSlide|filterVisibles(app.request.locale) %}
<div class="collections__wrapper" style="width: {{entity.textAreaWidth|default('47') }}%;" data-lenis-prevent>
<div class="collections__content" style="background: {{entity.background|default('#F5DB7B') }}; height: {{height}}%;">
{% if entity2.Translation[app.request.locale].titleHtml is defined and entity2.Translation[app.request.locale].titleHtml %}
<div class="collections__content__title block__h3">
{{ entity2.Translation[app.request.locale].titleHtml|raw }}
</div>
{% endif %}
{% if entity2.Translation[app.request.locale].attributesText is defined and entity2.Translation[app.request.locale].attributesText %}
<div class="collections__content__text block__text">
{{ entity2.Translation[app.request.locale].attributesText|raw }}
</div>
{% endif %}
{% if entity2.link is defined and entity2.link %}
<a href="{{entity2.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 entity2.Translation[app.request.locale].text is defined and entity2.Translation[app.request.locale].text %}
<div class="collections__content__text block__text">
{{ entity2.Translation[app.request.locale].text|raw }}
</div>
{% endif %}
{% if entity2.Translation[app.request.locale].description is defined and entity2.Translation[app.request.locale].description %}
<div class="collections__content__text block__text">
{{ entity2.Translation[app.request.locale].description|raw }}
</div>
{% endif %}
</div>
</div>
<div class="collections__wrapper" style="width: {{entity.textAreaWidth ? 100 - entity.textAreaWidth : 53 }}%;">
{% if ImageSlides2|length > 0 %}
<div class="js-collection-gallery-standard" style="height: 100%;">
<div class="splide js-collections-gallery-o8 collection-gallery collection-gallery--o8" style="height: 100%;">
<div class="splide__track">
<ul class="splide__list" style="height: 100%;">
{% set key3 = 0 %}
{% for image in ImageSlides2 %}
{% set img = openform_front_util.getImagePathByType(image.Thumb ?? '','original') %}
{# {% set img = openform_front_util.getImagePathByType(image.Thumb ?? '','template8') %}
{% set imgPagination = openform_front_util.getImagePathByType(image.Thumb ?? '','list') %} #}
{% set key3 = key3 + 1 %}
<li class="splide__slide" style="height: 100%;">
<div class="js-zoom" data-alt="{{image.Translation[app.request.locale].alt}}" style="height: 100%; display:flex; justify-content: center; align-items: center;">
<div class="collection-gallery__item" style="{{image.imageWidth ? 'width:' ~ image.imageWidth ~ '%;' : 'width: 100%;'}}
{{image.imageHeight ? 'height:' ~ image.imageHeight ~ '%;' : 'height: 100%;'}}
{{image.imageWidth ? 'max-width:' ~ image.imageWidth ~ '%;' : 'max-width: 100%;'}}
{{image.imageHeight ? 'max-height:' ~ image.imageHeight ~ '%;' : 'max-height: 100%;'}}
">
<style>
.my-zoomist-{{key3 + key4 - 1}} img{
{% if image.imageBorderColor and image.imageBorderWidth %}border: {{image.imageBorderColor}} solid {{image.imageBorderWidth}}px;{% endif %}"
}
.my-zoomist-{{key3 + key4 - 1}} .zoomist-wrapper{
background:{{image.imageBackgroundColor ? image.imageBackgroundColor : entity.imageBackgroundColor ? entity.imageBackgroundColor : '#F8F7F0' }};
}
</style>
<div class="my-zoomist my-zoomist-{{key3 + key4 - 1}} " data-zoomist-src="{{img}}"></div>
</div>
<div class="collection-gallery__wrap">
<div class="collection-gallery__content block__text">
</div>
<style>
.collection-gallery-buttons{{image.id}}{
{% if not image.Translation[app.request.locale].copyrights %}
.object__info--info::before {
left: 0px;
}
{% endif %}
}
</style>
<div class="collection-gallery__buttons collection-gallery-buttons{{image.id}}">
{% if image.Translation[app.request.locale].text is defined and image.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-{{image.id}}" tabindex="0">{{info(('T_INFO')|trans({}, 'openform_front', app.request.locale))}}</button>
<div class="object__info object__info--info js-info-{{image.id}}" data-lenis-prevent>
<div class="object__info__text block__text">{{image.Translation[app.request.locale].text|raw}}</div>
<button class="object__info__close js-expanded-close" type="button">{{infoClose()}}</button>
</div>
</div>
{% endif %}
{% if image.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-{{image.id}}" tabindex="0">{{copyrights(('T_INFO')|trans({}, 'openform_front', app.request.locale))}}</button>
<div class="object__info object__info--copyright js-copyright-{{image.id}}" data-lenis-prevent>
<div class="object__info__text block__text">{{image.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="{{image.Translation[app.request.locale].alt}}" tabindex="0" data-color="{{image.imageBackgroundColor is defined and image.imageBackgroundColor ? image.imageBackgroundColor }}"
data-image="{{img}}"
data-description="{{image.Translation[app.request.locale].text}}"
data-copyrights="{{image.Translation[app.request.locale].copyrights}}"
data-start="{{key3 + key4 - 1}}"
data-imagestyle="{% if image.imageBorderColor and image.imageBorderWidth %}border: {{image.imageBorderColor}} solid {{image.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>
</li>
{% endfor %}
</ul>
<div class="splide__arrows{{ ImageSlides|length < 2 ? ' hide' }}">
<div class="slider-nav collection-gallery__nav collection-gallery__nav--o8">
<button class="splide__arrow splide__arrow--prev slider-nav__btn slider-nav__btn--prev" disabled>
{{ sliderprev('PREV_SLIDE'|trans({}, 'openform_front', app.request.locale)) }}
</button>
<ul class="splide__pagination collection-gallery__pagination"></ul>
<button class="splide__arrow splide__arrow--next slider-nav__btn slider-nav__btn--next">
{{ slidernext('NEXT_SLIDE'|trans({}, 'openform_front', app.request.locale)) }}
</button>
</div>
</div>
</div>
</div>
</div>
{% endif %}
</div>
{% endif %}
</div>
<div class="collections__arrows">
{% 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="slider-nav__btn slider-nav__btn--prev">
{{ sliderprev('PREV_Relict'|trans({}, 'openform_front', app.request.locale)) }}
</a>
{% endif%}
{% if entity2 is defined %}
{% if entity.RelictPack.getVisibleRelicts(app.request.locale)[key + 2] 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="slider-nav__btn slider-nav__btn--next">
{{ slidernext('Next_Relict'|trans({}, 'openform_front', app.request.locale)) }}
</a>
{% endif%}
{% else %}
{% 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="slider-nav__btn slider-nav__btn--next">
{{ slidernext('Next_Relict'|trans({}, 'openform_front', app.request.locale)) }}
</a>
{% endif%}
{% endif %}
{% endif %}
{% endfor %}
</div>
</div>
<div class="collections__line" style="height: 92%; margin: auto 0; width: {{entity.lineWidthVertical2 is same as(0) ? 0 : entity.lineWidthVertical2|default('1') }}%; background: {{entity.lineColorVertical2|default('#F6E9B5') }};"></div>
<div class="collections__line-top" style="width: 96%; height: {{entity.lineHeightTop1 is same as(0) ? 0 : entity.lineHeightTop1|default('1') }}%; background: {{entity.lineColorTop1|default('#F5DB7B') }}; position: absolute;
{% if not entity.showHeader %}top: 13%;{% else %}top: 4%;{% endif %} left: 50%; transform: translateX(-50%);"></div>
<div class="collections__line-bottom" style="width: 98%; height: {{entity.lineHeightBottom2 is same as(0) ? 0 : entity.lineHeightBottom2|default('3.2') }}%; background: {{entity.lineColorBottom2|default('#F5DB7B') }}; position: absolute; bottom: 0.5%; right: 0;"></div>
</div>