

<div {%- render 'section-attr' -%}>
  <section class='slideshow-v3'>
    <xo-container {% render 'section-layout' %}>
      <div class='slideshow-v3__wapper'>
        <div class='slideshow-v3__header'>
          <div class='slideshow-v3__header__heading'>{{ section.settings.heading }}</div>
        </div>
        <div class='slideshow-v3__body'>
          <div class='slideshow-v3__body__controls'>
            <div class='slideshow-v3__body__lines'></div>
          </div>

          <div class='slideshow-v3__body__content'>
            <div class='slideshow-v3__body__content__social'>
              <a href='{{ section.settings.icon_link1 }}' class='slideshow-v3__body__content__social--icon'>
                {{ section.settings.icon_1 }}
              </a>
              <a href='{{ section.settings.icon_link2 }}' class='slideshow-v3__body__content__social--icon'>
                {{ section.settings.icon_2 }}
              </a>
              <a href='{{ section.settings.icon_link3 }}' class='slideshow-v3__body__content__social--icon'>
                {{ section.settings.icon_3 }}
              </a>
            </div>
            <div class='slideshow-v3__body__content__text'>
              {{ section.settings.body_text }}
            </div>
          </div>
        </div>
        <div class='slideshow-v3__footer'>
          <div class='slideshow-v3__footer__left'>
            <div class='slideshow-v3__footer__left--text'>{{ section.settings.left_text }}</div>
            <div class='slideshow-v3__footer__left--image'>
              {%- render 'image', image: section.settings.image, lazyload: false -%}
            </div>
          </div>

          <div class='slideshow-v3__footer__right'>
            <div class='slideshow-v3__footer__right__col'>
              <div class='slideshow-v3__footer__right__col--title'>{{ section.settings.col_text1 }}</div>
              <div class='slideshow-v3__footer__right__col--sub'>{{ section.settings.col_text2 }}</div>
            </div>
            <div class='slideshow-v3__footer__right__col'>
              <div class='slideshow-v3__footer__right__col--title'>{{ section.settings.col_text3 }}</div>
              <div class='slideshow-v3__footer__right__col--sub'>{{ section.settings.col_text4 }}</div>
            </div>
          </div>
        </div>
      </div>
    </xo-container>
    <xo-carousel
      xo-loop
      xo-per-view='1'
      xo-render-bullet="<div class='slideshow-v3__body__line'><div class='slideshow-v3__body__line--bg'></div></div>"
      class='slideshow-v3__product'
      xo-speed='600'
    >
      <xo-carousel-inner class='slideshow-v3__product__viewport'>
        <xo-carousel-list role='list' aria-label='{{ 'general.slider.name' | t }}' class='slideshow-v3__product__container'>
          {%- for block in section.blocks -%}
            <xo-carousel-slide aria-roledescription='{{ 'sections.slideshow.slide' | t }}' aria-label='{{ forloop.index }} {{ 'general.slider.of' | t }} {{ forloop.length }}' class='slideshow-v3__product__slide'>
              <div class='slideshow-v3__product__slide__img'>
                {%- render 'image', image: block.settings.image, lazyload: false -%}
              </div>
            </xo-carousel-slide>
          {%- endfor -%}
        </xo-carousel-list>
      </xo-carousel-inner>
      <xo-carousel-pagination class='slideshow-v3__pagination'></xo-carousel-pagination>
    </xo-carousel>
  </section>
</div>

{% schema %}
{
  "name": "t:sections.slideshow_v3.name",
  "tag": "section",
  "class": "section",
  "settings": [
    {
      "type": "select",
      "id": "width",
      "label": "t:sections.all.width.label",
      "default": "box",
      "options": [
        {
          "value": "box",
          "label": "t:sections.all.width.options__1.label"
        },
        {
          "value": "wide",
          "label": "t:sections.all.width.options__2.label"
        },
        {
          "value": "fullwidth",
          "label": "t:sections.all.width.options__3.label"
        }
      ]
    },
    {
      "type": "number",
      "id": "fullwidth_margin",
      "label": "t:sections.all.fullwidth_margin.label",
      "default": 0,
      "visible_if": "{{ section.settings.width == 'fullwidth' }}"
    },
    {
      "type": "text",
      "id": "heading",
      "label": "t:sections.slideshow_v3.settings.heading.label",
      "default": "HOME ENVIRONMENT OPTIMIZATION"
    },
    {
      "type": "html",
      "id": "icon_1",
      "label": "t:sections.slideshow_v3.settings.icon_1.label"
    },
    {
      "type": "url",
      "id": "icon_link1",
      "label": "t:sections.slideshow_v3.settings.icon_link1.label",
      "default": "/collections/all"
    },
    {
      "type": "html",
      "id": "icon_2",
      "label": "t:sections.slideshow_v3.settings.icon_2.label"
    },
    {
      "type": "url",
      "id": "icon_link2",
      "label": "t:sections.slideshow_v3.settings.icon_link2.label",
      "default": "/collections/all"
    },
    {
      "type": "html",
      "id": "icon_3",
      "label": "t:sections.slideshow_v3.settings.icon_3.label"
    },
    {
      "type": "url",
      "id": "icon_link3",
      "label": "t:sections.slideshow_v3.settings.icon_link3.label",
      "default": "/collections/all"
    },
    {
      "type": "text",
      "id": "body_text",
      "label": "t:sections.slideshow_v3.settings.body_text.label",
      "default": "Evelate Home Living with Gravette"
    },
    {
      "type": "text",
      "id": "left_text",
      "label": "t:sections.slideshow_v3.settings.left_text.label",
      "default": "Lorem ipsum dolor sit, amet consectetur adipisicing elit. Atque laborum asperiores dolorem, porro eveniet dolore. Voluptatem adipisci quia odio placeat."
    },
    {
      "type": "image_picker",
      "id": "image",
      "label": "t:sections.slideshow_v3.settings.image.label",
      "info": "t:sections.slideshow_v3.settings.image.info"
    },
    {
      "type": "text",
      "id": "col_text1",
      "label": "t:sections.slideshow_v3.settings.col_text1.label",
      "default": "Lorem ipsum dolor sit"
    },
    {
      "type": "text",
      "id": "col_text2",
      "label": "t:sections.slideshow_v3.settings.col_text2.label",
      "default": "Lorem ipsum"
    },
    {
      "type": "text",
      "id": "col_text3",
      "label": "t:sections.slideshow_v3.settings.col_text3.label",
      "default": "Lorem ipsum dolor sit"
    },
    {
      "type": "text",
      "id": "col_text4",
      "label": "t:sections.slideshow_v3.settings.col_text4.label",
      "default": "Lorem ipsum"
    },
    {
      "type": "header",
      "content": "t:sections.all.heading.content"
    },
    {
      "type": "color_scheme",
      "id": "color_scheme",
      "label": "t:sections.all.color_scheme.label"
    },
    {
      "type": "select",
      "id": "background_type",
      "label": "t:sections.all.background_type.label",
      "options": [
        {
          "value": "color",
          "label": "t:sections.all.background_type.option__1.label"
        },
        {
          "value": "gradient",
          "label": "t:sections.all.background_type.option__2.label"
        },
        {
          "value": "image",
          "label": "t:sections.all.background_type.option__3.label"
        },
        {
          "value": "video",
          "label": "t:sections.all.background_type.option__4.label"
        }
      ],
      "default": "color"
    },
    {
      "type": "color",
      "id": "background_color",
      "label": "t:sections.all.background_color.label",
      "alpha": true,
      "visible_if": "{{ section.settings.background_type == 'color' }}"
    },
    {
      "type": "color_background",
      "id": "background_gradient",
      "label": "t:sections.all.background_gradient.label",
      "visible_if": "{{ section.settings.background_type == 'gradient' }}"
    },
    {
      "type": "number",
      "id": "background_margin",
      "label": "t:sections.all.background_margin.label",
      "default": 0
    },
    {
      "type": "number",
      "id": "padding_top",
      "label": "t:sections.all.padding_top.label",
      "default": 50
    },
    {
      "type": "number",
      "id": "padding_bottom",
      "label": "t:sections.all.padding_bottom.label",
      "default": 50
    }
  ],
  "blocks": [
    {
      "type": "block",
      "name": "t:sections.slideshow_v3.blocks.name.label",
      "limit": 6,
      "settings": [
        {
          "type": "image_picker",
          "id": "image",
          "label": "t:sections.slideshow_v3.blocks.image.label",
          "info": "t:sections.slideshow_v3.blocks.image.info"
        }
      ]
    }
  ],
  "presets": [
    {
      "name": "t:sections.slideshow_v3.presets.name"
    }
  ]
}
{% endschema %}
