.tag-header{
    position: relative;
    display: grid;
    grid-template-areas: 
    "picture title"
    "picture desc";
    justify-content: start;
    gap: 1rem;

    margin-bottom: 2rem;
    padding-bottom: 0.5rem;

    figure{
        grid-area: picture;
        width: 1px;
        min-width: 1px;
        margin: 0;
    }
    figure:has(img) {
        width: auto;
        max-width: 150px;

        img{            
            width: 100%;
            height: auto;
            display: block;
            height:auto
        }
    }


    h1{
        grid-area: title;
        font-weight: normal;
    }

    .desc{
        grid-area: desc;
        margin-top: 0.5rem;
        color: rgb(from var(--text) r g b / 70%);
    }

    .edit-btn{
        position: absolute;
        right: 0;
        top: 0;
    }
}


.tag-posts{
    margin-top: 2rem;

    li{
        margin-bottom: 2rem;
        min-height:1rem;
        

         transition: grid-row-end 0.3s ease;

        &>div{
            
            padding:1rem;
            border: 2px solid rgb(from var(--text) r g b / 10%);
            background-color: var(--post-bg);
        }

        img{max-width: auto; max-height: 50%;}


  
    }

}





