body {
    font-family: 'HelveticaNeue-Light', 'Helvetica Neue Light', 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; 
    font-weight: 300;
    color: #704a21;
    margin: 0;
}

body.main .header {
    min-height: 100vh;
    background: 
        linear-gradient(
          rgba(0, 0, 0, 0.5), 
          rgba(0, 0, 0, 0.5)
        ),
        url('../img/foyer.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: scroll;   
    display: flex;
    flex-direction: column;
}

.nav {
    display: flex;
    justify-content: space-between;
    padding: 1em 4em;
}

.nav ul {
    list-style-type: none;
}

.nav li a {
  display: block;
  color: white;
  text-wrap: nowrap;
  text-align: right;
  padding: 0.5em;
  text-decoration: none;
  text-underline-offset: 0.5em;
}

.nav li a:hover, .nav li.selected a {
  text-decoration: underline;
}

.banner {
    margin: auto;
    color: white;
}

.banner p {
    font-size: 1.5em;
    margin-top: 0;
    text-align: center;
}

img.logo {
    width: 10em;
}

img.main {
    width: 20em;
}

.row {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
}

.col {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1em;
}

img {
    width: 100%;
    object-fit: contain;
}

hr {
    width: 10em;
    margin-left: 0;
    border-color: black;
    border-width: 2px 0 0 0;
}

h1 {
    font-size: 2.5em;
    margin-top: 0;
}

p {
    letter-spacing: 0.0625em;
    line-height: 1.5em;
}

body.main .footer .content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1em;
  background-color: white;
  width: 100%;
}

.map {
  margin-left: -1em;
  width: min(100%, 425px);
  height: 350px;
}

body.lifestyle .header {
    min-height: 50vh;
    background: 
        linear-gradient(
          rgba(0, 0, 0, 0.5), 
          rgba(0, 0, 0, 0.5)
        ),
        url('../img/foyer.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: scroll;   
    display: flex;
    flex-direction: column;
}

body.lifestyle .header .banner p {
    font-size: 3em;
    font-weight: bold;
}

/*** Bigger screens ***************************************/
@media (min-width: 1025px) {

  body.main .header {
      min-height: 100vh;
      background: 
          linear-gradient(
            rgba(0, 0, 0, 0.5), 
            rgba(0, 0, 0, 0.5)
          ),
          url('../img/foyer.jpg');
      background-repeat: no-repeat;
      background-size: cover;
      background-attachment: scroll;   
      display: flex;
      flex-direction: column;
  }

  .nav li {
    float: left;
  }

  .nav li a {
    text-align: center;
    padding: 1em;
    text-underline-offset: 1em;
  }

  .row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
  }

  .row:nth-child(even) {
      background-color: #f0f0f0;
      flex-direction: row-reverse;
  }
  
  .col {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 4em;
  }

  body.main .footer .content {
    flex-direction: row;
    padding: 2em;
    width: inherit;
  }

  .map {
    margin-left: 0;
  }



  body.main .footer, .lifestyle .footer {
      /* background: 
          linear-gradient(
            rgba(0, 0, 0, 0.5), 
            rgba(0, 0, 0, 0.5)
          ),
          url('../img/foyer.jpg'); */
      background-color: #f0f0f0;
      background-repeat: no-repeat;
      background-size: cover;
      background-attachment: fixed;   
      display: flex;
      flex-direction: column;
      object-fit: contain;
      padding: 4em 2em;
  }

  body.main .footer .content {
      display: flex;
      justify-content: space-between;
      padding: 2em 2em;
      background-color: white;
  }

  body.lifestyle .footer .content {
      /* padding: 2em 2em; */
      background-color: #f0f0f0;
  }

  body.lifestyle .header {
      min-height: 50vh;
      background: 
          linear-gradient(
            rgba(0, 0, 0, 0.5), 
            rgba(0, 0, 0, 0.5)
          ),
          url('../img/foyer.jpg');
      background-repeat: no-repeat;
      background-size: cover;
      background-attachment: scroll;   
      display: flex;
      flex-direction: column;
  }

  body.lifestyle .header .banner p {
      font-size: 3em;
      font-weight: bold;
  }

  body.lifestyle .content .row {
      height: 35em;
  }

  body.lifestyle .content .col {
      padding: 0;
  }

  body.lifestyle .content .col-inner {
    margin: 4em;
  }

  body.lifestyle .content .row {
      background-color: inherit;
  }

  body.lifestyle .content img {
      object-fit: cover;
      object-position: center;
      height: 100%;
      width: 100%;
  }

  :root {
    --slide-count: 46; /* number of slides in the carousel */
    --slide-width: 500px; /* width of a single slide */
    --carousel-edge-pos:
        calc( 0% - ((var(--slide-width) * var(--slide-count)) - 100%) ); /* formula to calulate the offset value */
    --carousel-scroll-time:
        calc( (var(--slide-count) * 10s) );
  }

  body.lifestyle .footer .content {
    overflow: hidden;
  }

  body.lifestyle .carousel  {
    display: flex;
    align-items: stretch;
    gap: 3px;

    -webkit-overflow-scrolling: touch;
    animation: scroll var(--carousel-scroll-time) linear alternate infinite;
    animation-play-state: running;
  }

  body.lifestyle .carousel:hover {
    animation-play-state: paused;
  }

  body.lifestyle .carousel img {
    display: inline-block;
    margin: 0;
    padding: 0;
    width: var(--slide-width);
    height: 100%;
  }

  @keyframes scroll {
    from {
      transform: translateX(0);
    }
    to {
      transform: translateX(var(--carousel-edge-pos));
    }
  }
}

