/*
|--------------------------------------------------------------------------
| Auto Embeds
|--------------------------------------------------------------------------
*/

.content-embed {
    width: 100%;
    margin: 26px 0;
}


/*
|--------------------------------------------------------------------------
| Video
|--------------------------------------------------------------------------
*/

.content-embed-video {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: #000;
    aspect-ratio: 16 / 9;
}


.content-embed-video iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}


/*
|--------------------------------------------------------------------------
| Spotify
|--------------------------------------------------------------------------
*/

.content-embed-spotify {
    overflow: hidden;
    border-radius: 12px;
}


.content-embed-spotify iframe {
    display: block;
    width: 100%;
    min-height: 152px;
    border: 0;
    border-radius: 12px;
}


/*
|--------------------------------------------------------------------------
| Instagram
|--------------------------------------------------------------------------
*/

.content-embed-instagram {
    display: flex;
    justify-content: center;
    overflow: hidden;
}


.content-embed-instagram iframe {
    display: block;
    width: 100%;
    max-width: 540px;
    min-height: 650px;
    border: 0;
    background: #fff;
}


/*
|--------------------------------------------------------------------------
| Generic Link Preview
|--------------------------------------------------------------------------
*/

.content-link-preview {
    display: grid;
    grid-template-columns:
        190px
        minmax(0, 1fr);
    overflow: hidden;
    width: 100%;
    margin: 25px 0;
    border: 1px solid #e0e1e4;
    border-radius: 11px;
    background: #fff;
    color: #191919 !important;
    text-decoration: none !important;
}


.content-link-preview:hover {
    border-color: #c3c5ca;
    box-shadow:
        0 7px 24px
        rgba(0, 0, 0, .06);
}


.content-link-preview-image {
    min-height: 150px;
    background: #ededee;
}


.content-link-preview-image img {
    display: block;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
    object-fit: cover;
}


.content-link-preview-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 19px 20px;
}


.content-link-preview-domain {
    display: block;
    overflow: hidden;
    margin-bottom: 6px;
    color: #898b90;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .4px;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}


.content-link-preview-body strong {
    display: -webkit-box;
    overflow: hidden;
    color: #171717;
    font-size: 16px;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}


.content-link-preview-body p {
    display: -webkit-box;
    overflow: hidden;
    margin: 7px 0 0 !important;
    color: #72747a;
    font-size: 12px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}


.content-link-preview-simple {
    grid-template-columns: 1fr;
}


/*
|--------------------------------------------------------------------------
| Mobile
|--------------------------------------------------------------------------
*/

@media (max-width: 600px) {

    .content-link-preview {
        grid-template-columns:
            110px
            minmax(0, 1fr);
    }


    .content-link-preview-image {
        min-height: 115px;
    }


    .content-link-preview-body {
        padding: 12px 13px;
    }


    .content-link-preview-body strong {
        font-size: 13px;
    }


    .content-link-preview-body p {
        font-size: 10px;
    }


    .content-embed-instagram iframe {
        min-height: 590px;
    }

}