.timeline-container {
    background-image: url(/wp-content/uploads/bg-color.jpg);
    background-repeat: repeat-x;
    background-size: auto 100%;
    height: 440px;
    overflow-x: hidden;
    position: relative;
}
.ticks-top, .ticks-bottom {
    position: absolute;
    height: 16px;
    width: 100%;
    background-image: url(/wp-content/uploads/ticks2.png);
}
.ticks-top {
    top: 5px;
    z-index:1099;
}
.ticks-bottom {
    bottom: 45px;
    transform: scaleY(-1);
    z-index: 1100;
}
.timeline-slides {
    position: absolute;
    height: 400px;
    width: 100%;
}
.timeline-slide {
    position: absolute;
    height: 100%;
    width: 770px;
    top: 0;
    overflow-y: hidden;
}
.timeline-slide:first-of-type {
    /*width: 1000px;*/
}
.timeline-pagers {
    position: absolute;
    background-color: #333333;
    height: 40px;
    width: 100%;
    bottom: 0;
}
.timeline-pagers .panel {
    display: flex;
    height: 100%;
    justify-content: space-between;
    align-items: center;
}
.timeline-pagers .panel::before, .timeline-pagers .panel::after {
    display: none;
}
.page-left, .page-right {
    background-color: #dddddd;
    width: 50px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 4px;
    margin-bottom: 4px;
}
.page-left-arrow, .page-right-arrow {
    width: 0;
    height: 0;
    border-top: transparent 12px solid;
    border-bottom: transparent 12px solid;
    cursor: pointer;
}
.page-left.disabled, .page-right.disabled {
    opacity: 0.4;
    pointer-events: none;
    cursor: default;
}
.page-left-arrow {
    border-right: #474747 solid 12px;
}
.page-left:hover {
    background-color: #0D75AF;
}
.page-left:hover .page-left-arrow {
    border-right: white solid 12px;
}
.page-right:hover {
    background-color: #0D75AF;
}
.page-right:hover .page-right-arrow {
    border-left: white solid 12px;
}
.page-right-arrow {
    border-left: #474747 solid 12px;
}
.pager {
    width: 8px;
    height: 8px;
    background-color: #666666;
    transition: all 0.2s;
    cursor: pointer;
}
.pager:not(.current-slide):hover {
    background-color: white;
}
.pager.current-slide {
    width: 13px;
    height: 13px;
    background-color: #dddddd;
    box-shadow: rgba(255,255,255,0.7) 0 0 7px;
}
.timeline-slide {
    position: absolute;
    overflow-x: hidden;
}
.timeline-header {
    position: absolute;
    top: 25px;
    left: 0;
    z-index: 2;
    display: flex;
    align-items: end;
    align-items: flex-end;
}
.timeline-header figure {
    margin-bottom: 0;
}
.timeline-header img {
    width: 230px;
    height: auto;
}
.timeline-header p {
    color: white;
    font-size: 19px;
    height: 45px;
    padding: 5px 40px;
    background-color: black;
    margin-left: 20px;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 8px;
}
.timeline-text h4 {
    font-weight: 400;
    font-size: 30px;
    color: #6e2159;
}
.timeline-text p {
    font-size: 18px;
}
.timeline-caption p a:has(.timeline-video-link) {
    display: block;
    width: 100%;
    text-align: center;
}
.timeline-video-link {
    max-width: 85px;
    height: auto;
    margin-bottom: 15px;
}
.timeline-video-link figcaption {
    font-size: 16px;
    font-weight: 400;
    color: white;
    margin: 0;
}
.timeline-slide .timeline-slide-legend {
    display: none;
}
.timeline-slide-info {
    position: absolute;
    top: 50%;
    z-index: 3;
    left: 20px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    width: 430px;
    align-items: start;
    align-items: flex-start;
}
.timeline-slide:first-of-type .timeline-slide-info {
    /*transform: translateY(0);*/
}
.timeline-slide:first-of-type .timeline-slide-info {
    /*left: 240px;*/
}
.first-slide {
    margin-left: 150px;
}
.first-slide .timeline-slide-info {
    left: 60px;
}
.timeline-slide-year {
    font-size: 24px;
    color: white;
    background-color: black;
    padding: 5px 15px 8px;
    flex-grow: 0;
}
.timeline-slide-head {
    font-size: 22px;
    color: white;
    line-height: 1.4;
    width: 270px;
    text-shadow: rgba(0,0,0,0.8) 3px 3px 4px;
}
.timeline-slide-head::before {
    content: url(/wp-content/uploads/dotline.png);
    position: absolute;
    left: -20px;
    top: 15px;
    transform-origin: 5px 5px;
}
.timeline-slide-subtext {
    width: 390px;
    margin-left: 40px;
    margin-top: 15px;
    transition: opacity 0.4s;
}
.reducedSlide .timeline-slide-subtext {
    opacity: 0;
}
.timeline-slide-subtext p {
    padding-bottom: 8px;
    font-size: 16px;
    line-height: 17px;
    color: white;
}
.timeline-slide:nth-child(2n) .timeline-slide-head::before {
    transform: rotate(180deg)
}
.timeline-caption {
    transition: opacity 0.4s;
}
.reducedSlide .timeline-caption {
    opacity: 0;
}
.slideshow-slide-caption p {
    padding-bottom: 0;
    color: white;
    text-shadow: rgba(0,0,0,0.8) 3px 3px 4px;
}
.slide-background {
    width: 100%;
    height: 100%;
    background-position-x: right;
    background-size: auto 100%;
    background-repeat: no-repeat;
    transition: opacity 0.4s;
}
.reducedSlide .slide-background {
    opacity: 0;
}
.timeline-slide:nth-of-type(1) .slide-background, .timeline-slide:nth-of-type(2) .slide-background {
    background-position-x: right;
}
.slide-graphic {
    margin-top: 10px;
    max-width: 260px;
    transition: width 0.4s, max-width 0.4s;
}
.slide-graphic-border {
    width: 210px;/*
    height: 140px;
    border: 2px white solid;
    border-radius: 6px;*/
}
.slide-graphic-border img {
    max-width: 100%;
}
.reducedSlide .slide-graphic {
    max-width: 180px;
}
.reducedSlide .slide-graphic-border {
    width: 150px;
}
.timeline-caption {
    position: absolute;
}
.timeline-caption p {
    font-size: 18px;
    color: white;
    font-weight: 700;
    text-shadow: rgba(0,0,0,0.8) 3px 3px 4px;
}
.timeline-slide-text {
    display: none;
}
.timeline-legend {
    padding-bottom: 40px;
    background-color: var(--lemelson-gallery);
}
.timeline-legend .panel {
    background-color: white;
    border: 10px solid var(--lemelson-tea);
    border-top: none;
    padding: 35px 125px 60px;
}
.timeline-legend h3 {
    font-size: 30px;
    line-height: 35px;
    margin-bottom: 20px;
}
.timeline-legend p {
    font-size: 18px;
    line-height: 30px;
    margin-bottom: 0;
}

@media screen and (max-width: 1000px) {
    .timeline-slide {
        width: 600px;
    }
    .slide-graphic-border {
        width: 180px;
    }

    .timeline-caption p {
        font-size: 14px;
    }
    .timeline-slide[data-slide="17"] .slide-background {
        background-position-x: 40px;
    }
}

@media screen and (max-width: 800px) {
    .timeline-header img {
        width: 150px;
    }
    .timeline-header p {
        font-size: 15px;
        padding: 3px 20px;
        height: 30px;
    }
    .timeline-slide-year {
        font-size: 20px;
    }
    .timeline-legend h3 {
        font-size: 24px;
        line-height: 28px;
        margin-bottom: 15px;
    }
    .timeline-legend p {
        font-size: 14px;
        line-height: 20px;
    }
    .timeline-caption p {
        font-size: 14px;
    }
    .timeline-video-link {
        max-width: 50px;
    }
}

@media screen and (max-width: 650px) {
    .timeline-slide-info {
        left: 0;
        top: 45px;
        transform: none;
    }
    .slide-background {
        background-size: 120%;
        background-position: bottom right;
    }
    .slide-graphic {
        order: 3;
    }
    .slide-graphic-border {
        width: 150px;
    }
    .timeline-slide-head {
        font-size: 16px;
        order: 2;
    }
    .timeline-slide {
        width: 400px;
    }
    .timeline-slide-subtext {
        display: none;
    }
    .timeline-header {
    }
    .timeline-slide:first-of-type  .timeline-slide-info {
        top: 100px;
    }
    .timeline-header img {
        width: 100px;
    }
    .timeline-header p {
        font-size: 12px;
        padding: 2px 15px;
        height: unset;
        text-align: center;
        width: 140px;
    }
    .slide-graphic {
        display: none;
    }
    .timeline-caption {
        left: 20px !important;
        bottom: 20px !important;
        right: 20px !important;
        top: unset !important;
    }
    .timeline-slide[data-slide="0"] .timeline-caption {
        right: 20px !important;
        left: unset !important;
    }
    .timeline-slide[data-slide="17"] .slide-background {
        background-position-x: inherit;
    }
}
