.timeline ul li {
  list-style-type: none;
  position: relative;
  width: 6px;
  margin: 0 auto;
  padding-top: 50px;
  background: #ffc615;
}

.timeline ul li::before {
	content: '';
	position: absolute;
	left: 50%;
	top: 55px;
	transform: translateX(-50%);
	width: 30px;
	height: 30px;
	border-radius: 50%;
	border: 1px solid #004e6f;
	background: transparent;
}
.timeline ul li::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 60px;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: inherit;
}

.timeline ul li div {
  position: relative;
  bottom: 0;
  width: 400px;
  padding: 15px;
  background: #fff;
}
.timeline ul li div img{
	margin-bottom: 10px;
}

.timeline ul li div::before {
content: '';
position: absolute;
top: 20px;
width: 100px;
border-width: 1px 0px 0px 0px;
border-color: #004e6f;
/* border-top: 1px solid red; */
background: transparent;
height: 0;
border-style: solid;
}

.timeline ul li:nth-child(odd) div {
  left: 45px;
}

.timeline ul li:nth-child(odd) div::before {
  left: -40px;
  /*border-width: 8px 16px 8px 0;
  border-color: transparent #fff transparent transparent;*/
}

.timeline ul li:nth-child(even) div {
  left: -439px;
}

.timeline ul li:nth-child(even) div::before {
  right: -45px;
  /*border-width: 8px 0 8px 16px;
  border-color: transparent transparent transparent #fff;*/
}

time {
  display: block;
  font-size: 3.2rem;
  font-weight: bold;
  margin-bottom: 8px;
  color: #ffc615;
}


/* EFFECTS
–––––––––––––––––––––––––––––––––––––––––––––––––– */

.timeline ul li::after {
  transition: background .5s ease-in-out;
}

.timeline ul li.in-view::after {
  background: #004e6f;
}

.timeline ul li div {
  visibility: hidden;
  opacity: 0;
  transition: all .5s ease-in-out;
}

.timeline ul li:nth-child(odd) div {
  transform: translate3d(200px, 0, 0);
}

.timeline ul li:nth-child(even) div {
  transform: translate3d(-200px, 0, 0);
}

.timeline ul li.in-view div {
  transform: none;
  visibility: visible;
  opacity: 1;
}


/* GENERAL MEDIA QUERIES
–––––––––––––––––––––––––––––––––––––––––––––––––– */

@media screen and (max-width: 900px) {
  .timeline ul li div {
    width: 250px;
  }
  .timeline ul li:nth-child(even) div {
    left: -289px;
    /*250+45-6*/
  }
}

@media screen and (max-width: 600px) {
  .timeline ul li {
    margin-left: 20px;
  }
  .timeline ul li div {
    width: calc(100vw - 91px);
  }
  .timeline ul li:nth-child(even) div {
    left: 45px;
  }
  .timeline ul li:nth-child(even) div::before {
    left: -15px;
  }
}