/*
 * image_top_listitem_widget — full-width image on top, title +
 * subtitle below. Tile-style: works best inside grid layouts where
 * each row gets its own column slot (e.g. a 3-column EntityList).
 *
 * Default image height 140px gives a 16:9-ish ratio at typical card
 * widths (~250-320px). Authors can override per-card via a CSS
 * height class on the `.image-top-image` region.
 */

.image-top-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;
}

.image-top-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);
}

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

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

.image-top-body {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.image-top-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    color: #0f172a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.image-top-subtitle {
    font-size: 13px;
    line-height: 1.4;
    color: #475569;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}
