{% if dataObjectFolder %}
<div class="case-studies">
<div data-aos="swipe-right" class="position-relative{% if layoutMode == 'horizontal' %} horizontal-overflow{% endif %}">
<div class="inner">
<div class="row{% if (layoutMode == 'grid') or (layoutMode is null) %} gutter-space--md{% endif %}">
{% for dataobject in dataObjectFolder.getChildren() %}
{% if dataobject is instanceof('\\Pimcore\\Model\\DataObject\\CaseStudy') %}
{% include 'document/card-carousel/case-study-card.html.twig' with {'caseStudy': dataobject} %}
{% elseif dataobject is instanceof('\\Pimcore\\Model\\DataObject\\BlogPost') %}
{% include 'document/card-carousel/blog-post-card.html.twig' with {'blogPost': dataobject} %}
{% endif %}
{% endfor %}
</div>
</div>
</div>
</div>
{% endif %}