* {
  font-family: 'Livvic', serif;
  font-weight: 400;
}

body {
  overflow: hidden;
  background: #111111;
  color: #FFFFFF;
  font-size: 16px;
}

h1 {
  font-size: 3em;
  text-align: center;
}

h2 {
  font-size: 1.2em;
  text-align: center;
}

main {
  width: 100vw;
  height: 100vh;
  overflow-x: hidden;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
}

header, figure, footer {
  width: 100vw;
  height: 100vh;
  display: flex;
  scroll-snap-align: start;
}

@keyframes fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slidein {
  from { transform: translateX(100vw); }
  to { transform: translateX(0); }
}

header {
  position: relative;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  animation-name: fadein;
  animation-duration: 2s;
  animation-fill-mode: forwards;
}

header > * {
  transform: translateX(100vw);
  animation-name: slidein;
  animation-duration: 2s;
  animation-fill-mode: forwards;
  animation-delay: 1s;
}

header > h1 {
  animation-delay: .5s;
}

header:before {
  content: ' ';
  background-image: url('../img/camera-prompto.png');
  background-size: cover;
  background-position: center;
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: -1;
  filter: brightness(.2);
}

figure {
  position: relative;
  opacity: 0;
  transition: 1s opacity;
}
figure.intersect {
  opacity: 1;
}

figure img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50%;
}

figure figcaption {
  position: absolute;
  bottom: 1em;
  right: 0em;
  max-width: 30vw;
  padding: .5em 1em .5em 10em;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
  color: #222222;
  text-align: right;
  transform: translateX(100vw);
  transition: 1s transform .5s;
}

figure.intersect figcaption {
  transform: translateX(0);
}

footer {
  flex-direction: column;
  justify-content: center;
  gap: 2em;
  background-color: #222222;
}

footer p {
  padding: 0 25%;
}

footer .logos {
  background: #FFFFFF;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 20px;
}

footer .logos img {
  max-height: 50px;
  max-width: 150px;
}

@media screen and (max-height: 450px) {
  header {
    padding: 0px 20px;
  }

  figure figcaption {
    max-width: unset;
    max-width: 70vw;
    bottom: 0;
  }

  footer {
    min-height: 100vh;
    height: auto;
    padding: 20px 0;
  }

  footer p {
    padding: 0 20px;
  }
}

@media screen and (max-width: 450px) {
  header {
    padding: 0px 20px;
  }
  
  figure figcaption {
    max-width: unset;
    width: 100vw;
    padding: 3em 1em .5em 1em;
    bottom: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgb(255, 255, 255) 100%);
  }

  footer {
    min-height: 100vh;
    height: auto;
    padding: 20px 0;
  }

  footer p {
    padding: 0 20px;
  }
}
