.sbg-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 42px 16px;
    width: 100%;
}

.sbg-card {
    min-width: 0;
    text-align: center;
}

.sbg-image-link {
    display: block;
    overflow: hidden;
    background: #f3f1ed;
    text-decoration: none;
}

.sbg-image {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    transition: transform .35s ease;
}

.sbg-image--placeholder {
    background: linear-gradient(135deg, #efede8, #ddd8cf);
}

.sbg-card:hover .sbg-image {
    transform: scale(1.025);
}

.sbg-content {
    padding: 14px 12px 0;
}

.sbg-date {
    display: block;
    margin-bottom: 10px;
    color: #665f57;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 13px;
    line-height: 1.4;
}

.sbg-title {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(18px, 1.45vw, 23px);
    font-weight: 300;
    line-height: 1.12;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.sbg-title a {
    color: #776f66;
    text-decoration: none;
}

.sbg-title a:hover,
.sbg-title a:focus {
    color: #2f2a25;
}

.sbg-categories {
    margin-top: 10px;
    color: #6e665e;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 15px;
    line-height: 1.5;
}

.sbg-categories a {
    color: inherit;
    text-decoration: none;
}

.sbg-categories a:hover,
.sbg-categories a:focus {
    text-decoration: underline;
}

.sbg-excerpt {
    margin-top: 12px;
    color: #5c5751;
    font-size: 15px;
    line-height: 1.65;
}

.sbg-pagination {
    margin-top: 48px;
}

.sbg-pagination ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sbg-pagination a,
.sbg-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    padding: 7px 12px;
    border: 1px solid #d9d3ca;
    color: #5d574f;
    background: #fff;
    text-decoration: none;
}

.sbg-pagination .current,
.sbg-pagination a:hover,
.sbg-pagination a:focus {
    color: #fff;
    background: #6f675e;
    border-color: #6f675e;
}

.sbg-empty {
    text-align: center;
}

@media (max-width: 900px) {
    .sbg-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .sbg-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .sbg-content {
        padding-inline: 4px;
    }
}
