Thanks for the example page. In order to maintain proper image aspect, the height is constrained by its width. If it happens to match the info column’s height, it would be pure coincidence. OTOH, the info column’s height is dependent upon its content and width, its aspect is not a consideration. Thus it’s not possible for them to match at varying viewport widths.
What you can do however is vertically position the image so it’s positioned mid-height instead of being anchored to the top. IMO this would give you a more pleasing layout. Unfortunately, I’m not sure what the right CSS would be to accomplish this. It’s tricky because of how the slider works to display the various images.
If all else fails, some JavaScript could be used to determine what the critical element sizes are so the right top spacing could be calculated to achieve the desired layout.
To get an idea what this would look like prior to making an effort to make it happen, use your browser’s element inspector tool to find the div with class “kb-gallery-wrap-id-427_27c1a8-db”. In its element style, set position: relative;
and set a top:
dimension to approximate a vertically centered position. This would not be a valid solution for any viewport width, but it’ll give you an idea what it would look like.
The mix of portrait and landscape images complicates things even more. The slider is configured to keep everything the same height, so portrait oriented images appear relatively small. It will almost surely require JavaScript to alter slider height based on what the currently visible image is. And it’s not like you’d only change the height of one container. There are an entire series of containers to deal with. But if most of them have heights set to 100% of their parent, you could get by with calculating one container height per image.
In case it’s not clear, this will not be a simple solution, unless you choose to leave things as they are ??