I am trying to achieve a result similar to the one in the figure above:

With the fancybox-3 plugin, I created my own template:
$('[data-fancybox="gallery"]').fancybox({
fullScreen : false,
slideShow : false,
autoSize : false,
loop:true,
touch : {
vertical : false,
horizontal : false
},
thumbs : {
autoStart : true
},
onThumbsShow : function(instance, current) {
instance.Thumbs.$grid.appendTo( instance.$refs.inner );
},
clickOutside : 'close',
baseTpl :
'<div class="fancybox-container qv-container" role="dialog" tabindex="-1">' +
'<div class="fancybox-bg"></div>' +
'<div class="fancybox-inner">' +
'<button data-fancybox-prev title="{{PREV}}" class="fancybox-arrow fancybox-arrow--left" />' +
'<button data-fancybox-next title="{{NEXT}}" class="fancybox-arrow fancybox-arrow--right" />' +
'<button data-fancybox-close class="qv-close"></button>' +
'<div data-fancybox-close class="qv-close"></div>' +
'<div></div>' +
'</div>' +
'</div>',
});
and in part I managed to achieve a result similar to the one in the figure below:

In the end, I miss divs with text below the image. I tried using the codepen example as a reference, but without any decent results: /
Does anyone know where I miss the point? Thanks so much for any possible help.
Expect
source
share