{{ 'section-lookbook-v1.css' | asset_url | stylesheet_tag }}

<div {% render 'section-attr' %}>
  {% render 'section-bg-image' %}
  <xo-container
    {% render 'section-layout' %}
  >
    <xo-animate>
      <div class='lookbook-v5'>
        <div class='lookbook-v5__heading' style='text-align: {{ section.settings.align }}'>
          <div class='lookbook-v5__subheader'><p>{{ section.settings.subheader }}</p></div>
          <h3 class='lookbook-v5__title'>{{ section.settings.header }}</h3>
        </div>
        <div class='lookbook-v5__item'>
          {% render 'hotspot-style-2',
            hotspot_image: section.settings.hotspot_image,
            media_aspect_ratio: section.settings.media_aspect_ratio,
            custom_ratio: section.settings.custom_ratio
          %}
        </div>
      </div>
    </xo-animate>
  </xo-container>
</div>

{% schema %}
{
  "name": "t:sections.lookbook_v1.name",
  "tag": "section",
  "class": "section",
  "settings": [
    {
      "type": "header",
      "content": "t:sections.lookbook_v1.settings.container.content"
    },
    {
      "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": "header",
      "content": "t:sections.lookbook_v1.settings.title.content"
    },
    {
      "type": "text",
      "id": "header",
      "label": "t:sections.lookbook_v1.settings.header.label",
      "default": "Hand-picked"
    },
    {
      "type": "text",
      "id": "subheader",
      "label": "t:sections.lookbook_v1.settings.subheader.label",
      "default": "Subheading"
    },
    {
      "type": "select",
      "id": "align",
      "label": "t:sections.lookbook_v1.settings.align.label",
      "default": "center",
      "options": [
        {
          "label": "t:sections.lookbook_v1.settings.align.option_1.label",
          "value": "left"
        },
        {
          "label": "t:sections.lookbook_v1.settings.align.option_2.label",
          "value": "center"
        },
        {
          "label": "t:sections.lookbook_v1.settings.align.option_3.label",
          "value": "right"
        }
      ]
    },
    {
      "type": "header",
      "content": "t:sections.lookbook_v1.settings.lookbook__action.content"
    },
    {
      "type": "select",
      "id": "trigger_type",
      "label": "t:sections.lookbook_v1.settings.effect.label",
      "default": "hover",
      "options": [
        {
          "label": "t:sections.lookbook_v1.settings.effect.option_1.label",
          "value": "hover"
        },
        {
          "label": "t:sections.lookbook_v1.settings.effect.option_2.label",
          "value": "click"
        }
      ]
    },
    {
      "type": "select",
      "id": "open_as",
      "label": "t:sections.lookbook_v1.settings.open_as.label",
      "default": "popup",
      "info": "t:sections.lookbook_v1.settings.open_as.info",
      "options": [
        {
          "label": "t:sections.lookbook_v1.settings.open_as.option_1.label",
          "value": "popup"
        },
        {
          "label": "t:sections.lookbook_v1.settings.open_as.option_2.label",
          "value": "quickview"
        }
      ]
    },
    {
      "type": "header",
      "content": "t:sections.lookbook_v1.settings.lookbook_settings2.content"
    },
    {
      "type": "select",
      "id": "dot_style",
      "label": "t:sections.lookbook_v1.settings.dot_style.label",
      "default": "simple",
      "options": [
        {
          "label": "t:sections.lookbook_v1.settings.dot_style.option_1.label",
          "value": "simple"
        },
        {
          "label": "t:sections.lookbook_v1.settings.dot_style.option_2.label",
          "value": "plus"
        },
        {
          "label": "t:sections.lookbook_v1.settings.dot_style.option_3.label",
          "value": "number"
        }
      ]
    },
    {
      "type": "select",
      "id": "button_style",
      "label": "t:sections.lookbook_v1.settings.button_style.label",
      "default": "dark",
      "options": [
        {
          "value": "dark",
          "label": "t:sections.lookbook_v1.settings.button_style.option_1.label"
        },
        {
          "value": "light",
          "label": "t:sections.lookbook_v1.settings.button_style.option_2.label"
        },
        {
          "value": "color",
          "label": "t:sections.lookbook_v1.settings.button_style.option_3.label"
        }
      ]
    },
    {
      "type": "checkbox",
      "id": "custom_ratio",
      "label": "t:sections.lookbook_v1.settings.custom_aspect_ratio.label",
      "default": false
    },
    {
      "type": "text",
      "id": "custom_ratio_text",
      "label": "t:sections.lookbook_v1.settings.aspect_ratio_text.label",
      "default": "21/9"
    },
    {
      "type": "image_picker",
      "id": "hotspot_image",
      "label": "t:sections.lookbook_v1.settings.hotspot_image.label",
      "info": "523 x 414px recommended"
    },
    {
      "type": "header",
      "content": "t:sections.lookbook_v1.settings.header_1.content"
    },
    {
      "type": "range",
      "id": "top_1",
      "unit": "%",
      "min": 1,
      "max": 100,
      "step": 1,
      "label": "t:sections.lookbook_v1.settings.top_1.label",
      "default": 20
    },
    {
      "type": "range",
      "id": "left_1",
      "unit": "%",
      "min": 1,
      "max": 100,
      "step": 1,
      "label": "t:sections.lookbook_v1.settings.left_1.label",
      "default": 20
    },
    {
      "type": "product",
      "id": "product_1",
      "label": "t:sections.lookbook_v1.settings.product_1.label",
      "info": "Choose a product, when you click to the hotspot, it will be shown"
    },
    {
      "type": "select",
      "id": "placement_1",
      "label": "t:sections.lookbook_v1.settings.placement_1.label",
      "info": "t:sections.lookbook_v1.settings.placement_1.info",
      "options": [
        {
          "value": "top-right",
          "label": "t:sections.lookbook_v1.settings.placement_1.option_1.label"
        },
        {
          "value": "top-center",
          "label": "t:sections.lookbook_v1.settings.placement_1.option_2.label"
        },
        {
          "value": "top-left",
          "label": "t:sections.lookbook_v1.settings.placement_1.option_3.label"
        },
        {
          "value": "bottom-right",
          "label": "t:sections.lookbook_v1.settings.placement_1.option_4.label"
        },
        {
          "value": "bottom-center",
          "label": "t:sections.lookbook_v1.settings.placement_1.option_5.label"
        },
        {
          "value": "bottom-left",
          "label": "t:sections.lookbook_v1.settings.placement_1.option_6.label"
        },
        {
          "value": "right-top",
          "label": "t:sections.lookbook_v1.settings.placement_1.option_7.label"
        },
        {
          "value": "right-center",
          "label": "t:sections.lookbook_v1.settings.placement_1.option_8.label"
        },
        {
          "value": "right-bottom",
          "label": "t:sections.lookbook_v1.settings.placement_1.option_9.label"
        },
        {
          "value": "left-top",
          "label": "t:sections.lookbook_v1.settings.placement_1.option_10.label"
        },
        {
          "value": "left-center",
          "label": "t:sections.lookbook_v1.settings.placement_1.option_11.label"
        },
        {
          "value": "left-bottom",
          "label": "t:sections.lookbook_v1.settings.placement_1.option_12.label"
        }
      ],
      "default": "right-center"
    },
    {
      "type": "header",
      "content": "t:sections.lookbook_v1.settings.header_2.content"
    },
    {
      "type": "range",
      "id": "top_2",
      "unit": "%",
      "min": 1,
      "max": 100,
      "step": 1,
      "label": "t:sections.lookbook_v1.settings.top_2.label",
      "default": 20
    },
    {
      "type": "range",
      "id": "left_2",
      "unit": "%",
      "min": 1,
      "max": 100,
      "step": 1,
      "label": "t:sections.lookbook_v1.settings.left_2.label",
      "default": 20
    },
    {
      "type": "product",
      "id": "product_2",
      "label": "t:sections.lookbook_v1.settings.product_2.label",
      "info": "Choose a product, when you click to the hotspot, it will be shown"
    },
    {
      "type": "select",
      "id": "placement_2",
      "label": "t:sections.lookbook_v1.settings.placement_2.label",
      "info": "The hotspot content placement depends on the hotspot location",
      "options": [
        {
          "value": "top-right",
          "label": "t:sections.lookbook_v1.settings.placement_2.option_1.label"
        },
        {
          "value": "top-center",
          "label": "t:sections.lookbook_v1.settings.placement_2.option_2.label"
        },
        {
          "value": "top-left",
          "label": "t:sections.lookbook_v1.settings.placement_2.option_3.label"
        },
        {
          "value": "bottom-right",
          "label": "t:sections.lookbook_v1.settings.placement_2.option_4.label"
        },
        {
          "value": "bottom-center",
          "label": "t:sections.lookbook_v1.settings.placement_2.option_5.label"
        },
        {
          "value": "bottom-left",
          "label": "t:sections.lookbook_v1.settings.placement_2.option_6.label"
        },
        {
          "value": "right-top",
          "label": "t:sections.lookbook_v1.settings.placement_2.option_7.label"
        },
        {
          "value": "right-center",
          "label": "t:sections.lookbook_v1.settings.placement_2.option_8.label"
        },
        {
          "value": "right-bottom",
          "label": "t:sections.lookbook_v1.settings.placement_2.option_9.label"
        },
        {
          "value": "left-top",
          "label": "t:sections.lookbook_v1.settings.placement_2.option_10.label"
        },
        {
          "value": "left-center",
          "label": "t:sections.lookbook_v1.settings.placement_2.option_11.label"
        },
        {
          "value": "left-bottom",
          "label": "t:sections.lookbook_v1.settings.placement_2.option_12.label"
        }
      ],
      "default": "right-center"
    },
    {
      "type": "header",
      "content": "t:sections.lookbook_v1.settings.header_3.content"
    },
    {
      "type": "range",
      "id": "top_3",
      "unit": "%",
      "min": 1,
      "max": 100,
      "step": 1,
      "label": "t:sections.lookbook_v1.settings.top_3.label",
      "default": 20
    },
    {
      "type": "range",
      "id": "left_3",
      "unit": "%",
      "min": 1,
      "max": 100,
      "step": 1,
      "label": "t:sections.lookbook_v1.settings.left_3.label",
      "default": 60
    },
    {
      "type": "product",
      "id": "product_3",
      "label": "t:sections.lookbook_v1.settings.product_3.label",
      "info": "Choose a product, when you click to the hotspot, it will be shown"
    },
    {
      "type": "select",
      "id": "placement_3",
      "label": "t:sections.lookbook_v1.settings.placement_3.label",
      "info": "The hotspot content placement depends on the hotspot location",
      "options": [
        {
          "value": "top-right",
          "label": "t:sections.lookbook_v1.settings.placement_3.option_1.label"
        },
        {
          "value": "top-center",
          "label": "t:sections.lookbook_v1.settings.placement_3.option_2.label"
        },
        {
          "value": "top-left",
          "label": "t:sections.lookbook_v1.settings.placement_3.option_3.label"
        },
        {
          "value": "bottom-right",
          "label": "t:sections.lookbook_v1.settings.placement_3.option_4.label"
        },
        {
          "value": "bottom-center",
          "label": "t:sections.lookbook_v1.settings.placement_3.option_5.label"
        },
        {
          "value": "bottom-left",
          "label": "t:sections.lookbook_v1.settings.placement_3.option_6.label"
        },
        {
          "value": "right-top",
          "label": "t:sections.lookbook_v1.settings.placement_3.option_7.label"
        },
        {
          "value": "right-center",
          "label": "t:sections.lookbook_v1.settings.placement_3.option_8.label"
        },
        {
          "value": "right-bottom",
          "label": "t:sections.lookbook_v1.settings.placement_3.option_9.label"
        },
        {
          "value": "left-top",
          "label": "t:sections.lookbook_v1.settings.placement_3.option_10.label"
        },
        {
          "value": "left-center",
          "label": "t:sections.lookbook_v1.settings.placement_3.option_11.label"
        },
        {
          "value": "left-bottom",
          "label": "t:sections.lookbook_v1.settings.placement_3.option_12.label"
        }
      ],
      "default": "right-center"
    },
    {
      "type": "header",
      "content": "t:sections.lookbook_v1.settings.header_4.content"
    },
    {
      "type": "range",
      "id": "top_4",
      "unit": "%",
      "min": 1,
      "max": 100,
      "step": 1,
      "label": "t:sections.lookbook_v1.settings.top_4.label",
      "default": 40
    },
    {
      "type": "range",
      "id": "left_4",
      "unit": "%",
      "min": 1,
      "max": 100,
      "step": 1,
      "label": "t:sections.lookbook_v1.settings.left_4.label",
      "default": 40
    },
    {
      "type": "product",
      "id": "product_4",
      "label": "t:sections.lookbook_v1.settings.product_4.label",
      "info": "Choose a product, when you click to the hotspot, it will be shown"
    },
    {
      "type": "select",
      "id": "placement_4",
      "label": "t:sections.lookbook_v1.settings.placement_4.label",
      "info": "The hotspot content placement depends on the hotspot location",
      "options": [
        {
          "value": "top-right",
          "label": "t:sections.lookbook_v1.settings.placement_4.option_1.label"
        },
        {
          "value": "top-center",
          "label": "t:sections.lookbook_v1.settings.placement_4.option_2.label"
        },
        {
          "value": "top-left",
          "label": "t:sections.lookbook_v1.settings.placement_4.option_3.label"
        },
        {
          "value": "bottom-right",
          "label": "t:sections.lookbook_v1.settings.placement_4.option_4.label"
        },
        {
          "value": "bottom-center",
          "label": "t:sections.lookbook_v1.settings.placement_4.option_5.label"
        },
        {
          "value": "bottom-left",
          "label": "t:sections.lookbook_v1.settings.placement_4.option_6.label"
        },
        {
          "value": "right-top",
          "label": "t:sections.lookbook_v1.settings.placement_4.option_7.label"
        },
        {
          "value": "right-center",
          "label": "t:sections.lookbook_v1.settings.placement_4.option_8.label"
        },
        {
          "value": "right-bottom",
          "label": "t:sections.lookbook_v1.settings.placement_4.option_9.label"
        },
        {
          "value": "left-top",
          "label": "t:sections.lookbook_v1.settings.placement_4.option_10.label"
        },
        {
          "value": "left-center",
          "label": "t:sections.lookbook_v1.settings.placement_4.option_11.label"
        },
        {
          "value": "left-bottom",
          "label": "t:sections.lookbook_v1.settings.placement_4.option_12.label"
        }
      ],
      "default": "right-center"
    },
    {
      "type": "header",
      "content": "t:sections.lookbook_v1.settings.header_5.content"
    },
    {
      "type": "range",
      "id": "top_5",
      "unit": "%",
      "min": 1,
      "max": 100,
      "step": 1,
      "label": "t:sections.lookbook_v1.settings.top_5.label",
      "default": 60
    },
    {
      "type": "range",
      "id": "left_5",
      "unit": "%",
      "min": 1,
      "max": 100,
      "step": 1,
      "label": "t:sections.lookbook_v1.settings.left_5.label",
      "default": 60
    },
    {
      "type": "product",
      "id": "product_5",
      "label": "t:sections.lookbook_v1.settings.product_5.label",
      "info": "Choose a product, when you click to the hotspot, it will be shown"
    },
    {
      "type": "select",
      "id": "placement_5",
      "label": "t:sections.lookbook_v1.settings.placement_5.label",
      "info": "The hotspot content placement depends on the hotspot location",
      "options": [
        {
          "value": "top-right",
          "label": "t:sections.lookbook_v1.settings.placement_5.option_1.label"
        },
        {
          "value": "top-center",
          "label": "t:sections.lookbook_v1.settings.placement_5.option_2.label"
        },
        {
          "value": "top-left",
          "label": "t:sections.lookbook_v1.settings.placement_5.option_3.label"
        },
        {
          "value": "bottom-right",
          "label": "t:sections.lookbook_v1.settings.placement_5.option_4.label"
        },
        {
          "value": "bottom-center",
          "label": "t:sections.lookbook_v1.settings.placement_5.option_5.label"
        },
        {
          "value": "bottom-left",
          "label": "t:sections.lookbook_v1.settings.placement_5.option_6.label"
        },
        {
          "value": "right-top",
          "label": "t:sections.lookbook_v1.settings.placement_5.option_7.label"
        },
        {
          "value": "right-center",
          "label": "t:sections.lookbook_v1.settings.placement_5.option_8.label"
        },
        {
          "value": "right-bottom",
          "label": "t:sections.lookbook_v1.settings.placement_5.option_9.label"
        },
        {
          "value": "left-top",
          "label": "t:sections.lookbook_v1.settings.placement_5.option_10.label"
        },
        {
          "value": "left-center",
          "label": "t:sections.lookbook_v1.settings.placement_5.option_11.label"
        },
        {
          "value": "left-bottom",
          "label": "t:sections.lookbook_v1.settings.placement_5.option_12.label"
        }
      ],
      "default": "right-center"
    },
    {
      "type": "header",
      "content": "t:sections.all.heading.content"
    },
    {
      "type": "color_scheme",
      "id": "color_scheme",
      "label": "t:sections.all.color_scheme.label"
    },
    {
      "type": "color",
      "id": "background_color",
      "label": "t:sections.all.bg_color.label"
    },
    {
      "type": "color_background",
      "id": "background_gradient",
      "label": "t:sections.all.bg_gradient.label"
    },
    {
      "type": "image_picker",
      "id": "background_image_desktop",
      "label": "t:sections.all.background_image_desktop.label"
    },
    {
      "type": "image_picker",
      "id": "background_image_mobile",
      "label": "t:sections.all.background_image_mobile.label"
    },
    {
      "type": "checkbox",
      "id": "use_parallax",
      "label": "t:sections.all.use_parallax.label",
      "default": true
    },
    {
      "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
    }
  ],
  "presets": [
    {
      "name": "t:sections.lookbook_v1.presets.name",
      "category": "Text"
    }
  ]
}
{% endschema %}
