{{foreach $rows as $images}}
{{foreach $images as $image}} {{* The absolute pixel value in the calc() should be mirrored from the .imagegrid-row column-gap value *}} {{include file="content/image/single_with_height_allocation.tpl" image=$image allocated_height="calc(`$image->heightRatio * $image->widthRatio / 100`% - 5px / `$column_size`)" allocated_width="`$image->widthRatio`%" }} {{/foreach}}
{{/foreach}}