fancybox3: caption same size of image

i'm using fancybox 3 and i want to have the caption of the same width of the image (it was possible in fancybox1.3.4).

somebody know how to do it in fancybox3?

<script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.min.js"></script>

<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/fancyapps/fancybox@3.5.7/dist/jquery.fancybox.min.css" />
<script src="https://cdn.jsdelivr.net/gh/fancyapps/fancybox@3.5.7/dist/jquery.fancybox.min.js"></script>




<a data-fancybox rel="gallery" href="http://farm8.staticflickr.com/7489/15241066224_8864806ffd_b.jpg" data-caption="test caption test caption test caption test caption test caption test caption test caption test caption test caption test caption test caption test caption test caption test caption " >
first image
</a><br>
<a data-fancybox rel="gallery" href="http://farm8.staticflickr.com/7404/12868632153_b0a5718c22_b.jpg" data-caption="{{ $image->caption }}" data-caption="test caption test caption test caption test caption test caption test caption test caption test caption test caption test caption test caption test caption test caption test caption test caption ">
second image
</a>

thank you very much!