
/* ELEMENTS */
.tt-media {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: var(--step--2);
}

.tt-media-avatar {
    grid-row: 1 / span 3;

    position: relative;

    height: 100%;
    aspect-ratio: 1;

    border-radius: 8px;
    overflow: hidden;
}

/* Sizes */
.tt-avatar--xs { width: 24px; height: 24px; }
.tt-avatar--sm { width: 32px; height: 32px; }
.tt-avatar--md { width: 48px; height: 48px; }
.tt-avatar--lg { width: 64px; height: 64px; }
.tt-avatar--xl { width: 80px; height: 80px; }

.tt-media-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tt-media-body {
    display: grid;
    grid-template-rows: auto auto auto;
}

.tt-media-line {
    font-size: var(--step--2);
    margin: 0;
}

.tt-media-line--name {
    font-weight: 600;
    font-size: var(--step--2);
}

.tt-media-badge {
    position: absolute;
    bottom: 0;
    right: 0;

    font-size: var(--step--2);
    line-height: 1;

    padding: 2px 4px;
    border-top-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.tt-media-badge--primary {
    background: var(--primary-color);
    color:var(--bg-color);
}
.tt-media-badge--danger {
    background: var(--danger-color);
    color: var(--danger-text-color);
}
.tt-media-badge--success {
    background: var(--success-color);
    color: var(--success-text-color);
}
.tt-media-badge--secondary {
    background: rgba(0,0,0,0.7);
    color: white;
}
