@php $fw = $full_width ?? false; @endphp
@if(!empty($src))
<figure style="{{ $fw ? 'margin:0;' : 'max-width:1100px; margin:32px auto; padding:0 20px;' }}">
    <img src="{{ $src }}" alt="{{ $alt ?? '' }}"
         style="width:100%; {{ $fw ? '' : 'border-radius:10px;' }} display:block; max-height:{{ $fw ? 'none' : '480px' }}; object-fit:cover;">
    @if(!empty($caption))
    <figcaption style="margin-top:8px; font-size:12px; color:#9ca3af; text-align:center; font-style:italic;">{{ $caption }}</figcaption>
    @endif
</figure>
@endif
