<script src="{{asset "js/scripts.js"}}"></script>
{{ghost_foot}}
+
+ <script>
+ var images = document.querySelectorAll('.kg-gallery-image img');
+ images.forEach(function (image) {
+ var container = image.closest('.kg-gallery-image');
+ var width = image.attributes.width.value;
+ var height = image.attributes.height.value;
+ var ratio = width / height;
+ container.style.flex = ratio + ' 1 0%';
+ })
+ </script>
+
</body>
</html>
\ No newline at end of file