diff --git a/src/components/GalleryImage/GalleryImage.js b/src/components/GalleryImage/GalleryImage.js
index 32d6a55..afe7c4c 100644
--- a/src/components/GalleryImage/GalleryImage.js
+++ b/src/components/GalleryImage/GalleryImage.js
@@ -129,10 +129,10 @@ const GalleryImage = ({ data, pageContext }) => {
{meta.iptc.caption}
{}
-
+
-
+
diff --git a/src/components/GalleryImage/MetadataItem.js b/src/components/GalleryImage/MetadataItem.js
index e3a2c08..cb077e8 100644
--- a/src/components/GalleryImage/MetadataItem.js
+++ b/src/components/GalleryImage/MetadataItem.js
@@ -14,7 +14,7 @@ const MetadataItem = ({
- f/{data}
+ {data}
) : null;
diff --git a/src/components/MasonryGallery.js b/src/components/MasonryGallery.js
index 11d49eb..86601bb 100644
--- a/src/components/MasonryGallery.js
+++ b/src/components/MasonryGallery.js
@@ -37,14 +37,13 @@ const MasonryGallery = ({ images, itemsPerRow: itemsPerRowByBreakpoint }) => {
const rowAspectRatioSum = rowAspectRatioSumsForCurrentBP[rowIndex];
// const width = ((getAspectRatio(image) / rowAspectRatioSum) * 100).toFixed(10);
const ar = getAspectRatio(image);
- const widthNumber = ((ar / rowAspectRatioSum) * 100).toFixed(5);
+ const widthNumber = rowAspectRatioSum === ar
+ // image is only one in row
+ ? 100 / itemsPerRow
+ // image is one of several in row
+ : ((ar / rowAspectRatioSum) * 100).toFixed(5);
+
const width = `${widthNumber}%`;
- // const width = `${widthNumber}%`;
- // console.log('ars', rowAspectRatioSum);
- if (i === 0) {
- // console.log(rowIndex, rowAspectRatioSum);
- // console.log(getName(image), width);
- }
return (