{{-- Contract: $eyebrow, $heading, $text, $first, $second (Photo|null – renders nothing without both), $firstLabel, $secondLabel. theme.js: [data-compare] box with the second photo underneath, [data-compare-first] (first photo, clipped at --split), [data-compare-handle] (the line) and [data-compare-range] (range input 0–100, hidden without JavaScript). --}} @if ($first && $second)
@if ($eyebrow)

{{ $eyebrow }}

@endif @if ($heading)

{{ $heading }}

@endif @if ($text)

{{ $text }}

@endif
@include('theme::partials.image', ['photo' => $second, 'sizes' => '(min-width: 1152px) 72rem, 100vw', 'class' => 'absolute inset-0 h-full w-full object-cover'])
@include('theme::partials.image', ['photo' => $first, 'sizes' => '(min-width: 1152px) 72rem, 100vw', 'class' => 'h-full w-full object-cover'])
{{ $firstLabel }} {{ $secondLabel }}
@endif