Thank you very much for your hard work.
It is definitely better, the "Top" position works flawlessly, but I still have comments.
However, I do not know if it is feasible.
I introduced my own styles, among other things:
.os_fancybox-slide {
overflow: hidden;
}
.os_fancybox-content {
overflow: hidden;
vertical-align: top;
}
.contentInHtml {
height: fit-content !important;
max-height: fit-content !important;
overflow: hidden !important;
margin-top: 1em !important;
margin-bottom: 0 !important;
}
In fact, the image doesn't scale to the available height (it doesn't use it), but takes some fixed height. This is especially noticeable with a short description. It also can't be enlarged to the original size like images without HTML - the "Magnifying glass" icon disappears on the image is the "Handle" icon.