/* Zibll Mini Emoji Panel - 评论图片 B 站式布局（v2.7.0，遮罩已舍弃） */

.zme-img-grid {
    display: grid;
    width: max-content;
    max-width: 100%;
    gap: var(--zme-img-gap, 4px);
    margin: 8px 0 2px;
    line-height: 0;
    overflow-x: auto;
}

.zme-img-grid .zme-img-cell {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--zme-radius, 4px);
    background: var(--muted-bg-color, #f1f2f3);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .04);
    cursor: zoom-in;
    flex: 0 0 auto;
}

/* 覆盖 Zibll 主题对评论图片的 max-width / max-height 限制 */
.zme-img-grid .zme-img-cell img,
.comment-content .zme-img-grid img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover;
    display: block;
    margin: 0 !important;
    vertical-align: top;
}

.zme-img-grid .zme-img-cell > a {
    display: block;
    width: 100%;
    height: 100%;
}

.zme-img-grid .zme-img-hidden {
    display: none !important;
}
