{% set image_content %}
    <div class="col-lg-5">
        <div class="image">
            {{ grid.image.cropped.resize(400)|raw }}
        </div>
    </div>
{% endset %}

{% set copy_content %}
    <div class="col-lg-7">
        <div class="content">
            {{ grid.content.render|raw }}
        </div>
    </div>
{% endset %}

<div class="grid grid-image_copy {{ grid.position.key }}">
    <div class="container">
        <div class="row">

            {% if grid.position.key == 'left' %}
                {{ image_content|raw }}
                {{ copy_content|raw }}
            {% else %}
                {{ copy_content|raw }}
                {{ image_content|raw }}
            {% endif %}

        </div>
    </div>
</div>
