.cbp888-grid {
    display: flex;
    flex-wrap: wrap;
    margin: -10px; /* Offset gap for rows/cols, managed by JS/CSS ideally but we'll stick to basic flex */
}

/* Base flex basis */
.cbp888-post-item {
    padding: 10px; /* Half of gap */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.cbp888-post-item-inner {
    background-color: #fff;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.cbp888-post-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.cbp888-post-content-wrap {
    padding: 20px;
    flex-grow: 1;
}

.cbp888-post-title {
    margin: 0 0 10px 0;
}

.cbp888-post-title a {
    text-decoration: none;
    color: #333;
}

.cbp888-post-excerpt {
    color: #666;
}

/* Pagination & Load More */
.cbp888-pagination,
.cbp888-load-more-wrap {
    text-align: center;
    margin-top: 30px;
    width: 100%;
}

.cbp888-pagination .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    background: #f1f1f1;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
}

.cbp888-pagination .page-numbers.current,
.cbp888-pagination .page-numbers:hover {
    background: #333;
    color: #fff;
}

.cbp888-load-more-btn {
    padding: 10px 24px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease;
}

.cbp888-load-more-btn:hover {
    background: #555;
}

.cbp888-load-more-btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}
