.timeline {
    --timeline-color-turqoise: #007B92;
    --timeline-color-grey: #F5F5F5;
    --timeline-color-red: #BA4827;
    --timeline-color-red-faded: #f8ede9;

    --timeline-menu-min-height: 54px;

    --timeline-horizontal-height: 928px;
    --timeline-horizontal-item-width: 251px;
    --timeline-horizontal-year-width: 510px;

    --timeline-vertical-viewport: 100vh;
    --timeline-horizontal-viewport: 100vh;

    --timeline-vertical-height: max(min(var(--timeline-vertical-viewport), 780px), 680px);
    --timeline-vertical-years-height: calc(var(--timeline-vertical-height) - var(--timeline-menu-min-height));
    --timeline-vertical-year-height: calc(var(--timeline-vertical-years-height) - 120px);
}

@supports (height: 100svmin) {
    .timeline {
        --timeline-vertical-viewport: 100svmin;
    }
}


@supports (width: 100svw) {
    .timeline {
        --timeline-horizontal-viewport: 100svw;
    }
}



/* baseline styling */
.timeline,
.timeline *,
.timeline *:before,
.timeline *:after {
    box-sizing: border-box;
    font-family: "Open Sans", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}

/* hero */
.timeline__hero{
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 32px 16px 16px 16px;
    align-items: center;
}
.cluster-wrapper{
 position:relative; 
}

@media screen and (min-width: 760px) {
    .timeline__hero, {
        padding: 72px 16px 16px 16px;
    }
}

/* backdrop */
.timeline__hero.background:before,
.constent-clusters.hero:before{
    content: '';
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background:         linear-gradient(
            180deg,
            rgba(255,255,255,1) 0%,
            rgba(255,255,255,0.8) 40%,
            rgba(255,255,255,0.8) calc(100% - (var(--timeline-horizontal-height) * 0.48)),
            rgba(255,255,255,0.8) 60%,
            rgba(255,255,255,1) 100%
          ) 
     url("https://3938903.fs1.hubspotusercontent-na1.net/hubfs/3938903/website-2021/backdrop-clusters.png") center 0 repeat;
    background-color: rgba(0,123,145,.2);
    z-index: 0;
    background-size: cover;
}


@media screen and (min-width: 760px) {
    .timeline__hero.background:before,
    .constent-clusters.hero:before{
        height: calc(85% + ( var(--timeline-horizontal-height) * .48 ));
         background:
            linear-gradient(
            180deg,
            rgba(255,255,255,1) 0%,
            rgba(255,255,255,0.8) 40%,
            rgba(255,255,255,0.8) calc(100% - (var(--timeline-horizontal-height) * 0.48)),
            rgba(255,255,255,0.8) 60%,
            rgba(255,255,255,1) 100%
          ),
      url("https://3938903.fs1.hubspotusercontent-na1.net/hubfs/3938903/website-2021/backdrop-clusters.png") center 0 repeat;
        background-color: rgba(0,123,145,.2);
    }
}

/* hero title */
.timeline__heroTitle {
    opacity: 1;
    color: rgba(0, 0, 0, 1);
    font-family: "Bitter";
    font-weight: 600;
    letter-spacing: 0px;
    text-align: center;
    max-width: 580px;
    margin: 0;
    z-index: 1;

    font-size: 30px;
    line-height: 40px;
}


@media screen and (min-width: 760px) {
    .timeline__heroTitle {
        font-size: 56px;
        line-height: 68px;
    }
}

.timeline__heroDescription p{
    opacity: 1;
    color: rgba(0, 0, 0, 1);
    font-family: "Open Sans";
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0px;
    text-align: center;
    line-height: 24px;
    max-width: 560px;
    margin: 0;
    z-index: 1;
    position: relative;
}

.timeline__heroButton {
    z-index: 1;
}
.constent-clusters .topic-row{
  width:100%
}
.constent-clusters h1,
.constent-clusters h2,
.constent-clusters h3,
.constent-clusters h4{
    font-family: "Bitter";
    color:#000;
}
.constent-clusters p,
.constent-clusters ul{
  color:#000;
  margin-bottom: 10px;
}
.constent-clusters ul{
  padding: 0 15px;
}
@media screen and (min-width: 760px) {
    .timeline__heroButton {
        margin-top: 8px;
    }
}

/* provides the fading effect  */
.timeline__wrapper {
    mask-image: linear-gradient(0deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 5px, rgba(255, 255, 255, 1) 25px, rgba(255, 255, 255, 1) calc(100% - 25px), rgba(255, 255, 255, 0) calc(100% - 5px), rgba(255, 255, 255, 0) 100%);

    z-index: 1;
}

@media screen and (min-width: 760px) {
    .timeline__wrapper {
        mask-image: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 5px, rgba(255, 255, 255, 1) max(10px, calc((var(--timeline-horizontal-viewport) - (2 * var(--timeline-horizontal-year-width))) / 2)), rgba(255, 255, 255, 1) calc(100% - max(10px, calc((var(--timeline-horizontal-viewport) - (2 * var(--timeline-horizontal-year-width))) / 2))), rgba(255, 255, 255, 0) calc(100% - 5px), rgba(255, 255, 255, 0) 100%);
    }
}

.timeline__years {
    position: relative;
    height: var(--timeline-vertical-years-height);
    overflow-y: hidden;
}


@media screen and (min-width: 760px) {
    .timeline__years {
        display: inline-flex;
        flex-direction: row;
        height: var(--timeline-horizontal-height);
        margin-left: calc(50% - (var(--timeline-horizontal-year-width) / 2));
        overflow: visible;
    }
}

@media screen and (min-width: 1100px) {
    .timeline__years {
        margin-left: 50%;
    }
}


/* centered circle */
.timeline__years::before {
    content: '';
    display: block;
    position: absolute;
    margin: auto 0;
    border-radius: 100%;
    background-color: var(--timeline-color-red-faded);
}


@media screen and (min-width: 760px) {
    .timeline__years::before {
        width: 146px;
        height: 146px;
        inset: 0 0 0 -73px;
    }
}


.timeline__year {
    position: relative;
    margin: 0;
    height: var(--timeline-vertical-year-height);
    padding: 0;
    background: url("https://3938903.fs1.hubspotusercontent-na1.net/hubfs/3938903/vertical-scale-line.svg") 47px 50% no-repeat,
    url("https://3938903.fs1.hubspotusercontent-na1.net/hubfs/3938903/vertical-scale-marker-month.svg") 47px calc((0 / 12) * 100%)  no-repeat,
    url("https://3938903.fs1.hubspotusercontent-na1.net/hubfs/3938903/vertical-scale-marker-month.svg") 47px calc((1 / 12) * 100%)  no-repeat,
    url("https://3938903.fs1.hubspotusercontent-na1.net/hubfs/3938903/vertical-scale-marker-month.svg") 47px calc((2 / 12) * 100%)  no-repeat,
    url("https://3938903.fs1.hubspotusercontent-na1.net/hubfs/3938903/vertical-scale-marker-month.svg") 47px calc((3 / 12) * 100%)  no-repeat,
    url("https://3938903.fs1.hubspotusercontent-na1.net/hubfs/3938903/vertical-scale-marker-month.svg") 47px calc((4 / 12) * 100%) no-repeat,
    url("https://3938903.fs1.hubspotusercontent-na1.net/hubfs/3938903/vertical-scale-marker-month.svg") 47px calc((5 / 12) * 100%) no-repeat,
    url("https://3938903.fs1.hubspotusercontent-na1.net/hubfs/3938903/vertical-scale-marker-month.svg") 47px calc((6 / 12) * 100%)  no-repeat,
    url("https://3938903.fs1.hubspotusercontent-na1.net/hubfs/3938903/vertical-scale-marker-month.svg") 47px calc((7 / 12) * 100%) no-repeat,
    url("https://3938903.fs1.hubspotusercontent-na1.net/hubfs/3938903/vertical-scale-marker-month.svg") 47px calc((8 / 12) * 100%)  no-repeat,
    url("https://3938903.fs1.hubspotusercontent-na1.net/hubfs/3938903/vertical-scale-marker-month.svg") 47px calc((9 / 12) * 100%)  no-repeat,
    url("https://3938903.fs1.hubspotusercontent-na1.net/hubfs/3938903/vertical-scale-marker-month.svg") 47px calc((10 / 12) * 100%)  no-repeat,
    url("https://3938903.fs1.hubspotusercontent-na1.net/hubfs/3938903/vertical-scale-marker-month.svg") 47px calc((11 / 12) * 100%)  no-repeat;
}

@media screen and (max-width: 760px) {
    .timeline__year:not(.start):first-of-type {
        transition: margin .4s ease;
        /*
            position year slightly ofset from vertical center,
            this makes the bubbles in the new yar faded to
            indicate navigation is needed
        */
        margin-top: calc(
                (var(--timeline-active-year-index) * -1 * var(--timeline-vertical-year-height))
                + ((var(--timeline-vertical-years-height) - var(--timeline-vertical-year-height)) * .8)
        );
    }
  .constent-clusters.hero:before{
      content:none;
  }
  
}

@media screen and (min-width: 760px) {
    .timeline__year {
        height: initial;
        width: var(--timeline-horizontal-year-width);
        background: url("https://3938903.fs1.hubspotusercontent-na1.net/hubfs/3938903/horizontal-scale-line.svg") 0% 50% no-repeat,
        url("https://3938903.fs1.hubspotusercontent-na1.net/hubfs/3938903/horizontal-scale-marker-year.svg") 0% calc(50% - 18px) no-repeat,
        url("https://3938903.fs1.hubspotusercontent-na1.net/hubfs/3938903/horizontal-scale-marker-month.svg") calc((1 / 12) * 100%) calc(50% - 10px) no-repeat,
        url("https://3938903.fs1.hubspotusercontent-na1.net/hubfs/3938903/horizontal-scale-marker-month.svg") calc((2 / 12) * 100%) calc(50% - 10px) no-repeat,
        url("https://3938903.fs1.hubspotusercontent-na1.net/hubfs/3938903/horizontal-scale-marker-month.svg") calc((3 / 12) * 100%) calc(50% - 10px) no-repeat,
        url("https://3938903.fs1.hubspotusercontent-na1.net/hubfs/3938903/horizontal-scale-marker-month.svg") calc((4 / 12) * 100%) calc(50% - 10px) no-repeat,
        url("https://3938903.fs1.hubspotusercontent-na1.net/hubfs/3938903/horizontal-scale-marker-month.svg") calc((5 / 12) * 100%) calc(50% - 10px) no-repeat,
        url("https://3938903.fs1.hubspotusercontent-na1.net/hubfs/3938903/horizontal-scale-marker-month.svg") calc((6 / 12) * 100%) calc(50% - 10px) no-repeat,
        url("https://3938903.fs1.hubspotusercontent-na1.net/hubfs/3938903/horizontal-scale-marker-month.svg") calc((7 / 12) * 100%) calc(50% - 10px) no-repeat,
        url("https://3938903.fs1.hubspotusercontent-na1.net/hubfs/3938903/horizontal-scale-marker-month.svg") calc((8 / 12) * 100%) calc(50% - 10px) no-repeat,
        url("https://3938903.fs1.hubspotusercontent-na1.net/hubfs/3938903/horizontal-scale-marker-month.svg") calc((9 / 12) * 100%) calc(50% - 10px) no-repeat,
        url("https://3938903.fs1.hubspotusercontent-na1.net/hubfs/3938903/horizontal-scale-marker-month.svg") calc((10 / 12) * 100%) calc(50% - 10px) no-repeat,
        url("https://3938903.fs1.hubspotusercontent-na1.net/hubfs/3938903/horizontal-scale-marker-month.svg") calc((11 / 12) * 100%) calc(50% - 10px) no-repeat;
    }

    .timeline__year:first-child {
        transition: margin .2s ease;
        margin-left: calc((var(--timeline-active-year-index)) * -1 * var(--timeline-horizontal-year-width))
    }
}

/* year label */
.timeline__year:before {
    content: attr(data-timeline-year);
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    color: #000;
    z-index: 5;
    transition: all 250ms ease;
    left: 10px;
    top: -6px;
    height: 12px;
    font-size: 8px;
    width: 24px;
    line-height: 12px;
}


@media screen and (min-width: 760px) {
    .timeline__year:before {
        top: calc(50% + 22px);
        left: -41px;
        width: 82px;
        height: 24px;
        font-size: 1rem;
    }
}

.timeline__year.--active:before {
    color: white;
    background-color: var(--timeline-color-red);
    font-weight: 700;
}

@media screen and (min-width: 760px) {
    .timeline__year.--active:before {
        height: 60px;
        top: calc(50% + 32px);
        letter-spacing: -0.18px;
        font-size: 1.125rem;
        border-bottom: 4px solid white;
        border-top: 8px solid var(--timeline-color-red-faded);
    }
}

.timeline__year.--active:after {
    content: '';
    position: absolute;
    display: block;


    height: 3px;
    width: 3px;

    z-index: 5;

    background-color: var(--timeline-color-red);
    transform: rotate(45deg);

    left: 32px;
    top: -1.5px;
}

@media screen and (min-width: 760px) {
    .timeline__year.--active:after {
        height: 8px;
        width: 8px;
        top: calc(50% + 36px);
        left: -4px;
    }
}

/* item/ message bubble on timeline */
.timeline__item {
    position: absolute;
    display: block;
    background: white;
    border: 1px solid #868686;
    padding: 8px;
    left: 75px;
    width: calc(100% - 90px);
    transform: translateY(calc(-50% + 1px));
    min-height: 116px;
}

@media screen and (max-width: 760px) {
    .timeline__item:nth-child(1) {
        top: 0;
    }

    .timeline__item:nth-child(2) {
        top: 25%;
    }

    .timeline__item:nth-child(3) {
        top: 50%;
    }

    .timeline__item:nth-child(4) {
        top: 75%;
    }

    .timeline__item:nth-child(n+5) {
        display: none;
    }

    .timeline__item:has(.timeline__itemImage) {
        padding-left: 116px;
        min-height: 118px
    }
}


@media screen and (min-width: 760px) {
    .timeline__item {
        top: initial;
        left: calc((((var(--timeline-item-month, 1) - 1) / 12) * (100% - 1px)) - (var(--timeline-horizontal-item-width) / 2));
        max-height: calc(50% - 110px);
        width: var(--timeline-horizontal-item-width);
        padding: 16px;
        transform: none;
    }
}

/* special is the celebration item */
.timeline__item.--special {
    width: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #151E53;
    border: none;
}

@media screen and (min-width: 760px) {
    .timeline__item.--special {
        width: 144px;
        left: calc((((var(--timeline-item-month, 1) - 1) / 12) * (100% - 1px)) - 72px);
    }
}


/* Month indicator */
.timeline__item::before {
    content: '';
    content: attr(data-timeline-item-month-shortname);
    display: flex;
    align-items: center;
    position: absolute;
    background: url("https://3938903.fs1.hubspotusercontent-na1.net/hubfs/3938903/vertical-marker-month.svg") 24px 50% no-repeat;
    height: calc(100% - 2px);
    width: 59px;
    left: -59px;
    top: 0;

    color: rgba(60, 60, 60, 1);
    font-family: "Open Sans";
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 0px;
    text-align: left;
    line-height: 12px;
}

@media screen and (min-width: 760px) {
    .timeline__item::before {
        content: '';
        background: url("https://3938903.fs1.hubspotusercontent-na1.net/hubfs/3938903/horizontal-marker-month.svg") center 15px no-repeat;
        height: 134px;
        width: 40px;
        left: calc(50% - 19px);
        top: initial;
    }
}


/* overlap month indicator with hearth icon if item is special  */
.timeline__item.--special::before {
    content: '';
    background: url("https://3938903.fs1.hubspotusercontent-na1.net/hubfs/3938903/vertical-hearth.svg") 22px 50% no-repeat
}

@media screen and (min-width: 760px) {
    .timeline__item.--special::before {
        background: url("https://3938903.fs1.hubspotusercontent-na1.net/hubfs/3938903/horizontal-hearth.svg") center bottom no-repeat,
        url("https://3938903.fs1.hubspotusercontent-na1.net/hubfs/3938903/horizontal-marker-month.svg") center 15px no-repeat;
    }
}


@media screen and (min-width: 760px) {
    .timeline__item.--over {
        bottom: calc(50% + 115px);
    }

    .timeline__item.--over::before {
        top: 100%;
    }

    .timeline__item.--under {
        top: calc(50% + 115px);
    }

    .timeline__item.--under::before {
        bottom: 100%;
        transform: scaleY(-1);
    }
}

/* message bubble indicator */
.timeline__item::after {
    content: '';
    display: block;
    height: 7px;
    width: 7px;
    position: absolute;
    background: white;
    border: 1px solid #868686;
    transform: rotate(45deg);
    left: -4px;
    bottom: calc(50% - 3px);
    border-width: 0 0 1px 1px;
}


@media screen and (min-width: 760px) {
    .timeline__item::after {
        border-width: 0 1px 1px 0;
        left: calc(50% - 3px);
        bottom: -5px;
    }
}

.timeline__item.--special::after {
    border: 1px solid #151E53;
    background-color: #151E53;
}

@media screen and (max-width: 760px) {
    .timeline__item.--special::after {
        left: -3.5px;
    }
}

@media screen and (min-width: 760px) {
    .timeline__item.--special::after {
        bottom: -4px;
    }
}


@media screen and (min-width: 760px) {
    .timeline__item.--under::after {
        bottom: initial;
        top: -5px;
        border-width: 1px 0 0 1px;
    }
}

.timeline__itemImage {
    width: 100%;
    object-fit: cover;
    object-position: center center;
}

@media screen and (max-width: 760px) {
    .timeline__itemImage {
        position: absolute;
        left: 8px;
        top: 8px;
        width: 100px;
        aspect-ratio: 1 / 1;
    }
    .timelist__itemImage{
      width: 100%;
      aspect-ratio: auto;
      left: 0;
      top: 0;
      position: relative;
    }
}

@media screen and (min-width: 760px) {
    .timeline__itemImage {
        aspect-ratio: 218 / 123;
        margin-top: 16px;
    }

}

.timeline__itemDate {
    display: block;
    color: var(--timeline-color-red);
    font-size: 8px;
    line-height: 12px;
    font-weight: 400;
    letter-spacing: 0px;
    margin: 0;
}

@media screen and (min-width: 760px) {
    .timeline__itemDate {
        font-size: 12px;
        line-height: initial;
    }
}

.timeline__item.--special .timeline__itemDate {
    color: #fff;
}

.timeline__itemTitle {
    font-family: "Bitter";
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0px;
    line-height: 18px;
    margin: 2px 0 0 0;
}


@media screen and (min-width: 760px) {
    .timeline__itemTitle {
        font-size: 16px;
        font-weight: 600;
        letter-spacing: 0px;
        line-height: 24px;
        font-weight: 600;
        margin: 1em 0 0 0;
    }
}

.timeline__item.--special .timeline__itemTitle {
    color: #fff;
    font-size: 48px;
    font-weight: 900;
    text-align: center;
    margin-top: 2px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 58px;
}

@media screen and (min-width: 760px) {
    .timeline__item.--special .timeline__itemTitle {
        font-size: 72px;
        height: 86px;
    }
}

.timeline__itemContent,
.timeline__itemContent p{
    color: rgba(60, 60, 60, 1);
    font-size: 8px;
    font-weight: 400;
    letter-spacing: 0px;
    line-height: 12px;
    margin: 0.4375em 0 0 0;
}

@media screen and (min-width: 760px) {
    .timeline__itemContent,
    .timeline__itemContent p{
        font-size: 12px;
        line-height: 18px;
        margin: 2px 0 0 0;
    }
}

.timeline__itemLink {
    display: inline-block;
    font-size: 8px;
    line-height: 12px;
    margin: 8px 0 0 0;
}

.timeline__itemLink.button {
    font-size: 10px;
    line-height: 18px;
    margin: 8px 0 0 0;
    padding: 3px;
}

@media screen and (min-width: 760px) {
    .timeline__itemLink {
        font-size: 12px;
        line-height: 18px;
        margin: 16px 0 0 0;
    }

    .timeline__itemLink.button {
        font-size: 16px;
        line-height: 24px;
        margin: 16px 0 0 0;
        width: 100%;
        padding: 7px;

    }
}

.timeline__item.--special .timeline__itemContent,
.timeline__item.--special .timeline__itemContent p{
    color: #fff;
    text-align: center;
    font-family: "Bitter";
    font-size: 10px;
    line-height: 15px;

    font-weight: 600;
    letter-spacing: 0px;
    text-align: center;
    padding: 0 8px;
    margin: -4px 0 0 0;
}

@media screen and (min-width: 760px) {
    .timeline__item.--special .timeline__itemContent,
    .timeline__item.--special .timeline__itemContent p{
        font-size: 16px;
        line-height: 24px;
        padding: 0;
        margin: 0;
    }
}

.timeline__menu {
    display: grid;
    align-items: center;
    justify-content: center;
    gap: 12px;
    grid-auto-flow: column;
    margin: 0 0 3em 0;
    padding: 0;
    min-height: var(--timeline-menu-min-height);
}

.timeline__menuActiveYear {
    padding: 0 12px;

    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0;
}

.timeline__menuButton {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 100%;
    width: 30px;
    height: 30px;

    background: white;

    border: none;

    opacity: 1;
    transition: opacity .2s ease;
}

.timeline__menuButton[disabled] {
    opacity: 0;
}

.timeline__menuButton:not([disabled]) {
    cursor: pointer;
}

.timeline__menuButton.--previous,
.timeline__menuButton.--next {
    width: 48px;
    height: 48px;
    background: var(--timeline-color-turqoise) url("https://3938903.fs1.hubspotusercontent-na1.net/hubfs/3938903/menu-button-next.svg") center center no-repeat;
}

.timeline__menuButton.--start,
.timeline__menuButton.--end {
    width: 40px;
    height: 40px;
    background: var(--timeline-color-grey) url("https://3938903.fs1.hubspotusercontent-na1.net/hubfs/3938903/menu-button-end.svg") center center no-repeat;
}


.timeline__menuButton.--previous,
.timeline__menuButton.--start {
    transform: rotate(180deg);
}
.timelist__years{
    display:flex;
    flex-wrap: wrap;
    position: relative;
    
}
.timelist__year{
    padding: 1rem;
    list-style: none;
}
.timelist__item{
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
    background: #fff;
}
.timelist__itemImage{
  margin-top:0;
}
.timelist__item .timeline__itemTitle,
.timelist__item .timeline__itemContent,
.timelist__item .timeline__itemLink{
  margin: 1rem;
  width: auto;
}
.timelist__item{
    -webkit-box-shadow: 0px 13px 10px -5px rgb(0 0 0 / 15%);
    box-shadow: 0px 13px 10px -5px rgb(0 0 0 / 15%);
    border: 1px solid #8686861a;
}
