{{foreach $columns.fc as $img}}
- {{include file="content/image.tpl" image=$img}}
+ {{include file="content/image/single.tpl" image=$img}}
{{/foreach}}
{{foreach $columns.sc as $img}}
- {{include file="content/image.tpl" image=$img}}
+ {{include file="content/image/single.tpl" image=$img}}
{{/foreach}}
-
\ No newline at end of file
+
diff --git a/view/templates/content/image/horizontal_masonry.tpl b/view/templates/content/image/horizontal_masonry.tpl
new file mode 100644
index 0000000000..223a9c4a43
--- /dev/null
+++ b/view/templates/content/image/horizontal_masonry.tpl
@@ -0,0 +1,12 @@
+{{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}}
diff --git a/view/templates/content/image.tpl b/view/templates/content/image/single.tpl
similarity index 100%
rename from view/templates/content/image.tpl
rename to view/templates/content/image/single.tpl
diff --git a/view/templates/content/image/single_with_height_allocation.tpl b/view/templates/content/image/single_with_height_allocation.tpl
new file mode 100644
index 0000000000..1d70194bef
--- /dev/null
+++ b/view/templates/content/image/single_with_height_allocation.tpl
@@ -0,0 +1,20 @@
+{{* The padding-top height allocation trick only works if the