@props([ 'items' => [], // [['src' => ..., 'caption' => ..., 'meta' => ...], ...] 'heading' => null, 'eyebrow' => null, ]) {{-- Horizontal scroll gallery. On desktop the section pins and the track slides sideways as the visitor scrolls (GSAP). On tablet and mobile — and whenever reduced motion is requested — it stays a plain swipeable overflow scroller, so the content is always reachable. --}}
merge(['class' => 'relative overflow-hidden bg-dark py-16 lg:py-0']) }} data-hscroll>
@if ($heading || $eyebrow)
@if ($eyebrow)

{{ $eyebrow }}

@endif @if ($heading)

{{ $heading }}

@endif
@endif
@foreach ($items as $index => $item)
{{ $item['caption'] ?? '' }} {{ str_pad((string) ($index + 1), 2, '0', STR_PAD_LEFT) }}
@if (! empty($item['caption']) || ! empty($item['meta']))
@if (! empty($item['caption']))

{{ $item['caption'] }}

@endif @if (! empty($item['meta']))

{{ $item['meta'] }}

@endif
@endif
@endforeach