.card--open-graph{

    @include grid-content();

    // border: var(--border-light);
    border: 1px solid var(--grey-600);
    border-radius: var(--radius-small);
    position: relative;

    figure{
        grid-column: 1;
        grid-row: 1;
        width: 100%;
        height: 100%;
        img{
            width: 100%;
            height: 100%;
            object-fit: cover;  
        }
    
    }

    // @include figure-16-9();
    

    @media #{$x-small}{
       figure{
        height: 100%;
        aspect-ratio: auto;
       }
    }

    .content{
        padding: var(--padding-inner);
        padding-left: 0;
        grid-column: 2;
        grid-row: 1;
    }

    .site-name{
        color: var(--color-txt-light);
        font-size: var(--fs-small);
        margin-bottom: 3px;
    }

    .title{
        font-size: var(--fs-normal);
        font-weight: normal;
        line-height: 1.1;
        padding-top: 2px;
        display: -webkit-box;
        -webkit-line-clamp: 2;    
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-bottom: 0.5em;
        a{ 
            text-decoration: none;
        }
    }

    .description{
        font-size: var(--fs-small);
        display: -webkit-box;
        -webkit-line-clamp: 3;    
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    &:hover{
        border-color: var(--color-txt);
        background-color: var(--grey-950);
    }
}


.open-graph__inner{

    container-type: inline-size;
    container-name: opengraph;
}
@container opengraph (width < 500px) {
    .card--open-graph{

        .content{
            padding: calc(var(--padding-inner)*0.5);
        }

        figure{
            aspect-ratio: inherit;
        }
    }
}