.bbppp-more-pictures-panel {
    clear: both;
    width: 100%;
    box-sizing: border-box;
    margin: 22px 0 28px;
    padding: 18px;
    background: #fff;
    border: 1px solid #e4e8ec;
    border-radius: 12px;
    scroll-margin-top: 24px;
}

.bbppp-more-pictures-panel * {
    box-sizing: border-box;
}

.bbppp-mp-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 16px;
}

.bbppp-mp-heading h2 {
    margin: 0;
    padding: 0;
    color: #202b36;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 700;
}

.bbppp-mp-count {
    color: #687582;
    font-size: 13px;
}

.bbppp-mp-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.bbppp-mp-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 150px;
    padding: 8px;
    overflow: hidden;
    border: 1px solid #e7ebef;
    border-radius: 9px;
    background: #f7f8fa;
    cursor: zoom-in;
    appearance: none;
    -webkit-appearance: none;
}

.bbppp-mp-image img {
    display: block;
    width: 100%;
    height: 190px;
    object-fit: contain;
    margin: 0;
}

.bbppp-mp-image:hover {
    border-color: #9ba9b6;
}

.bbppp-mp-message,
.bbppp-mp-empty {
    margin: 8px 0;
    padding: 14px 12px;
    color: #596674;
    text-align: center;
    font-size: 14px;
}

.bbppp-mp-message.is-error {
    color: #a32929;
}

.bbppp-mp-message.is-loading::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    margin: 0 9px -3px 0;
    border: 2px solid #cbd3da;
    border-top-color: #34495e;
    border-radius: 50%;
    animation: bbppp-mp-spin .7s linear infinite;
}

@keyframes bbppp-mp-spin {
    to { transform: rotate(360deg); }
}

.bbppp-mp-lightbox {
    position: fixed;
    z-index: 999999;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 48px 20px 20px;
    background: rgba(0, 0, 0, .88);
}

.bbppp-mp-lightbox.is-open {
    display: flex;
}

.bbppp-mp-lightbox-image {
    display: block;
    max-width: min(100%, 1200px);
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: auto;
}

.bbppp-mp-lightbox-close {
    position: absolute;
    top: 10px;
    right: 16px;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
}

body.bbppp-mp-lightbox-open {
    overflow: hidden;
}

@media (max-width: 700px) {
    .bbppp-more-pictures-panel {
        margin-top: 16px;
        padding: 13px;
    }

    .bbppp-mp-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .bbppp-mp-image {
        min-height: 125px;
        padding: 6px;
    }

    .bbppp-mp-image img {
        height: 150px;
    }
}

@media (max-width: 360px) {
    .bbppp-mp-grid {
        grid-template-columns: 1fr 1fr;
        gap: 7px;
    }
}


html {
    scroll-behavior: smooth;
}
