/* 하위 키워드 페이지 전용 (body.sub30): 시공사례 5/3/2열, 전후사진 가로 2열 768px 중앙 */
body.sub30 .pcases{grid-template-columns:repeat(5,1fr);gap:14px}
body.sub30 .ptitle{padding:10px 12px 12px;font-size:15px;line-height:1.45;min-height:calc(4.35em + 22px)}   /* 제목 3줄 높이 고정 → 모든 카드·페이지 높이 동일 */
body.sub30 .ba1{max-width:768px;margin-inline:auto;margin-bottom:32px}
body.sub30 .ba1 .pair{grid-template-columns:1fr 1fr;gap:8px;background:transparent}
body.sub30 .ba1 .pair>div{background:var(--ivory,#f6f2ea)}
body.sub30 .ba1 .pair img{object-fit:contain}
@media(max-width:1100px){body.sub30 .pcases{grid-template-columns:repeat(3,1fr)}}
@media(max-width:760px){
body.sub30 .pcases{grid-template-columns:repeat(2,1fr);gap:10px}
body.sub30 .ptitle{padding:10px 12px 12px;font-size:14px}
body.sub30 .ba1 .pair{gap:4px}
body.sub30 .tg{left:6px;bottom:6px;font-size:10px;padding:3px 7px}
}
/* 전후사진 섹션(히어로 바로 아래) — 가로 2열, 최대 768px, 중앙 */
body.sub30 .ba-sec{padding:44px 0}
body.sub30 .ba-sec .sh{margin-bottom:20px}
body.sub30 .ba1{max-width:768px;margin:0 auto 32px}
body.sub30 .ba-sec .ba1{margin:0 auto}
body.sub30 .ba1 .pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
/* 관련 서비스 사진 카드 — 5/3/2열, 이미지 4:3 */
body.sub30 .prose>.rcards{max-width:none;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin:0 0 8px}
body.sub30 .rcards .rcard{display:flex;flex-direction:column;height:100%;padding:0;border:1px solid var(--line);border-radius:var(--r);background:#fff;font-weight:700;transition:transform .25s,box-shadow .25s}
body.sub30 .rcards .rcard:hover{transform:translateY(-3px);box-shadow:0 12px 28px rgba(36,59,75,.18)}
body.sub30 .rthumb{aspect-ratio:4/3;overflow:hidden;background:var(--ivory)}
body.sub30 .rthumb picture,body.sub30 .rthumb img{display:block;width:100%;height:100%;object-fit:cover}
body.sub30 .rtitle{display:block;padding:10px 12px 12px;font-size:14.5px;line-height:1.4;min-height:calc(4.2em + 22px);word-break:keep-all}
@media(max-width:1100px){body.sub30 .prose>.rcards{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){body.sub30 .prose>.rcards{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}body.sub30 .ba-sec{padding:32px 0}body.sub30 .rtitle{font-size:13.5px}}
@media(prefers-reduced-motion:reduce){body.sub30 .rcards .rcard{transition:none}}
/* 카드 제목 가림 방지(썸네일 확대 이미지가 제목을 덮던 문제) + 제목 최대 2줄 말줄임 */
body.sub30 .card.pcase .thumb{overflow:hidden}
body.sub30 .ptitle{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;position:relative;background:#fff}
/* 사진을 구하지 못해 카드로 못 보이는 관련 서비스: 카드 밖 텍스트 링크로 탐색 경로 유지 */
body.sub30 .rmore{margin:14px 0 0;font-size:14.5px}body.sub30 .rmore a{color:var(--navy);text-decoration:underline}
