{{-- Project Gallery: a strip of large framed photos that scrolls freely and smoothly (no snapping to a photo). Move it by swiping (phones), trackpad / shift+wheel, dragging with the mouse, or dragging the bar underneath, which works like a scrollbar and moves the strip in real time. Native browser scrolling - no slider library. Styles: _carousel-centre.scss. Uses each slide's Image, Alt Text, Title Tag, Sort Order and (optional) URL. Columns and aspect ratio settings are ignored for this type. --}} @php $slides = $sub->subcomponents ->filter(function ($slide) { return !empty($slide->image); }) ->sortBy(function ($slide) { return [$slide->sort_order ?? PHP_INT_MAX, $slide->id]; }) ->values(); $sliderId = 'gallery-slider-' . $sub->id; @endphp @if($slides->count()) @if($slides->count() > 1) @endif @endif