/* nCode Image Resizer 2.0.0 */
.postmessage img.ncode-ir-managed,
.postbit .content img.ncode-ir-managed,
.postbit .postcontent img.ncode-ir-managed,
.postbit .postbody img.ncode-ir-managed,
.postbit .signature img.ncode-ir-managed,
.postbit_legacy .content img.ncode-ir-managed,
.postbit_legacy .signature img.ncode-ir-managed,
#posts .content img.ncode-ir-managed,
#posts .signature img.ncode-ir-managed {
    display: inline-block;
    max-width: 100%;
    height: auto !important;
    vertical-align: middle;
    cursor: zoom-in;
}

.ncode-ir-lightbox {
    display: none;
    position: fixed;
    z-index: 999999;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, .92);
    color: #fff;
    text-align: center;
    overflow: hidden;
}
.ncode-ir-toolbar {
    position: absolute;
    z-index: 3;
    top: 0;
    right: 0;
    left: 0;
    height: 48px;
    line-height: 48px;
    text-align: right;
    padding: 0 14px;
    box-sizing: border-box;
}
.ncode-ir-counter {
    float: left;
    font: 13px/48px Arial, sans-serif;
    color: #ddd;
}
.ncode-ir-lightbox button {
    border: 0;
    background: rgba(255,255,255,.14);
    color: #fff;
    cursor: pointer;
    font: 24px/1 Arial, sans-serif;
    padding: 6px 12px;
    margin-left: 8px;
    border-radius: 3px;
}
.ncode-ir-lightbox button:hover,
.ncode-ir-lightbox button:focus { background: rgba(255,255,255,.3); outline: 1px solid #fff; }
.ncode-ir-close { font-size: 32px !important; min-width: 42px; }
.ncode-ir-stage {
    position: absolute;
    top: 54px;
    right: 64px;
    bottom: 18px;
    left: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ncode-ir-view {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: auto;
    box-shadow: 0 2px 24px rgba(0,0,0,.35);
}
.ncode-ir-prev,
.ncode-ir-next {
    position: absolute;
    z-index: 2;
    top: 50%;
    margin-top: -24px !important;
    width: 44px;
    height: 52px;
    padding: 0 !important;
}
.ncode-ir-prev { left: 12px; }
.ncode-ir-next { right: 12px; }
.ncode-ir-open { overflow: hidden; }
.ncode-ir-fallback-full {
    position: fixed;
    z-index: 1000000;
    top: 0;
    left: 0;
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    background: #000;
    object-fit: contain;
}
@media (max-width: 600px) {
    .ncode-ir-stage { top: 52px; right: 8px; bottom: 10px; left: 8px; }
    .ncode-ir-prev { left: 2px; }
    .ncode-ir-next { right: 2px; }
    .ncode-ir-lightbox button { font-size: 20px; padding: 6px 9px; }
}
