I'm trying to implement Fancybox-3 in my website for the image gallery. However the problem is that by default fancybox has the Next/Prev arrows right at the edge of either side. What I'm trying to achieve is to get them inside the image content.
Any kind of feedback on how this can be achieved would be highly appreciated.
This is what my js script looks like so far
$(window).on('load', function(){
$("[data-fancybox").fancybox({
infobar : false,
buttons : false,
afterShow : function( instance, current ) {
if ( instance.group.length > 1 && current.$placeholder ) {
current.$placeholder.append('<a data-fancybox-next class="button-next"
href="javascript:;">→</a><a data-fancybox-previous class="button-
previous" href="javascript:;">←</a>');
}
current.$placeholder.append('<a data-fancybox-close class="button-close"
href="javascript:;">×</a>');
}})
});