- <section class="wysiwyg-with-medium container content-block {{ not pimcore_input('anchorTitle').isEmpty() ? 'js-anchor-nav__item' }}"
-     {% if not pimcore_input('anchorTitle').isEmpty() %} data-anchor-nav-title="{{ pimcore_input('anchorTitle').getData() }}" {% endif %}
- >
-     {% if editmode %}
-         <div class="ms-auto">
-             {% embed 'includes/editmode-settings.html.twig' %}
-                 {% block additionalSettings %}
-                     {{ 'Text Position: ' }}
-                     {{ pimcore_select('mediaPosition', {
-                         "label": "Text position",
-                         "store": [
-                             ["left", "Left"],
-                             ["right", "Right"]
-                         ],
-                         "defaultValue": "left"
-                     }) }}
-                     {{ 'Media Type: ' }}
-                     {{ pimcore_select('mediaType', {
-                         "store": [
-                             ["image", "Image"],
-                             ["video", "Video"]
-                         ],
-                         "defaultValue": "image",
-                         "reload": true,
-                     }) }}
-                     <div>
-                         {{ 'Button: ' }}
-                         {{ pimcore_link('link') }}
-                     </div>
-                 {% endblock %}
-             {% endembed %}
-         </div>
-     {% endif %}
-     {% set isWysiwygLeft = pimcore_select("mediaPosition").getData() == 'left' ? true : false %}
-     {% set mediaType = pimcore_select("mediaType").getData() %}
-     {{ include('includes/title-blocks/title-block.html.twig', {
-         hideIntro: true,
-     }) }}
-     <div class="row gy-3">
-         {% if isWysiwygLeft %}
-             {{ _self.wysiwyg(isWysiwygLeft) }}
-         {% endif %}
-         {{ _self.media(mediaType, isWysiwygLeft) }}
-         {% if not isWysiwygLeft %}
-             {{ _self.wysiwyg(isWysiwygLeft) }}
-         {% endif %}
-     </div>
- </section>
- {% macro wysiwyg(isWysiwygLeft) %}
-     <div class="col-md-4 offset-md-1 {{ isWysiwygLeft ? 'order-1 order-md-0' : '' }}">
-         <div class="content-teaser__content">
-             {% if editmode or not pimcore_input('headline').isEmpty() %}
-                 <h3 class="h4 mb-4">{{ pimcore_input('headline') }}</h3>
-             {% endif %}
-             {% if editmode or not pimcore_wysiwyg('content').isEmpty() %}
-                 <div class="wysiwyg mb-md-5 mb-1">{{ pimcore_wysiwyg('content')|raw }}</div>
-             {% endif %}
-             {% if not pimcore_link('link').isEmpty() %}
-                 <a href="{{ pimcore_link('link').href }}" class="btn btn-primary" target="{{ pimcore_link('link').target }}">
-                     {{ pimcore_link('link').text }}
-                 </a>
-             {% endif %}
-         </div>
-     </div>
- {% endmacro %}
- {% macro media(mediaType, isWysiwygLeft) %}
-     <div class="col-md-6 {{ isWysiwygLeft ? 'offset-md-1 order-0 order-md-1' : '' }}">
-         <div class="{{ isWysiwygLeft ? 'container__break-right-half-md' : 'container__break-left-half-md' }}">
-             {% if mediaType == 'image' %}
-                 <div class="wysiwyg-with-medium__media position-relative js-lightbox">
-                     {{ include('includes/lightbox-image.html.twig', {
-                         aspectRatio: '5x3',
-                         thumbnail: 'wysiwyg-with-media',
-                         imageClassName: 'wysiwyg-with-media__img',
-                         button: true
-                     }) }}
-                 </div>
-             {% elseif mediaType == 'video' %}
-                 <div class="wysiwyg-with-medium__media">
-                     {{ include('includes/media/video.html.twig', {
-                         aspectRatio: '5x3',
-                         isLightbox: true,
-                         imageThumbnail: 'wysiwyg-with-media',
-                         attributes: {
-                             'playsinline': false,
-                         },
-                         removeAttribute: ['controls']
-                     }) }}
-                 </div>
-             {% endif %}
-         </div>
-     </div>
- {% endmacro %}