html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: #050505;
    color: #fff;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    -webkit-overflow-scrolling: auto;
    -ms-touch-action: none;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

#photoStage {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-color: #050505;
    z-index: 1;
    overflow: hidden;
}

.photoLayer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #050505;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0;
    -webkit-transition: opacity 1500ms ease-in-out;
    -moz-transition: opacity 1500ms ease-in-out;
    -o-transition: opacity 1500ms ease-in-out;
    transition: opacity 1500ms ease-in-out;
    -webkit-transform: scale(1.0);
    -moz-transform: scale(1.0);
    -ms-transform: scale(1.0);
    -o-transform: scale(1.0);
    transform: scale(1.0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.photoLayer.photoVisible {
    opacity: 1;
}

.photoKB1 {
    -webkit-animation: photoKenBurns1 18s ease-in-out forwards;
    -moz-animation: photoKenBurns1 18s ease-in-out forwards;
    -o-animation: photoKenBurns1 18s ease-in-out forwards;
    animation: photoKenBurns1 18s ease-in-out forwards;
}

.photoKB2 {
    -webkit-animation: photoKenBurns2 18s ease-in-out forwards;
    -moz-animation: photoKenBurns2 18s ease-in-out forwards;
    -o-animation: photoKenBurns2 18s ease-in-out forwards;
    animation: photoKenBurns2 18s ease-in-out forwards;
}

.photoKB3 {
    -webkit-animation: photoKenBurns3 18s ease-in-out forwards;
    -moz-animation: photoKenBurns3 18s ease-in-out forwards;
    -o-animation: photoKenBurns3 18s ease-in-out forwards;
    animation: photoKenBurns3 18s ease-in-out forwards;
}

.photoKB4 {
    -webkit-animation: photoKenBurns4 18s ease-in-out forwards;
    -moz-animation: photoKenBurns4 18s ease-in-out forwards;
    -o-animation: photoKenBurns4 18s ease-in-out forwards;
    animation: photoKenBurns4 18s ease-in-out forwards;
}

@-webkit-keyframes photoKenBurns1 {
    0% {
        -webkit-transform: scale(1.00) translate(0%, 0%);
    }

    100% {
        -webkit-transform: scale(1.18) translate(-3%, -2%);
    }
}

@keyframes photoKenBurns1 {
    0% {
        transform: scale(1.00) translate(0%, 0%);
    }

    100% {
        transform: scale(1.18) translate(-3%, -2%);
    }
}

@-webkit-keyframes photoKenBurns2 {
    0% {
        -webkit-transform: scale(1.18) translate(2%, 2%);
    }

    100% {
        -webkit-transform: scale(1.00) translate(0%, 0%);
    }
}

@keyframes photoKenBurns2 {
    0% {
        transform: scale(1.18) translate(2%, 2%);
    }

    100% {
        transform: scale(1.00) translate(0%, 0%);
    }
}

@-webkit-keyframes photoKenBurns3 {
    0% {
        -webkit-transform: scale(1.05) translate(-2%, 1%);
    }

    100% {
        -webkit-transform: scale(1.20) translate(2%, -1%);
    }
}

@keyframes photoKenBurns3 {
    0% {
        transform: scale(1.05) translate(-2%, 1%);
    }

    100% {
        transform: scale(1.20) translate(2%, -1%);
    }
}

@-webkit-keyframes photoKenBurns4 {
    0% {
        -webkit-transform: scale(1.20) translate(-2%, -2%);
    }

    100% {
        -webkit-transform: scale(1.04) translate(1%, 2%);
    }
}

@keyframes photoKenBurns4 {
    0% {
        transform: scale(1.20) translate(-2%, -2%);
    }

    100% {
        transform: scale(1.04) translate(1%, 2%);
    }
}

#photoTouchSurface {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
    background: transparent;
    cursor: pointer;
}

#photoVignette {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 2;
    background-image:
        -webkit-linear-gradient(top, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0) 26%, rgba(0, 0, 0, 0) 64%, rgba(0, 0, 0, 0.78) 100%);
    background-image:
        linear-gradient(to bottom, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0) 26%, rgba(0, 0, 0, 0) 64%, rgba(0, 0, 0, 0.78) 100%);
}

#photoTitleBar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 32px 56px 40px 56px;
    z-index: 5;
    color: #fff;
    text-shadow: 0 2px 8px #000, 0 0 18px rgba(0, 0, 0, 0.7);
    pointer-events: auto;
}

#photoTitle {
    font-size: 44px;
    font-weight: 300;
    line-height: 1.15;
    margin-bottom: 10px;
    max-width: 1400px;
}

#photoMeta {
    font-size: 17px;
    color: #d8dde5;
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
}

#photoLocation {
    color: #86d6d1;
    margin-right: 16px;
}

#photoAttribution {
    color: #d8dde5;
    text-transform: none;
    letter-spacing: 0;
}

#photoAttribution a {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.45);
}

#photoAttribution a:active,
#photoAttribution a:hover {
    color: #86d6d1;
}

#photoCounter {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 6;
    color: #86d6d1;
    font-size: 16px;
    font-weight: 300;
    letter-spacing: 3px;
    text-shadow: 0 1px 4px #000;
    background-color: rgba(0, 0, 0, 0.45);
    padding: 6px 12px;
    border-radius: 4px;
    pointer-events: none;
}

#photoQrCode {
    display: block;
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 6;
    opacity: 0.92;
}

.rcRoomQrCodeLink {
    display: block;
    -webkit-box-sizing: content-box;
    box-sizing: content-box;
    width: 150px;
    border: solid 8px #fff;
    border-radius: 8px;
    color: #fff;
    background-color: #fff;
    box-shadow: 0 0 0 1px #fff;
    text-align: center;
    text-decoration: none;
    line-height: normal;
    -webkit-transform-origin: top left;
    transform-origin: top left;
    opacity: 0;
    -webkit-animation: scaleDown 4s ease-in-out forwards;
    animation: scaleDown 4s ease-in-out forwards;
}

@keyframes scaleDown {
    0% {
        -webkit-transform: scale(1.5);
        transform: scale(1.5);
        opacity: 0;
    }

    50% {
        -webkit-transform: scale(1.5);
        transform: scale(1.5);
        opacity: 1;
    }

    100% {
        -webkit-transform: scale(0.8);
        transform: scale(0.8);
        opacity: 1;
    }
}

.rcTechLabel {
    background-color: #000;
    color: #fff;
    font-family: monospace;
    font-size: 13px;
    font-weight: bold;
    margin: 0 0 8px 0;
    padding: 4px;
    letter-spacing: 0.2em;
    line-height: 1.2;
}

.rcRoomQrCode {
    -webkit-box-sizing: content-box;
    box-sizing: content-box;
    width: 150px;
    height: 150px;
    overflow: hidden;
}

.rcRoomQrCode img,
.rcRoomQrCode canvas {
    display: block;
    width: 150px;
    height: 150px;
}

.rcRoomId {
    background-color: #000;
    color: #fff;
    font-family: monospace;
    font-size: 16px;
    padding: 4px;
    margin: 8px 0 0 0;
    letter-spacing: 0.25em;
    line-height: 1.2;
}

#photoStatus {
    position: fixed;
    bottom: 4px;
    right: 8px;
    z-index: 7;
    color: #aaa;
    font-size: 11px;
    text-shadow: 0 1px 2px #000;
    pointer-events: none;
}

.photoLoading #photoTitle {
    color: #86d6d1;
    font-style: italic;
}

.lean-paint #photoVignette {
    background: rgba(0, 0, 0, 0.18);
}

.lean-paint #photoQrCode,
.lean-paint #photoCounter {
    box-shadow: none;
}

@media (max-width: 960px) {
    #photoTitle {
        font-size: 28px;
    }

    #photoMeta {
        font-size: 14px;
    }

    #photoTitleBar {
        padding: 20px 24px 28px 24px;
    }

    #photoQrCode {
        -webkit-transform: scale(0.74);
        transform: scale(0.74);
        -webkit-transform-origin: top left;
        transform-origin: top left;
    }

}

@media (max-width: 540px) {
    #photoTitle {
        font-size: 20px;
        margin-bottom: 6px;
    }

    #photoMeta {
        font-size: 11px;
    }

    #photoTitleBar {
        padding: 16px 16px 18px 16px;
    }

    #photoCounter {
        top: 10px;
        right: 10px;
        font-size: 13px;
        letter-spacing: 2px;
        padding: 5px 9px;
    }

    #photoQrCode {
        top: 10px;
        left: 10px;
        -webkit-transform: scale(0.54);
        transform: scale(0.54);
        -webkit-transform-origin: top left;
        transform-origin: top left;
    }
}

@media (orientation: portrait) and (max-width: 720px) {
    #photoTitleBar {
        padding: 14px 14px 16px 14px;
    }

    #photoTitle {
        font-size: 18px;
        line-height: 1.2;
    }

    #photoMeta {
        font-size: 10px;
        letter-spacing: 1px;
    }

    #photoLocation {
        display: block;
        margin-right: 0;
        margin-bottom: 4px;
    }
}

@media (max-height: 500px) {
    #photoTitleBar {
        padding: 10px 16px 12px 16px;
    }

    #photoTitle {
        font-size: 16px;
        margin-bottom: 4px;
    }

    #photoMeta {
        font-size: 10px;
    }

    #photoQrCode {
        -webkit-transform: scale(0.48);
        transform: scale(0.48);
        -webkit-transform-origin: top left;
        transform-origin: top left;
    }
}