Issue Description:
In my responsive web design, I am utilizing Fancybox v2.1.5. The problem arises when smaller mobile devices with a more rectangular shape than square are used.
In portrait orientation, when invoking Fancybox, it expands to the width of the screen causing the title text to wrap below the image. This is not an issue in portrait mode due to ample screen space available.
However, upon switching to landscape orientation, Fancybox adjusts its height to fit the decreased screen height. Consequently, both the width and height decrease proportionally. Since the title box width depends on the container's width (which adapts to the image width), the text wrapping intensifies leading to further image shrinking for title text alignment.
Efforts made to adjust Fancybox via CSS and media queries have been futile. Upon researching similar issues, it appears that achieving desired functionality might require javascript, an area where I lack expertise compared to html and CSS.
Solution Sought:
The objective is to identify "short" screen heights and style the Fancybox title to maximize image display. Ideally, this involves controlling the font size of the title and allowing it to extend beyond the container boundaries.
Any assistance through coding suggestions or directing me to relevant posts would be immensely appreciated.