html {
    scroll-behavior: smooth;
}

html,
body {
    height: 100%;
}

body {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    color: rgba(117, 117, 117, 1);
    font-family: 'Rubik', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 18px;
    /*overflow: hidden;*/
}

a,
.a {
    color: #1a73e8;
    text-decoration: underline;
}

#page {
    display: flex;
    flex-direction: column;
}

header {
    height: 50px;
    background: #fff;
    z-index: 100;
    box-shadow: rgba(0, 0, 0, 0.1) 0 4px 6px -1px, rgba(0, 0, 0, 0.06) 0 2px 4px -1px;
    position: -webkit-sticky;
    /* Safari */
    position: sticky;
    top: 0;
}

main>section {
    display: flex;
    flex-direction: column;
    /*height: calc(100vh - 46px);*/
}

.wrapper_timeline {
    background: #fff;
    z-index: 1;
    min-width: 100%;
    /*height: 60vh;*/
}

.timeline-header {
    background: #fff;
    z-index: 75;
    box-shadow: rgb(0 0 0 / 2%) 0 29px 16px, rgb(0 0 0 / 20%) 0 2px 1px;
    padding: 15px 20px;
    position: -webkit-sticky;
    /* Safari */
    position: sticky;
    top: 50px;
}

.header-title {
    display: flex;
    align-items: center;
}

.timeline-header h1 {
    font-size: 22px;
    line-height: 25px;
    margin: 0;
    font-weight: 600;
    color: rgba(41, 41, 41, 1);
    padding-right: 10px;
}

.header-mobile-filter,
.filter-close {
    width: 35px;
    height: 35px;
    background: crimson;
    color: #fff;
    border-radius: 100%;
    line-height: 35px;
    text-align: center;
    font-size: 18px;
    display: block;
    margin-left: auto;
    cursor: pointer;
}

.header-mobile-filter i {
    position: relative;
    top: 3px;
}

.filter-close {
    background: rgb(51, 51, 51, .8);
}

.filter-close i {
    position: relative;
    top: 2px;
}

.header-filter {
    position: absolute;
    top: 0;
    left: 0;
    background: #fff;
    width: 270px;
    height: calc(100vh - 80px);
    transform: translateX(-310px);
    transition: transform .3s ease-in-out;
    box-shadow: rgb(0 0 0 / 15%) 2px 0 5px;
    padding: 15px;
}

[data-filter="1"] .header-filter {
    transform: translateX(0);
}

.filter-options {
    display: flex;
    padding: 10px 0 0;
    font-size: 14px;
    flex-direction: column;
}

.filter-options div>span {
    line-height: 28px;
    padding: 0 8px;
    border-radius: 3px;
    background: rgba(242, 242, 242);
    display: inline-block;
    cursor: pointer;
    position: relative;
}

.filter-options div>span:hover {
    background: rgb(232, 232, 232);
}

.filter-sort {
    order: 1;
    display: flex;
    flex-direction: column;
}

.filter-sort span i {
    margin-left: 6px;
}

.filter-filter {
    order: 2;
    display: flex;
    flex-direction: column;
}

#timeline {
    /*scroll-behavior: smooth;
    overflow-y: scroll;*/
    /*top: 80px;*/
    /*position: relative;*/
}

.inner_timeline {
    /*padding-left: 20px;
    padding-right: 20px;*/
    padding-bottom: 80px;
}

.event {
    position: relative;
    margin-top: 10px;
    padding-top: 20px;
}

.event-inner {
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    padding: 20px;
    background: #fff;
}

.event[data-content="true"] .event-inner {
    background: #fffbf1cb;
}

.event:target .event-inner {
    background: #fffbf1cb;
}

.event[data-content="true"] .event-top {
    opacity: 0;
    height: 0;
    padding: 0;
}

.event-transport {
    text-align: center;
    width: 32px;
    margin: 0 auto;
    height: 32px;
    border-radius: 100%;
    background: rgb(44, 44, 44);
    color: #fff;
    line-height: 34px;
    font-size: 15px;
    margin-bottom: 20px;
    position: relative;
}

.event-datetime {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 20px;
    position: relative;
}

.event::before,
.event-transport::after,
.event-datetime::after {
    content: "";
    position: absolute;
    z-index: -1;
    top: 32px;
    bottom: 0;
    left: 50%;
    border-left: 1px solid #ccc;
    transform: translate(-50%);
    height: 20px;
}

.event::before {
    top: -10px;
    bottom: inherit;
    height: 30px;
}


/*[data-connecting="1"][data-later] {
    margin-top: 0;
}

[data-connecting="1"][data-later]::before {
    top: 0;
    height: 20px;
}*/

.inner_timeline>div:first-child .event {
    padding-top: 30px;
    margin-top: 0;
}

[data-connecting="0"]::before {
    content: unset;
}

.event-date {
    display: flex;
}

.event-date>span {
    line-height: 34px;
    display: inline-block;
    height: 32px;
    padding: 0 6px;
    background: rgb(51, 51, 51, .8);
    font-weight: 600;
}

.event-date>span.same {
    font-weight: 300;
}

.event-datetime>div {
    line-height: 34px;
    color: #fff;
    height: 32px;
    font-weight: 300;
}

.event-date .day {
    background: rgb(51, 51, 51, 1);
}

.event-date .month {
    background: rgb(51, 51, 51, .9);
}

.event-date .year {
    background: rgb(51, 51, 51, .8);
}

.event-date .time {
    background: rgb(51, 51, 51, .7);
}

.event-date>span:first-child {
    border-top-left-radius: 16px;
    border-bottom-left-radius: 16px;
    padding-left: 12px;
}

.event-date>span:last-child {
    border-top-right-radius: 16px;
    border-bottom-right-radius: 16px;
    padding-right: 12px;
}

[data-timepast] .event-date>span:last-child {
    padding-right: 20px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.event-timepast {
    border-radius: 16px;
    background: crimson;
    margin-left: -12px;
    padding: 0 12px;
    font-weight: 300;
    font-size: 13px;
}

[data-later] .event-timepast {
    margin-left: 0;
}

.event-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.event h2 {
    font-size: 19px;
    line-height: 23px;
    font-weight: 500;
    margin: 5px 0;
    color: rgba(41, 41, 41, 1);
    cursor: pointer;
}

i.event-verified {
    width: 18px;
    height: 18px;
    border-radius: 100%;
    background: #21b76b;
    color: #fff;
    position: relative;
    text-align: center;
    line-height: 19px;
    font-size: 11px;
}

.event h2 i.event-verified {
    margin-left: 6px;
    top: -2px;
}

.event-left {
    display: flex;
    flex-direction: column;
    min-height: 100px;
}

.event img {
    border-radius: 3px;
    display: block;
    width: 112px;
    height: 112px;
    -o-object-fit: cover;
    object-fit: cover;
    -o-object-position: center;
    object-position: center;
    margin: 0 0 0 16px;
}

.event .event-read {
    display: block;
    cursor: pointer;
    color: #1a73e8;
    text-decoration: underline;
}

.event .event-read i {
    font-size: 8px;
    margin-left: 3px;
    position: relative;
    top: -1px;
}

.event ul {
    padding: 0;
    margin: 4px 0 0 0;
    list-style: none;
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.event ul.event-resources {
    margin-bottom: 4px;
}

.event ul.event-resources li {
    border: 1px solid rgb(223, 223, 223);
    padding: 4px 8px;
    border-radius: 3px;
    color: crimson;
    white-space: nowrap;
    background: #fff;
}

.event ul li {
    list-style: none;
    margin-right: 8px;
    margin-top: 6px;
    cursor: pointer;
    font-weight: 300;
}

.event ul li i {
    margin-right: 6px;
}

.event-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.event ul.event-tags li {
    background: rgba(242, 242, 242);
    color: rgba(41, 41, 41, 1);
    border-radius: 100px;
    padding: 2px 8px;
    margin-right: 6px;
}

.event ul.event-tags li:hover {
    background: rgba(232, 232, 232);
}

.event ul.event-options {
    margin-left: auto;
    padding-left: 20px;
    margin-bottom: 2px;
    flex-wrap: nowrap;
}

.event ul.event-options li {
    white-space: nowrap;
}

.event ul li.event-comments:hover {
    color: crimson;
}

.event ul li.event-more {
    margin-right: 0;
    width: 24px;
    text-align: center;
    display: block;
    height: 18px;
    position: relative;
}

.event ul li.event-more i {
    margin: 0;
    border-radius: 100%;
    height: 22px;
    width: 22px;
    line-height: 22px;
    position: relative;
    top: -2px;
}

.event ul li.event-more:hover i,
.event ul li.event-more i.open {
    background: crimson;
    color: #fff;
}

.event ul li.event-more .dropdown {
    top: 28px;
}


/* event further content */

.event .event-content {
    opacity: 0;
    max-height: 0;
    transition: opacity .5s ease-in;
    overflow: hidden;
}

.event[data-content="true"] .event-content {
    opacity: 1;
    max-height: 100%;
    z-index: 50;
    position: relative;
    overflow: inherit;
}

.event-content-close {
    display: block;
    height: 32px;
    width: 32px;
    background: rgba(41, 41, 41, 1);
    color: #fff;
    position: -webkit-sticky;
    position: sticky;
    border-radius: 100%;
    text-align: center;
    line-height: 34px;
    font-size: 17px;
    z-index: 51;
    top: 20px;
    margin-left: auto;
}

.event-content-title {
    font-size: 23px;
    line-height: 26px;
    font-weight: 500;
    margin: -32px 0 10px;
    color: rgba(41, 41, 41, 1);
    padding-right: 40px;
    display: block;
}

.event-content i.event-verified {
    margin-right: 4px;
    top: -1px;
}

.event-content img {
    width: 100%;
    margin: 0 0 12px;
    height: 175px;
}

.event-content h3 {
    font-size: 17px;
    line-height: 20px;
    font-weight: 500;
    color: rgba(41, 41, 41, 1);
    display: block;
    margin: 0 0 4px 0;
    padding-top: 10px;
}

.event-content p {
    margin: 0 0 12px 0;
}

.event-content ul.event-resources li {
    margin-top: 0;
}

ul.event-sources {
    padding-bottom: 12px;
    flex-direction: column;
}

ul.event-sources a {}

ul.event-sources li i {
    width: 18px;
    text-align: center;
}

ul.event-sources li i.event-verified {
    margin-left: 6px;
    top: 1px;
}

body[data-map="1"] #timeline .inner_timeline {
    padding-bottom: calc(40vh + 30px);
}

.wrapper_map {
    height: 40vh;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 5;
    transform: translateY(40vh);
    transition: all .3s ease-in-out;
}

body[data-map="1"] .wrapper_map {
    transform: translateY(0);
}

body[data-map-full="1"] .wrapper_map {
    height: 100%;
    z-index: 200;
}

.wrapper_map>aside {
    height: 100%;
    background-color: #ccc;
}

#timeline_map {
    height: 100%;
    overflow: initial!important;
}

#timeline_map::before {
    background: rgb(255, 255, 255);
    background: linear-gradient(0deg, rgba(255, 255, 255, 1) 20px, rgba(255, 255, 255, 0) 50px);
    position: absolute;
    content: '';
    left: -20%;
    right: 0;
    top: -36px;
    height: 50px;
    border-radius: 0 0 300% 300%;
    z-index: 1;
    width: 140%;
    box-shadow: rgb(0 0 0 / 20%) 0 2px 3px;
    opacity: 1;
    transition: opacity .3s ease-in-out;
}

body[data-map="0"] #timeline_map::before,
body[data-map-full="1"] #timeline_map::before {
    opacity: 0;
}

.map-overlay span:not(.map-overlay-side) {
    height: 31px;
    width: 31px;
    border-radius: 100%;
    background: #fff;
    display: block;
    text-align: center;
    box-shadow: rgb(0 0 0 / 50%) 0 0 4px;
    cursor: pointer;
    margin-top: 10px;
}

.map-overlay span i {
    font-size: 18px;
    position: relative;
    top: 6px;
}

.map-overlay-side {
    position: absolute;
    top: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: calc(100% - 25px);
}

.map-overlay-left {
    left: 10px;
}

.map-overlay-right {
    right: 10px;
}

.map-overlay-side span:first-child {
    margin-top: 25px;
}

body[data-map-full="1"] .map-overlay-side span:first-child {
    margin-top: 10px;
}

.map-overlay-bottom {
    margin-top: auto!important;
}

.map-overlay span.map-marker {
    position: absolute;
    z-index: 2;
    height: 50px;
    width: 50px;
    left: calc(50% - 25px);
    transform: translateY(-65px);
    transition: transform .3s ease-in-out;
    margin: 0;
}

body[data-map="1"] .map-overlay span.map-marker {
    transform: translateY(-10px);
}

body[data-map-full="1"] .map-overlay span.map-marker {
    display: none;
}

body[data-filter="1"] .map-overlay span.map-marker {
    transform: translateY(30px);
}

.map-overlay span.map-marker i {
    font-size: 27px;
    color: crimson;
    top: 11px;
}

span.map-minimise,
span.map-maximise {}

span.map-maximise {}

.dropdown {
    display: none;
    position: absolute;
    border-radius: 3px;
    background: #fff;
    font-size: 14px;
    top: 34px;
    right: 0;
    box-shadow: rgb(0 0 0 / 20%) 0 0px 4px;
    min-width: 150px;
    z-index: 100;
}

.dropdown>ul {
    padding: 4px 0;
    margin: 0;
    list-style: none;
    border-top: 1px solid #ccc;
    display: block;
}

.dropdown>ul:first-child {
    border-top: none;
}

.dropdown>ul>li {
    padding: 0 10px;
    line-height: 28px;
    margin: 0;
    text-align: left;
    font-weight: 400;
    color: #757575;
}

.dropdown>ul>li:hover {
    background: rgba(242, 242, 242);
}

.dropdown>ul.dropdown-action {
    padding: 0;
}

.dropdown>ul.dropdown-action>li {
    line-height: 36px;
    font-weight: 600;
}

@media (min-width: 768px) {
    body {
        overflow: hidden;
    }
    #page {
        height: 100vh;
    }
    main {
        display: flex;
        flex: 1;
        max-height: calc(100vh - 50px);
    }
    main>section {
        display: flex;
        flex: 1;
        flex-direction: row;
        height: auto;
    }
    .wrapper_timeline {
        width: 420px;
        display: flex;
        flex-direction: column;
        height: calc(100vh - 50px);
        box-shadow: rgb(0 0 0 / 20%) 0 50px 30px, rgb(0 0 0 / 15%) 1px 0 1px;
        min-width: 420px;
        max-width: calc(100% - 100px);
    }
    body[data-map-full="1"] .wrapper_timeline {
        display: none;
    }
    #timeline {
        /* overrides mobile js set height */
        overflow-y: scroll;
        scroll-behavior: smooth;
        height: 100%!important;
        top: 0;
    }
    /* SCROLLBARS (chrome & edge) */
    #timeline::-webkit-scrollbar-track {
        background-color: #eee;
    }
    #timeline::-webkit-scrollbar {
        width: 18px;
    }
    #timeline::-webkit-scrollbar-thumb {
        background-color: rgb(109, 109, 109);
        width: 10px;
        border-radius: 10px;
        border: solid 4px #eee;
    }
    #timeline::-webkit-scrollbar-thumb:hover {
        background-color: rgb(65, 65, 65);
    }
    .inner_timeline {
        /* overrides mobile bottom map spacing */
        padding-bottom: 20px!important;
    }
    .event-content-close {
        top: 20px!important;
    }
    .wrapper_map {
        flex: 1;
        position: relative;
        height: auto;
        z-index: 0;
        transform: translateY(0);
    }
    #timeline_map {
        border-radius: 0;
        margin: 0;
    }
    #timeline_map::before {
        content: none;
    }
    #timeline_map>div {
        /* override gmap inline css */
        height: calc(100vh - 50px)!important;
    }
    .map-overlay-right {
        right: 15px;
    }
    .map-overlay>span>span {
        display: block!important;
    }
    .map-overlay-side span:first-child,
    body[data-map-full="1"] .map-overlay-side span:first-child {
        margin-top: 15px;
    }
    .map-overlay span.map-marker {
        display: none;
    }
}

@media (min-width: 992px) {
    body {
        font-size: 15px;
        line-height: 19px;
    }
    #drag {
        cursor: ew-resize;
        width: 3px;
        background: #d3d3d3;
    }
    #drag:hover {
        background: rgb(65, 65, 65);
    }
    body[data-map-full="1"] #drag {
        display: none;
    }
    .wrapper_timeline {
        width: 560px;
        min-width: 530px;
    }
    .timeline-header {
        padding: 0;
    }
    .header-title {
        padding: 15px 25px;
    }
    .filter-options {
        font-size: 15px;
        border-top: 1px solid #ededed;
        padding: 15px 25px;
        height: 28px;
        flex-direction: row;
    }
    .filter-options .dropdown {
        right: inherit;
        left: 0;
    }
    .inner_timeline {
        padding: 0 25px 10px;
    }
    .timeline-header h1 {
        font-size: 25px;
        line-height: 30px;
    }
    .header-mobile-filter,
    .filter-close {
        display: none;
    }
    .header-filter {
        position: relative;
        width: auto;
        height: auto;
        transform: none;
        transition: none;
        box-shadow: none;
        padding: 0;
    }
    [data-filter="1"] .header-filter {
        transform: none;
    }
    .filter-sort {
        margin-left: auto;
        white-space: nowrap;
        order: 2;
        flex-direction: row;
        align-items: center;
    }
    .filter-filter {
        order: 1;
        flex-direction: row;
        align-items: center;
    }
    .filter-options>.filter-filter>span.active,
    .filter-options>.filter-filter>span.active i.fa-angle-down {
        background: crimson;
        color: #fff;
    }
    .filter-options div>span {
        margin-left: 10px;
    }
    .filter-options div>span.filter-tags {
        padding: 0;
    }
    .filter-options div>span.filter-tags>span {
        line-height: 28px;
        display: inline-block;
        padding-left: 8px;
    }
    .filter-options div>span.filter-tags>span>span {
        padding-right: 6px;
    }
    .filter-options div>span.filter-tags i.fa-angle-down {
        width: 26px;
        text-align: center;
        font-size: 12px;
        line-height: 24px;
        background: rgb(232, 232, 232);
    }
    .filter-options div>span.filter-tags>span.open {
        background: rgb(232, 232, 232);
        color: #757575;
    }
    .filter-options div>span.filter-tags.active>span.open {
        background: crimson;
        color: #fff;
    }
    .filter-options div>span.filter-tags.active>span.open i.fa-angle-down {
        background: crimson;
    }
    .event-inner {
        border: 1px solid #ccc;
        border-radius: 8px;
        padding: 15px;
    }
    .event h2 {
        font-size: 21px;
        line-height: 25px;
    }
    .event ul li.event-more i {
        height: 23px;
        width: 23px;
        line-height: 23px;
        top: -2px;
    }
}

@media (min-width: 1200px) {
    body {
        font-size: 16px;
        line-height: 21px;
    }
    .wrapper_timeline {
        width: 720px;
    }
    .event-inner {
        padding: 20px;
    }
    .event h2 {
        font-size: 23px;
        line-height: 28px;
    }
}

@media (min-width: 1440px) {}