/*--------------------------------------------------------------
    embed post
--------------------------------------------------------------*/
.embed-post {
    position: relative;
    display: flex;
    flex-direction: row;
    gap: 10px;
    min-width: 0;
    word-wrap: break-word;
    background-color: var(--gray-1);
    border-radius: var(--border-radius-sm);
    padding: 12px;
    margin-top: .75rem;
}

.post-content .embed-post {
    margin-top: 0;
    margin-bottom: 1.25rem;
}

.embed-post .embed-thumbnail {
    position: relative;
    display: block;
    overflow: hidden;
    width: 80px;
    padding: 0;
    flex-shrink: 0;
    border-radius: calc(var(--border-radius-sm) / 2);
}

.embed-post .embed-thumbnail:after {
    content: "";
    display: block;
    padding-top: 100%;
}

.embed-post .embed-thumbnail .embed-thumbnail-content {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    border: 0;
    border-radius: inherit;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    background-color: rgba(120, 120, 120, 0.1);
}

.embed-post .embed-thumbnail .embed-thumbnail-content img {
    display: block;
    -o-object-fit: cover;
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.embed-post .embed-content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    justify-content: center;
}

.embed-post .embed-body {
    flex: 1 1 auto;
}

.embed-post .embed-actions a {
    color: var(--color-muted);
}

.embed-post .embed-actions a:hover {
    color: var(--color-primary)
}

body[data-scheme="dark"] .embed-post {
    background-color: var(--gray-6);
}

body[data-scheme="dark"] .embed-post .embed-actions a {
    color: var(--color-muted);
}

@media (prefers-color-scheme: dark) {
    body[data-scheme="auto"] .embed-post {
        background-color: var(--gray-6);
    }

    body[data-scheme="auto"] .embed-post .embed-actions a {
        color: var(--color-muted);
    }
}