/* === Custom Block Styling === */
.timelineBlock{
    padding: var(--CB-padding-top) var(--CB-padding-right) var(--CB-padding-bottom) var(--CB-padding-left);
    margin-top: var(--CB-margin-top);
    margin-bottom: var(--CB-margin-bottom);
    background-color: var(--CB-background-color);
    background-image: var(--CB-background-image);
    background-position: var(--CB-background-position);
    background-size: cover;
}


.timeline__imageWrapper{
    background-size: cover;
    background-position: center;
    border-radius: 1rem;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.timeline__copyWrapper{
    padding: 32px;
    background-color: rgba(0, 0, 0, .5);
}
.timeline__yearTitle,
.timeline__text{
    color: var(--FC-white);
    text-shadow: 1px 1px 1px var(--FC-black);
    margin-bottom: 4px;
}
.timeline__yearTitle{
    font-size: var(--FC-font-size-20);
}
.timeline__year{
    font-size: var(--FC-font-size-20);
    font-weight: 600;
    opacity: .5;
    transition: var(--FC-default-transition);
    cursor: pointer;
}
.timeline__year::after{
    content: '';
    width: 24px;
    height: 24px;
    background-color: var(--FC-primary-color);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='17.424' height='17.605' viewBox='0 0 17.424 17.605'%3E%3Cg transform='translate(-3.247 12.944) rotate(-45)'%3E%3Cpath d='M0,0,5.463,5.463,0,10.927' transform='translate(10.721)' fill='none' stroke='%23fff' stroke-width='2'/%3E%3Cline x1='15.893' transform='translate(0 5.592)' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 10px 10px;
    border-radius: 4px;
    position: absolute;
    right: -11px;
    top: 0;
    display: none;
}
.timeline__year:hover,
.timeline__year.active {
    opacity: 1;
}
.timeline__year.active::after,
.timeline__year:hover::after{
    display: block;
}
.timeline__yearWrapper{
    margin-right: 25%;
}
.timeline__yearWrapper::after{
    content: '';
    background-color: var(--FC-black);
    width: 2px;
    height: calc(100% + 12px);
    position: absolute;
    right: 0;
    top: -6px;
}

@media screen and (max-width: 575px){
    .timeline__yearWrapper{
        display: flex;
        flex-direction: row;
        margin-right: 0px;
        gap: 16px;
        overflow-x: scroll;
    }
    .timeline__yearWrapper::after{
        display: none;
    }
    .timeline__year{
        flex: 0 0 auto;
        white-space: nowrap;
    }
    .timeline__year.active::after,
    .timeline__year:hover::after{
        display: none;
    }
}