/* TIMELINE –––––––––––––––––––––––––––––––––––––––––––––––––– */

.timeline {position: relative;}
.timeline p {text-align: left;}
.timeline ul {padding: 50px 0; font-size: 14px;}
.timeline ul li {list-style-type: none; position: relative; width: 2px; margin: 0 auto; padding-top: 20px; background: #df252b;}
.timeline ul li::after {content: ''; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 30px; height: 30px; border-radius: 50%; background: inherit;}

.timeline ul li div {position: relative; bottom: 0; width: 460px; padding: 30px 30px 10px 30px; background: #ededed;}
.timeline ul li div::before {content: ''; position: absolute; bottom: 7px; width: 0; height: 0; border-style: solid;}
.timeline ul li:nth-child(odd) div {left: 45px;}
.timeline ul li:nth-child(odd) div::before {left: -15px; border-width: 8px 16px 8px 0; border-color: transparent #ededed transparent transparent;}
.timeline ul li:nth-child(even) div {left: -500px;}
.timeline ul li:nth-child(even) div::before {right: -15px; border-width: 8px 0 8px 16px; border-color: transparent transparent transparent #ededed;}
time {display: block; font-weight: bold;}

.timeline ul li::after {transition: background .5s ease-in-out;}
.timeline ul li.in-view::after {background: #df252b;}
.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;}


.timeline ul li div.img-cont {position: absolute; width: 90px; height: 90px; background: #ffffff; border-radius: 50%; padding: 8px; margin-right: 15px; display: flex; align-items: center; border: 2px solid #ededed;}

.timeline ul li:nth-child(odd) div.img-cont {position: absolute; left: 415px; top: -45px;}
.timeline ul li:nth-child(even) div.img-cont {position: absolute; left: -45px; top: -45px;}

.timeline ul li:nth-child(odd) div.img-cont, .timeline ul li:nth-child(even) div.img-cont {transform: none; opacity: 1;
   transition: opacity 2.25s ease-in-out;
   -moz-transition: opacity 2.25s ease-in-out;
   -webkit-transition: opacity 2.25s ease-in-out; -webkit-animation-delay: 2s;
animation-delay: 2s;}

.timeline ul li div.img-cont::before {display: none;}
.timeline ul li div.img-cont img {width: 100%; height: auto;}

@media screen and (max-width: 1279px) {
.timeline ul li div {width: 340px;}
.timeline ul li:nth-child(odd) div.img-cont {left: 300px;}
.timeline ul li:nth-child(even) div {left: -385px;}
}

@media screen and (max-width: 900px) {
.timeline ul li div.img-cont {display: none;}
}

@media screen and (max-width: 760px) {
  .timeline ul li {margin-left: 20px;}
  .timeline ul li div {width: calc(100vw - 120px);}
  .timeline ul li:nth-child(even) div {left: 45px;}
  .timeline ul li:nth-child(even) div::before {left: -15px; border-width: 8px 16px 8px 0; border-color: transparent #ededed transparent transparent;}
}