/* Creates an rgba background based on a HEX colour */
/*============================================================================
Breakpoint Variables
==============================================================================*/
/*============================================================================
  Breakpoint Mixins
==============================================================================*/
.cd-container {
  margin: 0 auto;
  padding: 0 0;
}
@media (min-width: 782px) {
  .cd-container {
    width: 90%;
    max-width: 1280px;
  }
}
.cd-container img {
  width: 100%;
}
.cd-container::after {
  content: "";
  display: table;
  clear: both;
}

/* -------------------------------- 

Main components 

-------------------------------- */
#cd-timeline {
  position: relative;
  padding: 0;
}
#cd-timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 27px;
  height: 100%;
  width: 1.5px;
  background: var(--wp--preset--color--contrast-3);
}

@media only screen and (min-width: 1170px) {
  #cd-timeline {
    margin-top: 3em;
    margin-bottom: 3em;
  }
  #cd-timeline::before {
    left: 50%;
    margin-left: -2px;
  }
}
.cd-timeline-block {
  position: relative;
  margin: 0 0 2em;
}

.cd-timeline-block:after {
  content: "";
  display: table;
  clear: both;
}

.cd-timeline-block:first-child {
  margin-top: 0;
}

.cd-timeline-block:last-child {
  margin-bottom: 0;
}

@media only screen and (min-width: 1170px) {
  .cd-timeline-block {
    margin: 0;
    top: -150px;
  }
  .cd-timeline-block:first-child {
    margin-top: 0;
    top: 0;
  }
  .cd-timeline-block:last-child {
    margin-bottom: 0;
  }
}
.cd-timeline-img {
  position: absolute;
  top: 0px;
  left: 20px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
}

.cd-timeline-img {
  background: var(--wp--preset--color--contrast-3);
}

@media only screen and (min-width: 1170px) {
  .cd-timeline-img {
    left: 50%;
    margin-left: -10px;
    margin-top: 0;
    /* Force Hardware Acceleration in WebKit */
    transform: translateZ(0);
    backface-visibility: hidden;
  }
}
.cd-timeline-content {
  position: relative;
  margin-left: 60px;
  margin-right: 30px;
  border-radius: 2px;
}

.cd-timeline-content:after {
  content: "";
  display: table;
  clear: both;
}

@media only screen and (min-width: 1170px) {
  .cd-timeline-content {
    margin-left: 0;
    padding: 0 0;
    width: 36%;
    margin: 0 9%;
  }
  .cd-timeline-block:nth-child(even) .cd-timeline-content {
    float: right;
  }
  .cd-timeline-block:nth-child(even) .cd-timeline-content::before {
    content: "";
    display: block;
    width: 30px;
    height: 1.5px;
    background: var(--wp--preset--color--contrast-3);
    position: absolute;
    left: -60px;
    top: 7px;
  }
  .cd-timeline-block:nth-child(odd) .cd-timeline-content::before {
    content: "";
    display: block;
    width: 30px;
    height: 1.5px;
    background: var(--wp--preset--color--contrast-3);
    position: absolute;
    right: -55px;
    top: 7px;
  }
}
