/* To animate the background color */
body {
  transition: background-color .5s ease;
}

.color-black {
  background-color: var(--black);
}

.color-white {
  background-color: var(--white);
}

/* ATF */
.above-the-fold {
  display: flex;
  justify-content: center;
  position: relative;
  height: 100vh;
  height: calc(var(--vh, 1vh) * 100);
}

video {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

video.mobile {
  display: none;
}

.scroll-down {
  position: absolute;
  bottom: 0;
  z-index: 1;
}

.scroll-down svg {
  height: 56px;
}

.scroll-down.hidden {
  z-index: -2;
}

/* Films */
.films {
  padding: 2rem;
  height: 100vh;
  height: calc(var(--vh, 1vh) * 100);
}

.films .wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 4rem;
  align-items: center;
  height: 100%;
}

.films img {
  width: 100%;
}

.films .content {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.films .content h1 {
  color: var(--white);
  font-size: 6.875rem;
  font-family: 'PP Neue Montreal Thin', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-weight: 200;
}

.films .content svg {
  position: absolute;
  right: 1rem;
  bottom: 2rem;
  max-width: 120px;
  height: 120px;
}

/* Post production studio */
.post-studio {
  padding: 2rem;
  height: 100vh;
  height: calc(var(--vh, 1vh) * 100);
}

.post-studio .wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 4rem;
  align-items: center;
  height: 100%;
}

.post-studio img {
  width: 100%;
}

.post-studio .content {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.post-studio .content h2 {
  color: var(--black);
  font-size: 6.875rem;
  font-family: 'PP Neue Montreal Thin', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-weight: 200;
}

.post-studio .gallery {
  position: relative;
}

.post-studio .gallery svg {
  position: absolute;
  left: -4.25rem;
  bottom: 4rem;
  max-width: 120px;
  height: 120px;
  z-index: 1;
}

/* Mobile */
@media screen and (max-width: 767px) {
  /* ATF */
  video.mobile {
    display: block;
  }

  video.desktop {
    display: none;
  }

  /* Films & Post-Studio */
  .films, .post-studio {
    padding: 1rem;
    height: auto;
  }

  .films .content h1, .post-studio .content h2 {
    font-size: 4rem;
  }

  .films .wrapper, .post-studio .wrapper {
    grid-template-columns: 1fr;
    grid-gap: 2rem;
  }

  .films .content svg, .post-studio .content svg {
    width: 105px;
    height: 105px;
  }

  .films .wrapper .gallery, .post-studio .gallery {
    padding-top: 2rem;
  }

  .films .wrapper .gallery, .films .wrapper .content h1, .post-studio .gallery {
    max-width: 250px;
  }
  
  /* Films */
  .films .wrapper .content h1 {
    width: 100%;
    text-align: right;
    margin-bottom: 2rem;
  }

  .films .content {
    align-items: flex-start;
    flex-direction: column;
  }

  .films .content svg {
    position: relative;
    right: 0;
    bottom: 0;
    margin-left: auto;
  }

  /* Post-Studio */
  .post-studio .content {
    order: 1;
    justify-content: flex-end;
    text-align: right;
  }

  .post-studio .content h2 {
    padding-bottom: 2rem;
  }

  .post-studio .gallery {
    margin-left: auto;
  }

  .post-studio .gallery svg {
    bottom: 0;
    top: 4rem;
  }
}

/* Large screens */
@media screen and (min-width: 1280px) {
  .films, .post-studio {
    height: auto;
  }
}

/* iPad portrait */
@media screen and (max-width: 768px) {
  .films .content h1, .post-studio .content h2 {
    font-size: 4rem;
  }
}