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;
    width: 112px;
    height: 112px;
    padding: 8px;
    box-sizing: content-box;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
    opacity: 0.92;
    text-align: center;
    line-height: 0;
    font-size: 0;
}

#photoQrCode img,
#photoQrCode canvas,
#photoQrCode table {
    display: block;
    margin: 0 auto;
    width: 112px;
    height: 112px;
}

#photoHelp {
    position: fixed;
    top: 148px;
    left: 16px;
    z-index: 6;
    color: #e4e7ec;
    font-size: 13px;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 6px 10px;
    border-radius: 4px;
    max-width: 220px;
    text-shadow: 0 1px 2px #000;
    pointer-events: none;
}

#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,
.lean-paint #photoHelp {
    box-shadow: none;
}

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

    #photoMeta {
        font-size: 14px;
    }

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

    #photoQrCode {
        width: 88px;
        height: 88px;
        padding: 6px;
    }

    #photoQrCode img,
    #photoQrCode canvas,
    #photoQrCode table {
        width: 88px;
        height: 88px;
    }

    #photoHelp {
        display: none;
    }
}

@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 {
        width: 64px;
        height: 64px;
        padding: 5px;
        top: 10px;
        left: 10px;
        border-radius: 6px;
    }

    #photoQrCode img,
    #photoQrCode canvas,
    #photoQrCode table {
        width: 64px;
        height: 64px;
    }
}

@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 {
        width: 56px;
        height: 56px;
        padding: 4px;
    }

    #photoQrCode img,
    #photoQrCode canvas,
    #photoQrCode table {
        width: 56px;
        height: 56px;
    }
}
