/*
 * media_card_listitem_widget — image top, title, multi-line
 * description. Like `image_top_listitem_widget` but the body's
 * second text block is a multi-line description instead of a
 * one-line subtitle.
 *
 * Description clamp set to 4 lines so cards stay roughly equal
 * height in a grid even when the underlying entity has a very long
 * description. Bump the clamp to 6+ if your content is genuinely
 * paragraph-length.
 */

.media-card-listitem-widget {
    display: block;
    background: #ffffff;
    border: 1px solid #e3e8ef;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 1px rgba(15, 23, 42, 0.06);
    transition: box-shadow 160ms ease, transform 160ms ease, border-color 160ms ease;
    box-sizing: border-box;
}

.media-card-listitem-widget:hover {
    border-color: #cfd8e3;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08), 0 2px 4px rgba(15, 23, 42, 0.06);
    transform: translateY(-1px);
}

.media-card-image {
    width: 100%;
    height: 160px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.media-card-image > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.media-card-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.media-card-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    color: #0f172a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.media-card-description {
    font-size: 13px;
    line-height: 1.5;
    color: #475569;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}
