<section class="sisters-story" data-reveal>
  <div class="container">
    <div class="sisters-story__layout">
      <div class="sisters-story__text-col">
        {%- if section.settings.eyebrow != blank -%}
          <span class="section-eyebrow">{{ section.settings.eyebrow }}</span>
        {%- endif -%}
        <h2 class="section-heading"><em>{{ section.settings.heading }}</em></h2>
        {%- if section.settings.text != blank -%}
          <div class="sisters-story__body">{{ section.settings.text }}</div>
        {%- endif -%}
        {%- if section.settings.cta_text != blank -%}
          <a href="{{ section.settings.cta_url | default: '/pages/about' }}" class="btn btn--primary">{{ section.settings.cta_text }}</a>
        {%- endif -%}
      </div>
      <div class="sisters-story__image-col">
        {%- if section.settings.image != blank -%}
          <img src="{{ section.settings.image | image_url: width: 800 }}" srcset="{{ section.settings.image | image_url: width: 400 }} 400w, {{ section.settings.image | image_url: width: 600 }} 600w, {{ section.settings.image | image_url: width: 800 }} 800w" sizes="(max-width: 768px) 100vw, 45vw" alt="{{ section.settings.image.alt | escape }}" loading="lazy" class="sisters-story__img">
        {%- else -%}
          <img src="{{ 'brand-story.png' | asset_url }}" alt="Our story" loading="lazy" class="sisters-story__img">
        {%- endif -%}
      </div>
    </div>
  </div>
</section>

{% schema %}
{
  "name": "Sisters Story",
  "class": "section-sisters-story",
  "settings": [
    { "type": "text", "id": "eyebrow", "label": "Eyebrow", "default": "OUR STORY" },
    { "type": "text", "id": "heading", "label": "Heading", "default": "Our Beginning" },
    { "type": "richtext", "id": "text", "label": "Story text" },
    { "type": "text", "id": "cta_text", "label": "Button text" },
    { "type": "text", "id": "cta_url", "label": "Button URL" },
    { "type": "image_picker", "id": "image", "label": "Image" }
  ],
  "presets": [{ "name": "Sisters Story" }]
}
{% endschema %}