@php $fw = $full_width ?? false; @endphp
@if(!empty($src))
<figure class="{{ $fw ? 'px-0' : 'max-w-5xl mx-auto px-4 sm:px-6' }} py-10">
    <img src="{{ $src }}" alt="{{ $alt ?? '' }}"
         class="w-full {{ $fw ? '' : 'rounded-2xl shadow-md' }} object-cover">
    @if(!empty($caption))
    <figcaption class="mt-3 text-center text-sm text-gray-500 italic">{{ $caption }}</figcaption>
    @endif
</figure>
@endif
