* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: none
}

body {
    margin: 0;
    font-family: "Museo Sans", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: black;
}

html, body, canvas {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: fixed;
}

#container {
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: 9;
}


/*
    PRELOADER
*/

.preloader {
    position: absolute;
    top: 200px; right: 0; bottom: 0; left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}
.preloader-box {
    width: 150px;
    height: 200px;
    text-align: center;
}
@keyframes spin {
    from { transform: rotate(0deg) }
    to { transform: rotate(360deg) }
}
.preloader-gear {
    display: block;
    width: 71px; height: 71px;
    margin: 0 auto 10px auto;
    background: center center / 71px 71px no-repeat url("../images/cog.svg");
    animation: spin 10s infinite linear;
}
.preloader-text {
    color: #565655;
    font-weight: bold;
    position: relative;
    z-index: 100;
}

.popover .page .preloader {
    top: 60px;
}
.popover .page .preloader-box {
    height: 75px;
}


/*
    HEADER
*/

.header {
    position: relative;
    height: 170px;
    background-position: center bottom;
    background-size: cover;
    z-index: 12;
}

/* .header:before {
    content: "";
    display: block;
    position: absolute;
    right: 0; bottom: 0; left: 0;
    height: 75%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 1));
} */
.header .logo {
    display: block;
    position: absolute;
    top: 20px; left: 60px;
    width: 135px; height: 136px;
    background: center center / 135px 136px no-repeat url("../images/logo.svg");
    white-space: nowrap;
    text-indent: 100%;
    overflow: hidden;
}
.header .artifact {
    display: block;
    position: absolute;
    top: 0; right: 0;
    width: 224px; height: 300px;
    background: right top / 224px 300px no-repeat url("../images/artifact.png");
    z-index: 2;

}

@media screen and (max-height: 800px) {
    .header {
        height: 100px;
    }
    .header .logo {
        width: 101px; height: 102px;
        background-size: 101px 102px;
    }
}
@media screen and (max-width: 600px) {
    .header .logo {
        left: 20px;
    }
}

/*
    ZOOM CONTROLS
*/

.zoomcontrols {
    position: fixed;
    top: 200px; right: 10px; bottom: 0;
    height: 480px;
    width: 28px;
    margin: auto 0;
    background-color: rgba(44, 44, 43, 0.9);
    z-index: 1000;

    transition: transform .2s;
}
.zoomcontrols.hidden {
    transform: translateX(38px);
}

.zoomcontrols button {
    -webkit-appearance: none;
    border: none;
    border-radius: 0;
    outline: none;
    margin: 0;
    padding: 0;
    background: transparent;
    color: white;
    width: 28px;
    height: 28px;
    font-size: 24px;
    position: absolute;
    left: 0;
    cursor: pointer;

    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.zoomcontrols button.zoom_in {
    top: 0;
}
.zoomcontrols button.zoom_out {
    bottom: 0;
}

.zoomcontrols .tracker {
    position: absolute;
    top: 32px; bottom: 32px; left: 13px;
    width: 2px;
    background-color: rgba(255, 255, 255, 0.8);
}

.zoomcontrols .handle {
    position: absolute;
    left: -6px;
    width: 14px;
    height: 14px;
    background-color: white;
    cursor: grab;
}

.zoomcontrols.animated .handle {
    transition: top .2s;
}


/*
    DOCK
*/

.dock {
    position: fixed;
    right: 0; bottom: 0; left: 0;
    width: 444px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    z-index: 10;

    transition: transform .2s;
}
.dock.hidden {
    transform: translateY(100%);
}
.dock .item {
    width: 70px;
    height: 70px;
    margin: 0 2px;
    background-color: rgba(44, 44, 43, 0.9);
    color: white;
    text-align: center;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
}
.dock .item:first-child {
    border-top-left-radius: 12px;
}
.dock .item:last-child {
    border-top-right-radius: 12px;
}

.dock .item .icon {
    position: absolute;
    top: 0; left: 0;
    bottom: 0; right: 0;
    transition: opacity .2s;
}
.dock .item .icon img {
    display: block;
}
.dock .item .text {
    opacity: 0;
    width: 100%;
    padding: 5px;
    font-size: 10px;
    transition: opacity .2s;
}

.no-touch .dock:hover .icon {
    opacity: 0;
}
.no-touch .dock:hover .text {
    opacity: 1;
}

.dock .item.active {
    background-color: #666;
}

@media screen and (max-width: 600px) {
    .dock {
        width: 300px;
    }
    .dock .item {
        width: 46px;
        height: 46px;
    }

    .zoomcontrols {
        top: 0;
        height: 300px;
        width: 36px;
    }
    .zoomcontrols.hidden {
        transform: translateX(46px);
    }

    .zoomcontrols button {
        width: 36px;
        height: 36px;
        font-size: 24px;
    }

    .zoomcontrols .tracker {
        position: absolute;
        top: 36px; bottom: 36px; left: 17px;
        width: 2px;
        background-color: rgba(255, 255, 255, 0.8);
    }

    .zoomcontrols .handle {
        left: -11px;
        width: 22px;
        height: 22px;
    }
}

/*
    POPOVER
*/

.popover-container {
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    height: 100%;
    pointer-events: none;
    z-index: 200;
    transition: opacity .2s;
}

.popover {
    position: absolute;
    top: 175px; left: 60px; bottom: 60px;
    width: calc(50% - 120px);
    min-width: 640px;
    color: white;
    pointer-events: auto;
}
.popover-container.hidden,
.popover.hidden {
    opacity: 0;
    display:none;
}
.popover-container.hidden .popover {
    pointer-events: none !important;
}

.popover .top {
    height: 25px;
}
.popover .topleft {
    width: calc(100% - 25px);
    height: 100%;
    float: left;
    background-color: rgba(44, 44, 43, 0.9);
}
.popover .topright {
    width: 25px;
    height: 100%;
    float: left;
    background: left bottom / 25px 25px no-repeat url("data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHZpZXdCb3g9IjAgMCAyNSAyNSIgd2lkdGg9IjI1IiBoZWlnaHQ9IjI1IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Ik0wIDBhMjUgMjUgMCAwIDAgMjUgMjVoLTI1eiIgZmlsbD0icmdiYSg0NCwgNDQsIDQzLCAwLjkpIiAvPjwvc3ZnPg==");
}
.popover .panel {
    height: calc(100% - 25px);
    background-color: rgba(44, 44, 43, 0.9);
    padding: 15px 60px 60px 60px;
}

.popover a[href] {
    color: white;
}
.no-touch .popover a[href]:hover {
    color: #FF2D1E;
}

.popover button {
    position: absolute;
    -webkit-appearance: none;
    border: none;
    color: white;
    font-size: 24px;
    line-height: 1;
    padding: 0;
    width: 50px;
    height: 50px;
    cursor: pointer;
    outline: none;
}
.popover button.disabled {
    opacity: 0.5;
    /*pointer-events: none;*/
}

.popover .close-button {
    width: 34px; height: 34px;
    background: rgba(44, 44, 43, 0.9) center center / 16px 16px no-repeat url("../images/close.svg");
    border-radius: 50%;
    top: -17px; right: -17px;

}

.popover .prev-button {
    border: none;
    background: #FF2D1E center center / 20px 20px no-repeat url("../images/prev.svg");
    top: 0;
    bottom: 0;
    left: -20px;
    margin: auto 0;
    z-index: 10;
    transition: transform .2s, opacity .2s;
}
.no-touch .popover .prev-button:hover {
    transform: translateX(-5px);
}
.popover .next-button {
    border: none;
    background: #FF2D1E center center / 20px 20px no-repeat url("../images/next.svg");
    top: 0;
    bottom: 0;
    right: -20px;
    margin: auto 0;
    z-index: 10;
    transition: transform .2s, opacity .2s;
}
.no-touch .popover .next-button:hover {
    transform: translateX(5px);
}

.popover .pagination {
    position: absolute;
    display: flex;
    right: 60px;
    bottom: 50px;
}
.popover .pagination .bullet {
    display: block;
    width: 12px;
    height: 12px;
    margin-left: 5px;
    background-color: #565655;
    transition: background-color .2s;
}
.popover .pagination .bullet.active {
    background-color: #FF2D1E;
}

.popover .page {
    position: absolute;
    top: 40px; right: 60px; bottom: 100px; left: 60px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
}
.popover .page.active {
    pointer-events: auto;
    opacity: 1;
}

.popover .page > .content {
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

.popover .contentnav {
    position: absolute;
    bottom: -72px; left: -60px;
    padding: 1rem 1rem 1rem 60px;
    background-color: #080808;
}
.popover .panel > .contentnav {
    bottom: 58px; left: 0;
}

.popover .page h2 {
    font-size: 2rem;
    margin-top: 0;
}
.popover .page h3 {
    font-size: 1.5rem;
}

.popover .flexnav {
    display: flex;
    align-items: center;
}
.popover .flexnav .title {
    font-size: 1.5rem;
}
.popover .flexnav a,
.popover .flexnav img {
    display: block;
}
.popover .flexnav > a,
.popover .flexnav > div {
    margin-left: 1rem;
}
.popover .flexnav > a:first-child,
.popover .flexnav > div:first-child {
    margin-left: 0;
}

.popover .box {
    background-color: #080808;
    padding: 0.75rem 1rem 1rem 1rem;
    margin-top: 2rem;
}
.popover .box .flexnav {
    padding-top: 0.25rem;
}

.popover .box .heading {
    position: relative;
    font-size: 24px;
    text-align: center;
    font-weight: 600;
}
.popover .box .heading:before {
    content: "";
    display: block;
    position: absolute;
    top: 50%; right: 0; left: 0;
    height: 1px;
    background-color: white;
}
.popover .box .heading span {
    display: inline-block;
    padding: 0 0.75em;
    background-color: #080808;
    position: relative;
    z-index: 1;
}

.popover .box ul {
    margin: 1em 0;
    padding: 0 0 0 1em;
    list-style: square;
}
.popover .box ul a[href] {
    text-decoration: none;
    font-weight: 600;
}

.popover .bottom-label {
    display: block;
    color: white;
    text-decoration: none;
    position: absolute;
    bottom: -60px; left: 0;
    font-size: 14px;
    line-height: 1;
    height: 34px;
    padding: 10px 1rem 0 1rem;
    background: #565655;
}
.popover .bottom-label:after {
    content: "";
    display: block;
    position: absolute;
    top: 0; right: -20px;
    height: 0;
    border-top: 17px solid transparent;
    border-bottom: 17px solid transparent;
    border-left: 20px solid #565655;
}

.popover .swiper-container {
    width: 100%;
}
.popover .swiper-slide img {
    width: 100%;
}
.popover .swiper-button-prev {
    background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNyA0NCI+PHBhdGggZD0iTTAsMjJMMjIsMGwyLjEsMi4xTDQuMiwyMmwxOS45LDE5LjlMMjIsNDRMMCwyMkwwLDIyTDAsMjJ6IiBmaWxsPSIjRkYyRDFFIi8+PC9zdmc+");
}
.popover .swiper-button-next {
    background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNyA0NCI+PHBhdGggZD0iTTI3LDIyTDI3LDIyTDUsNDRsLTIuMS0yLjFMMjIuOCwyMkwyLjksMi4xTDUsMEwyNywyMkwyNywyMnoiIGZpbGw9IiNGRjJEMUUiLz48L3N2Zz4=");
}
.popover .swiper-pagination-bullet-active {
    background: #FF2D1E;
}

.popover .enlarge-photo {
    position: relative;
    display: block;
    width: 100%;
}
.popover .enlarge-photo img {
    display: block;
    width: 100%;
}
.popover .enlarge-photo:after {
    content: "";
    display: block;
    position: absolute;
    top: 10px; left: 10px;
    width: 48px; height: 48px;
    background: center center / 48px 48px no-repeat url("../images/zoom_photo.svg");
    opacity: 0.75;
    z-index: 1;

    transition: opacity .2s;
}
.no-touch .popover .enlarge-photo:hover:after {
    opacity: 1;
}

.popover .enlarge-video {
    position: relative;
    display: block;
    width: 100%;
}
.popover .enlarge-video img {
    display: block;
    width: 100%;
}
.popover .enlarge-video iframe {
    display: block;
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    width: 100%;
    height: 100%;
    border: none;
    z-index: 100;
}
.popover .enlarge-video:after {
    content: "";
    display: block;
    position: absolute;
    top: 50%; left: 50%;
    margin-top: -46px; margin-left: -46px;
    width: 92px; height: 92px;
    background: center center / 92px 92px no-repeat url("../images/playbutton.svg");
    opacity: 0.75;
    z-index: 1;

    transition: opacity .2s;
}
.no-touch .popover .enlarge-video:hover:after {
    opacity: 1;
}
/*.popover .enlarge-video:empty {
    display: none;
}*/

.imagebox {
    position: relative;
    width: 100%;
    background-position: center center;
    background-size: contain;
    background-repeat: no-repeat;

    max-height: 100%;
    overflow: hidden;
}
.imagebox .ratio {
    height: 0;
}

.popover .fullwidth.image {
    display: block;
    overflow: hidden;
    background-position: center center;
    background-size: contain;
    background-repeat: no-repeat;
}
.popover .fullwidth.image img {
    display: block;
    width: 100%;
}
.popover .fullwidth.video {
    display: block;
    position: relative;
    background-position: center center;
    background-size: contain;
    background-repeat: no-repeat;
}
.popover .fullwidth.video img {
    display: block;
    width: 100%;
}
.popover .fullwidth.video iframe {
    display: block;
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    width: 100%;
    height: 100%;
}

.popover.fullscreen {
    top: 0; right: 0; bottom: 0; left: 0;
    width: 100%;
    text-align: center;
    z-index: 10;
}
.popover.fullscreen .topright {
    background: rgba(44, 44, 43, 0.9);
}
.popover.fullscreen .prev-button {
    left: 30px;
}
.popover.fullscreen .next-button {
    right: 30px;
}
.popover.fullscreen .close-button {
    border: none;
    top: 10px; right: 10px;
    background-color: transparent;
}
.popover.fullscreen .enlarge-photo:after {
    display: none;
}
.popover.fullscreen .page > .content {
    overflow: hidden;
}


@media screen and (max-width: 600px) {
    .popover {
        left: 20px;
        top: 140px;
        bottom: 20px;
        width: calc(100% - 40px);
        min-width: 0;
    }

    .popover .page {
        top: 30px; right: 30px; bottom: 100px; left: 30px;
    }

    .popover .page h2 {
        font-size: 1.5rem;
    }

    .popover .pagination {
        right: 30px;
        bottom: 25px;
    }

    .popover .bottom-label {
        bottom: -50px;
        font-size: 13px;
        white-space: nowrap;
    }
}

.rotate-device {
    display: none;
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: 100000;
    background-color: #000;
    color: #666;
}
.rotate-device .inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}
@keyframes svg_device_rotate {
    from { transform: translate(64px, 64px) rotate(0deg); }
    65% { transform: translate(64px, 64px) rotate(90deg); }
    to { transform: translate(64px, 64px) rotate(90deg); }
}
@media screen and (max-height: 600px) and (orientation: landscape) {
    .touch .rotate-device {
        display: block;
    }
    .touch .rotate-device #svg_device {
        animation: svg_device_rotate 1.5s infinite;
    }
}
