mbnailArgs := dict
    "src"      $thumbnail
    "portrait" $args.portrait
    "anchor"   $anchor
    "sizes"    $args.sizes
    "title"    (or $args.alt $title)
    "loading"  $args.loading
-}}

{{/* Main code */}}
{{ if or (gt $args.gutter "0") ($args.wrapper) }}<div class="{{ with $args.gutter }}g-{{ . }}{{ end }} {{ $args.wrapper }}">{{ end }}

{{ $stack := "" }}

{{- if hasPrefix $args.orientation "horizontal" -}}
    {{ $col1 := "" }}
    {{ $col2 := "" }}

    {{ if $thumbnail }}
        {{ if eq $ar