.page-template-template-history footer {
    border-top: 4px solid $white;
}
/* -- history hero -- */
.history-hero-wrapper {
    overflow: hidden;
    position: relative;
}

ul.events-hero {
    position: relative;
    margin: 0;
    padding: 0;
    list-style-type: none;
    overflow: hidden;
}

ul.events-hero > li {
    position: absolute;
    display: block;
    transition: ease all 1s;
    visibility: hidden;
    opacity: 0;
    height: 70vh;
    min-height: 540px;
    width: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center top;
}

ul.events-hero > li::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100%;
    width: 100%;
    background-color: $black;
    opacity: 0.3;
}

ul.events-hero > li.active {
    position: relative;
    opacity: 1;
    visibility: visible;
}

ul.events-hero > li > .inner {
    position: absolute;
    left: 0;
    right: 0;
    max-width: 860px;
    width: 100%;
    margin: 0 auto;
    bottom: 20px;
    padding: 0 50px;
    z-index: 2;
}

ul.events-hero > li > .inner p {
    color: $white;
    font-size: 18px !important;
}

.single-event-hero-photo-credits {
    position: absolute;
    right: 20px;
    bottom: 20px;
    z-index: 2;
}
/* -- history carousel -- */
.history-carousel-and-modules-wrapper {
    position: relative;
}

.history-carousel-wrapper {
    position: relative;
    z-index: 2;
    width: 99.2vw;
    overflow: hidden;
}

ul.history-carousel {
    margin: 0;
    padding: 0;
    list-style-type: none;
    overflow-x: scroll;
    white-space: nowrap;
    margin-bottom: -30px;
    background-color: $white;
}

ul.history-carousel > li {
    position: relative;
    vertical-align: top;
    height: 25vh;
    width: 10vw;
    display: inline-block;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center top;
    cursor: pointer;
}

ul.history-carousel > li .inner {
    position: relative;
    z-index: 2;
    height: inherit;
}

ul.history-carousel > li::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: $dark-blue;
    opacity: 0.8;
    height: 100%;
    width: 100%;
    z-index: 1;
}

ul.history-carousel > li.active {}

ul.history-carousel > li.active::after {
    background-color: $orange;
}

ul.history-carousel > li .vert-text {
    padding: 10px;
}

ul.history-carousel > li .vert-text span {
    display: block;
    color: $white;
    font-size: 22px;
    line-height: 1em;
}

ul.history-carousel > li.active .vert-text {
    display: none;
}

.horizontal-text {
    display: none;
}

ul.history-carousel > li.active .horizontal-text {
    display: block;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    color: $white;
    font-size: 34px;
    margin-top: -15px;
}
/* -- history modules -- */
.single-history-carousel-event-module {
    position: absolute;
    display: none;
    padding: 50px;
    opacity: 0;
    visibility: hidden;
    min-height: 150px;
    width: 10vw;
    z-index: 3;
    height: 0;
    width: 0;
}

.single-history-carousel-event-module.active {
    opacity: 1;
    visibility: visible;
    width: 30vw;
    height: auto;
}

.single-history-carousel-event-module .inner {
    position: relative;
    padding: 20px 20px 10px;
    background-color: $dark-blue;
    overflow: hidden;
    height: 100%;
    width: 100%;
}

.history-modules > .single-history-carousel-event-module:last-of-type {
    padding-right: 75px !important;
}

.single-history-carousel-event-module::after {
    position: absolute;
    content: "";
    width: 0;
    height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-top: 100px solid $dark-blue;
    left: 0;
    right: 0;
    margin: 0 auto;
    bottom: 20px;
    z-index: -1;
}

.single-history-carousel-event-module .inner .scroll-container {
    max-height: 200px;
    overflow-y: auto;
    margin-right: -40px;
    padding-right: 50px;
    position: relative;
}

.single-history-carousel-event-module.has-scroll .scroll-container {
    padding-right: 65px;
}

.single-history-carousel-event-module p {
    color: $white;
}

.single-history-carousel-event-module .close-module {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: auto;
    cursor: pointer;
}
/* -- scroller -- */
.scroller {
    display: none;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    z-index: 5;
    list-style-type: none;
}

.has-scroll .scroller {
    display: block;
}

.scroller > li {
    color: $white;
    font-size: 32px;
    cursor: pointer;
}

.scroller > li:first-of-type::after {
    content: "";
    height: 7px;
    width: 7px;
    border-radius: 50%;
    background-color: $orange;
    position: absolute;
    top: 50%;
    right: 30%;
    margin-top: 2px;
    transform: translateY(-50%);
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
}
@media screen and (max-width:1400px) {
    ul.history-carousel > li .vert-text span {
        font-size: 18px;
    }

    ul.events-hero > li {
        height: 80vh;
    }

    ul.history-carousel > li {
        height: 270px;
    }
}
@media screen and (max-width:991px) {
    .single-history-carousel-event-module.active {
        display: block;
        position: fixed;
        margin-top: 0;
        padding: 0;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        height: 100%;
        width: 100%;
        z-index: 10;
        background-color: $dark-blue;
    }

    .single-history-carousel-event-module .inner {
        padding: 30px;
    }

    .single-history-carousel-event-module .inner .event-date {
        font-size: 24px !important;
        margin-top: 30px;
    }

    .single-history-carousel-event-module .close-module {
        width: 32px;
        top: 15px;
        right: 15px;
    }

    .single-history-carousel-event-module .inner .scroll-container {
        max-height: 400px;
    }

    ul.events-hero > li {
        height: 50vh;
    }

    ul.events-hero > li {
        background-size: cover;
    }

    ul.history-carousel > li.active .vert-text {
        display: block;
    }

    ul.history-carousel > li.active .horizontal-text {
        display: none;
    }
    .history-modules > .single-history-carousel-event-module:last-of-type {
        padding-right: 0 !important;
    }
}
