.history {
}
/* ----------------------------  */
/* hero  */
.history .hero {
  min-height: 100vh;
}
.history .hero .container-content {
  display: grid;
  grid-template-areas: ". header .";
  grid-template-columns: 0.1fr 1fr 0.1fr;
  color: var(--color-ivory);
  /* font-weight: 800; */
}
@media (min-width: 800px) {
  .history .hero {
    min-height: 75vh;
  }
  .history .hero .container-content {
    grid-template-areas: ". header .";
  }
}
.history .hero .container-content div {
  grid-area: header;
}

.timeline {
  background-color: var(--color-moss-green);
  color: var(--color-ivory);
  .header {
    text-align: center;
    margin: 1em;
  }

  .years {
    position: relative;
    display: grid;
    grid-template-columns: auto 1px;
    grid-template-areas: "cards" "indicators";
    /* The actual timeline (the vertical ruler) */

    @media (min-width: 800px) {
      grid-template-areas: "cards indicators";
    }

    .cards {
      grid-area: cards;
      position: relative;

      & ul {
        /* position: relative; */
        max-width: 1200px;
        margin: 0 auto;
        padding: 10px;
        list-style: none;
        border-top: 3px solid var(--color-gold);
        border-bottom: 3px solid var(--color-gold);
        
        overflow-x: hidden;
        overflow-y: scroll;
        scroll-snap-type: y mandatory;
        height: clamp(400px, 600px, 75vh);
        

        /* Hide scrollbar for IE, Edge and Firefox */
        -ms-overflow-style: none; /* IE and Edge */
        scrollbar-width: none; /* Firefox */
        /* Hide scrollbar for Chrome, Safari and Opera */
        &::-webkit-scrollbar {
          display: none;
        }

        & li {
          --h-offset: 80px;
          --dot-offset: 10px;
          position: relative;
          background-color: inherit;
          /* width: 50%; */
          scroll-snap-align: center;

          height: 80%;
          height: fit-content;
          margin: 5rem 0;
          z-index: 1;
          /* The actual content */
          .year {
            padding: 2rem;
            background-color: var(--color-moss-green);
            position: relative;
            border: 2px solid var(--color-gold);
            height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: center;
            .header {
              color: var(--color-gold);
            }
          }
        }
        @media (min-width: 800px) {
          & li {
            width: 50%;
            scroll-snap-align: center;

            height: 95%;
            height: fit-content;

            margin: 0;
          }
          & li:nth-child(odd) {
            padding-right: var(--h-offset);
            left: 0;
          }
          & li:nth-child(even) {
            padding-left: var(--h-offset);
            left: 50%;
          }
        }

        @media (min-width: 800px) {
          & li:nth-child(odd)::before,
          & li:nth-child(even)::before {
            content: " ";
            height: 0;
            position: absolute;
            top: calc(50% - 3px);
            width: 200px;
            /* z-index: 1; */
            border: 1.5px solid var(--color-gold);
          }
          & li:nth-child(odd)::before {
            right: -60px;
          }
          & li:nth-child(even)::before {
            left: -60px;
          }
        }

        & li::after {
          content: "";
          position: absolute;
          width: 20px;
          height: 20px;
          background-color: var(--color-gold);
          border: 6px solid var(--color-moss-green);
          top: -12.5px;
          left: calc(50% - 12.5px);
          border-radius: 50%;
          z-index: 1;
        }
        @media (min-width: 800px) {
          & li::after {
            top: calc(50% - 17px);
            left: -12.5px;
          }
          & li:nth-child(odd)::after {
            left: calc(100% - 14px);
          }
          & li:nth-child(even)::after {
            right: calc(100% - 18px);
          }
        }

        & li.active::after {
          background-color: var(--color-ivory);
          border: 6px solid var(--color-moss-green);
        }
      }

      /* The actual timeline (the vertical ruler) */
      & ul::after {
        content: "";
        position: absolute;
        width: 0;
        /* background-color: var(--color-gold); */
        border-left: 3px dashed var(--color-gold);
        top: 0;
        bottom: 0;
        left: calc(50% + 1.5px);
        /* height: 100%; */
      }
    }
    .indicators {
      grid-area: indicators;
      & ul {
        list-style: none;
        position: sticky;
        top: 50%;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(10px, 20px));
        justify-content: center;
        gap: 1rem;
        padding-left: calc(var(--container-fluid-margin-x) / 2);
        & li {
          border: 3px solid var(--color-ivory);
          border-radius: 50%;
          width: 10px;
          height: 10px;
        }
        & li.active {
          background-color: var(--color-ivory);
        }
      }
    }
  }
}

.header-double-tile.family {
  padding-top: var(--sub-section-margin-y);
  padding-bottom: var(--sub-section-margin-y);
}