/* Полноэкранный просмотр картинок сообщения */

.postcontent img {
    cursor: zoom-in;
}

body.plb-open {
    overflow: hidden;
}

.plb {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(8, 10, 14, 0.94);
}

.plb.plb-visible {
    display: flex;
}

.plb-image {
    max-width: 96vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.55);
    cursor: default;
    background: #0d1116;
}

.plb-close,
.plb-nav {
    position: absolute;
    border: 0;
    background: rgba(20, 24, 29, 0.7);
    color: #e6ecf3;
    cursor: pointer;
    line-height: 1;
    border-radius: 4px;
    transition: background 0.15s ease;
}

.plb-close {
    top: 18px;
    right: 20px;
    width: 40px;
    height: 40px;
    font-size: 26px;
}

.plb-nav {
    top: 50%;
    width: 46px;
    height: 64px;
    margin-top: -32px;
    font-size: 34px;
    visibility: hidden;
}

.plb.plb-many .plb-nav {
    visibility: visible;
}

.plb-prev {
    left: 16px;
}

.plb-next {
    right: 16px;
}

.plb-close:hover,
.plb-nav:hover {
    background: rgba(43, 53, 66, 0.95);
}

.plb-counter {
    position: absolute;
    top: 26px;
    left: 24px;
    color: #a9b6c6;
    font-size: 13px;
}

.plb-caption {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    max-width: 80vw;
    padding: 6px 12px;
    border-radius: 4px;
    background: rgba(11, 15, 20, 0.85);
    color: #d7dde5;
    font-size: 13px;
    text-align: center;
}
