{% assign use_variant_images = false %}
{% capture vertical_scroll %}{% endcapture %}
{%- if use_variant_images and variant.images[0] -%}
{%- assign images = variant.images -%}
{%- else -%}
{%- assign images = product.images -%}
{%- endif -%}
{% assign last_slide = 0 %}
{%- for image in images offset: imgOffset -%}
{%- endfor -%}
{% capture ImageResponsive %}
{%- if image != blank -%}
{%- if image.width > 180 -%}{{ image.src | img_url: '180x' }} 180w {{ 180 | divided_by: image.aspect_ratio | round }}h,{%- endif -%}
{%- if image.width > 360 -%}{{ image.src | img_url: '360x' }} 360w {{ 360 | divided_by: image.aspect_ratio | round }}h,{%- endif -%}
{%- if image.width > 540 -%}{{ image.src | img_url: '540x' }} 540w {{ 540 | divided_by: image.aspect_ratio | round }}h,{%- endif -%}
{%- if image.width > 720 -%}{{ image.src | img_url: '720x' }} 720w {{ 720 | divided_by: image.aspect_ratio | round }}h,{%- endif -%}
{%- if image.width > 900 -%}{{ image.src | img_url: '900x' }} 900w {{ 900 | divided_by: image.aspect_ratio | round }}h,{%- endif -%}
{%- if image.width > 1080 -%}{{ image.src | img_url: '1080x' }} 1080w {{ 1080 | divided_by: image.aspect_ratio | round }}h,{%- endif -%}
{%- if image.width > 1296 -%}{{ image.src | img_url: '1296x' }} 1296w {{ 1296 | divided_by: image.aspect_ratio | round }}h,{%- endif -%}
{%- if image.width > 1512 -%}{{ image.src | img_url: '1512x' }} 1512w {{ 1512 | divided_by: image.aspect_ratio | round }}h,{%- endif -%}
{%- if image.width > 1728 -%}{{ image.src | img_url: '1728x' }} 1728w {{ 1728 | divided_by: image.aspect_ratio | round }}h,{%- endif -%}
{%- if image.width > 1944 -%}{{ image.src | img_url: '1944x' }} 1944w {{ 1944 | divided_by: image.aspect_ratio | round }}h,{%- endif -%}
{%- if image.width > 2160 -%}{{ image.src | img_url: '2160x' }} 2160w {{ 2160 | divided_by: image.aspect_ratio | round }}h,{%- endif -%}
{%- if image.width > 2376 -%}{{ image.src | img_url: '2376x' }} 2376w {{ 2376 | divided_by: image.aspect_ratio | round }}h,{%- endif -%}
{%- if image.width > 2592 -%}{{ image.src | img_url: '2592x' }} 2592w {{ 2592 | divided_by: image.aspect_ratio | round }}h,{%- endif -%}
{%- if image.width > 2808 -%}{{ image.src | img_url: '2808x' }} 2808w {{ 2808 | divided_by: image.aspect_ratio | round }}h,{%- endif -%}
{%- if image.width > 3024 -%}{{ image.src | img_url: '3024x' }} 3024w {{ 3024 | divided_by: image.aspect_ratio | round }}h,{%- endif -%}
{%- assign image_size = image.width | append: 'x' -%}
{{ image.src | img_url: image_size }} {{ image.width }}w {{ image.height }}h
{%- endif -%}
{% endcapture %}
{% assign last_slide = forloop.index %}
{% endfor %}
{%- for video in product.videos -%}
{% assign last_slide = last_slide | plus: 1 %}
{% if forloop.first or product.tags contains 'Graphic Overlay'%}
{% endif %}