-
-
-
![Full size]()
-
-
-
+
+
+
+
+
-
-
-
-
+
+
+
+
+
+
![Full size]()
+
+
+
+
+
+
+
+
-
- function resizeMasonryItem(img) {
- const rowHeight = parseInt(getComputedStyle(galleryContainer).getPropertyValue('grid-auto-rows'));
- const rowGap = parseInt(getComputedStyle(galleryContainer).getPropertyValue('gap'));
- const rowSpan = Math.ceil((img.getBoundingClientRect().height + rowGap) / (rowHeight + rowGap));
- img.parentElement.style.gridRowEnd = `span ${rowSpan}`;
- }
+
+
-
+
+