* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  background-color: white;
  font-family: 'K2D', sans-serif;
}

.timeline {
  width: 100%;
  margin: auto;
  max-width: 860px;
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  padding-bottom: 100px;
  padding-left: 20px;
  padding-right: 20px;
  position: relative;
  box-shadow: 1px 5px 8px #dddd;
}
.timeline:before {
  position: absolute;
  left: 50%;
  height: 100%;
  width: 1px;
  background-color: rgba(8, 4, 4, 0.2);
  transition: .6s 1.5s;
  content: "";
}
.timeline-overlay {
  width: 100%;
  background-color: #2d2d2d;
  height: 0;
  position: fixed;
  top: 0;
  z-index: 5;
  left: 0;
}
.timeline-headline {
  color: black;
  position: absolute;
  display: flex;
  letter-spacing: .4px;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  left: 0;
  width: 100%;
  top: 100%;
  font-size: calc(.2vw + 10px);
  padding: 20px 0 0 0;
}
.timeline-content {
  display: none;
  position: relative;
  color: #929292;
  padding: 4% 10%;
  font-size: calc(12px + .4vw);
  width: 100%;
  margin: auto;
  line-height: 1.5;
  background-color: #2d2d2d;
}
.timeline-title {
  font-family: 'Jura', serif;
  margin: 0;
  font-weight: normal;
  font-size: 2em;
  color: black;
  white-space: nowrap;
}
.timeline-excerpt {
  font-size: 1.1em;
  padding: 0 10px;
  line-height: 1.4;
  font-weight: normal;
  margin-top: 8px;
  font-family: 'K2D';
  color: black;
}
.timeline-item {
  height: 30vh;
  width: 45%;
  position: relative;
  margin: 40px 0;
}
.timeline-item:nth-child(even) {
  align-self: flex-end;
}
.timeline-photo {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 5px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.timeline-cta {
  position: absolute;
  bottom: 10%;
  left: 50%;
  border: 0;
  pointer-events: none;
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
  background: none;
  font-family: 'K2D', sans-serif;
  padding: 6px 10px;
  outline: none;
  cursor: pointer;
  font-size: 12px;
  letter-spacing: 1px;
  opacity: 0;
  color: #fff;
  background-color: rgba(58, 58, 58, 0.6);
  border-radius: 4px;
}
.timeline-photo > img {
  overflow: hidden;
  -o-object-fit: cover;
     object-fit: cover;
  width: 100%;
  height: 100%;
}
.timeline-subtitle {
  margin: 0 0 6px 0;
  font-family: 'Jura', sans-serif;
  font-weight: normal;
  font-size: 1em;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.3);
}
.timeline-back {
  position: fixed;
  right: 20px;
  top: 10px;
  opacity: 0;
  visibility: hidden;
  z-index: 4;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: rgba(58, 58, 58, 0.4);
  border-radius: 4px;
  outline: none;
  display: flex;
  cursor: pointer;
  transition: .4s;
}
.timeline-back.is-active {
  opacity: 1;
  top: 26px;
  visibility: visible;
  transition-delay: 2.4s;
}
.timeline-back:hover {
  background-color: rgba(58, 58, 58, 0.8);
}
.timeline-back > svg {
  width: 28px;
  stroke: #fff;
}
.timeline.is-expanded .timeline-item:not(.is-active) {
  pointer-events: none;
}
.timeline.is-expanded:before {
  transition-delay: 0s;
  opacity: 0;
}
.timeline:not(.is-expanded) .timeline-item:not(.is-active) {
  cursor: pointer;
}
