
* {
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: Times, sans-serif;
  font-size: 16px;
  font-size: 1em;
  line-height: 1.4;
}

html {
  font-family: sans-serif;
  font-size: 62.5%;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

a {
  color: #000;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

body {
  background: #F9F9F9;
}

sup {
  font-size: 65%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
  top: -0.5em;
}

/*
 * ## Header ##
 */

.site-header {
  width: 100%;
  height: 8.6em;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: start;
  -webkit-justify-content: flex-start;
     -moz-box-pack: start;
      -ms-flex-pack: start;
          justify-content: flex-start;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  background: #FFF;
}

.site-title {
  padding: 0 3em;
  background: url(../img/JAG-Logo.svg) 3em center no-repeat;
  -webkit-background-size: 9em auto;
     -moz-background-size: 9em auto;
          background-size: 9em auto;
}

.site-title h1 {
  opacity: 0;
  font-size: 4.5em;
  line-height: 1;
  margin: 0;
}

.site-menu li,
.site-info li {
  font-family: helvetica, sans-serif;
  font-size: 0.8em;
  line-height: 1.6;
  text-transform: uppercase;
  list-style-type: none;
}

.site-info {
  margin-left: auto;
  text-align: right;
  padding: 0 3em;
}

.site-info li:nth-child(n+2){
  display: none;
}

.site-info span {
  text-decoration: underline;
}


/* New menu */

.site-menu {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

.site-menu li {
  margin: 0 1em;
  white-space: nowrap;
}

.site-menu li,
.site-info li {
  font-size: 1em;
}

.site-info {
  margin-left: 0;
}

.site-info li {
  white-space: nowrap;
}


/*
 * ## Home ##
 */

.main-home {
  position: relative;
  width: 100%;
  height: 100%;
}

.horizontal-scroll-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.horizontal-scroll-wrapper .flickity-viewport {
  overflow: auto;
}
.horizontal-scroll-wrapper .flickity-viewport {
  scrollbar-width: thin; /* Pour Firefox */
  scrollbar-color: transparent transparent; /* Pour Firefox */
}
.horizontal-scroll-wrapper .flickity-viewport::-webkit-scrollbar {
  width: 0; /* Pour Chrome, Safari, et Edge */
  display: none;
}

.horizontal-scroll-wrapper .block-image {
  height: 100%;
  padding-right: 3em;
}

.horizontal-scroll-wrapper .block-image:last-child {
  /*padding: 6em; even*/
  padding-right: 0;
}

.horizontal-scroll-wrapper img {
  display: block;
  height: 100%;
}

/*.main-home .flickity-prev-next-button,*/
.main-home .flickity-page-dots {
  display: none;
}


/*
 * ## Content ##
 */

.site-content {
  position: absolute;
  top: 8.6em;
  bottom: 0;
  width: 100%;
  height: auto;
  /*height: calc(100% - 8.6em);*/
  padding: 3em;
}

.content-area {
  position: relative;
  width: 100%;
  height: 100%;
}

.main {
  position: relative;
  width: 100%;
  height: 100%;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
}

.main > div {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
     -moz-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
}


/*
 * ## Block ##
 */

.block-left {
  position: relative;
  overflow: auto;
}

.entry-content {
  font-family: Times, serif;
  line-height: 1.3;
  width: 40em;
  max-width: 100%;
  padding-right: 3em;
}

.entry-content h1 {
  font-size: 2em;
  font-weight: normal;
  margin: 0 0 0.75em 0;
}

.entry-content h2 {
  font-size: 1.4em;
  font-weight: normal;
  text-transform: uppercase;
  margin: 0;
}

.entry-content h2 + p {
  margin-top: 0;
}

.entry-content p {
  font-size: 1.4em;
}

.entry-content li {
  font-size: 1.4em;
  list-style-type: none;
}

.entry-content p a {
  text-decoration: none;
  border-bottom: 1px solid #000;
}

.entry-image {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: right;
}

.entry-image img {
  width: auto;
  height: auto;
  max-height: 100%;
  max-width: 100%;
}

.menu-nav li {
  color: #aaa;
}

.menu-nav li a {
  color: #000;
  text-decoration: none;
}

.menu-nav li a:hover {
  color: #000;
  text-decoration: underline;
}


/*
 * ## Carousel ##
 */

.carousel-cell {
  position: relative;
  width: 100%;
  height: 100%;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: end;
  -webkit-justify-content: flex-end;
     -moz-box-pack: end;
      -ms-flex-pack: end;
          justify-content: flex-end;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  cursor: pointer;
}

.carousel-cell img {
  width: auto;
  height: auto;
  max-height: 100%;
  max-width: 100%;
}

.carousel-cell span {
  display: none;
}


/*
 * ## Footer ##
 */

.footer {
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 40em;
  max-width: 100%;
  padding-right: 3em;
  background: #F9F9F9;
}

.footer p {
  font-family: Times, serif;
  font-size: 1.2em;
  line-height: 1.2;
  text-align: justify;
  /*-webkit-hyphens: auto;
  -moz-hyphens: auto;
   -ms-hyphens: auto;
       hyphens: auto;*/
}

.footer .caption {
  margin: 1em 0 0 0;
}

.footer .caption p {
  margin: 0;
}

.footer .nav-dot {
  font-size: 1.2em;
  margin-left: -0.25em;
}

.footer.alone p {
  margin-bottom: 0;
}


/*
 * ## @Media ##
 */

@-ms-viewport {
  width: device-width;
}

@-o-viewport {
  width: device-width;
}

@viewport {
  width: device-width;
}


@media screen and (min-width: 1440px) {
  html, body {
    font-size: 0.9em;
  }
}

@media screen and (min-width: 600px) {
  .site-menu {
    padding: 0 1.5em;
  }
}

@media screen and (max-width: 600px) {
  html, body {
    font-size: 0.82em;
  }
  .site-header {
    height: 12em; /* new */
    padding: 2em 0;
    -webkit-box-align: start;
    -webkit-align-items: flex-start;
       -moz-box-align: start;
        -ms-flex-align: start;
            align-items: flex-start;
  }
  .site-title,
  .site-info {
    padding: 0 1.5em;
  }
  .site-title {
    background-position: 1.5em center;
  }
  .site-menu,
  .site-info {
    margin-top: 0.25em;
  }
  .site-content {
    top: 12em; /* new */
    height: auto;
    padding: 3em 1.5em;
  }
  .main {
    display: block;
  }
  .horizontal-scroll-wrapper .block-image {
    display: block;
    width: 100%;
    height: auto;
    padding: 0!important;
    cursor: pointer;
  }
  .horizontal-scroll-wrapper img {
    display: block;
    width: 100%;
    height: auto;
    max-height: auto;
  }
  .block-left {
    overflow: hidden;
    margin-bottom: 1.5em;
  }
  .entry-content {
    width: 100%;
    padding-right: 0;
  }
  .entry-image {
    text-align: left;
    padding-right: 0;
  }
  .entry-image img {
    width: 100%;
  }
  .block-right {
    height: 130vw;
  }
  .carousel-cell img {
    height: auto;
    width: 100%;
  }
  .main-home .flickity-page-dots {
    display: block;
    padding: 0.75em 0 2em 0;
    margin-left: -0.25em;
  }
  .main-home .flickity-page-dots .dot {
    width: 0.56em;
    height: 0.56em;
  }
  .footer {
    position: relative;
    width: 100%!important;
    padding-right: 0;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
       -moz-box-orient: vertical;
       -moz-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
  }
  .footer.alone {
    padding-bottom: 1.25em;
  }
  .footer .caption {
    -webkit-box-ordinal-group: -1;
    -webkit-order: -2;
       -moz-box-ordinal-group: -1;
        -ms-flex-order: -2;
            order: -2;
  }
  .footer .nav-dot {
    -webkit-box-ordinal-group: 0;
    -webkit-order: -1;
       -moz-box-ordinal-group: 0;
        -ms-flex-order: -1;
            order: -1;
  }
}
