/* When this reaches the top of viewport, .fgm-entry-main will become fixed. */
.fgm-entry {
  position: relative;
  z-index: 1;
}

/* --- Triggers --- */

/* Triggers are used as scene activators. */
/* They also control the total height of the whole entry section. */
.fgm-entry-triggers {
  position: relative;
  z-index: 2;
}

.fgm-entry-triggers span {
  display: block;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.fgm-entry-triggers .entry-trigger-5 {
  display: none;
}

/* Each scene lasts for 2 full viewport height scrolls. */
html.js .fgm-entry-triggers span {
  height: 200vh;
}

html.js .fgm-entry-triggers span.entry-trigger-1 {
  height: 100vh;
}

@media all and (max-width: 800px) {
  html.js .fgm-entry-triggers span {
    height: 130vh;
  }

  html.js .fgm-entry-triggers span.entry-trigger-1 {
    height: 65vh;
  }
}

@media all and (max-width: 450px) {
  html.js .fgm-entry-triggers span {
    height: 130vh;
  }

  html.js .fgm-entry-triggers span.entry-trigger-1 {
    height: 65vh;
  }
}

/* And this last dummy trigger which is there to keep 4th scene on screen for */
/* extra 1 viewport height which would normally be the moment when the */
/* next scene is sliding in, covering scene 4. */
html.js .fgm-entry-triggers .entry-trigger-5 {
  display: block;
  height: 100vh;
}

/* --- Scenes And Controls Wrapper --- */

.fgm-entry-main {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
}

/* This will be changed to absolute position when js is on. */
/* This becomes fixed position once .fgm-entry reaches the top of viewport. */
.fgm-entry-stick {
  position: relative;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

html.js .fgm-entry-stick {
  position: absolute;
  height: 100vh;
}

/* --- Scenes --- */

.fgm-entry-scenes {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

/* This will be changed to absolute position when js is on. */
/* Each scene is absolute positioned so we can slide it etc. */
.fgm-entry-scene {
  position: relative;
  width: 100%;
  /* 1/4 of 100% because there are 6 scenes. */
  height: 25%;
  overflow: hidden;
  text-align: center;
}

html.js .fgm-entry-scene {
  position: absolute;
  height: 100%;
  left: 0;
  top: 0;
}

.fgm-entry-content {
  display: table;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 5;
}

.fgm-entry-content-inner {
  display: table-cell;
  height: 100%;
  vertical-align: middle;
  padding: 0 30px;
}

.fgm-entry-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: center center no-repeat;
  background-size: cover;
  z-index: 3;
  overflow: hidden;
}

.fgm-entry .fgm-credit {
  right: 10px;
  bottom: 10px;
  z-index: 5;
}

.fgm-entry-tint {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #060a1b;
  z-index: 4;
  overflow: hidden;
  opacity: 0.4;
}

/* --- Animation Styles --- */

/* This is responsible for placing current scene in viewport. */
html.js .fgm-entry-scene {
  left: 100%;
}

html.js .fgm-entry-scene.fgm-animated,
html.js .fgm-entry-scene.scene-1 {
  left: 0;
}

/* --- Scenes Backgrounds And Z-indexes --- */

.fgm-entry-scene.scene-1 {
  z-index: 1;
  background: #060a1b;
}

.fgm-entry-scene.scene-2 {
  z-index: 2;
}

.fgm-entry-scene.scene-3 {
  z-index: 3;
}

.fgm-entry-scene.scene-4 {
  z-index: 4;
}

.scene-1 .fgm-entry-bg {
  background-image: url(images/entry-1-m.jpg);
}

.scene-2 .fgm-entry-bg {
  background-image: url(images/entry-2-m.jpg);
}

.scene-3 .fgm-entry-bg {
  background-image: url(images/entry-3-m.jpg);
}

.scene-4 .fgm-entry-bg {
  background-image: url(images/entry-4-m.jpg);
}

@media all and (min-width: 800px) {
  .scene-1 .fgm-entry-bg {
    background-image: url(images/entry-1.jpg);
  }

  .scene-2 .fgm-entry-bg {
    background-image: url(images/entry-2.jpg);
  }

  .scene-3 .fgm-entry-bg {
    background-image: url(images/entry-3.jpg);
  }

  .scene-4 .fgm-entry-bg {
    background-image: url(images/entry-4.jpg);
  }
}

/* --- Scenes Content --- */

h2.fgm-entry-title {
  margin: 0 auto 10px auto;
  max-width: 786px;
  text-align: center;
  color: #fff;
  font-size: 40px;
  line-height: 52px;
  text-align: inherit;
}

p.fgm-entry-copy {
  margin: 0 auto;
  max-width: 786px;
  text-align: center;
  color: #fff;
  text-align: inherit;
  font-size: 22px;
  line-height: 28px;
  letter-spacing: 1px;
}

.fgm-entry-downlabel {
  width: 280px;
  position: absolute;
  bottom: 65px;
  left: 50%;
  margin-left: -140px;
  z-index: 4;
  font-size: 14px;
  line-height: 14px;
  text-align: center;
  color: #fff;
}

.fgm-entry-downarrow {
  width: 33px;
  height: 30px;
  background: url(images/arrow.svg) 0 0 no-repeat;
  background-size: 33px 30px;
  position: absolute;
  bottom: 30px;
  left: 50%;
  margin-left: -16px;
  z-index: 4;
}

@media all and (min-width: 768px) {
  h2.fgm-entry-title {
    margin: 0 0 20px 0;
    font-size: 60px;
    line-height: 72px;
  }

  p.fgm-entry-copy {
    font-size: 28px;
    line-height: 36px;
  }

  .fgm-entry-scene.scene-1 {
    text-align: left;
  }

  .fgm-entry-scene.scene-1 p.fgm-entry-copy {
    margin: 0;
  }

  .fgm-entry-downlabel {
    bottom: 70px;
    font-size: 16px;
    line-height: 16px;
  }

  .fgm-entry-downarrow {
    width: 39px;
    height: 36px;
    background-size: 39px 36px;
    margin-left: -19px;
    bottom: 24px;
  }
}

@media all and (min-width: 1000px) {
  h2.fgm-entry-title {
    margin-bottom: 30px;
    font-size: 80px;
    line-height: 92px;
  }

  p.fgm-entry-copy {
    font-size: 34px;
    line-height: 46px;
  }

  .scene-1 .fgm-entry-content-inner {
    padding-left: 110px;
  }
}
