html,
body {
  height: 100%;
}

html {
  box-sizing: border-box;
  font-size: 62.5%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: 'Open Sans', sans-serif;
  background: #000;
}

/* ---- */
/* Tile */
/* ---- */

.tile {
  width: 100%;
  height: 100%;
  background: #000;
  position: relative;
  overflow: hidden;
  object-fit: cover;
}

.title {
  position: absolute;
  top: 50%;
  left: 10rem;
  color: #fff;
  font-size: 5.4rem;
  font-weight: 700;
  line-height: 1.3;
  text-shadow: 0 0.1rem 0 rgba(0,0,0, 0.15);
  letter-spacing: -0.02rem;
  overflow: hidden;
  
}

.title--last {
  opacity: 0;
}

.title__container {
  position: absolute;
  top: 0;
  left: 0;
}

.tile__img {
  position: absolute;
  width: 100%;
  height: auto;
}

/* --------- */
/* Next tile */
/* --------- */

.next-tile {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  border-top-left-radius: 0.1rem;
  border-bottom-left-radius: 0.1rem;
  overflow: hidden;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  outline: none;
  z-index: 2;
  margin: 0;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  opacity: 80%;
}

.next-tile__details {
  width: 20rem;
  height: 33rem;
  background: #fff;
  text-align: left;
  display: flex;
  justify-content: flex-end;
  flex-direction: column;
  padding: 5rem 3.5rem;
  z-index: 10;
  position: relative;
  box-shadow: 0.3rem 0 1rem 0 rgba(0,0,0,0.26);
}

.next-tile__heading {
  margin-bottom: 4.5rem;
  text-transform: uppercase;
  color: #2d2a2a;
  font-weight: 600;
  display: block;
}

.next-tile__title {
  margin-bottom: 6rem;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.05rem;
  color: #222222;
  display: block;
  position: relative;
}

.next-tile__title__text {
  position: absolute;
  top: 0;
  left: 0;
}

.next-tile__title__text--last {
  opacity: 0;
}

.next-tile__arrow {
  fill: #212121;
  width: 2.4rem;
  display: block;
}

.next-tile__preview {
  width: 16rem;
  height: 33rem;
  background: #000;
  position: relative;
  overflow: hidden;
  display: block;
}

.next-tile__preview img {
  position: absolute;
  width: 100%;
  height: auto;
}

img.next-tile__preview__img--last {
  opacity: 0;
  transform: translateY(-50%) scale(1.6);
  transform-origin: 50% 50%;
}


/* Oh and do it mobile first, this will prevent you from having to overwrite so many properties */

@media (max-height: 400px) {
  .next-tile__preview {
    height: 23rem;
  }

  .next-tile__details {
    height: 23rem;
    padding: 3rem 2.5rem;
  }

  .next-tile__title {
    margin-bottom: 4rem;
  }
}

@media (max-width: 1180px) {
  html { font-size: 52.5%; }
}

@media (max-width: 990px) {
  html { font-size: 42.5%; }
}

@media (max-width: 900px) {
  .title {
    font-size: 3.8rem;
    top: 37%;
    left: 10%;
  }

  .next-tile {
    top: auto;
    bottom: 4rem;
    transform: translateX(0);
  }

  .next-tile__preview {
    height: 100%;
    overflow: visible;
  }

  .next-tile__details {
    height: auto;
    padding: 2rem;
  }

  .next-tile__heading {
    margin-bottom: 1rem;
  }

  .next-tile__title {
    margin-bottom: 1rem;
  }
}











