{%- comment -%} Two images displayed side by side. Usage: {% include embed/image/side-by-side.html left='/assets/img/posts/2026/elementarz-kredka-3.png' right='/assets/img/posts/2026/elementarz-kredka-4.png' %} Optional params: gap='6px' gap between the two images max_width='80%' width of the pair relative to the content column mobile_max_width='..' width used on narrow screens (defaults to max_width) alt_left / alt_right alt text for each image mobile_gallery=true on narrow screens, show one image at a time as a swipeable carousel with left/right arrows instead of shrinking both to fit desktop_gallery=false use that carousel on wide screens too (implies the carousel is active at every width) loop=false make the carousel wrap around endlessly. Default is false: the left arrow is hidden on the first photo and the right arrow is hidden on the last. counter=true hide the "1/2" counter (shown by default) counter_position='bottom-right' where the counter sits (default bottom-right). MUST be quoted (the value contains a hyphen). Options: top-left, top-right, bottom-left, bottom-right show a circular badge; top-center (or top) and bottom-center (or bottom) show a centered pill. e.g. counter_position='bottom-left' enable_zoom_arrows=true disable prev/next arrows in the zoomed (lightbox) view. Enabled by default: the two photos become one lightbox gallery you can arrow through. {%- endcomment -%} {%- assign max_w = include.max_width | default: '80%' -%} {%- assign mobile_w = include.mobile_max_width | default: max_w -%} {%- assign gap = include.gap | default: '6px' -%} {%- assign gallery = false -%}{%- if include.mobile_gallery or include.desktop_gallery -%}{%- assign gallery = true -%}{%- endif -%} {%- assign is_loop = false -%}{%- if include.loop == true -%}{%- assign is_loop = true -%}{%- endif -%} {%- assign zoom_arrows = true -%}{%- if include.enable_zoom_arrows == false -%}{%- assign zoom_arrows = false -%}{%- endif -%} {%- if include.desktop_gallery -%}{%- assign gopen = '' -%}{%- assign gclose = '' -%}{%- else -%}{%- assign gopen = '@media all and (max-width: 849px) {' -%}{%- assign gclose = '}' -%}{%- endif -%} {% if zoom_arrows %} {% endif %} {% if gallery or zoom_arrows %} {% endif %}