html,
body {
  margin: 0;
  padding: 0;

  width: 100%;
  height: 100%;

  overflow: hidden;

  background: white;

  cursor: pointer;
}


/* DEFAULT / DESKTOP */

.slideshow {
  position: fixed;

  top: 0;
  left: 0;

  width: 100vw;
  height: 100vh;

  overflow: hidden;

  background: white;
}


/* ALL SLIDES */

.slide {
  display: none;

  position: absolute;

  top: 0;
  left: 0;

  width: 100%;
  height: 100%;
}


/* ACTIVE VIDEO */

video.slide.active {
  display: block;
}


/* VIDEO */

video.slide {
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center center;

  background: transparent;
}


/* ACTIVE TEXT SLIDE */

.text-slide.active {
  display: flex;
}


/* TEXT SLIDE */

.text-slide {
  box-sizing: border-box;

  align-items: center;
  justify-content: center;

  width: 100%;
  height: 100%;

  padding: 3vw;

  overflow: hidden;

  text-align: center;
}


/* WHITE SLIDE */

.white-slide {
  background: white;
  color: black;
}


/* BLACK SLIDE */

.black-slide {
  background: black;
  color: white;
}


/* DEFAULT TEXT */

.fit-text {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;

  font-weight: 700;

  line-height: 0.9;

  white-space: nowrap;

  text-align: center;
}


/* LINKS */

.fit-text a {
  color: rgb(0, 0, 255);
  text-decoration: none;
}


/* FLASH ON HOVER */

@media (hover: hover) and (pointer: fine) {

  .fit-text a:hover {
    animation: link-flash 0.18s steps(1) ;
  }

}


@keyframes link-flash {

  0% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }

}


/* RECENT / BIO SLIDES */

.text-slide.recent-slide {
  padding: 1.5vw;
}

.text-slide.recent-slide .fit-text {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;

  font-weight: 400 !important;

  line-height: 1.1;

  white-space: nowrap;

  text-align: center;
}


/* PHONE HELD VERTICALLY */

@media (max-width: 900px) and (orientation: portrait) {

  .slideshow {
    position: fixed;

    top: 50%;
    left: 50%;

    width: 100vh;
    height: 100vw;

    transform: translate(-50%, -50%) rotate(90deg);
    transform-origin: center center;
  }

  .text-slide {
    padding: 5vw;
  }

  .text-slide.recent-slide {
    padding: 4vw;
  }

}


/* PHONE HELD HORIZONTALLY */

@media (max-width: 900px) and (orientation: landscape) {

  .slideshow {
    position: fixed;

    top: 0;
    left: 0;

    width: 100vw;
    height: 100vh;

    transform: none;
  }

  .text-slide {
    padding: 4vw;
  }

  .text-slide.recent-slide {
    padding: 3vw;
  }

}