 end }}
    </div>

    {{/* Render timeline for smaller devices */}}
    <div class="timeline-container container p-0 d-block d-md-none small{{ with $background }} timeline-bg-{{ . }} bg-{{ . }}{{ end }}{{ with $args.class }} {{ . }}{{ end }}">
        {{ range $index, $item := $data }}
            <div class="row timeline-sm timeline-{{ $item.color }} timeline-dot g-0">
                {{ partial "inline/timeline-icon.html" (dict "icon" $item.icon "direction" "end" "col" 3) }}
                {{ partial "