      data-name="second"
        data-row-start="2"
        data-row-width="1"
        data-col-start="2"
        data-col-width="1"
      >
        Second element
      </div>
      <div
        class="flexible-grid-item"
        data-name="third"
        data-row-start="1"
        data-row-width="1"
        data-col-start="3"
        data-col-width="1"
      >
        Third element
      </div>
    </div>

    <script>
      const grid = document.querySelector('.flexible-grid')
      const gridElements = 