.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.image-card {
    display: block;
    background: var(--card-bg, #f7f8fa);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform .12s ease, box-shadow .12s ease;
}

.image-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,.08);
}

.image-thumb {
    background: #eaecef;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.image-meta {
    padding: 8px;
}

.truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
