.main-timeline {
  width: 100%;
  margin: 20px auto;
  position: relative;
}

.main-timeline:before {
  content: "";
  display: block;
  width: 2px;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  margin: 0 0 0 -1px;
  position: absolute;
  top: 0;
  left: 50%;
}

.main-timeline .timeline {
  width: 100%;
  margin-bottom: 20px;
  position: relative;
}

.main-timeline .timeline:after {
  content: "";
  display: block;
  clear: both;
}

.main-timeline .timeline-content {
  width: 40%;
  float: left;
  margin: 5px 0 0 0;
  border-radius: 6px;
  box-shadow: 0px 2px 2px var(--shadow);
  cursor: pointer;
}

.main-timeline .date {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--default-primary-color);
  padding: 5px 0;
  margin: 0 0 0 -36px;
  position: absolute;
  top: 0;
  left: 50%;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 1);
  border: 2px solid rgba(255, 255, 255, 1);
  box-shadow: 0 0 0 7 var(--default-primary-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.main-timeline .date span {
  display: block;
  text-align: center;
}

.main-timeline .year {
  font-size: 10px;
  line-height: 10px;
}

.main-timeline .month {
  font-size: 18px;
  padding-bottom: 2px;
}

.timeline-card {
  box-shadow: var(--shadow);
}

.main-timeline .title,
#galleryPageDetails2 h2 {
  padding: 15px;
  margin: 0;
  font-size: 18px;
  font-family: var(--heading-font);
  font-weight: var(--heading-font-wt);
  color: var(--text-primary-color);
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 6px 6px 0 0;
  position: relative;
}

.main-timeline .title:after {
  content: "";
  width: 10px;
  height: 10px;
  position: absolute;
  top: 20px;
  right: -5px;
  transform: rotate(-45deg);
}

.main-timeline .timeline:nth-child(2n + 2) .timeline-content {
  float: right;
}

.main-timeline .timeline:nth-child(2n + 2) .title:after {
  left: -5px;
}

.main-timeline .timeline:nth-child(1) .title,
.main-timeline .timeline:nth-child(1) .title:after,
.main-timeline .timeline:nth-child(1) .date {
  background: var(--default-primary-color);
}

.main-timeline .timeline:nth-child(2) .title,
.main-timeline .timeline:nth-child(2) .title:after,
.main-timeline .timeline:nth-child(2) .date {
  background: var(--accent-color);
}

.main-timeline .timeline:nth-child(3) .title,
.main-timeline .timeline:nth-child(3) .title:after,
.main-timeline .timeline:nth-child(3) .date {
  background: var(--default-primary-color);
}

.main-timeline .timeline:nth-child(4) .title,
.main-timeline .timeline:nth-child(4) .title:after,
.main-timeline .timeline:nth-child(4) .date {
  background: var(--accent-color);
}

@media only screen and (max-width: 990px) {
  .main-timeline {
    width: 100%;
  }
}

@media only screen and (max-width: 767px) {
  .main-timeline:before,
  .main-timeline .date {
    left: 6%;
  }

  .main-timeline .timeline-content {
    width: 85%;
    float: right;
  }

  .main-timeline .title:after {
    left: -5px;
  }
}

@media only screen and (max-width: 480px) {
  .main-timeline:before,
  .main-timeline .date {
    left: 12%;
  }

  .main-timeline .timeline-content {
    width: 75%;
  }

  .main-timeline .date {
    width: 60px;
    height: 60px;
    margin-left: -30px;
  }

  .main-timeline .month {
    font-size: 14px;
  }
}

.sections h4 {
  font-family: var(--heading-font);
  font-weight: var(--heading-font-wt);
  letter-spacing: 1px;
}
