{namespace neos=Neos\Neos\ViewHelpers}

<f:if condition="{node.parent.parent.nodetype} == 'Newland.CityTheme:Container'">
    <section class="o-container o-container--sm">
</f:if>

<figure class="c-image-text {f:if(condition:'{isInverted} == true', then:'c-image-text--inverted')} {marginTop} ">
   <div class="c-image-text__image-wrapper">
        <noscript>
            <img src="{neos.media:uri.image(image: image, maximumWidth: 248)}"
                alt="{alternativeText}"/>
        </noscript>
        <img data-src="{neos.media:uri.image(image: image, maximumWidth: 248)}"
            alt="{alternativeText}"
            class="lazyload" />
            <f:render partial="Copyright" arguments="{_all}"></f:render>
        </div>
    <figcaption>
        <neos:contentElement.editable property="title" class="c-image-text__title" tag="h3" />
        <neos:contentElement.editable property="text" tag="p" />

        <f:if condition="{link}">
            <a class="c-button c-button--soft-rounded {buttonColor}" href="{link}"
            {f:if(condition: openLinkInNewWindow, then: 'target="_blank" rel="noopener noreferrer"')}>
                {linkTitle}
            </a>
        </f:if>
    </figcaption>
</figure>

<f:if condition="{node.parent.parent.nodetype} == 'Newland.CityTheme:Container'">
    </section>
</f:if>