{% include 'v2/variables_css' %}
/*! normalize.css v3.0.2 | MIT License | git.io/normalize */
html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:700}dfn{font-style:italic}h1{font-size:2em;margin:.67em 0}mark{background:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{box-sizing:content-box;height:0}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0}button{overflow:visible}button,select{text-transform:none}button,html input[type="button"],input[type="reset"],input[type="submit"]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}input{line-height:normal}input[type="checkbox"],input[type="radio"]{box-sizing:border-box;padding:0}input[type="number"]::-webkit-inner-spin-button,input[type="number"]::-webkit-outer-spin-button{height:auto}input[type="search"]{-webkit-appearance:textfield;box-sizing:content-box}input[type="search"]::-webkit-search-cancel-button,input[type="search"]::-webkit-search-decoration{-webkit-appearance:none}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}legend{border:0;padding:0}textarea{overflow:auto}optgroup{font-weight:700}table{border-collapse:collapse;border-spacing:0}td,th{padding:0}

@mixin gridItemWidth($gutter, $columns) {
  width: percentage( -($gutter * $columns - $gutter - 100) / (100 * $columns) );
  margin: unquote("0 #{$gutter}% #{$gutter}% 0");
}


// variables

$background: {{ theme.background_color }};
$white: #fff;
$black: #000;
$section-accent: {{ theme.gallery_header_section_background_color }};
$content-area-max-width: 1200px;
$animation-timer: 200ms;

$viewport-small: 414px;
$viewport-medium: 767px;
$viewport-large: 1023px;

$easeOutCubic: cubic-bezier(0.215, 0.61, 0.355, 1);
$easeOutQuint: cubic-bezier(0.23, 1, 0.32, 1);

{% if theme.listing_image_spacing == "Tight" %}
$listing-gutter: 1;
{% elsif theme.listing_image_spacing == "Normal" %}
$listing-gutter: 2;
{% else %}
$listing-gutter: 2.9;
{% endif %}

.lazyload,
.lazyloading {
  opacity: 0;
}
.lazyloaded {
  -webkit-transition: opacity 500ms $easeOutCubic;
  -moz-transition: opacity 500ms $easeOutCubic;
  transition: opacity 500ms $easeOutCubic;
  opacity: 1;
}


html {
  box-sizing: border-box;
}

*, *:before, *:after {
  box-sizing: inherit;
}

html,body {
  position: relative;
  height: 100%;
}

body {
  background: $background;
  {% css_block theme.text_typography %}
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-y: scroll;
  &.lock-click { pointer-events: none;}
  &.disable-scroll { overflow: hidden; }
}

a {
  {% css_block theme.link_typography %}

  &:hover {
    {% css_block theme.link_typography.hover %}
  }
}

ul, ol {
  padding: 0;
  list-style-position: inside;
}

// Headings

h1 {
  font-family: {{ theme.headline_typography.font-family }};
  font-weight: {{ theme.headline_typography.font-weight }};
}

body:not(.content) h2 {
  {% css_block theme.headline_typography %}
}

// Navgation

.logo {
  {% css_block theme.logo_typography %}
  margin: 0;
  position: relative;
  z-index: 10;
}

.logo-image {
  display: block;
  height: auto;
  max-width: 350px;
  max-height: 140px;
}

.logo-container {
  display: block;
}

.pinned-header {
  -webkit-transition: -webkit-transform 250ms ease;
  transition: -webkit-transform 250ms ease;
  transition: transform 250ms ease;
  transition: transform 250ms ease, -webkit-transform 250ms ease;
  position: fixed;
  z-index: 10;
  width: 100%;
  top: 0;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-align-items: flex-end;
      -ms-flex-align: end;
          align-items: flex-end;
  &.hidden { -webkit-transform: translate3d(0,-100%,0); transform: translate3d(0,-100%,0); }
  {% if theme.menu_trigger %}
    padding-bottom: 20px;
  {% endif %}

  {% if theme.enable_header_background %}
    &.pinned-header-background {
      background: rgba( {{ theme.header_background_color }}, {{ theme.header_background_opacity }} / 100% );
      {% if theme.menu_height == "Medium" %}
      padding: 30px 0 30px 0;
      {% elsif theme.menu_height == "Tall" %}
      padding: 40px 0 40px 0;
      {% else %}
      padding: 20px 0 20px 0;
      {% endif %}
      .navigation {
        -webkit-align-items: center;
            -ms-flex-align: center;
                align-items: center;
        padding: 0;
        .main-menu .item {
          padding-bottom: 0;
        }
      }
    }
  {% endif %}

  a {
    color: {{ theme.menu_typography.color }};
    text-decoration: none;
    -webkit-transition: color $animation-timer ease-in-out;
    transition: color $animation-timer ease-in-out;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    align-items: baseline;
    justify-content: center;

    &:hover {
      color: {{ theme.menu_typography.hover.color }};
    }
  }
  ul { list-style-type: none; }
}

:-webkit-full-screen-ancestor:root {
  .pinned-header {
    z-index: 0;
  }
  footer {
    z-index: -1;
  }
}

.navigation {
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-justify-content: space-between;
      -ms-flex-pack: justify;
          justify-content: space-between;

  {% if theme.logo_center %}
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  {% else %}
  -webkit-align-items: baseline;
      -ms-flex-align: baseline;
          align-items: baseline;
  {% endif %}

  {% if theme.menu_height == "Medium" %}
  padding: 40px 0 10px 0;
  {% elsif theme.menu_height == "Tall" %}
  padding: 50px 0 10px 0;
  {% else %}
  padding: 30px 0 0 0;
  {% endif %}

  &.has-image-logo {
    -webkit-align-items: center;
        -ms-flex-align: center;
            align-items: center;
  }
  .branding {
    -webkit-flex-shrink: 0;
        -ms-flex-negative: 0;
            flex-shrink: 0;
    margin-right: 20px;
    max-width: 70vw;
  }

  &.trigger-menu {
    -webkit-align-items: center;
        -ms-flex-align: center;
            align-items: center;
  }

  .item {
    line-height: 2em;

    a {
      {% css_block theme.menu_typography %}

      &:hover {
        {% css_block theme.menu_typography.hover %}
      }
    }
  }

  .selected {

    a {
      {% css_block theme.menu_typography.selected %}
    }

    &:hover {
      border-color: {{ theme.menu_typography.selected.color }};

      a {
        {% css_block theme.menu_typography.hover %}
      }
    }
  }

  .menu-trigger {
    background: none;
    border: 0;
    outline: 0;
    position: relative;
    z-index: 10;
    padding: 0;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    width: 30px;
    height: 28px;
    -webkit-flex-direction: column;
        -ms-flex-direction: column;
            flex-direction: column;
    overflow: hidden;
    &.hidden { display: none;}
    &.menu-active {
      svg {
        -webkit-transform: translate3d(0, -28px, 0);
        transform: translate3d(0, -28px, 0);
      }
    }

    svg {
      -webkit-transform: translate3d(0, 0, 0);
      transform: translate3d(0, 0, 0);
      fill: {{ theme.menu_trigger_color }};
      min-height: 27px;
      transition: all 180ms ease-in-out;
    }
  }

  .item {
    padding: 5px 0 5px 0;
    margin-right: 20px;
  }

  ul {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-wrap: wrap;
        -ms-flex-wrap: wrap;
            flex-wrap: wrap;
    -webkit-justify-content: flex-end;
        -ms-flex-pack: end;
            justify-content: flex-end;
  }

  .category {
    position: relative;
    > a {
      cursor: default;
    }
    a {
      {% css_block theme.submenu_typography %}
      svg {
        width: 0.8em;
        margin-left: 0.3em;
        .arrow {
          fill: {{theme.submenu_typography.color}};
          -webkit-transition: fill $animation-timer ease-in-out;
          transition: fill $animation-timer ease-in-out;
        }
      }

      &:hover {
        {% css_block theme.submenu_typography.hover %}
        .arrow {
          fill: {{theme.submenu_typography.hover.color}};
        }
      }
    }

    &.selected {
      a {
        {% css_block theme.submenu_typography.selected %}
        .arrow {
          fill: {{theme.submenu_typography.selected.color}};
        }
      }
    }
    &:hover {
      .category-dropdown-wrapper {
        opacity: 1;
        -webkit-transform: translate3d(0, 0, 0);
        -moz-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
        visibility: visible;
        overflow-y: auto;
      }
    }

    .category-dropdown-wrapper {
      -webkit-transform: translate3d(0, -2px, 0);
      -moz-transform: translate3d(0, -2px, 0);
      transform: translate3d(0, -2px, 0);
      -webkit-transition: opacity 300ms ease-in-out, -webkit-transform 300ms ease-in-out, visibility 300ms ease-in-out;
      -moz-transition: opacity 300ms ease-in-out, -moz-transform 300ms ease-in-out, visibility 300ms ease-in-out;
      transition: opacity 300ms ease-in-out, transform 300ms ease-in-out, visibility 300ms ease-in-out;
      background: rgba( {{ theme.header_background_color }}, {{ theme.submenu_background_opacity }} / 100% );
      position: absolute;
      opacity: 0;
      padding: 0;
      margin-left: -20px;
      visibility: hidden;
      will-change: transform, opacity;
      z-index: 1;

      .item {
        padding-top: 0;
        padding-bottom: 0;
        margin-right: 0;

        a {
          {% css_block theme.menu_typography %}
          display: block;
          white-space: nowrap;
          padding: 10px 20px;
          line-height: 1.4em;

          &:hover {
            {% css_block theme.menu_typography.hover %}
          }
        }

        &.selected {
          a {
            {% css_block theme.menu_typography.selected %}
          }
        }
      }
    }
  }

  .category-dropdown {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    {% if theme.header_width %}
      -webkit-flex-grow: 1;
          -ms-flex-positive: 1;
              flex-grow: 1;
    {% endif %}
    margin: 0 auto;
    -webkit-flex-direction: column;
        -ms-flex-direction: column;
            flex-direction: column;
  }
}

.site-navigation {
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-justify-content: flex-end;
      -ms-flex-pack: end;
          justify-content: flex-end;

  .social {
    -webkit-flex-shrink: 0;
        -ms-flex-negative: 0;
            flex-shrink: 0;
  }

  ul {
    margin: 0;
  }

  ul +
  .social {
    align-items: center;
  }

  .social-item {
    line-height: 2em;
    position: relative;
    padding: 0 2px;
  }

  .social-item + .social-item {
    margin-left: 10px;
  }
  .social-link {
    align-items: baseline;
    {% if theme.social_links_style == "Icon" %}
    width:{{ theme.social_links_typography.font-size }}px;
    {% endif %}
    height: {{ theme.social_links_typography.font-size }}px;
    display: inline-block;
  }
  .social-link, .social-share {
    {% css_block theme.social_links_typography %}
    &:hover {
      color: {{ theme.social_links_typography.hover.color }};
    }
  }
  .social-icon {
    width: auto;
    height: {{ theme.social_links_typography.font-size }}px;
    overflow: visible;
    position: absolute;
  }
}
.main-menu {
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  &.hidden { display: none; }
}
.overlayed-menu {
  -webkit-transition: visibility 250ms ease, opacity 250ms ease;
  transition: visibility 250ms ease, opacity 250ms ease;
  -webkit-overflow-scrolling: touch;
  opacity: 1;
  padding: 67px 0 5% 0;
  position: fixed;
  overflow-y: scroll;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba({{ theme.header_background_color }}, 0.95);
  visibility: visible;
  &.hidden {
    overflow-y: hidden;
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
  }
  ul {
    -webkit-flex-direction: column;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-align-items: center;
        -ms-flex-align: center;
            align-items: center;
    width: 100%;
  }

  .item {
    margin-right: 0;
    text-align: center;
    font-size: 26px;

    a {
      font-size: 1em;
      line-height: 1.75em;
      color: {{ theme.menu_typography.color }};
    }
  }

  .selected {
    font-weight: 300;
    border-bottom: 0;
    a {
      {% css_block theme.menu_typography.selected %}
    }

    &:hover {
      border-color: {{ theme.menu_typography.selected.color }};

      a {
        {% css_block theme.menu_typography.hover %}
      }
    }
  }

  .item + .item {
    margin-left: 0;
  }

  .item + .category, .category + .item {
    margin-top: 20px;
  }

  .social {
    -webkit-flex-direction: row;
        -ms-flex-direction: row;
            flex-direction: row;
    border: 0;
    padding-left: 0;
    margin-left: 0;
    width: auto;
    margin: 40px 0 80px 0;
  }

  .social-link, .social-share {
    font-size: 20px;
    padding: 0 11px;
  }

  .social-icon {
    width: auto;
    height: 20px;
    top: 0px;
  }

  .category {
    width: 100%;

    > a {
      opacity: 0.5;
      font-size: 0.8em;
      cursor: default;
      outline: 0;
      {% css_block theme.submenu_typography %}
      &:hover {
        {% css_block theme.submenu_typography.hover %}
        .arrow {
          fill: {{theme.submenu_typography.hover.color}};
        }
      }
    }

    > a:hover {
      color: {{ theme.submenu_typography.hover.color }};
    }

    svg {
      display: none;
    }

    &.selected {
      > a {
        {% css_block theme.submenu_typography.selected %}
      }
    }
  }

  .category .category-dropdown-wrapper {
    position: static;
    padding: 0;
    opacity: 1;
    height: auto;
    margin-left: 0;
    background: transparent;
    -webkit-transform: none;
            transform: none;
    visibility: visible;

    .item {
      a {
        font-size: 26px;
        display: block;
        white-space: normal;
      }
    }
  }
}

.overlayed-menu-container {
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  min-height: 100%;
  -webkit-flex-direction: column;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-justify-content: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
}

.outer-container {
  -webkit-transition: opacity 320ms $easeOutCubic;
  transition: opacity 320ms $easeOutCubic;
  background-color: $background;
  opacity: 0;
  will-change: opacity;
  &.visible { opacity: 1; }
}

// Title elements

.title-element {
  max-width: 600px;
  margin: 0 auto;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-flex-wrap: wrap;
      -ms-flex-wrap: wrap;
          flex-wrap: wrap;
  -webkit-justify-content: center;
      -ms-flex-pack: center;
          justify-content: center;
  padding: 0 20px 20px 20px;
  position: relative;
  max-height: 80vh;
  overflow-y: auto;

  .title-element-page-name {
    font-weight: normal;
  }

  .title-element-image {
    max-width: 100%;
  }
  ul { display: inline-block; }
  > .text {
      display: inline-block;
      -webkit-align-self: flex-start;-ms-flex-item-align: start;align-self: flex-start;
  }
}
body.ie11 {
  .main-header-title:before {
    content: '';
    display: inline-block;
    height: 100%;
    vertical-align: middle;
    margin-right: -0.25em; /* Adjusts for spacing */
  }
  .title-element {
    display: inline-block;
    width: 600px;
    margin: 0 auto;
    vertical-align: middle;
  }
}
.listing {
  .title-element {
    {% if theme.listing_align_page_title == 'Center' %}
      text-align: center;
    {% endif %}
    {% css_block theme.listing_page_title_typography %}
    .title-element-page-name {
      {% css_block theme.listing_page_title_typography %}
    }
    h1,h2,h3,h4,h5,h6, a {
      color: {{ theme.listing_page_title_typography.color }};
    }
  }
}

.gallery {
  .title-element {
    {% if theme.gallery_align_page_title == 'Center' %}
      text-align: center;
    {% endif %}
    {% css_block theme.gallery_page_title_typography %}
    .title-element-page-name {
      {% css_block theme.gallery_page_title_typography %}
    }
    h1,h2,h3,h4,h5,h6, a {
      color: {{ theme.gallery_page_title_typography.color }};
    }
  }
}


// Masonry

.masonry {
  {% if theme.gallery_column_count == "2" %}
    margin: 0 auto;
    max-width: 1000px;
  {% endif %}
}
body.gallery .masonry-item {
  {% if theme.gallery_column_count == "2" %}
    @include gridItemWidth(2, 2);
  {% else %}
    @include gridItemWidth(2, 3);
  {% endif %}
}
body.listing .masonry-item {
  {% if theme.listing_image_size == "Small" %}
    @include gridItemWidth($listing-gutter, 3);
  {% elsif theme.listing_image_size == "Medium" %}
    @include gridItemWidth($listing-gutter, 2);
  {% else %}
    @include gridItemWidth(0, 1);
    margin: 2% 0;
  {% endif %}
}
.masonry-item {
  .image-wrap {
    position: relative;
    .image-placeholder {
      -webkit-transition: all 500ms $easeOutCubic 500ms;
      transition: all 500ms $easeOutCubic 500ms;
      position: relative;
      vertical-align: top;
      width: 100%; height: 100%;
    }
    img {
      position: absolute; top: 0; left: 0;
      width: 100%; height: auto;
      vertical-align: top;
    }
    &.image-loaded .image-placeholder { background-color: transparent!important; }
  }
  img {
    max-width: 100%;
    height: auto;
    display: block;
  }

  &.text {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-direction: column;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-justify-content: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-align-items: center;
        -ms-flex-align: center;
            align-items: center;
    text-align: center;
    min-height: 250px;
    height: auto;
    box-shadow: none;
    .text-snippet {
      font-size: 1.2em;
      line-height: 1.4em;
      font-style: normal;
      width: 100%;
      word-wrap: break-word;
    }
    .item-link {
      color: {{ theme.text_typography.color }};
      display: -webkit-flex;
      display: -ms-flexbox;
      display: flex;
      -webkit-flex-direction: column;
          -ms-flex-direction: column;
              flex-direction: column;
      -webkit-justify-content: center;
                -ms-flex-pack: center;
              justify-content: center;
      -webkit-align-items: center;
           -ms-flex-align: center;
              align-items: center;
      padding: 20px;
      position: relative;
      width: 100%;
    }
    .text-readmore {
      margin-bottom: 0;
      padding: 1em 0 0 0;
      width: 50%;
      font-style: normal;
      border-top: 2px solid rgba({{theme.text_typography.color}}, 0.1);
    }
    &:hover {
      box-shadow: inset 0 0 0 2px rgba({{theme.text_typography.color}}, 0.4);
    }
  }
}

.item-link {
  text-decoration: none;
  position: relative;
  display: block;
  overflow: hidden;
  outline: 0 !important;
  .video-thumb-container {
    position: relative;
  }
  .item-link-video-indicator {
    -webkit-transform: translate3d(0, 20px, 0);
    transform: translate3d(0, 20px, 0);
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 1;
    transition: all 280ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(#000,0.4);
    border-radius: 5px;
    opacity: 0;
    width: 47px;
    height: 47px;
    padding: 15px;
    will-change: transform, opacity;
  }

  &:hover {
    text-decoration: none;
     .item-link-video-indicator {
       -webkit-transform: translate3d(0, 0, 0);
       transform: translate3d(0, 0, 0);
       opacity: 1;
     }
  }
  .item-label {
    {% css_block theme.text_typography %}
    text-align: center;
    margin-bottom: 1em;
    text-decoration: none;
  }
}

.listing {
  .item-link {
    .item-label {
      font-style: normal;
      {% if theme.listing_title_alignment == "Left" %}
        text-align: left;
      {% endif %}
      {% css_block theme.listing_caption_typography %}
      transition: color 300ms ease-in-out;
    }
    .item-label-overlay {
      cursor: pointer;
      display: block;
      position: absolute;
      top: -1px;
      left: -1px;
      bottom: -1px;
      right: -1px;
      background: transparentize({{ theme.background_color }}, 0.3);
      opacity: 0;
      transition: opacity .1s ease;
      .item-label {
        padding: 0 20px;
        margin: 0;
        text-align: {{ theme.listing_title_alignment }};
        position: absolute;
        top: 50%;
        transform: translate(0, -50%);
        box-sizing: border-box;
        width: 100%;
        z-index: 12;
        color: {{ theme.listing_caption_typography.color }};
      }
    }
    &:hover {
      .item-label {
        color: {{ theme.listing_caption_typography.hover.color }};
      }
      .item-label-overlay {
        opacity: 1;
        .item-label {
          color: {{ theme.listing_caption_typography.color }};
        }
      }
    }
  }
}

// Listing/Gallery Grid Setting

.grid {
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-wrap: wrap;
      -ms-flex-wrap: wrap;
          flex-wrap: wrap;
  -webkit-justify-content: center;
      -ms-flex-pack: center;
          justify-content: center;

  .grid-item {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;

    img {
      max-width: 100%;
      height: auto;
    }
    .image-wrap {
      position: relative;
      .image-placeholder {
        position: relative;
        vertical-align: top;
        width: 100%; height: 100%;
      }
      img {
        position: absolute; top: 0; left: 0;
        width: 100%; height: auto;
        vertical-align: top;
      }
      &.image-loaded .image-placeholder { background-color: transparent!important; }
    }
  }
}

body.listing .grid-item {
  {% if theme.listing_image_size == "Extra Large" %}
    width: unquote("calc(50% - #{$listing-gutter}%)");
  {% elsif theme.listing_image_size == "Large" %}
    width: unquote("calc(33.3333333333% - #{$listing-gutter}%)");
  {% elsif theme.listing_image_size == "Medium" %}
    width: unquote("calc(25% - #{$listing-gutter}%)");
  {% elsif theme.listing_image_size == "Small" %}
    width: unquote("calc(20% - #{$listing-gutter}%)");
  {% endif %}
  margin: 0 #{$listing-gutter/4 + "vw"} #{$listing-gutter/2 + "vw"} #{$listing-gutter/4 + "vw"};
}

body.gallery .grid-item {
  {% if theme.gallery_column_count == "2" %}
    width: 50%;
    padding: 12px;
  {% else %}
    width: 33%;
    padding: 12px;
  {% endif %}
  &.text a {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .item-link {
    width: 100%;
  }
  .item-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  &.video {
    .video-thumb-container {
      height: 100%;
      display: -webkit-flex;
      display: -ms-flexbox;
      display: flex;
      justify-content: center;
      align-items: center;
    }
    img {
      height: 100%;
      max-width: none;
    }
  }
}

// Width Container

.container {
  margin: 0 auto;
  padding: 0 20px;
  max-width: $content-area-max-width;
  width: 100%;

  .f_blog_wrapper,
  ._4ORMAT_content_wrapper {
    margin: 0 auto;
  }
}

.content-container {
  padding: 0;
  max-width: none;
  ._4ORMAT_content_page_row:not(._4ORMAT_full_width_module) {
    padding: 0 20px;
    max-width: $content-area-max-width;
  }
}

._4ORMAT_content_wrapper {
  -webkit-transition: all 1s $easeOutQuint;
  transition: all 1s $easeOutQuint;
  -webkit-transform: translate3d(0, 20px, 0);
  transform: translate3d(0, 20px, 0);
  opacity: 0;
  will-change: transform, opacity;
  &.content-loaded {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }
}
// fluid container

.fluid-container {
  max-width: 100%;
  padding: 0 40px;
}


.title-spinner {
  position: absolute; top: 50%; left: 50%;
  margin-top: -19px; margin-left: -19px;
  z-index: 99;
}

.main-header {
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  color: {{ theme.gallery_header_section_typography_color }};
  min-height: {{ theme.gallery_header_height }}vh;
  background: $section-accent;

  &.boxed-image {
    background: $section-accent;
    h1 {
      width: 100%;
    }
    img {
      width: 100%;
      height: auto;
      margin: 0 auto;
    }
  }

  &.main-header-title {
    background-color: {{ theme.title_background_color }};
    z-index: 1;

    @media (max-width: $viewport-medium) {
      z-index: unset;
    }

    .title-element {
      will-change: transform, opacity;
    }
  }

  &.main-header-short {
    padding: 20px 20px 0 20px;
    position: relative;
    -webkit-transform: translate3d(0, -20px, 0);
    transform: translate3d(0, -20px, 0);
    -webkit-transition: -webkit-transform $easeOutQuint 1000ms;
    transition: -webkit-transform $easeOutQuint 1000ms;
    transition: transform $easeOutQuint 1000ms;
    transition: transform $easeOutQuint 1000ms, -webkit-transform $easeOutQuint 1000ms;
    z-index: 2;
    @media (max-width: $viewport-medium) {
      padding: 20px 0 0;
    }
  }
  .main-header-title-bg {
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  }

  &.main-header-single {
    padding-bottom: 20px;
  }
}

.visible .main-header-short {
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
}

.listing {
  .main-header {
    background-color: {{ theme.title_background_color_listing }};
    z-index: 1;
  }
  .main-lower {
    -webkit-transform: translate3d(0, -20px, 0);
    transform: translate3d(0, -20px, 0);
    -webkit-transition: -webkit-transform $easeOutQuint 1000ms;
    transition: -webkit-transform $easeOutQuint 1000ms;
    transition: transform $easeOutQuint 1000ms;
    transition: transform $easeOutQuint 1000ms, -webkit-transform $easeOutQuint 1000ms;
  }

  .visible .main-lower {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
}

.main-header-spacer {
  margin-top: 120px;
}

.main-lower {
  background: $background;
  box-shadow: 0 150px 0 0 $background;
  padding-top: 30px;
  position: relative;
  z-index: 2;
}

.has-title .main-lower {
  min-height: 100vh;
}

.main-lower-controls-wrapper {
  -webkit-flex-grow: 0;
  -ms-flex-positive: 0;
  flex-grow: 0
}

.main-lower-controls {
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-justify-content: space-between;
      -ms-flex-pack: justify;
          justify-content: space-between;
  padding-top: 20px;
  margin-bottom: 0;

  a {
    padding: 10px 5px 10px 5px;
    min-width: 60px;
    text-align: center;
    font-style: normal;
    font-size: 0.8em;
    border-top: 1px solid rgba({{ theme.gallery_header_section_typography_color }}, 0.5);
    color: rgba({{ theme.gallery_header_section_typography_color }}, 0.6);
    text-decoration: none;
    -webkit-transition: border $animation-timer ease-in-out, color $animation-timer ease-in-out;
    transition: border $animation-timer ease-in-out, color $animation-timer ease-in-out;
    &:focus {
      outline: 0;
    }
    &:hover {
      color: rgba({{ theme.gallery_header_section_typography_color }}, 1);
      border-color: rgba({{ theme.gallery_header_section_typography_color }}, 1)
    }
  }
}


// Asset container

.assets {
  width: 100%;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-grow: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
}

.asset {
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-align-items: flex-end;
      -ms-flex-align: end;
          align-items: flex-end;
  -webkit-align-self: center;
      -ms-flex-item-align: center;
          align-self: center;
  -webkit-flex-grow: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
  -webkit-justify-content: center;
      -ms-flex-pack: center;
          justify-content: center;
  margin: 0 auto;
  max-width: 1750px;

  .asset-primary {
    -webkit-order: 2;
        -ms-flex-order: 2;
            order: 2;
    max-width: 90%;
    max-height: 80vh;
    h2 {
      color: {{ theme.gallery_header_section_typography_color }};
    }
    .image-holder {
      width: 100%;
      position: relative;
      .image-placeholder {
        -webkit-transition: background-color 250ms ease, opacity 250ms ease;
        transition: background-color 250ms ease, opacity 250ms ease;
        position: relative;
        vertical-align: top;
        max-width: 100%; height: auto;
        max-height: 80vh;
      }
      .image-holder-image {
        position: absolute; top: 0; left: 0;
        vertical-align: top;
        max-width: 100%; height: auto;
        max-height: 80vh;
      }
      &.image-loaded .image-placeholder { opacity: 0; }
    }
    &.image {
      .text-asset, .fluid-width-video-wrapper { visibility: hidden; height: 0; padding-top:0!important; }
      .image-holder { visibility: visible; height: auto; }
    }
    &.video {
      width: 73%;
      .image-holder, .text-asset { visibility: hidden; height: 0; display: none;}
      .fluid-width-video-wrapper { visibility: visible; height: auto;}
    }
    &.text {
      .image-holder, .fluid-width-video-wrapper { visibility: hidden; height: 0; padding-top:0!important; }
      .text-asset { visibility: visible; height: auto; }
    }
  }
  .text-asset {
    margin: 0 auto;
    max-width: 600px;
    {% css_block theme.gallery_text_element_typography %}
  }
  .asset-caption {
    visibility: hidden; height: auto;
    -webkit-order: 1;
        -ms-flex-order: 1;
            order: 1;
    margin-right: 0px;
    max-width: 0px;
    max-height: 80vh;
    overflow: auto;
    {% css_block theme.gallery_caption_typography %}

    a {
      {% css_block theme.gallery_caption_typography %}
      text-decoration: {{ theme.link_typography.text-decoration }};
    }

    h2 {
      margin-top: 0;
    }

    p + p, p:last-of-type {
      margin-bottom: 0;
      overflow: hidden;
    }
    h1,h2,h3,h4,h5,h6 {
      color: {{ theme.gallery_header_section_typography_color }};
    }
  }

  &.align-bottom, &.no-caption {
    -webkit-flex-direction: column;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-align-items: center;
        -ms-flex-align: center;
            align-items: center;
    .asset-primary {
      margin: 0 auto;
      -webkit-order: 1;
          -ms-flex-order: 1;
              order: 1;
      &.video {
        width: 83%;
        @media (max-width: $viewport-medium) {
          width: 100%;
        }
      }
    }
    .asset-caption {
      -webkit-order: 2;
          -ms-flex-order: 2;
              order: 2;
      margin: 20px auto 0;
      max-width: 500px;
      width: auto;
    }
  }

  &.align-right {
    .asset-primary {
      -webkit-order: 1;
          -ms-flex-order: 1;
              order: 1;
    }
    .asset-caption {
      -webkit-order: 2;
          -ms-flex-order: 2;
              order: 2;
      margin-right: 0;
      margin-left: 40px;
    }
  }
  &.no-caption {
    .asset-caption { display: none; }
  }

}

#video-player {
  display: none;
  max-height: 80vh;
  &.active {
    display: block;
  }
}

.container .page-asset {
  transition: -webkit-transform 500ms $easeOutCubic, opacity 500ms $easeOutCubic, box-shadow 250ms $easeOutCubic;
  transition:opacity 500ms $easeOutCubic, -webkit-transform 500ms $easeOutCubic, box-shadow 250ms $easeOutCubic;
  transition:transform 500ms $easeOutCubic, opacity 500ms $easeOutCubic, box-shadow 250ms $easeOutCubic;
  transition: transform 500ms $easeOutCubic, opacity 500ms $easeOutCubic, -webkit-transform 500ms $easeOutCubic, box-shadow 250ms $easeOutCubic;
  -webkit-transform: translate3d(0, 40px, 0);
  transform: translate3d(0, 40px, 0);
  opacity: 0;
  will-change: transform, opacity;

  &.asset-loaded {
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
}

// footer

footer {
  background: $background;
  margin: 0 auto;
  text-align: center;
  padding: 50px 0;
  position: relative;
  {% css_block theme.post_text_typography %}
  z-index: 3;

  .social {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    list-style-type: none;
  }

  .social-item {
    line-height: 2em;
    position: relative;
    padding: 0 2px;
  }

  .social-item + .social-item {
    margin-left: 10px;
  }
  .social-link {
    align-items: baseline;
    {% if theme.social_links_style == "Icon" %}
    width:{{ theme.social_links_typography.font-size }}px;
    {% endif %}
    height: {{ theme.social_links_typography.font-size }}px;
    display: inline-block;
  }
  .social-link, .social-share {
    text-decoration: none;
    {% css_block theme.social_links_typography %}
    &:hover {
      color: {{ theme.social_links_typography.hover.color }};
    }
  }
  .social-icon {
    width: auto;
    height: {{ theme.social_links_typography.font-size }}px;
    overflow: visible!important;
    position: absolute;
  }
}
//*****MEDIA QUERIES*****//
@media (max-width: $viewport-medium) {
  .main-header { min-height: {{ theme.gallery_header_height }}vh; }
  .navigation {
    -webkit-align-items: center; -ms-flex-align: center; align-items: center;
    padding: 30px 0 0 0;
  }
  .logo-image { max-height: 60px; }
  .pinned-header {
    padding-bottom: 20px;
    &.pinned-header-background {
      padding: 10px 0;
    }
    .fluid-container {
      padding: 0 20px;
    }
  }
  .menu-trigger { display: block!important;}
  .main-menu { display: none!important; }
  .overlayed-menu .social-share {
    display: none;
  }
  body.gallery .masonry-item, body.listing .masonry-item {
    @include gridItemWidth(2, 2);
  }
  .grid-item {
    width: calc(33.3333333333% - 21px)!important;
    &.landscape.extra-large,
    &.square.extra-large {
      width: calc(50% - 21px)!important;
    }
  }
  .gallery .grid-item {
    width: calc(50%)!important;
    padding: 7px!important;
  }
  .asset {
    -webkit-flex-direction: column;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-align-items: center;
        -ms-flex-align: center;
            align-items: center;
    padding: 0 20px;
    .asset-primary {
      margin: 0 auto;
      max-width: 100%!important;
      -webkit-order: 1;
          -ms-flex-order: 1;
              order: 1;
      &.video { width: 100%; }
    }
    .asset-caption {
      -webkit-order: 2!important;
          -ms-flex-order: 2!important;
              order: 2!important;
      margin: 20px auto 0 auto;
      max-width: none;
      width: auto;
    }
  }
  .social-share { display: none; }
}
@media (max-width: $viewport-medium) and (orientation: landscape){
  .masonry-item {
    @include gridItemWidth(1, 3);
  }
}
@media (max-width: $viewport-small) {
  .logo-image {
    {{ 0.2 | slider_val_to_scale_val: theme.logo_size | wrap: "scale(", ")" | vendorize_css_declaration: "transform" }}
    max-width: 70%;
  }
  .grid-item {
    width: calc(50% - 15px)!important;
  }
  .blog {
    .f_blog_wrapper {
      padding: 10px 20px;
    }
  }
  .main-header {
    &.main-header-title {
      position: relative !important;
    }
    &.main-header-short {
      margin-top: 0 !important;
    }
    .title-element {
      max-height: unset;
    }
    .asset {
      .asset-primary {
        max-height: unset;
      }
    }
  }

}

/*
------------------------------------------------------------------
Forms
------------------------------------------------------------------
*/

.private_page form input {
  background: transparent;
  border-radius: 2px;
  color: {{ theme.text_typography.color }};
  border: 1px solid rgba({{ theme.text_typography.color }}, 0.5);
  padding: 8px;
}


/*
------------------------------------------------------------------
Proofing Pages
------------------------------------------------------------------
*/

.client {
  .content-container {
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
  }
  .private_page form input[type='submit'] {
    color: {{ theme.text_typography.color }} !important;
    border: 1px solid {{ theme.text_typography.color }} !important;
  }
  @media (max-width: $viewport-medium) {
    .f_assets-container {
      margin: 0;
    }
  }
}

.f_client_header_copy p {
  color: {{ theme.text_typography.color }} !important;
}

.f-load-more .spinner-wrap .spinner-circle {
  stroke: {{ theme.text_typography.color }} !important;
}

.f_client_header {
  border-bottom: 1px solid rgba({{ theme.text_typography.color | hex_to_rgb }}, 0.3)!important;
}

.f_client_header_info .f_btn {
  color: {{ theme.text_typography.color }} !important;
  border: 1px solid {{ theme.text_typography.color }} !important;
  font-family: {{ theme.text_typography.font-family }} !important;
  font-size: {{ theme.text_typography.font-size }}px !important;
}


/*
------------------------------------------------------------------
Blog Styles
------------------------------------------------------------------
*/

.f_blog_wrapper {
  margin: 0 auto;
  text-align: left;
  max-width: 780px!important;
  h1 {
    {% css_block theme.headline_typography %}
    + h3 {
      {% css_block theme.headline_typography %}
      font-size: {{ theme.text_typography.font-size }};
    }
  }
}
.f_blog_body_typography,
.f_blog_body_typography:hover {
    color: {{ theme.blog_body_typography.color }}!important;
    font-family: {{ theme.blog_body_typography.font-family }}!important;
    font-size: {{ theme.blog_body_typography.font-size }}px!important;
    line-height: {{ theme.blog_body_typography.line-height }}!important;
}
.f_blog_body_typography > p { line-height: {{ theme.blog_body_typography.line-height }}!important; }

.f_blog_body_typography_color,
.f_blog_body_typography_color:hover,
.blog_date_icon_path { fill: {{ theme.blog_body_typography.color }}!important; }

.f_blog_title_typography,
.f_blog_title_typography:hover {
  color: {{ theme.blog_title_typography.color }}!important;
  font-family: {{ theme.blog_title_typography.font-family }}!important;
  font-size: {{ theme.blog_title_typography.font-size }}px!important;
  font-style: {{ theme.blog_title_typography.font-style }}!important;
  font-weight: {{ theme.blog_title_typography.font-weight }}!important;
}
.f_blog_title_typography_hover:hover {
  color: {{ theme.blog_title_typography.hover.color }}!important;
  text-decoration: {{ theme.blog_title_typography.hover.text-decoration }}!important;
}

/* Hack to make listing hovers work nicely */
.f_blog_list a:hover h4 {
  color: {{ theme.blog_title_typography.hover.color }}!important;
  text-decoration: {{ theme.blog_title_typography.hover.text-decoration }}!important;
}

.fancybox-title .child, /* apply to fancybox for popup image captions */
.f_blog_caption_typography {
  font-family: {{ theme.blog_caption_typography.font-family }}!important;
  font-size: {{ theme.blog_caption_typography.font-size }}px!important;
  color: {{ theme.blog_caption_typography.color }}!important;
}
.f_blog_caption_typography_font-size { font-size: {{ theme.blog_caption_typography.font-size }}px!important; }

{% if theme.blog_images_slideshow_color == 'Dark' %}
  .f_blog_wrapper .slidesjs-container { background: #000; }
{% endif %}

/*
------------------------------------------------------------------
Store Pages
------------------------------------------------------------------
*/
body.store #content_page_wrapper ._4ORMAT_content_page_row {
  overflow: hidden;
}

.cart-enabled {
  .fluid-container {
    padding-right: 75px;
  }
  @media only screen and (max-width: 767px) {
    ._4ORMAT_content_wrapper {
      padding-top: 20px;
    }
    .fluid-container {
      padding-right: 40px;
    }
  }
}

body.product #content_page_wrapper {
  max-width: 1140px;
  width: 90%;
  margin: 0 auto;
  ._4ORMAT_content_page_row:not(._4ORMAT_full_width_module) {
    max-width: none;
    padding: 0;
  }
  @media only screen and (max-width: 767px) {
    width: 100%;
  }
}

body.order_confirmation .btn-cancel,
.product-order-form .f-add-to-cart-button,
.product-order-form .select2-choice {
  background: transparent !important;
  border: 1px solid rgba({{ theme.text_typography.color | hex_to_rgb }}, 0.2) !important;
  color: {{ theme.text_typography.color }} !important;
}

.product-order-form .f-add-to-cart-button {
  border: 1px solid rgba({{ theme.text_typography.color | hex_to_rgb }}, 0.3) !important;
}

body.product .product-info {
  h1 {
    font-size: {{ theme.headline_typography.font-size }}px !important;
  }
  .price {
    font-size: {{ theme.text_typography.font-size }}px !important;
  }
  .product-shipping-option {
    border-color: {{ theme.text_typography.color }};
  }
}

body.product .select2-drop {
  background: {{ theme.background_color }} !important;
  border: 1px solid rgba({{ theme.text_typography.color | hex_to_rgb }}, 0.2) !important;
  color: {{ theme.text_typography.color }} !important;
}

body.product .select2-drop ul,
body.product .select2-drop ul .select2-result-label {
  border-color: rgba({{ theme.text_typography.color | hex_to_rgb }}, 0.2) !important;
}

body.product .select2-results .select2-highlighted,
.product-order-form .f-add-to-cart-button:hover {
  background: rgba({{ theme.text_typography.color | hex_to_rgb }}, 0.1) !important;
}

body.product .select2-results .select2-highlighted {
  color: {{ theme.text_typography.color }} !important;
}

body.product .product-order-form .select2-container .select2-choice div b:before {
  border-top-color: rgba({{ theme.text_typography.color | hex_to_rgb }}, 0.6) !important;
}

body.order_confirmation .order-confirmation {
  border: 1px solid {{ theme.text_typography.color }} !important;
}

body.order_confirmation .order-confirmation .order-confirmation-details {
  border-top: 1px solid {{ theme.text_typography.color }} !important;
  border-bottom: 1px solid {{ theme.text_typography.color }} !important;

}

body.order_confirmation .order-confirmation .order-confirmation-details .order-confirmation-products th,
body.order_confirmation .order-confirmation.mobile .order-confirmation-details dl,
body.order_confirmation .order-confirmation.mobile .order-confirmation-products .order-confirmation-product {
  border-bottom: 1px solid {{ theme.text_typography.color }} !important;
}

body.order_confirmation .order-confirmation .order-confirmation-total tr:last-child td,
body.order_confirmation .order-confirmation.mobile .order-confirmation-details {
  border-top: 1px solid {{ theme.text_typography.color }} !important;
}

body.order_confirmation .order-confirmation.mobile .order-confirmation-payment {
  border: 0 !important;
}

body.order_confirmation .order-confirmation .order-confirmation-details dl dt,
body.order_confirmation .order-confirmation .order-confirmation-details dl dd,
body.order_confirmation .order-confirmation .order-confirmation-details th,
body.order_confirmation .order-confirmation .order-confirmation-details td {
  color: {{ theme.text_typography.color }} !important;
}


body.order_confirmation .btn-confirm,
body.order_download .btn-return,
body.order_thank_you .btn-return,
body.order_payment_error .btn-return {
  background: {{ theme.text_typography.color }} !important;
  border: none !important;
  color: {{ theme.background_color }} !important;
}

body.order_download svg {
  fill: {{ theme.link_typography.color }};
}

.f-back-to-store-link svg {
  fill: {{ theme.link_typography.color }};
}
