.new-frontpage .header{
  width: 100vw;
}

.front .scroll-story-container{
  height: calc(100vh - 90px);
  /*height: 100vh;*/
  /*padding-bottom: 90px;*/
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  padding-bottom: 0;
  padding-top: 90px;
}

.front .scroll-story-wrapper{
  height: 100%;
  position: relative;
}

.front .scroll-story-wrapper .scroll-story-images{
  height: 100%;
  position: relative;
  /*  position: absolute;
    left: calc((100vw - 1120px) / 2);
    top: 100vh;*/
}

.front .scroll-story-wrapper .scroll-story-images.visible{
  position: absolute;
  left: calc((100vw - 1120px) / 2);
  /*top: -45px;*/
}

/*.front .scroll-story-container {*/
/*   top: 0;
   transition: top 1s ease-in-out;*/
/*  position: relative;
  top: 0;
}*/

.front .scroll-story-container.scrolling{
  /*  position: sticky;
    top: 90px;*/
  position: relative;
  /*top: 90px;*/
  /*top:45px;*/
}

.front .scroll-story-container .scroll-story-img{
  width: 300px;
  height: 300px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;

  position: absolute;
  z-index: 1;
  transition: all 5s ease-in-out, opacity 2s ease-in-out;
  -webkit-transition: all 5s ease-in-out, opacity 2s ease-in-out;
  -moz-transition: all 5s ease-in-out, opacity 2s ease-in-out;
  -o-transition: all 5s ease-in-out, opacity 2s ease-in-out;
  /*top: 0;*/
  opacity:0;
  top: 110%;
  width: 30vh;
  height: 30vh;
}

.front .scroll-story-wrapper .scroll-story-images.visible .sentence{
  position: absolute;
  top: 50%;
}
.front .scroll-story-wrapper .scroll-story-images .scroll-story-g-background[data-index='2']:not(.g-hidden) ~ .scroll-story-g-background{
  opacity:0 !important;
}
@media (min-height: 768px){
  .front .scroll-story-container .scroll-story-images.visible .scroll-story-img.last .sentence p{
    top: -16%;
  }
}
@media (max-height: 767px){
  .front .scroll-story-container .scroll-story-images.visible .scroll-story-img.last .sentence p{
    top: -16%;
  }
  /* .front .scroll-story-container .scroll-story-images.visible .scroll-story-img.last .sentence p{
      top: -9%;
    }*/

  /* .front .scroll-story-container .scroll-story-images.visible .scroll-story-img.last .sentence p{
      top: 40%;
    }*/
  .front .scroll-story-wrapper .scroll-story-images {
    height: 108%;
  }
}
@media (max-height: 550px){

  .front .scroll-story-wrapper .scroll-story-images {
    height: 118%;
  }
}
@media (max-height: 450px){

  .front .scroll-story-wrapper .scroll-story-images {
    height: 128%;
  }
}
@media (max-height: 350px){

  .front .scroll-story-wrapper .scroll-story-images {
    height: 138%;
  }
}
@media (max-height: 250px){

  .front .scroll-story-wrapper .scroll-story-images {
    height: 148%;
  }
}
.front .scroll-story-container .scroll-story-images.visible .scroll-story-img.last .sentence p{
  text-align: center;
  display: block;
  position: relative;
}
.front .scroll-story-wrapper .scroll-story-images.visible .scroll-story-img.last .sentence{
  right: -100% !important;
  width:98vw;
  left: -50vw !important;
  text-align: center;
  -webkit-box-align: baseline;
  -ms-flex-align: baseline;
  align-items: baseline;
}
.front .scroll-story-wrapper .scroll-story-images.visible .scroll-story-img.odd .sentence{
  right: 100%;
}

.front .scroll-story-wrapper .scroll-story-images.visible .scroll-story-img.even .sentence{
  left: 100%;
  text-align: right;
}


.front .scroll-story-wrapper .scroll-story-images.visible .sentence p{
  font-size: 32px;
  width: 250px;
  top: 50px;
  font-family: "Fedra Serif B Pro Book";
  width: 450px;
}

.front .scroll-story-wrapper .scroll-story-images.visible .scroll-story-img{
  /*top: 15%;*/
  -webkit-animation-name: fadeinOut;
  animation-name: fadeinOut;
  -moz-animation-name: fadeinOut;
  -ms-animation-name: fadeinOut;
  -o-animation-name: fadeinOut;
  -webkit-animation-duration: 5s;
  animation-duration: 5s;
  -moz-animation-duration: 5s;
  -ms-animation-duration: 5s;
  -o-animation-duration: 5s;
  -webkit-animation-fill-mode: forwards;
  animation-fill-mode: forwards;
  -moz-animation-fill-mode: forwards;
  -ms-animation-fill-mode: forwards;
  -o-animation-fill-mode: forwards;
  /*top: -50%;*/
}

.front .scroll-story-wrapper .scroll-story-images.visible .scroll-story-img.last{
  /*top: 50% !important;*/
  -webkit-animation-name: fadeinOutin !important;
  animation-name: fadeinOutin !important;
  -moz-animation-name: fadeinOutin !important;
  -ms-animation-name: fadeinOutin !important;
  -o-animation-name: fadeinOutin !important;
  -webkit-animation-duration: 4s !important;
  animation-duration: 4s !important;
  -moz-animation-duration: 4s !important;
  -ms-animation-duration: 4s !important;
  -o-animation-duration: 4s !important;
  -webkit-animation-fill-mode: forwards;
  animation-fill-mode: forwards;
  -moz-animation-fill-mode: forwards;
  -ms-animation-fill-mode: forwards;
  -o-animation-fill-mode: forwards;
  /*  transition: all 2.5s ease-in-out,opacity 2s ease-in-out;
    -webkit-transition: all 2.5s ease-in-out,opacity 2s ease-in-out;
    -moz-transition: all 2.5s ease-in-out,opacity 2s ease-in-out;
    transition-delay: 0s, 0s;*/
  /*-o-transition: all 2.5s ease-in-out,opacity 2s ease-in-out*/
}

/*font-size: 32px;*/
@-webkit-keyframes fadeinOut{
  0% {
    -webkit-transform: translatey(0);
    -ms-transform: translatey(0);
    -moz-transform: translatey(0);
    -o-transform: translatey(0);
    transform: translatey(0);
    opacity: 0;
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    -webkit-transform: translatey(-110vh);
    -ms-transform: translatey(-110vh);
    -moz-transform: translatey(-110vh);
    -o-transform: translatey(-110vh);
    transform: translatey(-110vh);
  }
}
@-moz-keyframes fadeinOut{
  0% {
    -webkit-transform: translatey(0);
    -ms-transform: translatey(0);
    -moz-transform: translatey(0);
    -o-transform: translatey(0);
    transform: translatey(0);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    -webkit-transform: translatey(-110vh);
    -ms-transform: translatey(-110vh);
    -moz-transform: translatey(-110vh);
    -o-transform: translatey(-110vh);
    transform: translatey(-110vh);
  }
}
@-o-keyframes fadeinOut{
  0% {
    -webkit-transform: translatey(0);
    -ms-transform: translatey(0);
    -moz-transform: translatey(0);
    -o-transform: translatey(0);
    transform: translatey(0);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    -webkit-transform: translatey(-110vh);
    -ms-transform: translatey(-110vh);
    -moz-transform: translatey(-110vh);
    -o-transform: translatey(-110vh);
    transform: translatey(-110vh);
  }
}

@keyframes fadeinOut{
  0% {
    -webkit-transform: translatey(0);
    -ms-transform: translatey(0);
    -moz-transform: translatey(0);
    -o-transform: translatey(0);
    transform: translatey(0);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    -webkit-transform: translatey(-110vh);
    -ms-transform: translatey(-110vh);
    -moz-transform: translatey(-110vh);
    -o-transform: translatey(-110vh);
    transform: translatey(-110vh);
  }
}

@-webkit-keyframes fadeinOutin{
  0% {
    -webkit-transform: translatey(0);
    -ms-transform: translatey(0);
    -moz-transform: translatey(0);
    -o-transform: translatey(0);
    transform: translatey(0);
    opacity: 0;
  }
  100% {
    -webkit-transform: translatey(-50vh);
    -ms-transform: translatey(-50vh);
    -moz-transform: translatey(-50vh);
    -o-transform: translatey(-50vh);
    transform: translatey(-50vh);
    opacity: 1;
  }
}
@-moz-keyframes fadeinOutin{
  0% {
    -webkit-transform: translatey(0);
    -ms-transform: translatey(0);
    -moz-transform: translatey(0);
    -o-transform: translatey(0);
    transform: translatey(0);
    opacity: 0;
  }
  100% {
    -webkit-transform: translatey(-50vh);
    -ms-transform: translatey(-50vh);
    -moz-transform: translatey(-50vh);
    -o-transform: translatey(-50vh);
    transform: translatey(-50vh);
    opacity: 1;
  }
}
@-o-keyframes fadeinOutin{
  0% {
    -webkit-transform: translatey(0);
    -ms-transform: translatey(0);
    -moz-transform: translatey(0);
    -o-transform: translatey(0);
    transform: translatey(0);
    opacity: 0;
  }
  100% {
    -webkit-transform: translatey(-50vh);
    -ms-transform: translatey(-50vh);
    -moz-transform: translatey(-50vh);
    -o-transform: translatey(-50vh);
    transform: translatey(-50vh);
    opacity: 1;
  }
}

@keyframes fadeinOutin{
  0% {
    -webkit-transform: translatey(0);
    -ms-transform: translatey(0);
    -moz-transform: translatey(0);
    -o-transform: translatey(0);
    transform: translatey(0);
    opacity: 0;
  }
  100% {
    -webkit-transform: translatey(-60vh);
    -ms-transform: translatey(-50vh);
    -moz-transform: translatey(-50vh);
    -o-transform: translatey(-50vh);
    transform: translatey(-50vh);
    opacity: 1;
  }
}

.front .scroll-story-container .scroll-story-img.even{
  right: 50%;
}

.front .scroll-story-container .scroll-story-img.odd{
  left: 50%;
}

.scroll-story-g-container .scroll-story-g-background{
  position: absolute;
}

.g-hidden{
  opacity: 0 !important;
  position: absolute;
}

.front .scroll-story-container .scroll-story-img[data-index="2"]{
  -webkit-transition-delay: 1.5s;
  -o-transition-delay: 1.5s;
  transition-delay: 1.5s;
  -moz-transition-delay: 1.5s;
  -ms-transition-delay: 1.5s;

  -webkit-animation-delay: 1.5s;
  animation-delay: 1.5s;
  -o-animation-delay: 1.5s;
  -ms-animation-delay: 1.5s;
  -moz-animation-delay: 1.5s;
}

.front .scroll-story-container .scroll-story-img[data-index="3"]{
  -webkit-transition-delay: 3s;
  -o-transition-delay: 3s;
  transition-delay: 3s;
  -ms-transition-delay: 3s;
  -moz-transition-delay: 3s;

  -webkit-animation-delay: 3s;
  animation-delay: 3s;
  -moz-animation-delay: 3s;
  -ms-animation-delay: 3s;
  -o-animation-delay: 3s;
}

.front .scroll-story-container .scroll-story-img[data-index="4"]{
  -webkit-transition-delay: 4.5s;
  -o-transition-delay: 4.5s;
  transition-delay: 4.5s;
  -ms-transition-delay: 4.5s;
  -moz-transition-delay: 4.5s;

  -webkit-animation-delay: 4.5s;
  animation-delay: 4.5s;
  -o-animation-delay: 4.5s;
  -ms-animation-delay: 4.5s;
  -moz-animation-delay: 4.5s;
}

.front .scroll-story-container .scroll-story-img[data-index="5"]{
  -webkit-transition-delay: 7s;
  -o-transition-delay: 7s;
  transition-delay: 7s;
  -ms-transition-delay: 7s;
  -moz-transition-delay: 7s;

  -webkit-animation-delay: 7s;
  animation-delay: 7s;
  -moz-animation-delay: 7s;
  -ms-animation-delay: 7s;
  -o-animation-delay: 7s;
}


/*.front .scroll-story-container .scroll-story-images.visible .scroll-story-img[data-index="2"].last{
  transition-delay: 4s;
  animation-delay: 4s;
}

.front .scroll-story-container .scroll-story-images.visible .scroll-story-img[data-index="3"].last{
  transition-delay: 6s;
  animation-delay: 6s;
}

.front .scroll-story-container .scroll-story-images.visible .scroll-story-img[data-index="4"].last{
  transition-delay: 6s;
  animation-delay: 6s;
}

.front .scroll-story-container .scroll-story-images.visible .scroll-story-img[data-index="5"].last{
  transition-delay: 7.5s;
  animation-delay: 7.5s;
}*/

.front .scroll-story-wrapper .scroll-story-images.visible .last .sentence p{
  -webkit-animation-name: sentencefadein;
  animation-name: sentencefadein;
  -webkit-animation-duration: 2s;
  animation-duration: 2s;
  -o-animation-duration: 2s;
  -ms-animation-duration: 2s;
  -moz-animation-duration: 2s;
  -webkit-animation-fill-mode: forwards;
  animation-fill-mode: forwards;
  padding-bottom: 0 !important;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}
.front .scroll-story-wrapper .scroll-story-images.visible :not(.last) .sentence p{
  -webkit-animation-name: sentencefadein;
  animation-name: sentencefadein;
  -webkit-animation-duration: 2s;
  animation-duration: 2s;
  -webkit-animation-fill-mode: forwards;
  animation-fill-mode: forwards;
  -webkit-animation-direction: alternate;
  animation-direction: alternate;
  -webkit-animation-iteration-count: 2;
  animation-iteration-count: 2;
}

.front .scroll-story-container .scroll-story-images.visible .scroll-story-img[data-index="2"] .sentence p{
  -webkit-animation-delay: 1.5s;
  animation-delay: 1.5s;
  -moz-animation-delay: 1.5s;
  -ms-animation-delay: 1.5s;
  -o-animation-delay: 1.5s;
}

.front .scroll-story-container .scroll-story-images.visible .scroll-story-img[data-index="3"] .sentence p{
  -webkit-animation-delay: 3s;
  animation-delay: 3s;
  -o-animation-delay: 3s;
  -ms-animation-delay: 3s;
  -moz-animation-delay: 3s;
}

.front .scroll-story-container .scroll-story-images.visible .scroll-story-img[data-index="4"] .sentence p{
  -webkit-animation-delay: 4.5s;
  animation-delay: 4.5s;
  -moz-animation-delay: 4.5s;
  -ms-animation-delay: 4.5s;
  -o-animation-delay: 4.5s;
}

.front .scroll-story-container .scroll-story-images.visible .scroll-story-img[data-index="5"] .sentence p{
  -webkit-animation-delay: 7s;
  animation-delay: 7s;
}

.front .scroll-story-container .scroll-story-images.visible .scroll-story-img .sentence p{
  text-shadow: 0px 1px 2px #fff;
}
.front .scroll-story-container .scroll-story-images.visible .scroll-story-img.last .sentence:not(.sentence-2) p{
  -webkit-animation-direction: normal;
  animation-direction: normal;
  -o-animation-direction: normal;
  -ms-animation-direction: normal;
  -moz-animation-direction: normal;
  -webkit-animation-iteration-count: 1;
  animation-iteration-count: 1;
  -o-animation-iteration-count: 1;
  -ms-animation-iteration-count: 1;
  -moz-animation-iteration-count: 1;
  -webkit-animation-duration: 2s;
  animation-duration: 2s;
  -o-animation-duration: 2s;
  -ms-animation-duration: 2s;
  -moz-animation-duration: 2s;
  -webkit-animation-delay: 2s;
  animation-delay: 2s;
  -o-animation-delay: 2s;
  -ms-animation-delay: 2s;
  -moz-animation-delay: 2s;
  width: 100%;
  /*text-shadow: 0px 1px 2px #fff;*/
  /*font-size: 45px;*/
}

.front .scroll-story-container .scroll-story-images.visible .scroll-story-img.last .sentence {
  position: absolute;
  /*top: -85px;*/
  top: -25vh;
  height: 50vh;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}
.front .scroll-story-container .scroll-story-images.visible .scroll-story-img.last .sentence{
  /*  left: 0 !important;
    right: 0 !important;
    margin: auto;
    width: 100%;
    text-align: center;*/
}

.front .scroll-story-container .scroll-story-images.visible .scroll-story-img.last{
  /*  background-image: none !important;
    left: 0 !important;
    right: 0 !important;
    margin: auto;*/
}

@-webkit-keyframes sentencefadein{
  from {opacity: 0;
        line-height: 80px;
  }
  to {opacity: 1;
      line-height: 42px;
  }
}

@keyframes sentencefadein{
  from {opacity: 0;
        line-height: 80px;
  }
  to {opacity: 1;
      line-height: 42px;
  }
}
@-moz-keyframes sentencefadein{
  from {opacity: 0;
        line-height: 80px;
  }
  to {opacity: 1;
      line-height: 42px;
  }
}
@-o-keyframes sentencefadein{
  from {opacity: 0;
        line-height: 80px;
  }
  to {opacity: 1;
      line-height: 42px;
  }
}

.front .scroll-story-container .scroll-story-g-container{
  /*  height: 570px;
    width: 570px;*/
  margin: auto;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  position: absolute;
  width: 50vh;
  height: 50vh;
}

.front .scroll-story-container .scroll-story-g-background{
  /*  height: 570px;
    width: 570px;
    margin: auto;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    position: absolute;*/
  border-radius: 50%;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  background-size: cover;
  max-height: calc(100vh - 90px);
  max-width: calc(100vh - 90px);
  overflow: hidden;
  width: 100%;
  height: 100%;
}

.front .scroll-story-container .scroll-story-g-background::after{
  content: '';
  position: absolute;
  width: 102%;
  height: 102%;
  background-color: rgba(255,255,255,0.7);
  border-radius: 50%;
  top: -1%;
  left: -1%;
}

.front .scroll-story-container .scroll-story-g {
  margin: auto;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  position: absolute;
  -webkit-mask: url('../images/g-logo.svg') no-repeat 50% 50%;
  mask: url('../images/g-logo.svg') no-repeat 50% 50%;
  -webkit-mask-size: cover;
  mask-size: cover;
  background-size: cover;
  transition: opacity 1s ease-in-out;
  -webkit-transition: opacity 1s ease-in-out;
  -moz-transition: opacity 1s ease-in-out;
  -o-transition: opacity 1s ease-in-out;
  -webkit-transition-delay: 0.3s;
  -o-transition-delay: 0.3s;
  transition-delay: 0.3s;
  background-position: center center;
  height: 35vh;
  width: 35vh;
}

.front .scroll-story-container .scroll-story-g[data-index="1"]{
  transition: background 4s ease-in-out, opacity 1s ease-in-out;
  -webkit-transition: background 4s ease-in-out, opacity 1s ease-in-out;
  -moz-transition: background 4s ease-in-out, opacity 1s ease-in-out;
  -o-transition: background 4s ease-in-out, opacity 1s ease-in-out;
  -webkit-transition-delay: 0s;
  -o-transition-delay: 0s;
  transition-delay: 0s;
}

.front .scroll-story-container .hide-scroll{
  height: calc(100vh - 90px);
  width: 15px;
  position: absolute;
  right: 0;
  z-index: 10;
}

.front .scroll-story-container .scroll-story-sentences-container::-webkit-scrollbar {
  display: none;
}

body.front .content-main .scroll-story-sentences-container .scroll-story-sentences{
  width: 700px;
  margin: auto;
  position: relative;
  /*padding-bottom: 300px;*/
}
body.front .content-main .scroll-story-sentences-container .sentence p{
  color: #FFFFFF;
  font-size: 32px;
  line-height: 72px;
  opacity: 0;
  font-family: "Fedra Serif B Pro Book";
}

/* TESTING */

.front .scroll-story-wrapper .scroll-story-images.fixed{
  position: fixed;
  top: 0;
  width: 100%;
  padding: 0;
  /*left: 7.5px;*/
  right: 0;
  margin: auto;
  height: 100vh;
  width: 500px;
  left: 0;
  bottom: 0;
  height: calc(100vh - 90px);
  height: calc(100vh - 180px);
  top:90px;
  margin-bottom: 90px;
}

.front .scroll-story-wrapper .scroll-story-images.fixed .scroll-story-g[data-index="1"].before{
  transition: background 0s ease-in-out, opacity 0s ease-in-out;
  -webkit-transition: background 0s ease-in-out, opacity 0s ease-in-out;
  -moz-transition: background 0s ease-in-out, opacity 0s ease-in-out;
  -o-transition: background 0s ease-in-out, opacity 0s ease-in-out;
  -webkit-transition-delay: 0s;
  -o-transition-delay: 0s;
  transition-delay: 0s;
}

.front .scroll-story-wrapper .scroll-story-images.visible{
  top:-90px;
  margin-bottom: 0;
}
.front .scroll-story-wrapper .scroll-story-images.visible .scroll-story-g-background{
  opacity: 0;
  -webkit-transition: opacity 1.5s ease-in-out;
  -o-transition: opacity 1.5s ease-in-out;
  transition: opacity 1.5s ease-in-out;
}

.front .scroll-story-wrapper .scroll-story-images.visible .scroll-story-g-background{
  opacity: 1;
}

.front .scroll-story-wrapper .scroll-story-images.fixed .scroll-story-img,
.front .scroll-story-wrapper .scroll-story-images.fixed .scroll-story-g-background{
  opacity: 0;
}



@media (max-width: 1119px){
  /*  .front .scroll-story-container .processed-scroll .scroll-story-g[data-index="1"]{
      opacity:1;
    }
    .front .scroll-story-container .scroll-story-g[data-index="1"]{
      opacity:0;
    }*/
  .front .scroll-story-wrapper .scroll-story-images.visible {
    left: 0;
    right: 0;
    margin: auto;
    top: 0;
  }
  .front .scroll-story-container .scroll-story-img.even:not(.last) {
    right:60%;
  }
  .front .scroll-story-container .scroll-story-img.odd:not(.last)  {
    left:60%;
  }
  .front .scroll-story-container .scroll-story-img:not(.last) {
    width: 20vh;
    height: 20vh;
    top: 110%;
  }
  .front .scroll-story-wrapper .scroll-story-images.visible .scroll-story-img.even .sentence {
    left:130%;
    text-align: right;
  }
  .front .scroll-story-wrapper .scroll-story-images.visible .scroll-story-img.odd .sentence {
    right: 130%;
  }
  .front .scroll-story-wrapper .scroll-story-images.visible .sentence p {
    font-size: 30px;
  }
  .front .scroll-story-container .scroll-story-images.visible .scroll-story-img .sentence{
    width:20vw;
  }
  .front .scroll-story-container .scroll-story-images.visible .scroll-story-img.last .sentence {
    top: -29vh;
  }
}
/*@media (max-width: 1119px){

  .front .scroll-story-wrapper .scroll-story-images.visible{
    left: 0;
    right: 0;
    margin: auto;
    top: 0;
  }

  .front .scroll-story-wrapper .scroll-story-images.visible .scroll-story-img{
    top: calc(50% - 350px);
  }

  .front .scroll-story-wrapper .scroll-story-images.visible .scroll-story-img{
    top: calc(50% + 50px);
  }
  .front .scroll-story-wrapper .scroll-story-images.visible .scroll-story-img.last {
    top: 110%;
  }
  .front .scroll-story-container .scroll-story-g-background::after{
    width: 100%;
    height: 100%;
  }

  .front .scroll-story-wrapper .scroll-story-images.fixed{
    height: 75%;
    position: relative;
  }

  .front .scroll-story-wrapper .scroll-story-images.fixed .scroll-story-img,
  .front .scroll-story-wrapper .scroll-story-images.fixed .scroll-story-img,
  .front .scroll-story-wrapper .scroll-story-images.fixed .scroll-story-g-background{
    opacity: 1;
  }
  .front .scroll-story-container .scroll-story-img{
    width: 22vh;
    height: 22vh;
  }
  .front .scroll-story-container{
    padding-bottom: 0;
  }

  .scroll-story-sentences-container .sentence p{
    line-height: 35px !important;
  }

  .scroll-story-sentences-container .sentence{
    line-height: 35px;
  }

  .front .scroll-story-container .scroll-story-g-container{
    width: 50vh;
    height: 50vh;
  }
  body.front .content-main .scroll-story-sentences-container .sentence:nth-child(1) p{
    opacity:0;
  }
}*/
/*
@-webkit-keyframes sentencefadeinmobile{
  0% {
    opacity: 0;
    line-height: 32px;
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
  30%{
    line-height: 72px;
  }
  50% {
    opacity: 1;
  }
  60%{
    line-height: 32px;
  }
  70%{
    opacity: 0;
  }
  100% {
    -webkit-transform: translateY(-120vh);
    transform: translateY(-120vh);
  }
}
@-moz-keyframes sentencefadeinmobile{
  0% {
    opacity: 0;
    line-height: 32px;
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
  30%{
    line-height: 72px;
  }
  50% {
    opacity: 1;
  }
  60%{
    line-height: 32px;
  }
  70%{
    opacity: 0;
  }
  100% {
    -webkit-transform: translateY(-100vh);
    transform: translateY(-100vh);
  }
}
@-o-keyframes sentencefadeinmobile{
  0% {
    opacity: 0;
    line-height: 32px;
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
  30%{
    line-height: 72px;
  }
  50% {
    opacity: 1;
  }
  60%{
    line-height: 32px;
  }
  70%{
    opacity: 0;
  }
  100% {
    -webkit-transform: translateY(-100vh);
    transform: translateY(-100vh);
  }
}

@keyframes sentencefadeinmobile{
  0% {
    opacity: 0;
    line-height: 32px;
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
  30%{
    line-height: 72px;
  }
  50% {
    opacity: 1;
  }
  60%{
    line-height: 32px;
  }
  70%{
    opacity: 0;
  }
  100% {
    -webkit-transform: translateY(-120vh);
    transform: translateY(-120vh);
  }
}*/

@media (max-width: 767px){
  /*  .front .scroll-story-wrapper .scroll-story-images.visible .last .sentence p{
      -webkit-animation-duration: 10s !important;
      animation-duration: 10s !important;
        transition-delay: 20s !important;
    }*/
  .front .scroll-story-wrapper .scroll-story-images.visible :not(.last) .sentence p{
    -webkit-animation-name: sentencefadein;
    animation-name: sentencefadein;
    -webkit-animation-duration: 3s;
    animation-duration: 3s;
    -webkit-animation-fill-mode: forwards;
    animation-fill-mode: forwards;
    -webkit-animation-direction: alternate;
    animation-direction: alternate;
    -webkit-animation-iteration-count: 2;
    animation-iteration-count: 2;
  }

  .front .scroll-story-container .scroll-story-img{
    transition: all 5s ease-in-out, opacity 3s ease-in-out;
    -webkit-transition: all 5s ease-in-out, opacity 3s ease-in-out;
    -moz-transition: all 5s ease-in-out, opacity 3s ease-in-out;
    -o-transition: all 5s ease-in-out, opacity 3s ease-in-out;
  }


  .front .scroll-story-wrapper .scroll-story-images.fixed{
    width: 50vh;
    max-width: 320px;
    z-index: -1;
  }
  /*  .front.animation-completed .scroll-story-container .scroll-story-g-container {
      opacity:0;
    }*/
  .front .scroll-story-container .scroll-story-g-container {
    width: 50vh;
    max-width: 320px;
    height: 50vh;
    max-height: 320px;
    margin: auto;
  }
  .front .scroll-story-container .scroll-story-g {
    top: 10px;
  }
  .front .scroll-story-container .scroll-story-img {
    width: 15vh;
    height: 15vh;
  }
  .front .scroll-story-container .scroll-story-img.odd {
    left: 65%;
    top:110%;
  }
  /*  .front .scroll-story-container .scroll-story-images.visible .scroll-story-img.last .sentence {
      top: -23vh;
      height: 50vh;
      max-height: 320px;
    }*/
  .front .scroll-story-wrapper .scroll-story-images.visible .sentence p {
    font-size: 27px;
  }
  .front .scroll-story-container{
    padding-top:0;
  }
  /*  .front .scroll-story-wrapper .scroll-story-images.visible .scroll-story-img.odd .sentence {
      right: 115%;
    }*/
  .front .scroll-story-wrapper .scroll-story-images.visible .sentence p{
    width:100%;
    /*text-align: center;*/
  }
  .front .scroll-story-wrapper .scroll-story-images.visible .scroll-story-img:not(.last) .sentence{
    width: 45vw !important;
    max-width: 200px;
  }
  .front .scroll-story-wrapper .scroll-story-images.visible .scroll-story-img.even .sentence {
    left: 100%;
    left: 130%;
    text-align: right;
  }

  .front .scroll-story-wrapper .scroll-story-images.visible .scroll-story-img.last .sentence {
    left: -63vw !important;
  }
}

@media (min-width: 768px) and (max-width: 1119px){
  .front .scroll-story-container .scroll-story-g-container {
    max-width: 768px;
    max-height: 768px;
    width: 50vh;
    height: 50vh;
    margin: auto;
  }

  .front .scroll-story-wrapper .scroll-story-images.fixed{
    width: 50vh;
    max-width: 320px;
    z-index: -1;
  }

  .front .scroll-story-container .scroll-story-g {
    top: 10px;
  }
  .front .scroll-story-container .scroll-story-img {
    width: 15vh;
    height: 15vh;
  }
  .front .scroll-story-container .scroll-story-img.odd {
    left: 65%;
    top: 110%;
  }

  .front .scroll-story-wrapper .scroll-story-images.visible .sentence p {
    font-size: 27px;
  }
  .front .scroll-story-container{
    padding-top:0;
  }

  .front .scroll-story-wrapper .scroll-story-images.visible .sentence p{
    width:100%;
  }
  .front .scroll-story-wrapper .scroll-story-images.visible .scroll-story-img:not(.last) .sentence{
    width: 45vw !important;
    /*max-width: 140px;*/
    max-width: 300px;
  }
  .front .scroll-story-wrapper .scroll-story-images.visible .scroll-story-img.even .sentence {
    left: 130%;
    text-align: right;
  }
  .front .scroll-story-wrapper .scroll-story-images.visible .scroll-story-img.last .sentence {
    left: -63vw !important;
  }
}
/*@media (max-width: 767px){

  body.front .content-main .scroll-story-sentences-container .scrolling .sentence p{
    font-size: 7.0vw;
    padding-bottom: 0 !important;
  }

  .front .scroll-story-wrapper .scroll-story-images.fixed{
    width: 100vw;
  }

  .front .scroll-story-container{
    height: calc(100vh - 190px);
    height: calc(100vh - 90px);
    height: 100vh;
  }

  .front .scroll-story-container .scroll-story-g-container{
    width: 40vh;
    height: 40vh;
  }

    .front .scroll-story-container .scroll-story-g{
      width: 150px;
      height: 150px;
    }

  .front .scroll-story-wrapper .scroll-story-images.visible .scroll-story-img{
    top: calc(50% + 25px);
    top: initial;
    bottom: calc(15% - 45px);
    left: calc(50% + 25px);
  }

    .front .scroll-story-wrapper .scroll-story-images.visible .scroll-story-g-background{
      width: 250px;
      height: 250px;
    }
  .front .scroll-story-wrapper .scroll-story-images.visible .sentence p{
    width: auto;
  }
  .front .scroll-story-wrapper .scroll-story-images.visible .scroll-story-img,
  .front .scroll-story-wrapper .scroll-story-images.visible .scroll-story-img{
    width: 150px;
    height: 150px;
  }
  .front .scroll-story-wrapper .scroll-story-images.visible .sentence p {
    font-size: 28px;
  }
  .front .scroll-story-wrapper .scroll-story-images.visible .sentence p{
    top:10px;
  }
  .front .scroll-story-wrapper .scroll-story-images.visible .scroll-story-img{
    top: calc(50% - 175px);
    left: calc(50% - 175px);
  }

  .front .scroll-story-wrapper .scroll-story-images.fixed{
    height: 100%;
    position: relative;
    margin-bottom: 90px;
    top:0;
    height: 100%;
  }
}*/

/* IE ONLY */
@media (max-width: 1119px) and (-ms-high-contrast: none), (-ms-high-contrast: active) {
  .front .scroll-story-container .scroll-story-g-container{
    top: -90px;
  }
}
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
  .front .view-frontpage-hero-header-slider .slick-slider{
    z-index:555555;
  }
  .front .scroll-story-wrapper .scroll-story-images.visible .scroll-story-img{
    top: 15%;
    -webkit-animation-name: fadeinOutIE;
    animation-name: fadeinOutIE;
    -moz-animation-name: fadeinOutIE;
    -ms-animation-name: fadeinOutIE;
    -o-animation-name: fadeinOutIE;
    -webkit-animation-duration: 35s;
    animation-duration: 35s;
    -moz-animation-duration: 35s;
    -ms-animation-duration: 35s;
    -o-animation-duration: 35s;
    -webkit-animation-fill-mode: forwards;
    animation-fill-mode: forwards;
    -moz-animation-fill-mode: forwards;
    -ms-animation-fill-mode: forwards;
    -o-animation-fill-mode: forwards;
    opacity:1 !important;
    top: -50%;
  }
  .front .scroll-story-wrapper .scroll-story-images.visible .scroll-story-img.last{
    top: 50% !important;
    -webkit-animation-name: fadeinOutIEin !important;
    animation-name: fadeinOutIEin !important;
    -moz-animation-name: fadeinOutIEin !important;
    -ms-animation-name: fadeinOutIEin !important;
    -o-animation-name: fadeinOutIEin !important;
    -webkit-animation-duration: 4s !important;
    animation-duration: 4s !important;
    -moz-animation-duration: 4s !important;
    -ms-animation-duration: 4s !important;
    -o-animation-duration: 4s !important;
    -webkit-animation-fill-mode: forwards;
    animation-fill-mode: forwards;
    -moz-animation-fill-mode: forwards;
    -ms-animation-fill-mode: forwards;
    -o-animation-fill-mode: forwards;
    transition: all 2.5s ease-in-out,opacity 2s ease-in-out;
    -webkit-transition: all 2.5s ease-in-out,opacity 2s ease-in-out;
    -moz-transition: all 2.5s ease-in-out,opacity 2s ease-in-out;
    transition-delay:  9s,  9s;
    -o-transition: all 2.5s ease-in-out,opacity 2s ease-in-out
  }
  @-webkit-keyframes fadeinOutIE{
    0% {
      -webkit-transform: translatey(0);
      -ms-transform: translatey(0);
      -moz-transform: translatey(0);
      -o-transform: translatey(0);
      transform: translatey(0);
      opacity: 0;
    }
    50% {
      opacity: 1;
    }
    100% {
      opacity: 0;
      -webkit-transform: translatey(-990px);
      -ms-transform: translatey(-990px);
      -moz-transform: translatey(-990px);
      -o-transform: translatey(-990px);
      transform: translatey(-990px);
    }
  }
  @-moz-keyframes fadeinOutIE{
    0% {
      -webkit-transform: translatey(0);
      -ms-transform: translatey(0);
      -moz-transform: translatey(0);
      -o-transform: translatey(0);
      transform: translatey(0);
      opacity: 0;
    }
    50% {
      opacity: 1;
    }
    100% {
      opacity: 0;
      -webkit-transform: translatey(-990px);
      -ms-transform: translatey(-990px);
      -moz-transform: translatey(-990px);
      -o-transform: translatey(-990px);
      transform: translatey(-990px);
    }
  }
  @-o-keyframes fadeinOutIE{
    0% {
      -webkit-transform: translatey(0);
      -ms-transform: translatey(0);
      -moz-transform: translatey(0);
      -o-transform: translatey(0);
      transform: translatey(0);
      opacity: 0;
    }
    50% {
      opacity: 1;
    }
    100% {
      opacity: 0;
      -webkit-transform: translatey(-990px);
      -ms-transform: translatey(-990px);
      -moz-transform: translatey(-990px);
      -o-transform: translatey(-990px);
      transform: translatey(-990px);
    }
  }

  @keyframes fadeinOutIE{
    0% {
      -webkit-transform: translatey(0);
      -ms-transform: translatey(0);
      -moz-transform: translatey(0);
      -o-transform: translatey(0);
      transform: translatey(0);
      opacity: 0;
    }
    50% {
      opacity: 1;
    }
    100% {
      opacity: 0;
      -webkit-transform: translatey(-990px);
      -ms-transform: translatey(-990px);
      -moz-transform: translatey(-990px);
      -o-transform: translatey(-990px);
      transform: translatey(-990px);
    }
  }

  @-webkit-keyframes fadeinOutIEin{
    0% {
      -webkit-transform: translatey(0);
      -ms-transform: translatey(0);
      -moz-transform: translatey(0);
      -o-transform: translatey(0);
      transform: translatey(0);
      opacity: 0;
    }
    100% {
      -webkit-transform: translatey(-450px);
      -ms-transform: translatey(-450px);
      -moz-transform: translatey(-450px);
      -o-transform: translatey(-450px);
      transform: translatey(-450px);
      opacity: 1;
    }
  }
  @-moz-keyframes fadeinOutIEin{
    0% {
      -webkit-transform: translatey(0);
      -ms-transform: translatey(0);
      -moz-transform: translatey(0);
      -o-transform: translatey(0);
      transform: translatey(0);
      opacity: 0;
    }
    100% {
      -webkit-transform: translatey(-450px);
      -ms-transform: translatey(-450px);
      -moz-transform: translatey(-450px);
      -o-transform: translatey(-450px);
      transform: translatey(-450px);
      opacity: 1;
    }
  }
  @-o-keyframes fadeinOutIEin{
    0% {
      -webkit-transform: translatey(0);
      -ms-transform: translatey(0);
      -moz-transform: translatey(0);
      -o-transform: translatey(0);
      transform: translatey(0);
      opacity: 0;
    }
    100% {
      -webkit-transform: translatey(-450px);
      -ms-transform: translatey(-450px);
      -moz-transform: translatey(-450px);
      -o-transform: translatey(-450px);
      transform: translatey(-450px);
      opacity: 1;
    }
  }

  @keyframes fadeinOutIEin{
    0% {
      -webkit-transform: translatey(0);
      -ms-transform: translatey(0);
      -moz-transform: translatey(0);
      -o-transform: translatey(0);
      transform: translatey(0);
      opacity: 0;
    }
    100% {
      -webkit-transform: translatey(-450px);
      -ms-transform: translatey(-450px);
      -moz-transform: translatey(-450px);
      -o-transform: translatey(-450px);
      transform: translatey(-450px);
      opacity: 1;
    }
  }
}

@media (min-width: 1120px){
  .front .scroll-story-wrapper .scroll-story-images.visible .sentence p{
    width: 450px;
  }
}

.front .scroll-story-container .scroll-story-images[data-total="3"] .scroll-story-img.last{
  -webkit-transition-delay: 4.5s;
  -o-transition-delay: 4.5s;
  transition-delay: 4.5s;
  -ms-transition-delay: 4.5s;
  -moz-transition-delay: 4.5s;

  -webkit-animation-delay: 4.5s;
  animation-delay: 4.5s;
  -o-animation-delay: 4.5s;
  -ms-animation-delay: 4.5s;
  -moz-animation-delay: 4.5s;
}

.front .scroll-story-container .scroll-story-images[data-total="4"] .scroll-story-img.last{
  -webkit-transition-delay: 6s;
  -o-transition-delay: 6s;
  transition-delay: 6s;
  -ms-transition-delay: 6s;
  -moz-transition-delay: 6s;

  -webkit-animation-delay: 6s;
  animation-delay: 6s;
  -o-animation-delay: 6s;
  -ms-animation-delay: 6s;
  -moz-animation-delay: 6s;
}

.front .scroll-story-container .scroll-story-images[data-total="5"] .scroll-story-img.last{
  -webkit-transition-delay: 7.5s;
  -o-transition-delay: 7.5s;
  transition-delay: 7.5s;
  -ms-transition-delay: 7.5s;
  -moz-transition-delay: 7.5s;

  -webkit-animation-delay: 7.5s;
  animation-delay: 7.5s;
  -o-animation-delay: 7.5s;
  -ms-animation-delay: 7.5s;
  -moz-animation-delay: 7.5s;
}

@media (min-width: 1120px){
  .front .scroll-story-wrapper .scroll-story-images.fixed,
  .front .scroll-story-container .scroll-story-images.fixed .scroll-story-g-container
  {
    width: 35vh;
  }

  .front .scroll-story-container .scroll-story-images.fixed .scroll-story-g{
    max-width: 35vh;
    max-height: 35vh;
  }

  .view-frontpage-hero-header-slider .views-field-nothing.section{
    width: 95%;
  }
}

@media (min-width: 1200px){
  .view-frontpage-hero-header-slider .views-field-nothing.section{
    width: 90%;
  }
}

@media (min-width: 1350px){
  .view-frontpage-hero-header-slider .views-field-nothing.section{
    width: 80%;
  }
}

/* Con 363 */
@media (min-width: 1120px){
  .front .scroll-story-container{
    height: 100vh !important;
    padding-top:0;
  }

  .front .scroll-story-wrapper .scroll-story-images.visible{
    top: 0;
  }

  .front .scroll-story-container .scroll-story-images.visible .scroll-story-img.last .sentence p {
    top: -25vh;
  }

  .front .scroll-story-wrapper .scroll-story-images.fixed {
    top: 0;
    height: 100vh;
    bottom: 0;
    top: 0;
    margin-bottom: 0;
  }
}

/*
*/




/* end con 363 */

/* con 662 */
.scroll-story-img.animation-ended{
  display: none;
}

/* con 667 */

@media (max-width: 767px){
  .front .scroll-story-container .scroll-story-images.visible .scroll-story-img.last .sentence p {
    top: -25%;
  }

  .front .scroll-story-container .scroll-story-img[data-index="2"]{
    -webkit-transition-delay: 3s;
    -o-transition-delay: 3s;
    transition-delay: 3s;
    -moz-transition-delay: 3s;
    -ms-transition-delay: 3s;
    -webkit-animation-delay: 3s;
    animation-delay: 3s;
    -o-animation-delay: 3s;
    -ms-animation-delay: 3s;
    -moz-animation-delay: 3s;
  }

  .front .scroll-story-container .scroll-story-img[data-index="3"]{
    -webkit-animation-delay: 6s;
    animation-delay: 6s;
    -moz-animation-delay: 6s;
    -ms-animation-delay: 6s;
    -o-animation-delay: 6s;
  }

  .front .scroll-story-container .scroll-story-images[data-total="3"] .scroll-story-img.last{
    -webkit-animation-delay: 7s;
    animation-delay: 7s;
    -moz-animation-delay: 7s;
    -ms-animation-delay: 7s;
    -o-animation-delay: 7s;
  } 

  .front .scroll-story-container .scroll-story-images.visible .scroll-story-img.last .sentence:not(.sentence-2) p {
    -webkit-animation-delay: 7s;
    animation-delay: 7s;
    -moz-animation-delay: 7s;
    -ms-animation-delay: 7s;
    -o-animation-delay: 7s
  }

  .mobile-breakpoint.front .scroll-story-wrapper .scroll-story-images.visible .scroll-story-img{
    -webkit-animation-duration: 6s;
    animation-duration: 6s;
    -moz-animation-duration: 6s;
    -ms-animation-duration: 6s;
    -o-animation-duration: 6s;
  }

}