.pgm-media-card {
    display: inline-grid;
    width: min(240px, 100%);
    overflow: hidden;
    margin: 10px 10px 10px 0;
    color: inherit;
    text-decoration: none;
    vertical-align: top;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 16px;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.10);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.pgm-media-card:hover,
.pgm-media-card:focus {
    color: inherit;
    text-decoration: none;
    border-color: rgba(37, 99, 235, 0.45);
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.16);
    transform: translateY(-2px);
}

.pgm-media-card-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 10;
    background: radial-gradient(circle at 20% 15%, #dbeafe 0, transparent 32%), #eef2f7;
}

.pgm-media-card-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pgm-media-card-filetype {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    min-height: 56px;
    padding: 8px;
    color: #1e40af;
    font-size: 13px;
    font-weight: 700;
    border-radius: 14px;
    background: #dbeafe;
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.16);
}

.pgm-media-card-body {
    display: grid;
    gap: 4px;
    padding: 14px;
}

.pgm-media-card-body strong,
.pgm-media-card-body span {
    overflow-wrap: anywhere;
}

.pgm-media-card-body span {
    color: #646970;
    font-size: 12px;
}
