.map-wrapper {
    width: 94vw;
    height: 80vh;
    position: absolute;
    left: 50%;
    transform: translate(-50%, 0);
    overflow: hidden;
    /*border: solid 1px lightgray;*/
}

:-webkit-full-screen .map-wrapper, :fullscreen .map-wrapper, :-moz-full-screen .map-wrapper {
    width: 100% !important;
    height: 100% !important;
}

.vessel-map-spacer {
    height: 88vh;
    width: 1px;
}

:-webkit-full-screen .vessel-map-spacer, :fullscreen .vessel-map-spacer, :-moz-full-screen .vessel-map-spacer {
    height: 100% !important;
}


.mapboxgl-map {
    width: 100%;
    height: 100%;
}

.vessel-marker {
    width: 50px;
    height: 50px;
    margin-top: -25px;
    background-size: cover;
    cursor: pointer;
    opacity: .6;
    transition: width .3s, height .3s, margin-top .3s;
    text-align: center;
}

.vessel-marker .vessel-marker-label {
    opacity:0.8;
    background-color: #ffffff;
    position:absolute;
    color:#000000;
    font-size:1.0em;
    left:25px;
    transform:translate(-50%,-180%);
    text-align:center;
    overflow-x:visible;
    white-space: nowrap;
    width:auto;
    padding:8px;
    box-shadow:3px 3px 2px #eeeeee;
    display:none;
    z-index: 10;
}

/* used to turn showing labels on or off */
.vessel-show-labels .vessel-marker-label {
    display:block;
}

.selected-marker {
    opacity: 1;
    transition: width .3s, height .3s, margin-top .3s;
    width: 64px;
    height:64px;
    margin-top: -32px;
}

.vessel-marker:hover {
    opacity: 1;
}

a.open-full-screen {
    display: block;
    width: 100%;
    text-align: center;
    margin: 0 0 15px 0;
    font-weight: bold;
    font-size: 1.15em;
    box-shadow: none;
    -webkit-box-shadow: none;
    text-decoration: none;
}

.exit-full-screen {
    display: none;
    position: absolute;
    right: 10px;
    top: 10px;
}

.vessel-powered-by {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translate(-50%);
}

.vessel-powered-by > a {
    -moz-box-shadow: none !important;
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
    display: flex;
    align-items: center;
    color: black !important;
}

.vessel-powered-by img {
    width: 130px;
    margin: 0 !important;
    -moz-box-shadow: none !important;
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
}
.vessel-powered-by span {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-align: right;
}
.vessel-powered-by span:last-of-type {
    padding-right: 3px;
}
.vessel-heart {
    color: #d75a4a;
    padding: 0 5px 0 3px;
    letter-spacing: 0;
}

/** HEIGHT OPTIONS */

.vessel-reduced-height .map-wrapper {
    height: 50vh;
}

.vessel-reduced-height .vessel-map-spacer {
    height: 58vh;
}

.vessel-reduced-height .vessel-moment-viewer .viewer {
    height: 41vh;
    width: 23.06vh;
}

/** WIDTH OPTIONS */

.vessel-use-margins .map-wrapper {
    width: 100%;
    position: relative;
    left: 0;
    transform: none;
    border: none;
    margin-bottom: 15px;
}

.vessel-use-margins .vessel-map-spacer {
    height: 0;
}

.vessel-wide .map-wrapper {
    width: 94vw;
}

.vessel-fullwidth .map-wrapper {
    width: 100vw;
}

/** MOMENT VIEWER */

.vessel-moment-viewer {
    position: absolute;
    left: 3%;
    top: 50%;
    transform: translate(0, -50%);
    background-color: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 10px 10px 13px rgba(0,0,0,.6);
    z-index: -20;
    opacity: 0;
}

.owl-item {
    padding: 0;
}

.vessel-moment-viewer .viewer {
    height: 65vh;
    width: 36.56vh;
}

.vessel-moment-viewer .viewer video {
    width: 100%;
}

.vessel-moment-viewer.show-moment-viewer {
    opacity: 1;
    z-index: 40;
}

.vessel-viewer-wrapper {
    position: relative;
}

.vessel-moment-viewer .title-bar {
    text-align: right;
    padding: 10px 20px;
    overflow: hidden;
}
.vessel-moment-viewer .venue-title {
    color: #464646; /*#04b0db;*/
}
.close-viewer-button:after {
    display: inline-block;
    font-size: 20px;
    content: "\00d7";
    color: #464646;
    float: left;
    cursor: pointer;
}

.vessel-button-container {
    position: absolute;
    width: 100%;
    bottom: 0;
}

.action-button-container {
    display: flex;
    justify-content: space-evenly;
    margin-bottom: 30px;
    width: 100%;
}

.action-button-container > a {
    border-radius: 3px;
    padding: 4px;
    font-size: 1.5vh;
    color: black;
    z-index: 30;
    max-width: 130px;
    margin: 0 5px;
    background-color: white;
    text-align: center;
    flex-grow: 1;
}

.action-button-1 {
    margin-left: 10px;
}

.action-button-2 {
    margin-right: 10px;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: transparent;
    width: 80px;
    height: 80px;
    border: none;
}
.play-button:hover {
    background-color: transparent;
}

.viewer-button-bar {
    display: none;
    position: absolute;
    bottom: 0;
    width: 100%;
    justify-content: space-evenly;
    background-color: white;
    box-shadow: 10px 10px 13px rgba(0,0,0,.3);
    padding: 20px 0;
    z-index: 300;
}

.viewer-button-bar > button {
    border: 2px #636363 solid;
    color: black;
    background-color: white;
    border-radius: 5px;
    z-index: 400;
    padding: .3em 1.2em;
    font-size: .8em;
    font-weight: bold;
}

.vessel-moment-viewer-tracer {
    position: absolute;
    display: none;
    background-color: rgba(0, 0, 0, 0.20);
    width: 0;
    height: 0;
    z-index: 10;
}

.vessel-moment-viewer-tracer.animate {
    transition: top 300ms ease-out, left 300ms ease-out, height 300ms ease-out, width 300ms ease-out;
}

.owl-theme .owl-dots {
    position: absolute;
    top: -20px;
    right: 20px;
    margin: 0 !important;
}

.owl-theme .owl-dots .owl-dot {
    margin: 0 -4px;
    vertical-align: initial !important;
    box-sizing: unset;
    -moz-box-sizing: unset;
    -webkit-box-sizing: unset;
}

.vessel-moment-viewer .owl-theme .owl-dots .owl-dot span {
    border: 1px solid black;
    width: 8px;
    height: 8px;
    background: white;
}

.vessel-moment-viewer .owl-theme .owl-dots .owl-dot.active span, .owl-theme .owl-dots .owl-dot:hover span {
    background: black;
}

.vessel-moment-viewer img.vessel-nav-left, .vessel-moment-viewer img.vessel-nav-right {
    position: absolute;
    top: 50%;
    transform: translate(0, -50%);
    z-index: 50;
    cursor: pointer;
}

.vessel-moment-viewer img.vessel-nav-left {
    left: 20px;
}

.vessel-moment-viewer img.vessel-nav-right {
    right: 20px;
}

.vessel-moment-progress-bar {
    background-color: gray;
    position: absolute;
    width: 100%;
    height: 3px;
    top: 6px;
    left: 0;
    z-index: 50;
}

.vessel-progress-fill {
    background-color: white;
    height: 100%;
    width: 0;
}

.vessel-animate-progress-bar {
    animation-name: vessel-progress-bar-animation;
    animation-duration: 6.5s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-out;
}

.vessel-pause-progress-bar {
    animation-play-state: paused;
}

@keyframes vessel-progress-bar-animation {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

.vessel-volume-control {
    width: 20px;
    height: 20px;
    position: absolute;
    top: 25px;
    left: 15px;
    z-index: 200;
    background-repeat: no-repeat;
    /*-webkit-filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.64));*/
    /*filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.64));*/
    cursor: pointer;
}

.vessel-muted {
    background-image: url("../images/volume-off.svg");
}

.vessel-unmuted {
    background-image: url("../images/volume-on.svg");
}

/** SIDEBAR */

.vessel-sidebar-wrapper {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    z-index: 5;
    transition: transform 400ms;
    transform: translate(92%);
}

.vessel-sidebar-wrapper.open {
    transform: translate(1px);
}

.vessel-menu-tab {
    position: absolute;
    right: 100%;
    top: 20%;
    overflow: visible;
    background-color: white;
    padding: 4px 0 0 4px;
    z-index: 31;
    border: 3px solid lightgray;
    border-right: none;
    border-bottom-left-radius: 8px;
    border-top-left-radius: 8px;
}

.vessel-menu-tab::before {
    display: block;
    width: 13px;
    height: 29px;
    content: url("../images/menu.svg");
    opacity: .4;
}
.vessel-menu-tab:hover:before {
    opacity: .7;
}

.vessel-sidebar {
    position: relative;
    right: 0;
    top: 0;
    height: 100%;
    max-width: 300px;
    padding-left: 30px;
    padding-right: 10px;
    box-shadow: 0 0 13px rgba(0,0,0,.6);
    z-index: 30;
    background-color: white;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.vessel-sidebar h2 {
    margin-top: 50px;
}

.vessel-sidebar .vessel-tags-wrapper {
    overflow-wrap: break-word;
    min-height: auto;
    padding-bottom: 20px;
    margin: 6px 0 20px 0;
    border-bottom: solid 1px #f3f3f3;
}

.vessel-venue-tag {
    display: inline-block;
    background-color: white;
    border: 2px solid black;
    color: black;
    border-radius: 5px;
    padding: 3px 8px;
    margin: 3px;
    transition: background-color .25s, color .25s;
    -webkit-transition: background-color .25s, color .25s;
    -moz-transition: background-color .25s, color .25s;
    -o-transition: background-color .25s, color .25s;
    cursor: pointer;
}

.vessel-venue-tag:hover {
    background-color: #eeeeee;
}

.vessel-venue-tag.selected-tag {
    background-color: black;
    color: white;
}

.vessel-sidebar-list {
    list-style-position: inside;
    margin: 0 0 3em 0;
    padding: 0;
}

.vessel-sidebar-list > li {
    cursor: pointer;
    padding: 4px 4px 4px 20px;
    margin-bottom: 6px;
    border-radius: 15px;
    transition: background-color .4s;
}

.vessel-sidebar-list > li:hover, .sidebar-link-mouseover {
    background-color: #f1f1f1;
}

.vessel-sidebar-list > li.active-list-item {
    background-color: black;
    color: white;
}

.vessel-sponsored-link {
    background-color: #dde6ff;
}

li.vessel-sponsored-link:hover {
    background-color: #accbff;
}

li.vessel-sponsored-link.active-list-item {
    background-color: #5584ff;
}

.vessel-info-container {
    position: absolute;
    /*right: -20px;*/
    transform: translate(10%);
    top: 0;
    height: 100%;
    width: 220px;
    z-index: 10;
    transition: transform .4s;
    background-color: white;
    box-shadow: 0 0 13px rgba(0,0,0,.6);
    padding: 40px 20px 20px 20px;
    overflow-y: auto;
}

.container-open {
    transform: translate(-98%);
    transition: transform .4s;
}

.vessel-logo-wrapper {
    flex-grow: 1;
    display: flex;
    margin-top: 15px;
    justify-content: center;
}

/** This fixes Safari issues with overlapping content at bottom of sidebar **/
_::-webkit-full-page-media, _:future, :root .vessel-logo-wrapper {
    margin-top: 50px;
}

.vessel-company-logo {
    max-height: 200px;
    max-width: 100%;
    align-self: flex-end;
    box-shadow: unset !important;
    -moz-box-shadow: unset !important;
    -webkit-box-shadow: unset !important;
    padding: 0;
}

a.more-info-button {
    text-decoration: unset;
    box-shadow: none;
    -webkit-box-shadow: none;
}

/** MOBILE VENUE CAROUSEL */
.vessel-mobile-venue-carousel-wrapper {
    display: none;
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 10px 0 0 0;
    /*background-color: white;
    box-shadow: 0 0 13px rgba(0,0,0,.6);*/
    z-index: 30;
}

.venue-nav {
    background-color: white;
    color: black;
    position: absolute;
    width: 60px;
    height: 100px;
    z-index: 40;
    text-align: center;
    vertical-align: center;
    line-height: 100px;
    bottom: 0;
    box-shadow: 0 0 13px rgba(0,0,0,.3);
}
.venue-nav.nav-left {
    left: 0;
    border-radius: 0 8px 0 0;
}
.venue-nav.nav-right {
    right: 0;
    border-radius: 8px 0 0 0;
}

.vessel-mobile-footer {
    position: absolute;
    bottom: 0;
    text-align: center;
    width: 100%;
    background: #00000000; /* Old browsers */
    background-image: linear-gradient(to top, #000000 20%,#7db9e800 100%);
    background: -moz-linear-gradient(bottom, #000000 20%, #7db9e800 100%); /* FF3.6-15 */
    background: -webkit-linear-gradient(bottom, #000000 20%,#7db9e800 100%); /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(to top, #000000 20%,#7db9e800 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    font-size: .6rem;
    z-index: 5;
    color: white;
    padding: 30px 0 10px 0;
}

.vessel-mobile-venue-title {
    color: white;
    font-size: .8rem;
    display: block;
    margin-bottom: 8px;
}

.vessel-mobile-thumbnail {
    height: 160px;
    width: 200px;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    margin: 0 auto;
    border-radius: 10px 10px 0 0;
    position: relative;
}
.vessel-mobile-thumbnail > span {
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    color: white;
    font-size: .8em;
    text-align: center;
    text-decoration: underline;
}

.vessel-mobile-venue-carousel.owl-carousel.owl-loaded {
    display: none;
}

.vessel-mobile-venue-carousel.owl-carousel.owl-loaded > div {
    text-align: center;
    position: relative;
}

.vessel-viewer-gradient {
    display: none;
}

@media (max-width: 830px) {

    .map-wrapper {
        width: 100%;
        border: none;
    }

    /** SIDEBAR (becomes header) */

    .vessel-tags-wrapper {
        /** !important added here to override display: block rule that's being added inline to html **/
        display: none !important;
    }

    .vessel-menu-tab {
        display: none;
    }

    .vessel-sidebar-wrapper {
        width: 100%;
        height: 15%;
        top: 0;
        left: 0;
        transform: translate(0);
    }

    .vessel-sidebar {
        height: 100%;
        /*width: 100%;*/
        max-width: none;
        top: 0;
        left: -1px;
        padding-top: 10px;
        box-shadow: 0 0 13px rgba(0,0,0,.3);
        display: block;
    }

    .vessel-sidebar > p {
        margin: 0;
    }

    .vessel-logo-wrapper {
        display: none;
    }

    h2.vessel-campaign-title {
        font-size: 1em;
        display: inline-block;
        margin-top: 0;
        padding-top: 0;
    }

    .vessel-sidebar-list {
        display: none;
    }

    .exit-full-screen {
        position: static;
        float: right;
        font-size: .7em;
    }

    .more-info-button {
        position: absolute;
        bottom: 6px;
        right: 25px;
        font-size: .75em;
    }

    .vessel-info-container {
        transform: translate(0, -110%);
        left: 12px;
        right: 12px;
        width: auto;
        height: 200%;
        top: 100%;
        transition: transform .4s;
        border-bottom: 10px white solid;
        box-shadow: 0 0 13px rgba(0,0,0,.2);
    }

    .container-open {
        left: 12px;
        right: 12px;
        transform: translate(0, 0);
    }

    /* HEIGHT OPTIONS (don't constrict height on mobile) */
    .vessel-reduced-height .map-wrapper {
        height: 80vh;
    }

    .vessel-reduced-height .vessel-map-spacer {
        height: 88vh;
    }

    .vessel-reduced-height .vessel-moment-viewer .viewer {
        height: 100%;
        width: auto;
    }

    /** MOMENT VIEWER */
    .vessel-moment-viewer {
        position: absolute;
        width: 100%;
        height: 100%;
        z-index: 250 !important;
        left: -100%;
        top: 0;
        transform: unset;
        border-radius: 0;
        transition: left .3s;
        box-shadow: unset;
        opacity: 1;
    }

    .vessel-moment-viewer.show-moment-viewer {
        left: 0;
        transition: left .3s;
        z-index: 250 !important;
    }

    .vessel-moment-viewer .viewer {
        width: auto !important;
        height: 100% !important;
        position: relative;
    }

    /* Top gradient */
    .vessel-moment-viewer .viewer .owl-stage-outer:before {
        background: #00000000; /* Old browsers */
        background: -moz-linear-gradient(top, #7db9e800 0%, #7db9e800 100%); /* FF3.6-15 */
        background: -webkit-linear-gradient(top, #7db9e800 0%, #7db9e800 100%); /* Chrome10-25,Safari5.1-6 */
        background: linear-gradient(to bottom, #000000 0%,#7db9e800 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
        filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#1e5799', endColorstr='#7db9e8',GradientType=0 ); /* IE6-9 */
        height: 12vh;
        width: 100%;
        position: absolute;
        top: 0;
        content: "";
        z-index: 150;
    }

    /* Bottom gradient */
    /*.vessel-moment-viewer .viewer .owl-stage-outer .owl-stage .owl-item:before {*/
    .vessel-viewer-gradient {
        display: block;
        background: #00000000; /* Old browsers */
        background: -moz-linear-gradient(bottom, #7db9e800 0%, #7db9e800 100%); /* FF3.6-15 */
        background: -webkit-linear-gradient(bottom, #7db9e800 0%, #7db9e800 100%); /* Chrome10-25,Safari5.1-6 */
        background: linear-gradient(to top, #000000 0%,#7db9e800 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
        filter: progid:DXImageTransform.Microsoft.gradient( endColorstr='#1e5799', startColorstr='#7db9e8',GradientType=0 ); /* IE6-9 */
        height: 13vh;
        width: 100%;
        position: absolute;
        left: 0;
        bottom: 0;
        content: "";
        z-index: 10;
    }

    .vessel-moment-viewer > .title-bar {
        position: absolute;
        top: 0;
        width: 100%;
        z-index: 200;
        height: 10vh;
        margin: 10px 0;
        padding: 0;
    }

    .vessel-moment-viewer .venue-title {
        color: white;
        position: absolute;
        right: 20px;
        top: 20px;
        transform: translate(0, -50%);
    }

    .close-viewer-button:after {
        color: white;
        font-size: 1.8em;
        float: unset;
        position: absolute;
        left: 20px;
        top: 20px;
        transform: translate(0, -50%);
    }

    .owl-theme .owl-dots {
        top: 40px;
        z-index: 160;
    }

    .vessel-moment-viewer .owl-theme .owl-dots .owl-dot span {
        border: 1px solid white;
        background: transparent;
    }

    .vessel-moment-viewer .owl-theme .owl-dots .owl-dot.active span, .owl-theme .owl-dots .owl-dot:hover span {
        background: white;
    }

    .viewer-button-bar {
        display: flex;
        position: relative;
    }

    .vessel-mobile-venue-carousel-wrapper {
        display: block;
    }

    .vessel-mobile-venue-carousel.owl-carousel.owl-loaded {
        display: block;
        bottom: 0;
        position: absolute;
    }

    .vessel-volume-control {
        top: 12vh;
        left: unset;
        right: 15px;
    }

    .vessel-powered-by {
        left: 130px;
        top: 17%;
        bottom: unset;
    }
    .vessel-powered-by span {
        font-size: 9px;
    }
    .vessel-powered-by img {
        width: 100px;
    }

    .mapboxgl-ctrl-top-left div.vessel-geolocate {
        margin-top: 100px;
    }

    .action-button-container {
        margin-bottom: 40px;
    }

    .action-button-container > a {
        border: 2px white solid;
        color: white;
        border-radius: 5px;
        width: 36%;
        text-align: center;
        background-color: transparent;
        box-shadow: unset;
        font-size: medium;
        padding: 8px;
    }

    .owl-stage-outer {
        /* fixes the carousel from hiding the title bar */
        -webkit-transform: none !important;
        transform: none !important;
        -moz-transform: none !important;
    }

    #comment {
        width: 100%;
    }
}
