{#{% if product.imagesByType('main') is not empty %}#}
{# {% set source_path = product.imagesByType('main').first.path %}#}
{# {% set original_path = source_path|imagine_filter('sylius_shop_product_original') %}#}
{# {% set path = source_path|imagine_filter(filter|default('sylius_shop_product_large_thumbnail')) %}#}
{#{% elseif product.images.first %}#}
{# {% set source_path = product.images.first.path %}#}
{# {% set original_path = source_path|imagine_filter('sylius_shop_product_original') %}#}
{# {% set path = source_path|imagine_filter(filter|default('sylius_shop_product_large_thumbnail')) %}#}
{#{% else %}#}
{# {% set original_path = asset('assets/shop/img/400x300.png') %}#}
{# {% set path = original_path %}#}
{#{% endif %}#}
{#<div data-product-image="{{ path }}" data-product-link="{{ original_path }}"></div>#}
{#<a href="{{ original_path }}" class="ui fluid image" data-lightbox="sylius-product-image">#}
{# <img src="{{ path }}" id="main-image" alt="{{ product.name }}" {{ sylius_test_html_attribute('main-image') }} />#}
{#</a>#}
{% if product.images|length > 1 %}
{# <div class="ui divider"></div> #}
{{ sylius_template_event('sylius.shop.product.show.before_thumbnails', {'product': product}) }}
<div id="gallery-right-images">
{% set imageCount = 0 %}
{% for image in product.images %}
{% if loop.index > 1 and imageCount < 4 %}
{% set path = image.path is not null ? image.path|imagine_filter('sylius_shop_product_large_thumbnail') : asset('assets/shop/img/200x200.png') %}
<div id="card-product-show-right">
{% if product.isConfigurable() and product.enabledVariants|length > 0 %}
{% include '@SyliusShop/Product/Show/_imageVariants.html.twig' %}
{% endif %}
<a href="{{ image.path|imagine_filter('sylius_shop_product_original') }}" data-lightbox="sylius-product-image">
<img src="{{ path }}" data-large-thumbnail="{{ image.path|imagine_filter('sylius_shop_product_large_thumbnail') }}" alt="{{ product.name }}" />
</a>
</div>
{% set imageCount = imageCount + 1 %}
{% endif %}
{% endfor %}
</div>
{% endif %}
<style>
/*#card-product-show-right {*/
/* width: calc(50% - 1rem);*/
/*}*/
/*#card-product-show-right img {*/
/* width: 100% ;*/
/* height: 100%;*/
/*}*/
/*#card-product-show-right a{*/
/* display: block;*/
/* width: 100%;*/
/* height: 100%;*/
/*}*/
/*#gallery-right-images{*/
/* display: inline-flex;*/
/* flex-wrap: wrap;*/
/* gap: 1rem;*/
/*}*/
</style>