///////////////////////////////////////////////////////////////
// Device: Desktop
///////////////////////////////////////////////////////////////

/* ********** INTRO ********** */
.esprit-barriere-header-background {
    /*background: url('../img/layout/bg-esprit-barriere.jpg') no-repeat;
    background-size: cover;
    background-position: top center;*/
    width: 100%;
    height: 618px;
    text-align: center;
    position: relative;
    /*overflow: hidden;*/

    picture {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 618px;
        overflow: hidden;
        z-index: -1;

        img {
            position: absolute;
        }

        @media screen and (max-width: 481px) {
            img {
                margin-left: -240px;
                left: 50%;
            }
        }
        @media screen and (min-width: 481px) {
            img {
                left: 50%;
                margin-left: -512px;
                height: 100%;
            }
        }
        @media screen and (min-width: 1025px) {
            img {
                width: 100%;
                height: auto;
                margin-left: 0;
                left: 0;
            }
        }
    }
}

.esprit-barriere-header-title {
    font-family: "lucien-light";
    text-transform: uppercase;
    color: white;
    font-size: 4em;
    padding-top: 280px;
    margin: 0;
}

.esprit-barriere-header-subtitle {
    color: white;
    font-family: lucien-regular, Arial, Helvetica, sans-serif;
    font-size: 1.6em;
}

.esprit-barriere-container {
    @include outer-container;
}

.esprit-barriere-wrapper {
    @include span-columns(10);
    @include shift(1);
    margin-top: -110px;
    background-color: white;
    text-align: center;

    strong {
        font-family: "lucien-bold";
        text-transform: uppercase;
        display: block;
        font-size: 2.4em;
        &:first-child {
            margin: 50px 0 50px 0;
        }
        &:last-child {
            margin: 60px 0 60px 0;
        }
    }

    ul {
        margin: 0;
        padding: 0;
        li {
            list-style: none;
            font-family: "lucien-book";
            font-style: normal !important;
            font-size: 1.2em;
            line-height: 1.6em;
            span {
                font-family: "lucien-bold";
                color: $color-golden;
            }
            margin-bottom: 10px;
        }
    }
}

/* end INTRO */

/* ********** TIMELINE ********** */
.esprit-barriere-history-timeline
{
  display:       flex;
    align-items: center;
}
.esprit-barriere-history-timeline.is-wide
{
  .esprit-barriere-history-timeline-separator
  {
    flex-grow: 0.1;
  }
}
.esprit-barriere-history-timeline[data-items="2"]
{
  .esprit-barriere-history-timeline-separator
  {
    flex-grow: (1/4);
  }
}
.esprit-barriere-history-timeline-item
{
  flex-basis: 0;
}
.esprit-barriere-history-timeline-item.is-hidden
{
  visibility: hidden;
}
.esprit-barriere-history-timeline-event
{
  align-self: stretch;
  border:     3px solid $color-golden;
  flex-grow:  1;
  padding:    20px;
  text-align: center;
}
.esprit-barriere-history-timeline-event-date
{
  font-family: "lucien-bold";
  font-size:   0.9rem;
}
.esprit-barriere-history-timeline-event-title
{
  color:         $color-golden;
  font-family:   "lucien-bold";
  font-size:     1.4rem;
  margin-bottom: 10px;
}
.esprit-barriere-history-timeline-event-description
{
  font-family: "lucien-regular";
  font-size:   1.2rem;
}
.esprit-barriere-history-timeline-separator
{
  flex-grow: 1;
}
.esprit-barriere-history-timeline-separator-container
{
  background:        $color-golden;
  display:           flex;
    align-items:     center;
    justify-content: space-between;
  height:            2px;
}
.esprit-barriere-history-timeline-separator-dot
{
  background:    #FFFFFF;
  border:        4px solid $color-golden;
  border-radius: 50%;
  height:        18px;
  width:         18px;
}
.esprit-barriere-history-timeline-separator-dot.is-hidden
{
  visibility: hidden;
}
.esprit-barriere-history-timeline-separator-dot--start
{
  transform: translateX(-10px);
}
.esprit-barriere-history-timeline-separator-dot--end
{
  transform: translateX(10px);
}

/* ********** HISTORY ********** */
.esprit-barriere-history-header {
    text-align: center;
}

.esprit-barriere-history-header-title {
    font-family: "lucien-bold";
    font-size: 1.7em;
    color: $color-golden;
    display: block;
    margin: 60px 0 60px 0;
}

.esprit-barriere-history-header-background {
    width: 100%;
    height: 500px;
    position: relative;
    overflow: hidden;

    picture {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 500px;
        overflow: hidden;
        z-index: -1;

        img {
            position: absolute;
        }

        @media screen and (max-width: 481px) {
            img {
                margin-left: -240px;
                left: 50%;
            }
        }
        @media screen and (min-width: 481px) {
            img {
                left: 50%;
                margin-left: -512px;
                height: 100%;
            }
        }
        @media screen and (min-width: 1025px) {
            img {
                width: 100%;
                height: auto;
                margin-left: 0;
                left: 0;
            }
        }
    }
}

.esprit-barriere-history-container {
    @include outer-container;
}

.esprit-barriere-history-wrapper {
    @include span-columns(10);
    @include shift(1);
    margin-top: -110px;
    background-color: white;
    text-align: center;
}

.esprit-barriere-history-title {
    font-family: "lucien-book";
    font-size: 1.9em;
    color: $color-golden;
    display: block;
    margin: 60px 0 100px 0;
}

.esprit-barriere-history-portrait {
    position: relative;
    overflow: hidden;

    &.portrait-2 {
        margin-top: 100px;
    }

    &.portrait-3 {
        text-align: left;
        margin-top: 40px;
        margin-bottom: 40px;

        .esprit-barriere-history-timeline {
            margin-bottom: 40px;
        }
        .esprit-barriere-history-timeline-event
        {
          height: 150px;
        }
    }
}

.esprit-barriere-portrait-img {
    width: 100%;
}

.esprit-barriere-history-portrait-content {
    margin-top: 40px;
}

.esprit-barriere-history-portrait-content {
    text-align: left;
    p {
        margin-bottom: 30px;
    }
}

.esprit-barriere-history-portrait-col1 {
    @include span-columns(6);
    img {
        width: 100%;
    }
}

.esprit-barriere-history-portrait-col2 {
    @include span-columns(6);
    img {
        width: 100%;
    }
}

///////////////////////////////////////////////////////////////
// Device: Tablet
///////////////////////////////////////////////////////////////

@include tablet-landscape-and-below {
    .esprit-barriere-wrapper {
        strong {
            font-size: 2.2em;
        }
        ul {
            li {
                font-size: 1em;
                line-height: 1.4em;
            }
        }
    }

    .portrait-2 {
        margin-top: 40px !important;
    }
    .portrait-3 {
        margin-top: 30px;

        .esprit-barriere-history-timeline-event
        {
          height: auto !important;
        }
        .esprit-barriere-history-portrait-content
        {
            margin-top: 20px;
        }
        .esprit-barriere-history-portrait-col1
        {
            margin-bottom: 40px;
        }
    }
    .portrait-4 {
        margin-top: 60px;
    }

    .esprit-barriere-history-portrait-col1 {
        @include span-columns(10);
    }
    .esprit-barriere-history-portrait-col1 {
        width: 100%;
    }
    .esprit-barriere-history-portrait-col2 {
        @include span-columns(10);
        width: 100%;
    }
    .portrait-2 {
        .esprit-barriere-history-portrait-col1 {
            img {
                margin-bottom: 20px;
            }
        }
    }

    .esprit-barriere-history-portrait-content-bottom-to-top {
        display: flex;
        flex-direction: column-reverse;
        .esprit-barriere-history-portrait-col2 {
            margin-bottom: 20px;
        }
    }

    .esprit-barriere-header-title {
        padding-top: 160px;
    }

    .esprit-barriere-header-title {
        font-size: 3em;
    }
    .esprit-barriere-header-subtitle {
        font-size: 1.2em;
    }

    .esprit-barriere-history-timeline-separator
    {
        flex-grow: 0.1;
    }
}

@include tablet-portrait-and-below {
    .esprit-barriere-wrapper {
        strong {
            font-size: 2em;
        }
        ul {
            li {
                font-size: 0.8em;
                line-height: 1.2em;
            }
        }
    }

    .esprit-barriere-history-title {
        margin: 60px 0 40px 0;
    }

    .esprit-barriere-history-portrait-content {
        p {
            margin: 0;
        }
    }
}

///////////////////////////////////////////////////////////////
// Device: Mobile
///////////////////////////////////////////////////////////////

@include mobile-landscape-and-below {
    .esprit-barriere-header-title {
        padding-top: 110px;
    }
    .esprit-barriere-wrapper {
        ul {
            li {
                font-size: 1.10em;
                line-height: 1.4em;
            }
        }
    }

    .esprit-barriere-header-title {
        font-size: 2.7em;
    }
    .esprit-barriere-header-subtitle {
        font-size: 1.2em;
    }
    .esprit-barriere-header-title,
    .esprit-barriere-header-subtitle {
        padding-right: 10%;
        padding-left: 10%;
    }
    .esprit-barriere-history-timeline
    {
      display: block;
    }
    .esprit-barriere-history-timeline-event-title
    {
      font-size: 1.2rem;
    }
    .esprit-barriere-history-timeline-event-description
    {
      font-size: 1rem;

      br
      {
        display: none;
      }
    }
    .esprit-barriere-history-timeline-separator
    {
      display: none;
    }
}
