.letter {
  background: transparent no-repeat 50% 50% /contain;
}

.split-4 {
  display: block;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

.split-4.clicked > a.clicked {
  z-index: 3;
}

.split-4.clicked > a.clicked > * {
  z-index: 3;
}

.split-4 > a {
  position: relative;
  max-height: 25vh;
  min-height: 25vh;
  text-decoration: none;
  padding: 0 5vw;
  width: 100%;
  float: left;
  overflow: visible;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  display: -ms-flexbox;
  display: -webkit-box;
  display: flex;
  -ms-flex-align: center;
  -webkit-box-align: center;
          align-items: center;
  -ms-flex-pack: end;
  -webkit-box-pack: end;
          justify-content: flex-end;
}

.split-4 > a.lifted {
  z-index: 3;
}

.split-4 > a.lifted .overlay {
  z-index: 3;
  width: 100vw;
  height: 100vh;
}

.split-4 > a.lifted:nth-child(1) .overlay {
  bottom: -300%;
}

@media (min-aspect-ratio: 4 / 3) {
  .split-4 > a.lifted:nth-child(1) .overlay {
    bottom: -100%;
  }
}

.split-4 > a.lifted:nth-child(2) .overlay {
  top: -100%;
  bottom: -200%;
}

@media (min-aspect-ratio: 4 / 3) {
  .split-4 > a.lifted:nth-child(2) .overlay {
    top: 0;
    left: -100%;
    bottom: -100%;
  }
}

.split-4 > a.lifted:nth-child(3) .overlay {
  top: -200%;
  bottom: -100%;
}

@media (min-aspect-ratio: 4 / 3) {
  .split-4 > a.lifted:nth-child(3) .overlay {
    top: -100%;
    right: -100%;
    bottom: 0;
  }
}

.split-4 > a.lifted:nth-child(4) .overlay {
  top: -300%;
}

@media (min-aspect-ratio: 4 / 3) {
  .split-4 > a.lifted:nth-child(4) .overlay {
    top: -100%;
    left: -100%;
  }
}

.split-4 > a > * {
  z-index: 1;
}

.split-4 > a .overlay {
  opacity: 1;
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}

@media (min-aspect-ratio: 5 / 4) {
  .split-4 > a {
    width: 50%;
    max-height: 50vh;
    min-height: 50vh;
  }
}

.split-4 > a:nth-child(2n) {
  -ms-flex-direction: row-reverse;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: reverse;
          flex-direction: row-reverse;
}

.split-4 > a:nth-child(2n) > div > * {
  text-align: left;
}

.split-4 > a .letter {
  position: relative;
  width: calc(50vh / 2);
  height: calc(50vh / 2);
  max-width: calc(100vw / 3);
  max-height: calc(100vw / 3);
}

.split-4 > a .letter > * {
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  background: transparent no-repeat center center/contain;
  position: absolute;
}

@media (min-aspect-ratio: 5 / 4) {
  .split-4 > a .letter {
    width: calc(50vw / 3);
    height: calc(50vw / 3);
    max-width: 50vh;
    max-height: 50vh;
  }
}

.split-4 > a > div {
  display: -ms-flexbox;
  display: -webkit-box;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-flex: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
  -ms-flex-item-align: stretch;
      align-self: stretch;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  color: rgba(0, 0, 0, 0.65);
}

.split-4 > a > div > * {
  -ms-flex-item-align: stretch;
      align-self: stretch;
  text-align: right;
}

.split-4 > a > div > h3 {
  font-size: 4.2vh;
  font-weight: bold;
  color: #f5f5f5;
}

@media (min-aspect-ratio: 5 / 4) {
  .split-4 > a > div > h3 {
    font-size: 5.4vh;
  }
}

.split-4 > a > div > p {
  margin-top: 0;
}

@media (min-aspect-ratio: 5 / 4) {
  .split-4 > a > div > p {
    font-size: 2.6vh;
  }
}

.split-4 .y {
  background-color: #ffcc00;
}

.split-4 .y .overlay {
  background-color: #ffcc00;
}

.split-4 .g {
  background-color: #95bd00;
}

.split-4 .g .overlay {
  background-color: #95bd00;
}

.split-4 .b {
  background-color: #00c2ea;
}

.split-4 .b .overlay {
  background-color: #00c2ea;
}

.split-4 .o {
  background-color: #f8981d;
}

.split-4 .o .overlay {
  background-color: #f8981d;
}

.y .letter {
  background-image: url("/img/bdc/letter-b.png");
}

.g .letter {
  background-image: url("/img/bdc/letter-u.png");
}

.b .letter {
  background-image: url("/img/bdc/letter-n.png");
}

.o .letter {
  background-image: url("/img/bdc/letter-a.png");
}
