.max-posts {
    width: 100%;
}

.max-posts__grid {
    display: grid;
    grid-template-columns: repeat(var(--max-posts-columns, 3), minmax(0, 1fr));
    gap: 16px;
}

.max-posts__item {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    background: var(--max-posts-card-bg, #ffffff);
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.max-posts__item.is-hidden {
    display: none;
}

.max-posts__image {
    display: block;
    width: 100%;
    background: inherit;
    overflow: hidden;
}

.max-posts__image img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.max-posts__content {
    padding: 14px 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.max-posts__title {
    font-size: var(--max-posts-title-size, 18px);
    font-weight: var(--max-posts-title-weight, 600);
    line-height: 1.3;
    margin: 0;
}

.max-posts__title a {
    color: var(--max-posts-title-color, #111111);
    text-decoration: none;
}

.max-posts__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: #666666;
}

.max-posts__date {
    font-size: var(--max-posts-date-size, 13px);
    color: var(--max-posts-date-color, #666666);
    font-weight: var(--max-posts-date-weight, 400);
}

.max-posts__meta-sep {
    color: #a0a0a0;
}

.max-posts__author {
    font-size: var(--max-posts-author-size, 13px);
    color: var(--max-posts-author-color, #666666);
    font-weight: var(--max-posts-author-weight, 400);
}

.max-posts__excerpt {
    font-size: var(--max-posts-excerpt-size, 14px);
    color: var(--max-posts-excerpt-color, #444444);
    font-weight: var(--max-posts-excerpt-weight, 400);
}

.max-posts__read-more {
    font-size: var(--max-posts-read-more-size, 14px);
    color: var(--max-posts-read-more-color, #111111);
    text-decoration: none;
    font-weight: var(--max-posts-read-more-weight, 600);
    display: inline-flex;
    align-self: flex-start;
}

.max-posts__read-more:hover {
    text-decoration: underline;
}

.max-posts__dots {
    display: none;
    gap: 10px;
    justify-content: center;
    align-items: center;
    margin-top: 18px;
}

.max-posts__dots.is-visible {
    display: flex;
}

.max-posts__dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    border: none;
    background: var(--max-posts-dot, #cfcfcf);
    cursor: pointer;
    transition: all 0.2s ease;
}

.max-posts__dot.is-active {
    width: 12px;
    height: 12px;
    background: var(--max-posts-dot-active, #111111);
}
