/* podesign.css — 新網站在舊作品集樣式表(main.css / 768.css,原樣搬過來)上補的東西:
   舊站沒有的功能(語言切換、作品頁的 mockup 按鈕、外連卡片的 ↗)、React 版元件需要的樣式(影片等比例外框 = 舊站 FitVids 執行時塞的),
   以及中文字:舊站標題字體後援寫 serif,中文會掉成明體 → 一律退到系統黑體。 */

/* ---------- 中文字 ---------- */
body, input, textarea, select {
  font-family: "Roboto", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}
h1, h2, h3, h4, h5, h6, .filters, .nav-menu, th, dt, .button, input[type=submit], button, label, .tab-titles {
  font-family: "Montserrat", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}
html[lang="zh-Hant"] .page-title, html[lang="zh-Hant"] .entry-title { letter-spacing: 0; }

/* ---------- 語言切換(側欄底部,社群圖示上面;字跟版權同一套) ---------- */
.header .lang-switch { margin: 0; font-size: 12px; letter-spacing: 1px; }
.header .lang-switch a { color: rgba(225, 246, 255, 0.55); border-bottom: 1px solid rgba(225, 246, 255, 0.2); padding-bottom: 1px; transition: color .3s, border-color .3s; }
.header .lang-switch a:hover { color: rgba(255, 255, 255, 0.9); border-color: rgba(255, 255, 255, 0.6); }

/* ---------- 影片(舊站 FitVids 執行時加的外框) ---------- */
.fluid-width-video-wrapper { width: 100%; position: relative; padding: 0; }
.fluid-width-video-wrapper iframe, .fluid-width-video-wrapper object, .fluid-width-video-wrapper embed { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* ---------- 作品頁:互動 mockup / 線上網站的按鈕(用舊站 .button 的樣子,接在標題下面) ---------- */
.entry-header .demo-link { margin: 1.6em 0 0; text-align: center; }
.entry-header .demo-link .button i { margin-right: .4em; vertical-align: -2px; font-size: 1.3em; }

/* ---------- 作品格:外連網站的卡片在類別後面加 ↗ ---------- */
.media-cell-desc .ext { font-size: .95em; }

/* ---------- 文章頁的主圖、作品頁圖片:不要被放大效果切到邊 ---------- */
.portfolio-single .entry-content img, .blog-single .featured-image img { max-width: 100%; height: auto; }

/* 標題、引言換行時兩行平均分配,不要最後一行只剩一兩個字(中文標題特別容易) */
.entry-title, .entry-content blockquote, .portfolio-single .entry-content h3 { text-wrap: balance; }

/* ---------- 作品頁的影片(Nimbus):跟圖片一樣撐滿欄寬 ---------- */
.portfolio-single .entry-content video { display: block; width: 100%; height: auto; background: #111; }
.portfolio-single .entry-content video:has(+ p) { margin-bottom: 0; }          /* 舊站媒體下方留 2em;後面接圖說就貼近一點 */
.portfolio-single .entry-content video + p { margin: 10px 0 2em; text-align: center; font-size: .92em; opacity: .75; }
