.flex-graphic {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 15px;
}

body.single-timeline {
    overflow-x: hidden !important;
}

.flex-graphic .item.candidates {
    padding-top: 4rem;
    width: 25%;
}

.legend {
    width: 100%;
    max-width: 100%;
    margin-top: 3rem;
}

.legend h2 {
    text-align: center;
    font: normal normal bold 31px/36px Roboto;
    letter-spacing: 0px;
    color: #2F2F2F;
}

.legend .page-description {
    text-align: center;
    font: normal normal normal 18px/24px Source Serif Pro;
    letter-spacing: 0px;
    color: #2F2F2F;
    margin: 16px 0 24px 0;
}

.legend h3 {
    text-align: center;
    font-weight: 300;
    text-transform: uppercase;
    font-size: 16px;
}

.i-candidate {
    border-radius: 39px;
    height: 53px;
    margin-bottom: 30px;
    position: relative;
    width: 100%;
    margin-left: 30px;
}

.i-candidate.hidden-custom {
    opacity: 0.5;
}

a.i-candidate-link:nth-child(2n) .i-candidate .photo {
    right: 0;
}

.i-candidate .photo {
    position: absolute;
    top: -10px;
    border-radius: 100px;
    overflow: hidden;
    width: 72px;
    height: 72px;
    border-width: 1px;
    border-style: solid;
}

.i-candidate .photo img {
    height: 72px;
    border-radius: 100px;
}

.info-agregador {
    margin-top: 20px;
}

.info-agregador h3 {
    font-size: 16px;
    font-weight: 300;
}

.info-agregador p {
    font-family: 'Source Serif Pro', serif;
    font-size: 15px;
    margin-top: 5px;
}


.i-candidate h1 {
    text-align: center;
    margin-right: 30px;
    position: absolute;
    top: 16px;
    color: #fff;
    text-transform: uppercase;
    font-size: 17px;
    width: calc(100% - 62px);
    transform: translate(55px, 0);
}

a.i-candidate-link:nth-child(2n) .i-candidate h1 {
    transform: translate(15px, 0);
} 

#percent-toltip {
    position: absolute;
    right: 0;
}

.post-type-archive-eleicoes-2022 .carregar-mais, .single-timeline .carregar-mais {
    padding: 10px;
    border: 1px solid black;
    display: flex;
    justify-content: center;
    margin: 0 auto;
    text-align: center;
    max-width: 192px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
    color: #000;
}

.post-type-archive-eleicoes-2022 .list-header {
    margin: 30px 0;
}

.plugin-eleicoes-2022 {
    margin-bottom: 100px;
}

.date-pesquisa-eleitoral {
    margin-top: 20px;
    font-size: 14px;
}

/* TIMELINE
–––––––––––––––––––––––––––––––––––––––––––––––––– */

.list-header .list-title span.tag-ind:last-child i {
    display: none;
}

section.timeline.eleicoes-2022 {
    padding-top: 120px;
}

section.timeline.eleicoes-2022 .legend h1 {
    font-weight: 300;
    text-align: center;
    font-size: 16px;
    text-transform: uppercase;
}

.timeline-2022 .timeline ul li a {
    color: #000;
    text-decoration: none;
}

.timeline-2022 .timeline ul li h1 {
    font-size: 20px;
    color: #000;
    font-family: "Roboto", sans-serif;
}

.timeline-2022 .timeline ul li p {
    font-size: 16px;
    margin-top: 7px;
    font-weight: 300;
    font-family: 'Source Serif Pro', serif;
}

.timeline-2022 .timeline ul li img {
    margin-top: 10px;
    height: 100%;
}

.timeline-2022 .timeline ul {
    background: #fff;
    padding: 50px 0;
}

.timeline-2022 .timeline ul li {
    list-style-type: none;
    position: relative;
    width: 2px;
    margin: 0 auto;
    padding-top: 50px;
    border-left: 2px dashed #b71c1c;
}

.timeline-2022 .timeline ul li::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: inherit;
}

.timeline-2022 .timeline ul li::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 5.5px;
    transform: translateX(-50%);
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: #fff;
    z-index: 1;
    top: 57.5%;
}

.timeline-2022 .timeline ul li div {
    position: relative;
    bottom: 0;
    width: 515px;
    padding: 15px;
}

.timeline-2022 .timeline ul li div::before {
    content: '';
    position: absolute;
    bottom: 12px;
    width: 0;
    height: 0;
    border-style: solid;
}
  
.timeline-2022 .timeline ul li:nth-child(odd) div {
    left: 45px;
}

.timeline-2022 .timeline ul li:nth-child(odd) div::before {
    left: -15px;
    border-width: 16px 16px 13px 0;
    border-color: transparent #e0e0e0 transparent transparent;
    top: 45%;
}
  
.timeline-2022 .timeline ul li:nth-child(even) div {
    left: -560px;
}
  
.timeline-2022 .timeline ul li:nth-child(even) div::before {
    right: -15px;
    border-width: 16px 0 13px 16px;
    border-color: transparent transparent transparent #e0e0e0;
    top: 45%;
}

.timeline-2022 time {
    display: block;
    font-size: 24px;
    margin-bottom: 8px;
    color: #B71C1B;
    font-family: "Roboto", sans-serif;
    font-weight: 700;
    text-transform: uppercase;
}

.list-header .socials-eleicoes-22 {
    position: absolute;
    right: 0;
    display: flex;
    gap: 10px;
    align-items: center;
}

.list-header .socials-eleicoes-22 .socials-cont {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.list-header .socials-eleicoes-22 .item {
    font-size: 12px;
}

.list-header .author.title-timeline {
    display: flex;
    align-items: flex-start;
}

.list-header .author.title-timeline .description {
    margin-top: 5px;
}

.container.timeline-2022 .list-header {
    padding-bottom: 20px;
}

/* EFFECTS TIMELINE
–––––––––––––––––––––––––––––––––––––––––––––––––– */

.timeline-2022 .timeline ul li::after {
    transition: background .5s ease-in-out;
}

.timeline-2022 .timeline ul li.in-view::after {
    background: #B71C1C;
    top: 55.5%;
}
  
.timeline-2022 .timeline ul li div {
    visibility: hidden;
    opacity: 0;
    transition: all .5s ease-in-out;
}

.timeline-2022 .timeline ul li:nth-child(odd) div {
    transform: translate3d(200px, 0, 0);
}

.timeline-2022 .timeline ul li:nth-child(even) div {
    transform: translate3d(-200px, 0, 0);
}

.timeline-2022 .timeline ul li.in-view div {
    transform: none;
    visibility: visible;
    opacity: 1;
    border-radius: 18px;
    background: #e0e0e0;
}

.timeline-2022 figure.image-thumbnail {
    width: 150px;
    height: 150px;
    background: #d6d5d5;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 20px;
    overflow: hidden;
}

.timeline-2022 figure.image-thumbnail img {
    margin: 0 !important;
    padding: 0;
}

.timeline-2022 .timeline ul li.in-view .flex-colum-2 {
    display: flex;
}

.timeline-2022 .arrow-scroll-down {
    position: fixed;
    right: 0;
    left: 0;
    margin: 0 auto;
    text-align: center;
    bottom: 0;
    background: #fff;
    width: 50px;
    height: 50px;
    border-radius: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.timeline-2022 .arrow-scroll-down img {
    width: 40px;
}

.timeline-2022 .bounce {
    -moz-animation: bounce 2s infinite;
    -webkit-animation: bounce 2s infinite;
    animation: bounce 2s infinite;
}

.flex-graphic .item.candidates a .item-candidate {
    display: flex;
    justify-content: center;
}

.media-result-external {
    width: 107px;
    height: 72px;
    border-radius: 100px;
    border: 1px solid #000;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 17px;
    font-family: "Roboto", sans-serif;
    font-weight: 700;
    margin-top: -10px;
}

.chart-item-custom {
    width: 75%;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
      transform: translateY(0);
    }
    40% {
      transform: translateY(-30px);
    }
    60% {
      transform: translateY(-15px);
    }
}

@media(max-width: 1260px) {
    #chart_todos_candidatos {
        width: 860px !important;
    }
    .i-candidate {
        margin-bottom: 25px;
    }
}

@media(max-width: 1120px) {
    #chart_todos_candidatos {
        width: 700px !important;
    }
    .i-candidate {
        margin-bottom: 20px;
        height: 45px;
    }
    .flex-graphic .item.candidates {
        padding-top: 2rem;
    }
    .i-candidate h1 {
        top: 13px;
    }
}

@media(max-width: 1090px) {
    .timeline-2022 .timeline ul li.in-view .flex-colum-2 {
        width: 400px;
    }
    .timeline-2022 .timeline ul li:nth-child(even) div {
        left: -440px
    }
}

@media(max-width: 980px) {
    .flex-graphic {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    #chart_todos_candidatos {
        width: 100% !important;
    }
    .flex-graphic .item.candidates {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        gap: 10px;
    }
    .i-candidate {
        width: 180px;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 30px;
        margin: 3px;
    }
    .i-candidate .photo {
        position: relative;
        display: none;
    }
    .i-candidate h1, .i-candidate:nth-child(2n) h1 {
        top: 7px;
        font-size: 1.4rem;
        left: 0;
        right: 0;
        transform: none;
        width: 100%;
    }
    a.i-candidate-link:nth-child(2n) .i-candidate h1 {
        text-align: center;
        margin: 0 auto;
        transform: none;
    }
}

@media screen and (max-width: 900px) {
    .legend h2 {
        font: normal normal bold 26px/30px Roboto;
    }
    .legend .page-description {
        margin-top: 12px;
    }
    .timeline-2022 .timeline ul li:nth-child(even) div {
        left: -360px;
    }
    .timeline-2022 .timeline ul li:nth-child(even) div {
      left: -289px;
      /*250+45-6*/
    }
    .timeline-2022 .timeline ul li.in-view .flex-colum-2 {
        width: 320px;
        flex-direction: column;
    }
    .timeline-2022 time {
        margin-top: 10px;
    }
    .timeline-2022 figure.image-thumbnail {
        width: 100%;
        height: auto;
    }
    .timeline-2022 body section:first-child {
        padding-top: 0;
    }
    .timeline-2022 .timeline ul li img {
        max-width: 100%;
    }
}

@media screen and (max-width: 600px) {
    .info-agregador {
        margin-bottom: 30px;
    }
    .timeline-2022 .timeline ul li {
      margin-left: 20px;
    }
    .timeline-2022 .timeline ul li div {
      width: calc(100vw - 91px);
    }
    .timeline-2022 .timeline ul li:nth-child(even) div {
      left: 45px;
    }
    .timeline-2022 .timeline ul li:nth-child(even) div::before {
      left: -15px;
      border-width: 16px 16px 13px 0;
      border-color: transparent #e0e0e0 transparent transparent;
      top: 40%;
    }
    .flex-colum-2 {
        flex-direction: column;
    }
    .post-type-archive-eleicoes-2022 .list-header .author .description {
        margin-left: 59px;
        width: fit-content;
        max-width: 100%;
        margin-bottom: 50px;
        margin-top: -3px;
    }
    .list-header .socials-eleicoes-22 {
        left: 0;
        display: flex;
        align-items: center;
        gap: 10px;
        bottom: 10px;
    }
    .single-timeline .list-header .socials-eleicoes-22 {
        left: initial;
        right: 0;
        top: 0;
    }
    .timeline-2022 .timeline ul li.in-view .flex-colum-2 {
        flex-direction: row;
    }
    .timeline-2022 .timeline ul li p {
        display: none;
    }
    .timeline-2022 .timeline ul li.in-view .flex-colum-2 section:first-child {
        padding-top: 0;
    }
    .timeline-2022 figure.image-thumbnail {
        width: 85px;
        height: 85px;
        margin-top: 5px;
    }
    .timeline-2022 figure.image-thumbnail img {
        max-width: fit-content;
    }
    .timeline-2022 .timeline ul li img {
        max-width: fit-content;
    }
    .timeline-2022 time {
        margin-top: 3px;
        font-size: 14px;
    }
    .timeline-2022 .timeline ul li h1 {
        font-size: 15px;
    }
    .single-timeline .list-header .socials-eleicoes-22 {
        position: initial;
        margin-top: 100px;
    }
    .timeline-2022 .timeline ul li::before {
        top: 60%;
    }
    .timeline-2022 .timeline ul li:nth-child(odd) div::before {
        top: 41%;
    }
    .timeline-2022 .timeline ul li.in-view::after {
        top: 57%;
    }
    .flex-graphic .item.candidates a .item-candidate {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .media-result-external {
        border: none;
        position: relative;
        bottom: -27px;
        font-size: 22px;
    }
    .media-result-external {
        margin-top: -45px;
    }
    .flex-graphic .item.candidates {
        padding-top: 1rem;
    }
    .chart-item-custom {
        width: 100%;
    }
    .list-header .author .image {
        margin-bottom: 10px;
    }
    .post-type-archive-eleicoes-2022 .list-header {
        margin-top: 0px;
        margin-bottom: 16px;
    }
}

@media(max-width: 402px) {
    .i-candidate {
        width: 100%;
        margin: 10px;
    }
}

@media(max-width: 400px) {
    #chart_todos_candidatos {
        height: 410px !important;
    }
    .timeline-2022 .timeline ul li.in-view .flex-colum-2 {
        width: 285px;
    }
}

@media(max-width: 385px) { 
    .timeline-2022 .timeline ul li.in-view .flex-colum-2 {
        width: 260px;
    }
    .flex-graphic .item.candidates {
        gap: 5px;
    }
}

@media(max-width: 365px) { 
    .timeline-2022 .timeline ul li.in-view .flex-colum-2 {
        width: 250px;
    }
}

.flex-graphic .item.candidates {
	display: flex;
	flex-direction: column;
}

.flex-graphic .item.candidates a:nth-child(1) {
    order: 2;
}

.flex-graphic .item.candidates a:nth-child(2) {
    order: 1;
}