/**
 * Widget fallback styles.
 *
 * The sharingideas theme already styles `.sidebar .widget ul li` (image on top,
 * title below, card with rounded corners). Those rules are more specific than
 * everything here, so the theme always wins. This file only makes the widget
 * presentable if it is dropped into a different theme, or before the theme
 * stylesheet has been updated.
 */

.si-trending-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.si-trending-item {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(30, 60, 30, 0.06);
    margin-bottom: 1rem;
}

.si-trending-item:last-child {
    margin-bottom: 0;
}

.si-trending-thumb {
    display: block;
    width: 100%;
    overflow: hidden;
}

.si-trending-thumb img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
    margin: 0;
    transition: transform 0.4s ease;
}

.si-trending-item:hover .si-trending-thumb img {
    transform: scale(1.04);
}

.si-trending-title {
    display: block;
    padding: 0.6rem 0.75rem 0.7rem;
}

.si-trending-title a {
    display: block;
    font-size: 0.9rem;
    line-height: 1.42;
    text-decoration: none;
    color: inherit;
}
