.timeline--heading h2 {
  text-align: center;
  color: #201F21;
  margin: 0px;
}

.timeline--heading {
  margin-bottom: 80px;
}

.timeline--outer--wrapper {
  background-color: #f9f5ff;
  padding: 40px 0;
  position: relative;
  z-index: 1;
}

.timeline--inner--wrapper li {
  list-style: none;
}

.timeline--inner--wrapper {
  position: relative;
}

.timeline--row {
  font-size: 0;
  overflow: hidden;
  position: relative;
  white-space: nowrap;
  width: 100%;
  cursor: grab;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  transition: background-color 0.5s;
}

.timeline--row.active {
  cursor: grab;
}

.timeline--col {
  background: #fff;
  border-radius: 20px;
  box-sizing: border-box;
  display: inline-block;
  margin-left: 10px;
  user-select: none;
}

.timeline--col--inner {
  padding: 16px;
}

.timeline--content {
  min-height: 220px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
}

.timeline--content h2 {
  font-size: 42px;
  font-weight: 600;
  line-height: 100%;
  color: #6200EE;
  opacity: 0.2;
  margin: 0px;
  flex: 0 100%;
}

.timeline--content p {
  color: #201f21;
  font-size: 16px;
  line-height: 140%;
  margin: 0;
  white-space: break-spaces;
  margin-top: 50px;
  display: flex;
  align-items: flex-end;
  min-height: 120px;
}

.item:last-child {
  margin-right: 20px;
}

.item:hover,
.item:focus {
  background-color: #6200EE;
}

.item:hover h2,
.item:focus h2 {
  color: #ffffff;
  opacity: 1;
}

.item:hover p,
.item:focus p {
  color: #ffffff;
}

.item:first-child {
  background-color: #6200ee;
  margin-left: 30px;
}

.item:first-child .timeline--content h2 {
  color: #ffffff;
  opacity: 1;
}

.item:first-child .timeline--content p {
  color: #ffffff;
}

@supports (display: grid) {
  .grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto 1fr auto;
    grid-template-areas: "header header header" "title title footer" "main main main";
  }
  
  @media screen and (max-width: 500px) {
    .grid-container {
      grid-template-columns: 1fr;
      grid-template-rows: 0.3fr 1fr auto 1fr;
      grid-template-areas: "header" "title" "main" "footer";
    }
  }

  .grid-item {
    color: #fff;
    background: skyblue;
    padding: 3.5em 1em;
    font-size: 1em;
    font-weight: 700;
  }

  .title {
    color: #555;
    background-color: #f4fbfd;
    grid-area: title;
  }

  .main {
    color: #959595;
    background-color: white;
    grid-area: main;
    padding: 0;
    overflow-x: hidden;
    overflow-y: hidden;
  }

  .items {
    position: relative;
    width: 100%;
    overflow-x: hidden;
    overflow-y: hidden;
    white-space: nowrap;
    transition: all 1s;
    will-change: transform;
    user-select: none;
    cursor: pointer;
  }

  .items.active {
    background: rgba(255, 255, 255, 0.3);
    cursor: grabbing;
    cursor: -webkit-grabbing;
    transform: scale(1);
  }
  
  .items::-webkit-scrollbar {
    width: 0px;
  }

  .item {
    display: inline-block;
    background: #ffffff;
    min-height: 212px;
    min-width: 225px;
    margin: 0 0px 0 10px;
    width: 225px;
    border-radius: 20px;
  }
  
  @media (max-width: 1200px) {
    .items {
      overflow-x: scroll;
    }
  }
  
  @media (max-width: 600px) {
    .items {
      padding: 0px;
      margin: 0px;
    } 
    
    .timeline--heading h2 {
      font-size: 24px;
    }
    
    .timeline--outer--wrapper {
      padding: 40px 0 70px;
    }
  }
  
  @media screen and (max-width: 500px) {
    .item {
      min-height: 200px;
      min-width: 200px;
    }
  }
}