/* digg.one lightbox (design digg_account): screenshots in rich text (content/view/lightbox.tpl) and the dialog that
   javascript/digg_lightbox.js opens over the page. Loaded through design.ini [StylesheetSettings]
   FrontendCSSFileList. */

/* a screenshot in the page: as wide as the text, never wider than the screen, a zoom cursor */
.digg-shot {
    margin: 12px 0 20px;
    max-width: 100%;
}
.digg-shot a {
    display: inline-block;
    max-width: 100%;
    cursor: zoom-in;
}
.digg-shot img {
    display: block;
    max-width: 100%;
    height: auto;
    border: 1px solid #d8dee6;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba( 10, 58, 98, 0.12 );
}
.digg-shot figcaption {
    margin-top: 6px;
    color: #5b6573;
    font-size: 13px;
    line-height: 1.4;
}

/* the open dialog */
html.digg-lightbox-open,
html.digg-lightbox-open body {
    overflow: hidden;
}
.digg-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 56px 12px 12px;
    background: rgba( 8, 16, 28, 0.97 );
    cursor: zoom-out;
}
.digg-lightbox-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-height: calc( 100vh - 110px );
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y pinch-zoom;
}
.digg-lightbox-image {
    display: block;
    max-width: 100%;
    max-height: calc( 100vh - 120px );
    width: auto;
    height: auto;
    border-radius: 4px;
    background: #fff;
    cursor: zoom-in;
}
.digg-lightbox.is-zoomed .digg-lightbox-stage {
    align-items: flex-start;
    justify-content: flex-start;
}
.digg-lightbox.is-zoomed .digg-lightbox-image {
    max-width: none;
    max-height: none;
    cursor: zoom-out;
}
.digg-lightbox-caption {
    margin: 10px 0 0;
    max-width: 900px;
    color: #f1f4f8;
    font-size: 14px;
    text-align: center;
}
.digg-lightbox-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 50%;
    background: rgba( 8, 16, 28, 0.6 );
    color: #fff;
    font-size: 32px;
    line-height: 40px;
    cursor: pointer;
}
.digg-lightbox-close:hover,
.digg-lightbox-close:focus {
    background: #0d48a6;
    outline: 3px solid #fff;
    outline-offset: 2px;
}
