/*
Theme Name: New Child
Template: magcity
*/

.site-branding{display:inline-flex;width:100%;align-items:anchor-center;}
.site-title{width:100%;margin:0}

header#masthead .site-branding img.custom-logo{width: 60px!important;height: auto;aspect-ratio:auto!important;}


/* 針對摘要區塊進行行數限制 */
.entry-content p, .post-excerpt p {
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 這裡設定你想顯示的行數 */
    -webkit-box-orient: vertical;  
    overflow: hidden;
    white-space: normal;
    height: auto; /* 確保高度不會被固定死 */
}


/* 強制文章列表摘要只顯示兩行，多出的字顯示 ... */
.my-custom-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;         /* 顯示行數限制 */
    -webkit-box-orient: vertical;  
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.6;              /* 行高 */
    max-height: 3.2em;             /* 1.6 x 2行 = 3.2em */
    margin-top: 10px;
    color: #444;                   /* 文字顏色 */
}

/* 隱藏文章列表的作者資訊 (by mingchuandesign) */
.entry-meta .byline, 
.entry-meta .author, 
.post-author {
    display: none !important;
}

/* 如果你想連 Posted on 的日期也隱藏，取消下面這行的註解 */
/* .entry-meta .posted-on { display: none !important; } */