.facebook-posts__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
    gap: 1.5rem;
}

.facebook-posts__item {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: .5rem;
    background: #fff;
}

.facebook-posts__link {
    display: flex;
    height: 100%;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
}

.facebook-posts__media {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #eee;
}

.facebook-posts__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .2s ease;
}

.facebook-posts__link:hover .facebook-posts__media img {
    transform: scale(1.025);
}

.facebook-posts__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: .75rem;
    padding: 1rem;
}

.facebook-posts__message {
    overflow-wrap: anywhere;
}

.facebook-posts__date {
    color: #666;
    font-size: .875rem;
}

.facebook-posts__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 3rem;
    margin: auto -1rem -1rem;
    padding: .75rem 1rem;
    background: #f2f2f2;
}

.facebook-posts__more {
    display: inline-flex;
    width: 1.5rem;
    height: 1.5rem;
    margin-left: auto;
    color: #000;
    transition: color .2s ease;
}

.facebook-posts__facebook-icon {
    display: block;
    width: 1.5rem;
    height: 1.5rem;
    fill: currentColor;
}

.facebook-posts__link:hover .facebook-posts__more,
.facebook-posts__link:focus-visible .facebook-posts__more {
    color: #c00;
}
