/* มติ 839 — แถวผลงานล่าสุด หน้าแรก */
.home-works { margin: 18px auto 8px; }
.home-works-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.home-works-all { font-weight: 700; font-size: 14px; color: var(--ink); white-space: nowrap; }
.home-works-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.home-works-grid a { display: flex; flex-direction: column; gap: 4px; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; color: inherit; text-decoration: none; padding-bottom: 12px; }
.home-works-grid a:hover, .home-works-grid a:focus-visible { border-color: var(--yellow); }
.home-works-ph { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--canvas); }
.home-works-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.home-works-ph small { position: absolute; left: 8px; top: 8px; background: var(--yellow); color: var(--ink); font-weight: 700; font-size: 11px; padding: 2px 8px; border-radius: 99px; }
.home-works-grid strong { font-size: 14.5px; line-height: 1.35; padding: 6px 12px 0; }
.home-works-who { font-size: 12.5px; color: var(--muted); padding: 0 12px; }
@media (max-width: 760px) { .home-works-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
