/* PAGE LAB — news-ig.css : 뉴스 페이지(/news/) C안 — 2026-11-12 운영 반영. 본문은 newsig.py.
   1부 = 탭 [News & Column | Activities] · 두 머리(시안 make.py TABS_CSS), 2부 = 뉴스 칸 격자 · 인스타그램 구역(시안 variants/page-j.css).
   모두 .pl-newsig-page-j(본문 틀) · #pane-news · #pane-activities · .pl-ig-page-j 아래에서만.
   3부(7절, 2026-11-13) = 인스타그램 게시물 창 — news-ig.js 가 body 끝에 붙이는 .pl-igm 아래에서만(고유 접두사 pl-igm). */
/* ---- 뉴스 페이지 공통: 상단 탭 [News & Column | Activities] (2026-10-22) — About 탭 바와 같은 모양
   (15/500, 비선택 #999, 선 · 상자 없음, 헤더 아래 100(모바일 16) 띄워 놓였다가 스크롤하면 헤더 바로 아래에 걸림, 흰 바탕).
   같은 날 사용자 "탭은 전환 말고 해당 위치로 이동" → 두 구역은 늘 위아래로 다 보이고, 탭을 누르면 그 구역 머리로 부드럽게 이동 · 스크롤 위치에 따라 지금 구역 탭이 검정.
   "영역은 좌측 패딩 72px 헤더랑 같은 간격" → 탭 · 두 구역 모두 좌우 72(모바일 20) = 사이트 헤더 좌우 간격(전 1500 이상 108) ---- */
.pl-ntabs-space { height: 100px; }   /* 2026-10-26 사용자 '지금 홈페이지 페이지랩 소개 높이만큼' = 운영 About .about-tabs-space 100(모바일 16) (2026-10-22 140, 그 전 100) */
.pl-ntabs { position: sticky; top: var(--pl-header-h); z-index: 1500; background: #fff; }
.pl-ntabs__inner { padding: 20px 72px; display: flex; gap: 28px; align-items: baseline; box-sizing: border-box; }
.pl-ntab-pane > .sub-news-wrapper { padding-left: 72px !important; padding-right: 72px !important; }
.pl-ntab { font-family: var(--font-en); font-size: max(12px, calc(15 * var(--pl-fz, 1px))); font-weight: 500; line-height: 1; color: #ccc; text-decoration: none; white-space: nowrap; transition: color .2s; }   /* 비선택 #ccc — 2026-10-27 사용자 ".pl-ntab 비활성화 컬러 #ccc로"(운영 About 탭 비선택과 같은 값, 그 전 #999) */
.pl-ntab:hover, .pl-ntab.is-active { color: #1d1d1d; }
.pl-ntab:focus-visible { outline: 2px solid #1d1d1d; outline-offset: 4px; }
/* 뉴스 구역은 탭 바 아래 68(모바일 36)에서 시작(About 소개 탭과 같은 값), 인스타그램 구역은 뉴스 아래 240(모바일 120 — 2026-10-21 사용자 값) */
#pane-news > .sub-news-wrapper { padding-top: 68px !important; padding-bottom: 0 !important; }
.pl-ntab-pane { scroll-margin-top: calc(var(--pl-header-h) + 55px); }   /* 스크립트 없을 때 탭 링크로 이동한 자리 */
#pane-activities > .sub-news-wrapper { padding-top: 240px !important; }
/* 머리: 타이틀 → 이탤릭 서브(사이트 서브 문구 Inter italic 14 #999) → 소개 문구(본문 15/1.68 #333) */
.sub-news-header .header-titles .sub-title.pl-nhead-sub { display: block; margin: 18px 0 0; font-family: var(--font-en); font-style: italic; font-size: max(12px, calc(14 * var(--pl-fz, 1px))); font-weight: 400; line-height: 1.5; letter-spacing: 0; color: #999; }
.sub-news-header .header-titles .pl-nhead-desc { margin: 48px 0 0;   /* 2026-10-22 사용자 '윗공간 48' (전 24) · '글은 두 줄 분량' — 문장 둘을 한 줄씩(PC 줄바꿈, 모바일은 자연스럽게 이어 흐름) */ max-width: 640px; font-size: max(12px, calc(15 * var(--pl-fz, 1px))); line-height: 1.68; color: #333; word-break: keep-all; }
.sub-news-header .header-titles .pl-nhead-desc .pl-nhead-link { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: #999; text-underline-offset: 3px; }   /* 문구 안 계정 링크(2026-10-28) — 글자는 본문 그대로 · 회색 밑줄, 인스타그램 구역이라 마우스 올림 효과 없음 */
.sub-news-header .header-titles .pl-nhead-desc .pl-nhead-link:focus-visible { outline: 2px solid #1d1d1d; outline-offset: 2px; }
.pl-nhead-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* 두 머리 배치 공통 — 왼쪽 [타이틀 → 이탤릭 서브 → 소개] 세로 · 오른쪽 계정 링크(인스타)는 소개 문구 아래 끝선에. 시안마다 달랐던 머리 격자 배치를 덮음 */
#pane-news .sub-news-header, #pane-activities .sub-news-header { display: flex !important; justify-content: space-between; align-items: flex-end !important; flex-wrap: wrap; gap: 20px 40px; }
#pane-news .sub-news-header, #pane-activities .sub-news-header { margin-bottom: 120px; }   /* 2026-10-26 사용자 '.sub-news-header 120px' — 머리 → 뉴스 격자 · 인스타 게시물 68 → 120(PC, 모바일 48 그대로). page-c 는 선 위 여백으로(page-c.css) */
/* 원장별 거르기 머리(2026-11-17 — 메인 피드 원장 창 VIEW MORE → ?doctor=태그, news-list.js 가 켬): [이름 · 수 ······ VIEW ALL] */
.pl-newsig-page-j .sub-news-filter { display: flex; align-items: center; gap: 12px; margin: 0 0 24px; }   /* 아래 선은 격자 윗선(회색)이 대신 — 검정 선을 두면 두 줄 */
.pl-newsig-page-j .sub-news-filter[hidden] { display: none; }
.pl-newsig-page-j .sub-news-filter-name { font-size: max(12px, calc(18 * var(--pl-fz, 1px))); font-weight: 600; line-height: 26px; letter-spacing: -0.02em; color: #1d1d1d; }
.pl-newsig-page-j .sub-news-filter-n { font-family: var(--font-en); font-size: max(12px, calc(14 * var(--pl-fz, 1px))); line-height: 20px; color: #999; font-variant-numeric: tabular-nums; }
.pl-newsig-page-j .sub-news-filter-all { display: inline-flex; align-items: center; height: 30px; margin-left: auto; padding: 0 18px; border: 1px solid #1d1d1d; border-radius: 999px;
  font-family: var(--font-en); font-size: 12px; font-weight: 500; letter-spacing: .04em; color: #1d1d1d; text-decoration: none; transition: background-color .3s ease, color .3s ease; }
.pl-newsig-page-j .sub-news-filter-all:is(:hover, :focus-visible) { background: #1d1d1d; color: #fff; }
@media (max-width: 959px) { .pl-newsig-page-j .sub-news-filter { margin-bottom: 16px; } .pl-newsig-page-j .sub-news-filter-name { font-size: max(12px, calc(16 * var(--pl-fz, 1px))); line-height: 24px; } }
#pane-activities .sub-news-header { margin-bottom: 80px; }   /* 2026-10-28 사용자 "sub-news-header pl-ige-head만 아래 마진 80px로 · 다른 시안도 동일하게" — 인스타그램 머리 → 게시물만 120 → 80(PC, 뉴스 머리는 120 그대로, 모바일 48 그대로) */
#pane-news .sub-news-header .header-titles, #pane-activities .sub-news-header .header-titles { display: flex !important; flex-direction: column; align-items: flex-start; flex: 1 1 auto; min-width: 0; }
#pane-activities .sub-news-header .sub-title, #pane-activities .sub-news-header .main-title, #pane-activities .sub-news-header > a { grid-row: auto; grid-column: auto; align-self: auto; justify-self: auto; }
#pane-activities .sub-news-header > a { align-self: flex-end; white-space: nowrap; flex: none; }
@media (max-width: 959px) {
  #pane-activities .sub-news-header { flex-direction: column; align-items: flex-start !important; gap: 18px; }
  #pane-activities .sub-news-header > a { align-self: flex-start; }
  #pane-news .sub-news-header, #pane-activities .sub-news-header { margin-bottom: 48px; }   /* 모바일은 원래 값(news-list.css) */
  .pl-ntabs-space { height: 16px; }
  .pl-ntabs__inner { padding: 14px 20px 12px; gap: 22px; }
  .pl-ntab { font-size: max(12px, calc(14 * var(--pl-fz, 1px))); padding: 13px 0; margin: -13px 0; }
  .pl-ntab-pane > .sub-news-wrapper { padding-left: 20px !important; padding-right: 20px !important; }
  #pane-news > .sub-news-wrapper { padding-top: 36px !important; }
  #pane-activities > .sub-news-wrapper { padding-top: 120px !important; }
  .sub-news-header .header-titles .sub-title.pl-nhead-sub { margin-top: 10px; font-size: 12px; }
  .sub-news-header .header-titles .pl-nhead-desc { margin-top: 16px; font-size: max(12px, calc(14 * var(--pl-fz, 1px))); }
  .sub-news-header .header-titles .pl-nhead-desc .pl-nhead-br { display: none; }
}

/* 뉴스 + 인스타그램 시안 'page-j'(다시 잡은 C안) — 칸 격자 매거진(2026-10-27 사용자 "격자 스타일 디자인 다시 잡아줘 레퍼런스 같이 보내 줄게").
   한 줄 생각: 제품 카탈로그처럼 가로 · 세로 1px 선으로 나뉜 칸마다 기사 한 편 — 다섯 편이 한 묶음(큰 칸 하나 + 작은 칸 넷), 큰 칸은 묶음마다 왼쪽 · 오른쪽으로 번갈아,
   칸 안 글은 굵은 제목 → 짧은 요약(처음엔 잡지 지면처럼 큰 번호를 앞에 뒀다가 2026-10-27 사용자 요청으로 뺌).
   레퍼런스에서 가져온 것:
     REF1 뱅앤올룹슨 제품 격자(refs/2026-10-27-c-ref-bo-grid.jpg) — 칸 사이 1px 연회색 선(가로 · 세로, 선이 글 끝보다 바깥까지) · 큰 칸 2열 × 2줄 옆 작은 칸 2 × 2 ·
       칸 안 [작은 라벨 → 회색 판 위에 놓인 사진(판 여백) → 작은 줄(아이콘 · 색 점 자리 = 작성자) → 진한 1px 선 → 큰 이름 → 회색 설명 → 맨 아래 가격 한 줄 + 둥근 '+'] ·
       큰 칸과 옆 작은 칸의 선 · 이름 · 가격이 한 줄(크기 차이는 사진에서만) → 라벨 = 분류(News · Column), 가격 자리 = 날짜, 둥근 '+' = 글로 가는 둥근 '→'(MORE 는 '+').
     REF2 잡지 57쪽(refs/2026-10-27-c-ref-magazine.png) — 굵은 큰 번호 → 굵은 두 줄 제목 → 작은 본문(번호는 모두 같은 크기) · 크기 다른 사진의 엇갈린 배치
       → 번호 01 · 02 …(목록 순서 = 화면 순서 = Tab 순서) · 큰 칸이 묶음마다 좌우로 번갈아 서는 리듬.
   바꾼 것: REF1 의 베이지 · 토프 → 사이트 무채색(#1d1d1d · #686868 · #999 · #e5e5e5 · #f2f2f2 · 흰색), 칸 · 사진 모서리 직각(둥근 것은 작은 원 버튼만),
     그림자 · 그라데이션 · 강조색 없음. 새 올림 효과 없음(사이트 제목 밑줄만 — 사진 · 둥근 버튼에 올려도 같은 밑줄).
   2026-10-27 다듬기(검토 두 건 반영): ① PC 도 모바일처럼 선만 바깥으로(격자를 칸 안쪽 여백만큼 밖으로) → 사진 · 글 왼쪽 끝 = 로고 · 탭 · 머리 제목 · 인스타그램 72
     ② 칸마다 subgrid 4줄(라벨 / 사진 / 작성자 / 글) → 큰 칸의 선 · 번호 · 날짜가 옆 둘째 줄 작은 칸과 같은 줄 ③ 오른쪽 큰 칸 = 묶음의 셋째 글(10n+8 — 화면 · 번호 · Tab 순서가 같음)
     ④ 가격 자리 = 날짜 한 줄(작성자는 사진 아래 작은 줄로) ⑤ 사진 아래 선 #999(칸 사이 선보다 확실히 진하게) ⑥ 회색 판 여백(사진이 판 위에 놓임)
     ⑦ 덜 찬 끝 묶음(53 = 10묶음 + 3)은 [넓은 칸 | 작은 칸 | 작은 칸] 한 줄 — 사진이 모두 1:1 ⑧ 960~1080 큰 칸 사진 3:4 ⑨ MORE = 수 · MORE · '+' 를 오른쪽 끝에 한 덩어리.
   2026-10-27 사용자 "회색판 제거하고 넘버링도 제거" → ⑥ 회색 판 여백을 뺌(사진이 칸 폭 · 판 자리 가득 — #f2f2f2 는 불러오는 동안 · 못 불러온 사진에만),
     큰 번호(01 · 02 …)를 뺌(선 아래 바로 제목). 넓은 칸(덜 찬 끝 묶음)의 사진도 판 가운데 3:4 대신 옆 작은 칸과 같은 1:1 · 같은 줄.
   2026-10-27 사용자 "c안에 뉴스옆에 작성자를 표시해주고 버튼은 홈페이지에서 사용하던 스타일로 뷰오리지널로 해줘" → 라벨 = 'News | by 작성자'
     (사진 아래 작성자 줄을 없애 칸 줄이 4 → 3), 맨 아래 둥근 → 버튼 = 사이트 VIEW ORIGINAL 밑줄 링크(.pl-link — common.css 그대로).
   2026-10-27 사용자 "버튼 다시 빼주고 뉴스 작성자 회색으로 해주고 위치는 타이틀위로 그리고 타이틀은 이미지 위로 하지만 큰 이미지는 지금 처럼 구성해주고
     폰트 사이즈 조절해줘" → 버튼 뺌, 라벨 #999 를 제목 바로 위로, 작은 칸 = 라벨 → 제목 → 사진 → 요약, 큰 칸 = 사진 → 라벨 → 제목 → 요약, 글자 크기 새로(3절).
     이어서 "c안 이미지 아래 보더 제거" → 사진 아래 #999 선 뺌.
   2026-10-27 사용자 "위에 보더도 좌우 여백 맞춰줘" → 가로선(격자 맨 위 · 칸 사이 · 맨 아래 · MORE 줄)을 페이지 좌우 여백(72 · 모바일 20) 안에서만(1절),
     "이미지는 모두 3:4비율로" → 작은 칸 · 큰 칸 · 넓은 칸 · 모바일 모두 사진 3:4(썸네일 원본 600 × 800 과 같은 비율 — 거의 안 잘림).
   2026-10-27 사용자 "큰이미지 영역을 좀 줄여보자"(고른 안: 큰 칸 폭을 좁게) → PC 60칸 격자 · 큰 칸 40% · 작은 칸 30%(2절).
   2026-10-27 사용자 "30%줄이고 4개로 정리해줘" → 작은 칸 20%, 한 줄 = 큰 칸 1 + 작은 칸 3, 묶음 7편 · 처음 / MORE 21편(2절, page-j.py STEP),
     PC 4칸 줄은 1280 부터(1081~1279 는 2열 — 작은 칸이 좁아 18px 제목이 잘려서), 2열의 한 줄 전체 칸 = 묶음 첫 글.
   2026-10-27 사용자 "c안 큰이미지 설명에 위에 마진 10px -> 20px" → 큰 칸 제목 → 요약 20(PC 4열 · 960~1080, 모바일 8 그대로).
   2026-10-27 사용자 "버튼 스타일은 홈페이지에 올라가있는 스타일 처럼 적용해줘" → MORE = 운영 MORE 그대로(5절).
   2026-10-27 사용자 "c안 뉴스 작성자 12px 두께 400 프리텐다드로 수정 뉴스 제목 18px로 수정" → 라벨 줄 전체 Pretendard 12/400, PC 제목 18(3절).
   2026-10-27 사용자 "c안 뉴스 더보기 버튼을 다른 디자인으로 수정해줘" → MORE = 가운데 1px 먹색 테 상자 + 'MORE' · '20 / 53'(5절)
     (같은 날 "모어 아래 보더 제거하고 +도 빼자" → 바닥 진행 막대 · '+' 뺌).
   2026-10-27 사용자 "c안에 작은 이미지 부분에 설명들 다 빼주고 이미가 제일 먼저고 그 다음 뉴스 (제목 블랙으로) 그리고 아래에 날자랑 작성자 회색으로 수정해줘"
     → 작은 칸 = 사진 → 제목(#1d1d1d — 사이트 먹색) → 회색 줄 '2026.10.22 | by 작성자'(라벨 '분류 | 작성자' · 요약 뺌). 큰 칸(한 줄 전체 칸 포함)은 그대로
     사진 → 라벨 → 제목 → 요약(2 · 3 · 4절). 2026-10-28 "날짜 빼고 뉴스 칼럼 구분으로 바꾸자" → 회색 줄 = 'News | by 작성자'(분류 | 작성자),
     같은 날 "뉴스칼럼구분 1 타이틀2 날짜 (추가)작성자 순으로 정리해줘" → 작은 칸 = 사진 → 분류(News · Column) → 제목 → '2026.09.18 | by 작성자'.
   뉴스 = .pl-newsig-page-j(make.py --news 가 <main> 에 붙임) · 칸 안 조각은 page-j.py transform 이 붙인 .pl-nj- ·
   인스타그램 = .pl-ig-page-j(안쪽 .pl-igj- — 게시물 표현은 page-g · grid-a 와 똑같이, 틀 없음).
   분기(2026-10-28~) = PC 60칸 격자 — 1920~ 9편 묶음(큰 칸 ⅓ + 작은 칸 ⅙ × 4) · 1441~1919 7편 묶음(큰 칸 40% + 작은 칸 20% × 3) ·
     1280~1440 5편 묶음(큰 칸 ½ + 작은 칸 ¼ × 2) · 2열(960~1279, 7편 묶음,
     한 줄 전체 칸 = 사진 반 + 글 반) · 모바일 2열(≤959, 한 줄 전체 칸 = 사진 위). 인스타그램 격자는 1499 · 1080 · 959 그대로.
   news-list.css 의 모바일 규칙이 거의 다 !important 라, 그 규칙과 겹치는 속성만 !important(모두 .pl-newsig-page-j 아래라 이 시안 밖에는 닿지 않음).
   참고한 결(awesome-design-md): Apple '벽은 사라지고 작품이 앞으로'(장식 없는 칸 · 사진과 글만) — 카드 상자 · 그림자 대신 선과 여백. */

/* 값 — 칸 안쪽 여백(--nj-pad). 회색 판 여백(--nj-mat · --nj-mat-l)은 2026-10-27 사용자 요청으로 뺌.
   2026-10-27 비율 다듬기: 폭별 계단(28 ≤1499 · 32 1500~1699 · 40 1700~2199 · 48 ≥2200 — 옛 4열 25% 칸에 맞춘 값) → 작은 칸(20%) 폭의 10% 로 이어지는 값 하나
     clamp(28, (100vw − 148) / 48, 48) = 960~1488 28 · 1600 30 · 1700 32 · 1920 37 · 2200 43 · 2452~ 48.
     (작은 칸 = (폭 − 148 + 2 × 여백) / 5 → 여백 = 그 10% 를 풀면 (폭 − 148) / 48.) 계단일 때는 칸 폭 대비 여백이 9.4~12.3% 로 톱니였고,
     1700 에서 여백이 32 → 40 으로 뛰며 글 폭이 오히려 줄었음(1699 259 → 1700 246). 아래 끝 28 = 칸 안 간격 20 의 1.4배(칸 경계가 칸 안 간격보다 늘 넓게 —
     1280 의 24 안은 이 비가 1.2 로 무너져 뺌), 960~1279 도 28 그대로. 모바일 20 그대로(격자를 −여백만큼 당기므로 20 을 넘으면 가로 넘침).
     격자 바깥 당김 · 양옆 흰 띠(1절)는 이 값을 그대로 따라감 → 글 · 사진 왼쪽 끝 72, 가로선 72 ~ 폭−72 는 어느 폭에서나 같음 */
.pl-newsig-page-j { --nj-ink: #1d1d1d; --nj-sub: #686868; --nj-line: #e5e5e5; --nj-panel: #f2f2f2;
  --nj-pad: clamp(28px, calc((100vw - 148px) / 48), 48px); }
@media (max-width: 959px) { .pl-newsig-page-j { --nj-pad: 20px; } }


/* =====================================================================
   1) 칸 격자 — 칸 사이 1px #e5e5e5(격자 바탕색이 1px 틈으로 보이는 방식 → 세로선은 줄 높이 끝까지, 큰 칸 안에는 선이 지나가지 않음)
      + 격자 맨 위 · 맨 아래 1px. 바깥 왼쪽 · 오른쪽 세로선은 없음(REF1 처럼 열린 옆).
      2026-10-27 다듬기: 격자를 양옆으로 칸 안쪽 여백만큼 밖으로 → 사진 · 글 왼쪽 끝 = 페이지 좌우 72(모바일 20), 가로선은 양옆 흰 띠로 72 ~ 폭−72(아래).
      REF1 도 선이 로고 · 글 끝보다 바깥까지 감.
      칸 폭(2026-10-27 비율 다듬기 — 옛 4열 값을 지금 배치로 고침): PC 60칸 큰 칸(40%) 2560 1004 · 1920 739 · 1440 540 · 1280 476 /
        작은 칸(20%) 2560 502 · 1920 369 · 1440 270 · 1280 238 / 2열(960~1279): 1279 595 · 1024 468 · 960 436 / 모바일: 390 195 · 360 180
   ===================================================================== */
.pl-newsig-page-j .sub-news-grid {
  display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px;
  width: auto !important; margin: 0 calc(var(--nj-pad) * -1) !important; padding: 0 !important; background: var(--nj-line);
  border-left: 0 !important; border-right: 0 !important;
  border-top: 1px solid var(--nj-line) !important; border-bottom: 1px solid var(--nj-line) !important; }
@media (max-width: 1279px) { .pl-newsig-page-j .sub-news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* 2026-10-27 사용자 "위에 보더도 좌우 여백 맞춰줘" — 격자는 그대로 칸 안쪽 여백만큼 밖에 두고(사진 · 글 끝 = 72), 그 바깥 여백 폭만큼 양옆을 흰 띠로 덮어
   가로선(맨 위 · 칸 사이 · 맨 아래)이 72 ~ 폭−72(모바일 20 ~ 폭−20) = 머리 제목 · 인스타그램 끝에서 끝남. 띠 안에는 칸 안쪽 여백뿐이라 글 · 사진은 가리지 않음 */
.pl-newsig-page-j .sub-news-grid { position: relative; }
.pl-newsig-page-j .sub-news-grid::before,
.pl-newsig-page-j .sub-news-grid::after { content: ''; position: absolute; top: -1px; bottom: -1px; z-index: 1; width: var(--nj-pad); background: #fff; pointer-events: none; }
.pl-newsig-page-j .sub-news-grid::before { left: 0; }
.pl-newsig-page-j .sub-news-grid::after { right: 0; }

/* 칸 — 흰 바탕(틈의 선만 보이게) · 안쪽 여백 같은 값, 운영 카드의 세로선 · 아래 140 여백은 뺌.
   overflow 는 보이게(모바일 운영 규칙 hidden 이 초점 테를 자르므로). subgrid 를 못 쓰는 브라우저는 이대로(세로 flex · 같은 크기 칸 격자) */
.pl-newsig-page-j .sub-news-grid > .sub-news-item {
  flex-direction: column; min-width: 0; width: auto !important; margin: 0 !important; padding: var(--nj-pad) !important;
  border: 0 !important; background: #fff; overflow: visible !important; }


/* =====================================================================
   2) 일곱 칸 묶음(2026-10-27 "30%줄이고 4개로" 전에는 다섯 칸) — 칸마다 subgrid 3줄 [머리(라벨 · 제목) / 사진 / 글(요약)]: 작은 칸 = 3줄, 큰 칸 = 6줄.
      2026-10-27 사용자 "타이틀은 이미지 위로 하지만 큰 이미지는 지금 처럼" →
        작은 칸 = 머리 1 · 사진 2 · 글 3(.pl-nj-text 는 display: contents — 머리와 글이 칸 격자에 바로 놓임)
        큰 칸(PC) = 작은 칸 두 줄(6줄) 높이, 안은 [사진 3:4(칸 폭 가득) → 20 → 글 덩어리(라벨 → 제목 → 요약)].
      PC 묶음 = 큰 칸 1(40%) + 작은 칸 3(20%씩) × 두 줄 = 7편. 큰 칸 = 홀수째 묶음 첫 글(14n+1, 왼쪽) · 짝수째 묶음 넷째 글(14n+11, 오른쪽)
        — 화면 순서 8 9 10 [11] / 12 13 14 = 목록 순서 = Tab 순서.
      grid-auto-flow: dense — 묶음이 늘 꽉 차 앞에 빈 데가 없으므로 순서가 흐트러지지 않음. 처음 · MORE 21편(3묶음) → 21 · 42 딱 맞음, 53 = 7묶음 + 4.
      덜 찬 마지막 묶음(보이는 카드만 센 nth-last-child(… of :not(.is-hidden)) — 2026-10-28 부터. 그 전엔 숨긴 카드도 세어 모두 펼쳤을 때만 해당. 7n+1 = 묶음 첫 글):
        PC(60칸 격자): 6편 = 20씩 두 줄 · 5편 = 12씩 · 4편 = 15씩 · 3편 = 20씩 · 2편 = 넓은 칸 30씩 · 1편 = 한 줄 전체
        2열: 짝수 편 = 작은 칸 둘씩 · 홀수 편 = 첫 글 한 줄 전체 + 작은 칸 둘씩 → 어느 경우든 직사각형으로 닫혀 빈 칸 · 반쪽 선이 없음.
      넓은 칸(2편 남을 때) = 반 폭에 [머리(두 열 걸침) / 사진 | 글] — 사진 칸과 글 칸 사이 = 안쪽 여백 × 2 + 1.
        2026-10-27 비율 다듬기: 960~1279 의 작은 칸도 이 넓은 칸 모양(아래) — 칸 반을 사진, 반을 요약.
      숨긴 카드(.is-hidden)는 display 를 건드리지 않음(news-list.css 의 display: none !important 가 그대로 이김)
   ===================================================================== */
@supports (grid-template-rows: subgrid) {
  .pl-newsig-page-j .sub-news-grid { grid-auto-flow: row dense; }
  .pl-newsig-page-j .sub-news-grid > .sub-news-item:not(.is-hidden) {
    display: grid !important; grid-template-columns: minmax(0, 1fr); grid-template-rows: subgrid; grid-row: span 3; }
  .pl-newsig-page-j .sub-news-grid > .sub-news-item > .pl-nj-text { display: contents; }
  /* 2026-10-27 사용자 "작은 이미지 … 이미지가 제일 먼저" → 작은 칸 줄 = 사진 1 · 머리(제목 → 날짜 | 작성자) 2 · 셋째 줄은 빈 줄(요약 숨김 — PC 는 아래 grid-auto-rows 로
     큰 칸이 두 줄보다 길 때 남는 높이를 이 줄이 받음). 그 전: 머리(라벨 · 제목) 1 · 사진 2 · 요약 3 */
  .pl-newsig-page-j .sub-news-grid > .sub-news-item > .news-img { grid-row: 1; grid-column: 1; }
  .pl-newsig-page-j .sub-news-grid > .sub-news-item .pl-nj-head { grid-row: 2; grid-column: 1; }
  .pl-newsig-page-j .sub-news-grid > .sub-news-item .pl-nj-body { grid-row: 3; grid-column: 1; }

  /* ---------- PC(> 1279 — 범위 문법: min-width 1279.01 은 Chrome 이 폭 1279 에서도 맞아 2열 규칙과 섞임) ----------
     2026-10-27 "큰이미지 영역을 좀 줄여보자"(큰 칸 폭을 좁게) → 60칸 격자 · 큰 칸 24(40%).
     같은 날 "30%줄이고 4개로 정리해줘" → 작은 칸 18(30%) → 12(20%), 한 줄 = 큰 칸 1 + 작은 칸 3 = 4칸.
     묶음 = 7편(큰 칸 1 + 작은 칸 3 × 두 줄): 홀수째 묶음 = 첫 글이 큰 칸 왼쪽(14n+1) · 짝수째 묶음 = 넷째 글이 큰 칸 오른쪽(14n+11 — 화면 순서 8 9 10 [11] / 12 13 14 = 목록 순서).
     처음 · MORE 한 번에 21편(묶음 3개 — page-j.py STEP) → 21 · 42 는 묶음이 딱 맞고 53 = 7묶음 + 4.
     덜 찬 끝 묶음(보이는 카드만 셈, 7n+1 = 묶음 첫 글): 6편 = 20씩 두 줄 · 5편 = 12씩 · 4편 = 15씩 · 3편 = 20씩 · 2편 = 30씩 넓은 칸 · 1편 = 한 줄 전체.
     (2026-10-28 부터 이 7편 묶음은 1441~1919 에만 — 1920~ 는 아래 2-1 의 9편 묶음, 1280~1440 은 2-0 의 5편 묶음)
     1440: 큰 칸 540 · 작은 칸 270 안팎(사진 약 214 × 286). 큰 칸 사진 높이는 2026-10-28 부터 두 줄이 정함(위 큰 칸 설명). */
  @media (width > 1279px) {
    .pl-newsig-page-j .sub-news-grid { grid-template-columns: repeat(60, minmax(0, 1fr)); }
  }
  /* 2026-10-28 사용자 "화면 비율별로 가지수를 조절해서 수정해줘"(작은 칸 4개 안 검토 뒤) — 묶음 크기를 화면 폭으로 나눔:
       1280~1439 = 이 블록(큰 칸 40% + 작은 칸 20% × 3, 묶음 7편, 처음 · MORE 21편) — 4개로 늘리면 작은 칸 글 폭 122~146 이라 제목 18px 가 5~6줄로 잘려서 그대로 둠
       1440~ = 아래 2-1 블록(큰 칸 ⅓ + 작은 칸 ⅙ × 4, 묶음 9편, 처음 · MORE 27편 — page-j.js 가 폭을 보고 data-step 을 정함)
       → 같은 날 사용자 "1920 이하 3칸으로 수정해줘 1920 이상일때 지금 처럼" → 9편 묶음은 1920 부터(1920 포함), 7편 묶음은 1280~1919.
       → 같은 날 "1440px이하에서 2개로 수정해줘" → 1280~1440 은 아래 2-0 의 5편 묶음, 이 7편 묶음은 1441~1919.
       960~1279 · 모바일 = 2열(묶음 7편) 그대로.
     덜 찬 끝 묶음은 보이는 카드만 세어 정함(:nth-last-child(… of :not(.is-hidden)) — 그 전엔 숨긴 카드도 세어 '다 펼쳤을 때만' 맞았음) →
       창 크기를 바꿔 묶음 크기가 달라져도(예: 21편이 보이는 채로 1920 이상) 끝 묶음이 빈 칸 없이 닫힘. */
  @media (1440px < width < 1920px) {
    /* (2026-10-27 grid-auto-rows: auto auto minmax(0, 1fr) — 큰 칸이 두 줄보다 길 때 남는 높이를 각 줄 셋째 빈 줄이 받게 했던 것은 2026-10-28 큰 칸 정렬(아래)로 필요 없어져 뺌:
       큰 칸 사진은 줄 높이를 따라 늘어나므로 줄을 키우지 않고, 큰 칸 글은 둘째 줄 작은 칸 머리 · 빈 줄에만 걸쳐 남는 높이가 그 줄에만 생김) */
    .pl-newsig-page-j .sub-news-grid > .sub-news-item:not(.is-hidden) { grid-column: span 12; }
    /* 큰 칸(꽉 찬 묶음에서만) — 작은 칸 두 줄 높이(6줄)를 차지.
       2026-10-28 사용자 레퍼런스(잡지 격자 — 큰 사진 윗변 = 첫 줄 작은 사진 윗변, 아랫변 = 둘째 줄 작은 사진 아랫변, 큰 칸 글 = 둘째 줄 글과 같은 줄)
       "디자인은 지금 처럼 하는데 정리를 보내준 이미지 처럼 정갈하게 딱딱 끝과 끝에 맞추게" →
       큰 칸도 subgrid 6줄: 사진 = 1~4줄(첫 줄 사진 윗변 ~ 둘째 줄 사진 아랫변, 높이는 두 줄이 정하고 사진은 채워 자름 — 3:4 보다 조금 세로로 김,
       폭이 아주 넓어질수록 3:4 에 가까워짐), 글 덩어리 = 5~6줄(둘째 줄 작은 칸 머리와 같은 줄 — 라벨 윗변 = 둘째 줄 분류 윗변).
       그 전: 제 격자 [사진 3:4 / 글 덩어리] — 칸 바닥에 흰 자리(1440 43~93)가 남고 사진 · 글 끝이 옆 칸과 어긋났음 */
    .pl-newsig-page-j .sub-news-grid > .sub-news-item:is(:nth-child(14n+1):not(:nth-last-child(-n+6 of :not(.is-hidden))), :nth-child(14n+11):not(:nth-last-child(-n+3 of :not(.is-hidden)))) { grid-row: span 6; grid-template-rows: subgrid; }
    .pl-newsig-page-j .sub-news-grid > .sub-news-item:nth-child(14n+1):not(:nth-last-child(-n+6 of :not(.is-hidden))) { grid-column: 1 / span 24; }
    .pl-newsig-page-j .sub-news-grid > .sub-news-item:nth-child(14n+11):not(:nth-last-child(-n+3 of :not(.is-hidden))) { grid-column: 37 / span 24; }
    .pl-newsig-page-j .sub-news-grid > .sub-news-item:is(:nth-child(14n+1):not(:nth-last-child(-n+6 of :not(.is-hidden))), :nth-child(14n+11):not(:nth-last-child(-n+3 of :not(.is-hidden)))) > .news-img { grid-row: 1 / 5; align-self: stretch; height: auto; }
    .pl-newsig-page-j .sub-news-grid > .sub-news-item:is(:nth-child(14n+1):not(:nth-last-child(-n+6 of :not(.is-hidden))), :nth-child(14n+11):not(:nth-last-child(-n+3 of :not(.is-hidden)))) > .news-img::before { padding-top: 0; }   /* 높이를 줄이 정함(사진 안 img 는 news-list.css 대로 꽉 채워 자름 — object-fit: cover) */
    .pl-newsig-page-j .sub-news-grid > .sub-news-item:is(:nth-child(14n+1):not(:nth-last-child(-n+6 of :not(.is-hidden))), :nth-child(14n+11):not(:nth-last-child(-n+3 of :not(.is-hidden)))) > .pl-nj-text { grid-row: 5 / 7; grid-column: 1; align-self: start; }

    /* 덜 찬 끝 묶음 — 6편 · 3편 = 20씩, 5편 = 12씩, 4편 = 15씩(모두 작은 칸 모양) */
    .pl-newsig-page-j .sub-news-grid > .sub-news-item:is(:nth-child(7n+1):nth-last-child(6 of :not(.is-hidden)), :nth-child(7n+1):nth-last-child(6 of :not(.is-hidden)) ~ .sub-news-item,
             :nth-child(7n+1):nth-last-child(3 of :not(.is-hidden)), :nth-child(7n+1):nth-last-child(3 of :not(.is-hidden)) ~ .sub-news-item):not(.is-hidden) { grid-column: span 20; }
    .pl-newsig-page-j .sub-news-grid > .sub-news-item:is(:nth-child(7n+1):nth-last-child(4 of :not(.is-hidden)), :nth-child(7n+1):nth-last-child(4 of :not(.is-hidden)) ~ .sub-news-item):not(.is-hidden) { grid-column: span 15; }
    /* 2편 = 30씩 넓은 칸 — 사진이 너무 커지지 않게 [머리(두 열) / 사진 3:4 | 글(윗변 = 사진 윗변)]
       2026-10-27 비율 다듬기: 칸 3줄(요약 grid-row 2 / 4) → 2줄(span 2 · 요약 grid-row 2) — 빈 셋째 줄이 높이를 가져가 사진 아래 흰 자리가 여백 + 21
       (1440 49)이던 것을 다른 칸과 같은 여백(28)으로 */
    /* 2026-10-27 "작은 이미지 … 이미지가 제일 먼저" → [머리 / 사진 | 요약] 2줄 → [사진 3:4 | 머리(제목 → 날짜 | 작성자, 윗변 = 사진 윗변)] 1줄 */
    .pl-newsig-page-j .sub-news-grid > .sub-news-item:is(:nth-child(7n+1):nth-last-child(2 of :not(.is-hidden)), :nth-child(7n+1):nth-last-child(2 of :not(.is-hidden)) + .sub-news-item):not(.is-hidden) {
      grid-column: span 30; grid-row: span 1; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: calc(var(--nj-pad) * 2 + 1px); }
    .pl-newsig-page-j .sub-news-grid > .sub-news-item:is(:nth-child(7n+1):nth-last-child(2 of :not(.is-hidden)), :nth-child(7n+1):nth-last-child(2 of :not(.is-hidden)) + .sub-news-item) > .news-img { grid-column: 1; grid-row: 1; align-self: start; }
    .pl-newsig-page-j .sub-news-grid > .sub-news-item:is(:nth-child(7n+1):nth-last-child(2 of :not(.is-hidden)), :nth-child(7n+1):nth-last-child(2 of :not(.is-hidden)) + .sub-news-item) .pl-nj-head { grid-column: 2; grid-row: 1; margin-top: 0; }
    /* 1편 = 한 줄 전체 — 혼자 한 줄이라 subgrid 대신 제 격자: [사진 3:4(30%) | 글 덩어리(40% — 큰 칸처럼 라벨 → 제목 → 요약, 라벨 윗변 = 사진 윗변)], 오른쪽 30% 는 비움.
       2026-10-27 "작은 이미지 … 이미지가 제일 먼저" 때 [머리 / 사진 | 요약] → 사진 먼저(큰 칸 모양 — 3절 큰 칸 글 덩어리 규칙에 이 칸도 넣음) */
    .pl-newsig-page-j .sub-news-grid > .sub-news-item:nth-child(7n+1):nth-last-child(1 of :not(.is-hidden)):not(.is-hidden) {
      grid-column: 1 / -1; grid-template-columns: minmax(0, 3fr) minmax(0, 4fr) minmax(0, 3fr); grid-template-rows: auto; column-gap: calc(var(--nj-pad) * 2 + 1px); }
    .pl-newsig-page-j .sub-news-grid > .sub-news-item:nth-child(7n+1):nth-last-child(1 of :not(.is-hidden)):not(.is-hidden) > .news-img { grid-column: 1; grid-row: 1; align-self: start; }
    .pl-newsig-page-j .sub-news-grid > .sub-news-item:nth-child(7n+1):nth-last-child(1 of :not(.is-hidden)):not(.is-hidden) > .pl-nj-text { grid-column: 2; grid-row: 1; margin-top: 0; }
  }

  /* ---------- 2-0) PC 1280~1440 — 5편 묶음(2026-10-28 사용자 "1440px이하에서 2개로 수정해줘")
     한 줄 = 큰 칸 ½(60칸 중 30) + 작은 칸 ¼(15) × 2, 묶음 = 큰 칸 1 + 작은 칸 2 × 두 줄 = 5편.
     큰 칸 = 홀수째 묶음 첫 글(10n+1, 왼쪽) · 짝수째 묶음 셋째 글(10n+8, 오른쪽 — 화면 순서 6 7 [8] / 9 10 = 목록 순서 = Tab 순서).
     큰 칸 ½ — 큰 칸 40% + 작은 칸 30% × 2 로 하면 큰 사진(두 줄 높이에 맞춤)이 가로:세로 약 0.43 으로 너무 길쭉해져서, ½ 로 다른 폭과 같은 0.6 대.
     큰 칸 짜임(subgrid 6줄 · 사진 1~4줄 · 글 5~6줄 — 끝선 맞춤)은 다른 PC 폭과 같음. 작은 칸 글 폭 1440 약 282 · 1280 약 242.
     처음 · MORE 15편(묶음 3개 — page-j.js), 960~1279 · 모바일 2열은 그대로(이미 한 줄 2개).
     덜 찬 끝 묶음(보이는 카드만 셈, 5n+1 = 묶음 첫 글): 4편 = 15 × 4 한 줄(작은 칸 크기 그대로) · 3편 = 15 + 15 + 가로 칸 30([사진 | 머리] — 사진 = 작은 칸 사진 크기) ·
       2편 = 가로 칸 30 × 2 · 1편 = 한 줄 전체. ---------- */
  @media (1279px < width <= 1440px) {
    .pl-newsig-page-j .sub-news-grid > .sub-news-item:not(.is-hidden) { grid-column: span 15; }
    .pl-newsig-page-j .sub-news-grid > .sub-news-item:is(:nth-child(10n+1):not(:nth-last-child(-n+4 of :not(.is-hidden))), :nth-child(10n+8):not(:nth-last-child(-n+2 of :not(.is-hidden)))) { grid-row: span 6; grid-template-rows: subgrid; }
    .pl-newsig-page-j .sub-news-grid > .sub-news-item:nth-child(10n+1):not(:nth-last-child(-n+4 of :not(.is-hidden))) { grid-column: 1 / span 30; }
    .pl-newsig-page-j .sub-news-grid > .sub-news-item:nth-child(10n+8):not(:nth-last-child(-n+2 of :not(.is-hidden))) { grid-column: 31 / span 30; }
    .pl-newsig-page-j .sub-news-grid > .sub-news-item:is(:nth-child(10n+1):not(:nth-last-child(-n+4 of :not(.is-hidden))), :nth-child(10n+8):not(:nth-last-child(-n+2 of :not(.is-hidden)))) > .news-img { grid-row: 1 / 5; align-self: stretch; height: auto; }
    .pl-newsig-page-j .sub-news-grid > .sub-news-item:is(:nth-child(10n+1):not(:nth-last-child(-n+4 of :not(.is-hidden))), :nth-child(10n+8):not(:nth-last-child(-n+2 of :not(.is-hidden)))) > .news-img::before { padding-top: 0; }
    .pl-newsig-page-j .sub-news-grid > .sub-news-item:is(:nth-child(10n+1):not(:nth-last-child(-n+4 of :not(.is-hidden))), :nth-child(10n+8):not(:nth-last-child(-n+2 of :not(.is-hidden)))) > .pl-nj-text { grid-row: 5 / 7; grid-column: 1; align-self: start; }
    .pl-newsig-page-j .sub-news-grid > .sub-news-item:is(:nth-child(5n+3):nth-last-child(1 of :not(.is-hidden)), :nth-child(5n+1):nth-last-child(2 of :not(.is-hidden)), :nth-child(5n+2):nth-last-child(1 of :not(.is-hidden))):not(.is-hidden) { grid-column: span 30; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: calc(var(--nj-pad) * 2 + 1px); }
    .pl-newsig-page-j .sub-news-grid > .sub-news-item:is(:nth-child(5n+3):nth-last-child(1 of :not(.is-hidden)), :nth-child(5n+1):nth-last-child(2 of :not(.is-hidden)), :nth-child(5n+2):nth-last-child(1 of :not(.is-hidden))) > .news-img { grid-column: 1; grid-row: 1; align-self: start; }
    .pl-newsig-page-j .sub-news-grid > .sub-news-item:is(:nth-child(5n+3):nth-last-child(1 of :not(.is-hidden)), :nth-child(5n+1):nth-last-child(2 of :not(.is-hidden)), :nth-child(5n+2):nth-last-child(1 of :not(.is-hidden))) .pl-nj-head { grid-column: 2; grid-row: 1; align-self: start; margin-top: 0; }
    .pl-newsig-page-j .sub-news-grid > .sub-news-item:is(:nth-child(5n+3):nth-last-child(1 of :not(.is-hidden)), :nth-child(5n+1):nth-last-child(2 of :not(.is-hidden)), :nth-child(5n+2):nth-last-child(1 of :not(.is-hidden))) .pl-nj-body { grid-column: 1; grid-row: 3; }
    .pl-newsig-page-j .sub-news-grid > .sub-news-item:nth-child(5n+1):nth-last-child(1 of :not(.is-hidden)):not(.is-hidden) {
      grid-column: 1 / -1; grid-template-columns: minmax(0, 3fr) minmax(0, 4fr) minmax(0, 3fr); grid-template-rows: auto; column-gap: calc(var(--nj-pad) * 2 + 1px); }
    .pl-newsig-page-j .sub-news-grid > .sub-news-item:nth-child(5n+1):nth-last-child(1 of :not(.is-hidden)):not(.is-hidden) > .news-img { grid-column: 1; grid-row: 1; align-self: start; }
    .pl-newsig-page-j .sub-news-grid > .sub-news-item:nth-child(5n+1):nth-last-child(1 of :not(.is-hidden)):not(.is-hidden) > .pl-nj-text { grid-column: 2; grid-row: 1; margin-top: 0; }
  }

  /* ---------- 2-1) PC 넓은 화면(1920~ — 처음 1440~ 로 만들었다가 같은 날 사용자 "1920 이하 3칸으로 수정해줘 1920 이상일때 지금 처럼") — 9편 묶음(2026-10-28 사용자 "화면 비율별로 가지수를 조절해서 수정해줘")
     한 줄 = 큰 칸 ⅓(60칸 중 20) + 작은 칸 ⅙(10) × 4, 묶음 = 큰 칸 1 + 작은 칸 4 × 두 줄 = 9편.
     큰 칸 = 홀수째 묶음 첫 글(18n+1, 왼쪽) · 짝수째 묶음 다섯째 글(18n+14, 오른쪽 — 화면 순서 10 11 12 13 [14] / 15 16 17 18 = 목록 순서 = Tab 순서).
     큰 칸 짜임(subgrid 6줄 · 사진 1~4줄 · 글 5~6줄 — 2026-10-28 끝선 맞춤)은 1280~1439 와 같음.
     실측(작은 칸 4개 · 큰 칸 ⅓ 시험): 작은 칸 글 폭 1440 169 · 1600 191 · 1920 234 · 2560 322, 제목 최대 4줄(잘림 0),
       큰 사진 비율 1440 약 0.61 · 1920 약 0.66(지금과 비슷), 1920 에서 같은 높이에 약 1.5배 많은 글.
     덜 찬 끝 묶음(보이는 카드만 셈, 9n+1 = 묶음 첫 글) — 작은 칸 크기를 지키는 짜임(아래 '덜 찬 끝 묶음' 설명). 제목은 다섯 줄까지(1440 작은 칸 글 폭 169 —
       지금 가장 긴 제목이 네 줄이라 여유 한 줄, 3절 끝). ---------- */
  @media (width >= 1920px) {
    .pl-newsig-page-j .sub-news-grid > .sub-news-item:not(.is-hidden) { grid-column: span 10; }
    .pl-newsig-page-j .sub-news-grid > .sub-news-item:is(:nth-child(18n+1):not(:nth-last-child(-n+6 of :not(.is-hidden))), :nth-child(18n+14):not(:nth-last-child(-n+2 of :not(.is-hidden)))) { grid-row: span 6; grid-template-rows: subgrid; }
    .pl-newsig-page-j .sub-news-grid > .sub-news-item:nth-child(18n+1):not(:nth-last-child(-n+6 of :not(.is-hidden))) { grid-column: 1 / span 20; }
    .pl-newsig-page-j .sub-news-grid > .sub-news-item:nth-child(18n+14):not(:nth-last-child(-n+2 of :not(.is-hidden))) { grid-column: 41 / span 20; }
    .pl-newsig-page-j .sub-news-grid > .sub-news-item:is(:nth-child(18n+1):not(:nth-last-child(-n+6 of :not(.is-hidden))), :nth-child(18n+14):not(:nth-last-child(-n+2 of :not(.is-hidden)))) > .news-img { grid-row: 1 / 5; align-self: stretch; height: auto; }
    .pl-newsig-page-j .sub-news-grid > .sub-news-item:is(:nth-child(18n+1):not(:nth-last-child(-n+6 of :not(.is-hidden))), :nth-child(18n+14):not(:nth-last-child(-n+2 of :not(.is-hidden)))) > .news-img::before { padding-top: 0; }
    .pl-newsig-page-j .sub-news-grid > .sub-news-item:is(:nth-child(18n+1):not(:nth-last-child(-n+6 of :not(.is-hidden))), :nth-child(18n+14):not(:nth-last-child(-n+2 of :not(.is-hidden)))) > .pl-nj-text { grid-row: 5 / 7; grid-column: 1; align-self: start; }

    /* 덜 찬 끝 묶음 — 2026-10-28 검토 반영: 남은 칸을 15 · 20칸 크기로 키우면(1440 사진 281 · 394 — 작은 칸 169 의 1.7~2.3배) 목록 끝이 가장 큰 덩어리가 되고
       세로선도 10칸 리듬에서 벗어나서, 작은 칸(10) + '두 칸 너비 가로 칸'(20 = [사진 | 머리], 사진 = 작은 칸 사진과 같은 크기 · 글 = 옆 작은 칸 사진 자리에서 시작)으로만 채움:
         8편 = 큰 칸 + 10 × 4 / 10 + 10 + 가로 · 7편 = 큰 칸 + 10 × 4 / 가로 + 가로(큰 칸 = 홀수째 묶음 첫 글 왼쪽 · 짝수째 다섯째 글 오른쪽 — 위 큰 칸 셀렉터)
         6편 = 10 × 6 · 5편 = 10 × 4 + 가로 · 4편 = 10 + 10 + 가로 + 가로 · 3편 = 가로 × 3 · 2편 = 넓은 칸 30 × 2 · 1편 = 한 줄 전체.
       가로 칸 = 묶음 안 자리(9n+k)와 '뒤에 보이는 카드 수'로 찍음. 사진 · 머리는 1줄(머리는 사진 옆, 윗변 = 사진 윗변), 빈 요약 틀은 3줄(칸 아래 여백을 받음) */
    .pl-newsig-page-j .sub-news-grid > .sub-news-item:is(:nth-child(9n+8):nth-last-child(1 of :not(.is-hidden)), :nth-child(9n+7):nth-last-child(1 of :not(.is-hidden)), :nth-child(9n+6):nth-last-child(2 of :not(.is-hidden)), :nth-child(9n+5):nth-last-child(1 of :not(.is-hidden)), :nth-child(9n+4):nth-last-child(1 of :not(.is-hidden)), :nth-child(9n+3):nth-last-child(2 of :not(.is-hidden)), :nth-child(9n+3):nth-last-child(1 of :not(.is-hidden)), :nth-child(9n+2):nth-last-child(2 of :not(.is-hidden)), :nth-child(9n+1):nth-last-child(3 of :not(.is-hidden))):not(.is-hidden) { grid-column: span 20; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: calc(var(--nj-pad) * 2 + 1px); }
    .pl-newsig-page-j .sub-news-grid > .sub-news-item:is(:nth-child(9n+8):nth-last-child(1 of :not(.is-hidden)), :nth-child(9n+7):nth-last-child(1 of :not(.is-hidden)), :nth-child(9n+6):nth-last-child(2 of :not(.is-hidden)), :nth-child(9n+5):nth-last-child(1 of :not(.is-hidden)), :nth-child(9n+4):nth-last-child(1 of :not(.is-hidden)), :nth-child(9n+3):nth-last-child(2 of :not(.is-hidden)), :nth-child(9n+3):nth-last-child(1 of :not(.is-hidden)), :nth-child(9n+2):nth-last-child(2 of :not(.is-hidden)), :nth-child(9n+1):nth-last-child(3 of :not(.is-hidden))) > .news-img { grid-column: 1; grid-row: 1; align-self: start; }
    .pl-newsig-page-j .sub-news-grid > .sub-news-item:is(:nth-child(9n+8):nth-last-child(1 of :not(.is-hidden)), :nth-child(9n+7):nth-last-child(1 of :not(.is-hidden)), :nth-child(9n+6):nth-last-child(2 of :not(.is-hidden)), :nth-child(9n+5):nth-last-child(1 of :not(.is-hidden)), :nth-child(9n+4):nth-last-child(1 of :not(.is-hidden)), :nth-child(9n+3):nth-last-child(2 of :not(.is-hidden)), :nth-child(9n+3):nth-last-child(1 of :not(.is-hidden)), :nth-child(9n+2):nth-last-child(2 of :not(.is-hidden)), :nth-child(9n+1):nth-last-child(3 of :not(.is-hidden))) .pl-nj-head { grid-column: 2; grid-row: 1; align-self: start; margin-top: 0; }   /* 사진 줄에만(1~3줄에 걸면 가로 칸만 있는 줄(3편)에서 가운데 줄이 52 벌어짐) — 머리(최대 약 182)는 사진(1440 225)보다 늘 낮음 */
    .pl-newsig-page-j .sub-news-grid > .sub-news-item:is(:nth-child(9n+8):nth-last-child(1 of :not(.is-hidden)), :nth-child(9n+7):nth-last-child(1 of :not(.is-hidden)), :nth-child(9n+6):nth-last-child(2 of :not(.is-hidden)), :nth-child(9n+5):nth-last-child(1 of :not(.is-hidden)), :nth-child(9n+4):nth-last-child(1 of :not(.is-hidden)), :nth-child(9n+3):nth-last-child(2 of :not(.is-hidden)), :nth-child(9n+3):nth-last-child(1 of :not(.is-hidden)), :nth-child(9n+2):nth-last-child(2 of :not(.is-hidden)), :nth-child(9n+1):nth-last-child(3 of :not(.is-hidden))) .pl-nj-body { grid-column: 1; grid-row: 3; }
    .pl-newsig-page-j .sub-news-grid > .sub-news-item:is(:nth-child(9n+1):nth-last-child(2 of :not(.is-hidden)), :nth-child(9n+1):nth-last-child(2 of :not(.is-hidden)) + .sub-news-item):not(.is-hidden) {
      grid-column: span 30; grid-row: span 1; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: calc(var(--nj-pad) * 2 + 1px); }
    .pl-newsig-page-j .sub-news-grid > .sub-news-item:is(:nth-child(9n+1):nth-last-child(2 of :not(.is-hidden)), :nth-child(9n+1):nth-last-child(2 of :not(.is-hidden)) + .sub-news-item) > .news-img { grid-column: 1; grid-row: 1; align-self: start; }
    .pl-newsig-page-j .sub-news-grid > .sub-news-item:is(:nth-child(9n+1):nth-last-child(2 of :not(.is-hidden)), :nth-child(9n+1):nth-last-child(2 of :not(.is-hidden)) + .sub-news-item) .pl-nj-head { grid-column: 2; grid-row: 1; margin-top: 0; }
    .pl-newsig-page-j .sub-news-grid > .sub-news-item:nth-child(9n+1):nth-last-child(1 of :not(.is-hidden)):not(.is-hidden) {
      grid-column: 1 / -1; grid-template-columns: minmax(0, 3fr) minmax(0, 4fr) minmax(0, 3fr); grid-template-rows: auto; column-gap: calc(var(--nj-pad) * 2 + 1px); }
    .pl-newsig-page-j .sub-news-grid > .sub-news-item:nth-child(9n+1):nth-last-child(1 of :not(.is-hidden)):not(.is-hidden) > .news-img { grid-column: 1; grid-row: 1; align-self: start; }
    .pl-newsig-page-j .sub-news-grid > .sub-news-item:nth-child(9n+1):nth-last-child(1 of :not(.is-hidden)):not(.is-hidden) > .pl-nj-text { grid-column: 2; grid-row: 1; margin-top: 0; }
  }

  /* ---------- 2열(960~1279 · 모바일) — 한 줄 전체 칸 = 꽉 찬 묶음의 첫 글(7n+1) + 덜 찬 끝 묶음이 홀수 편일 때 그 첫 글, 나머지는 작은 칸 둘씩.
     2열에서는 묶음마다 첫 글(7n+1)이 한 줄 전체 — [8] / 9 10 / 11 12 / 13 14 로 목록 순서 그대로(PC 의 오른쪽 큰 칸 14n+11 은 2열에선 작은 칸).
     2026-10-27 PC 4칸 줄(작은 칸 20%)은 1280 부터 — 1081~1279 는 작은 칸 글 폭이 142~180 이라 18px 제목이 잘려 2열로.
     큰 칸은 subgrid 대신 제 격자: 모바일 = 사진 위 · 글 덩어리 아래, 960~1080 = [사진 3:4 | 글 덩어리] ---------- */
  @media (max-width: 1279px) {
    .pl-newsig-page-j .sub-news-grid > .sub-news-item:is(:nth-child(7n+1):not(:nth-last-child(-n+6 of :not(.is-hidden))), :nth-child(7n+1):nth-last-child(1 of :not(.is-hidden)), :nth-child(7n+1):nth-last-child(3 of :not(.is-hidden)), :nth-child(7n+1):nth-last-child(5 of :not(.is-hidden))) {
      grid-column: 1 / -1; grid-template-rows: auto auto; }
    .pl-newsig-page-j .sub-news-grid > .sub-news-item:is(:nth-child(7n+1):not(:nth-last-child(-n+6 of :not(.is-hidden))), :nth-child(7n+1):nth-last-child(1 of :not(.is-hidden)), :nth-child(7n+1):nth-last-child(3 of :not(.is-hidden)), :nth-child(7n+1):nth-last-child(5 of :not(.is-hidden))) > .news-img { grid-row: 1; }
    .pl-newsig-page-j .sub-news-grid > .sub-news-item:is(:nth-child(7n+1):not(:nth-last-child(-n+6 of :not(.is-hidden))), :nth-child(7n+1):nth-last-child(1 of :not(.is-hidden)), :nth-child(7n+1):nth-last-child(3 of :not(.is-hidden)), :nth-child(7n+1):nth-last-child(5 of :not(.is-hidden))) > .pl-nj-text { grid-row: 2; grid-column: 1; }
  }
  /* 960~1279 — 한 줄 전체 칸 = [사진 3:4 | 글 덩어리(라벨 윗변 = 사진 윗변)], 짝수째 묶음(14n+8)은 사진이 오른쪽(REF2 의 엇갈림) */
  @media (959px < width <= 1279px) {
    /* 2026-10-27 비율 다듬기: 작은 칸 [라벨 → 제목 → 사진(칸 글 폭 가득)] → PC 넓은 칸과 같은 [머리(라벨 → 제목, 두 열) / 사진 3:4 | 요약(윗변 = 사진 윗변)].
       그 전에는 작은 칸 사진 = 한 줄 전체 칸 사진(1279 539 × 719 · 1024 412 × 549 · 960 380 × 506 — 큰:작은 폭 1.00)이라 묶음의 큰 글이 드러나지 않았고,
       작은 칸 한 줄이 846(1279 — 고정 머리 · 탭을 빼면 900 화면에 다 안 들어옴), 묶음 하나 3316 · 21편 뉴스 구역 10584 로 1280(3453)의 3배였음.
       → 작은 칸 사진 1279 241 × 321 · 1024 177 × 236 · 960 161 × 215(큰:작은 2.2~2.4 = PC 2.27 · 모바일 2.27 과 같은 단계),
       1279 세로 기준선 72 · 370 · 668 · 966 = PC 4칸 리듬(한 줄 전체 칸 사진 = 아래 작은 칸 사진 + 요약 폭, 글 = 오른쪽 작은 칸 시작).
       순서는 그대로 라벨 → 제목 → 사진 → 요약(요약만 사진 오른쪽으로 — 3절에서 다시 보이게, 다섯 줄까지)
       2026-10-27 사용자 "c안에 작은 이미지 부분에 설명들 다 빼주고 이미지가 제일 먼저고 …" → [사진 3:4 | 머리(제목 → 날짜 | 작성자, 윗변 = 사진 윗변)] 한 줄
       (사진 크기 · 두 열 간격은 위 그대로 — 큰:작은 2.2~2.4 유지) */
    .pl-newsig-page-j .sub-news-grid > .sub-news-item:not(.is-hidden) {
      grid-row: span 1; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: calc(var(--nj-pad) * 2 + 1px); }
    .pl-newsig-page-j .sub-news-grid > .sub-news-item > .news-img { grid-column: 1; grid-row: 1; align-self: start; }
    .pl-newsig-page-j .sub-news-grid > .sub-news-item .pl-nj-head { grid-column: 2; grid-row: 1; margin-top: 0; }

    .pl-newsig-page-j .sub-news-grid > .sub-news-item:is(:nth-child(7n+1):not(:nth-last-child(-n+6 of :not(.is-hidden))), :nth-child(7n+1):nth-last-child(1 of :not(.is-hidden)), :nth-child(7n+1):nth-last-child(3 of :not(.is-hidden)), :nth-child(7n+1):nth-last-child(5 of :not(.is-hidden))) {
      grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; column-gap: calc(var(--nj-pad) * 2 + 1px); }
    .pl-newsig-page-j .sub-news-grid > .sub-news-item:is(:nth-child(7n+1):not(:nth-last-child(-n+6 of :not(.is-hidden))), :nth-child(7n+1):nth-last-child(1 of :not(.is-hidden)), :nth-child(7n+1):nth-last-child(3 of :not(.is-hidden)), :nth-child(7n+1):nth-last-child(5 of :not(.is-hidden))) > .news-img { grid-column: 1; grid-row: 1; align-self: start; }
    .pl-newsig-page-j .sub-news-grid > .sub-news-item:is(:nth-child(7n+1):not(:nth-last-child(-n+6 of :not(.is-hidden))), :nth-child(7n+1):nth-last-child(1 of :not(.is-hidden)), :nth-child(7n+1):nth-last-child(3 of :not(.is-hidden)), :nth-child(7n+1):nth-last-child(5 of :not(.is-hidden))) > .pl-nj-text { grid-column: 2; grid-row: 1; margin-top: 0; }
    .pl-newsig-page-j .sub-news-grid > .sub-news-item:nth-child(14n+8):not(:nth-last-child(-n+6 of :not(.is-hidden))):not(.is-hidden) > .news-img { grid-column: 2; }
    .pl-newsig-page-j .sub-news-grid > .sub-news-item:nth-child(14n+8):not(:nth-last-child(-n+6 of :not(.is-hidden))):not(.is-hidden) > .pl-nj-text { grid-column: 1; }
    .pl-newsig-page-j .sub-news-grid > .sub-news-item:is(:nth-child(7n+1):not(:nth-last-child(-n+6 of :not(.is-hidden))), :nth-child(7n+1):nth-last-child(1 of :not(.is-hidden)), :nth-child(7n+1):nth-last-child(3 of :not(.is-hidden)), :nth-child(7n+1):nth-last-child(5 of :not(.is-hidden))) .news-img::before { padding-top: 133.333%; }
  }
}


/* =====================================================================
   3) 칸 안 — 2026-10-27 사용자 "버튼 다시 빼주고 뉴스 작성자 회색으로 해주고 위치는 타이틀위로 그리고 타이틀은 이미지 위로
      하지만 큰 이미지는 지금 처럼 구성해주고 폰트 사이즈 조절해줘".
      작은 칸: 라벨[분류 | by 작성자](Pretendard 12/400 #999 — 사이트 뉴스 메타 줄과 같은 색 · 구분선 #d3d3d3, 칸이 좁으면 작성자 말줄임) → 8 → 제목 18/600/1.4(네 줄까지)
        → 20 → 사진 3:4(칸 글 폭 가득) → 20 → 요약 13/1.6 #686868(두 줄).
        960~1279 작은 칸은 [라벨 → 8 → 제목 / 20 / 사진 | 요약(다섯 줄까지)](2절 — 2026-10-27 비율 다듬기).
      큰 칸(글 덩어리 .pl-nj-text): 사진 → 20 → 라벨 → 8 → 제목 → 20 → 요약(2026-10-27 사용자 "큰이미지 설명 위 마진 10 → 20", 모바일은 8 → 2026-10-27 비율 다듬기로 14 — 4절) — 2026-10-27 사용자 "큰이미지 폰트 사이즈도 다른데 처럼 똑같이" →
        글자 크기 · 굵기 · 줄 수는 작은 칸과 똑같음(라벨 12 · 제목 18/600 네 줄까지 · 요약 13 두 줄, 폭별 크기도 같이) — 크기 차이는 사진에서만.
      사진 아래 1px #999 선은 2026-10-27 사용자 "c안 이미지 아래 보더 제거"로 뺌(칸 사이 #e5e5e5 격자선만).
      크기(모든 칸 같음): 2026-10-27 사용자 "뉴스 작성자 12px 두께 400 프리텐다드로 수정 뉴스 제목 18px로 수정" → PC(≥960) 제목 18 · 라벨 12 모든 폭 같음,
        요약 13(≥1920 14 — 2026-10-27 비율 다듬기, 아래) / 모바일 제목 14(요약은 큰 칸만 13)
      맨 아래 버튼(VIEW ORIGINAL)은 뺌 — 칸 끝 = 요약.
      2026-10-27 사용자 "c안에 작은 이미지 부분에 설명들 다 빼주고 이미지가 제일 먼저고 그 다음 뉴스 (제목 블랙으로) 그리고 아래에 날짜랑 작성자 회색으로" →
        작은 칸 = 사진 3:4 → 20 → 분류 12 #999 → 8 → 제목 18/600 #1d1d1d(네 줄까지) → 8 → 메타 '2026.09.18 | by 작성자'(2026-10-28 사용자 "뉴스칼럼구분 1 타이틀2 날짜 (추가)작성자 순";
        Pretendard 12/400 #999 · 구분선 #d3d3d3 — 라벨 줄과 같은 글자,
        칸이 좁으면 작성자 말줄임). 라벨 · 요약 없음. 960~1279 · PC 넓은 칸은 [사진 | 제목 → 메타]. 큰 칸(한 줄 전체 칸 · 끝 묶음 1편 포함)은 위 그대로(메타 없음).
   ===================================================================== */
.pl-newsig-page-j .pl-nj-head { display: flex; flex-direction: column; min-width: 0; margin-top: 20px; }   /* 사진 → 20 → 제목(2026-10-27 작은 칸 사진 먼저 — 그 전엔 머리 → 20 → 사진) */
/* 2026-10-27 사용자 "c안에 작은 이미지 부분에 설명들 다 빼주고 … 아래에 날짜랑 작성자 회색으로" — 작은 칸은 라벨 · 요약을 숨기고 제목 아래 메타 줄(큰 칸은 아래에서 반대로).
   2026-10-28 "뉴스칼럼구분 1 타이틀2 날짜 (추가)작성자 순으로 정리해줘" → 작은 칸도 라벨 줄을 보이되 분류만(작성자 · 구분선 숨김 — 작성자는 아래 메타 줄에):
     사진 → 20 → 분류 → 8 → 제목 → 8 → '날짜 | 작성자'. 큰 칸은 라벨 줄 그대로 '분류 | 작성자'.
     같은 날 "아래 마진 6px로 수정해주고 pl-nj-meta에 위에 마진을 18px로 수정해줘" → 분류(라벨 줄) 아래 8 → 6(큰 칸 라벨도 같은 줄이라 같이), 제목 → 메타 8 → 18
     (모바일: 분류 아래 6 그대로, 제목 → 메타 6 → 14).
   요약 틀(.pl-nj-body)은 빈 채로 남김(높이 0) — subgrid 셋째 줄에 놓인 유일한 것이라, 이 틀이 없으면 칸 아래 안쪽 여백(--nj-pad)이 사라짐(subgrid 의 여백은 가장자리 줄의 칸 안 요소가 받음) */
.pl-newsig-page-j .sub-news-item .pl-nj-label > .meta-sep,
.pl-newsig-page-j .sub-news-item .pl-nj-label > .pl-nj-who { display: none; }
.pl-newsig-page-j .sub-news-item .pl-nj-body { margin-top: 0; }
.pl-newsig-page-j .sub-news-item .pl-nj-body > .news-excerpt { display: none; }
.pl-newsig-page-j .pl-nj-meta { display: block; min-width: 0; margin-top: 18px; container-type: inline-size;
  font-family: 'Pretendard', 'Noto Sans KR', sans-serif; font-size: 12px; font-weight: 400; line-height: 16px; letter-spacing: 0; white-space: nowrap; color: #999; }
.pl-newsig-page-j .pl-nj-mrow { display: flex; align-items: baseline; min-width: 0; }
.pl-newsig-page-j .pl-nj-mrow .meta-sep { flex: none; margin: 0 8px; color: #d3d3d3; }   /* 라벨 줄과 같은 구분선 · 간격(사이트 뉴스 메타 줄 '2026.09.18 | by …') */
.pl-newsig-page-j .pl-nj-date { flex: none; font-variant-numeric: tabular-nums; }
.pl-newsig-page-j .pl-nj-mrow .pl-nj-who { max-width: 100%; }
/* 메타 줄 한 줄 = '2026.09.18 | by 이소유 원장' — 칸 글 폭이 그보다 좁으면(폰 390 155 · 375 147 · 360 140) 작성자가 말줄임으로 잘리므로 날짜 / 작성자 두 줄(구분선 숨김).
   (2026-10-28 잠깐 '분류 | 작성자' 132px 기준 133 이었다가, 같은 날 "뉴스칼럼구분 1 타이틀2 날짜 (추가)작성자 순"으로 날짜 줄이 돌아와 다시 160.)
   폭은 칸마다 같아 한 줄 안에서는 모두 같은 모양(414 이상 폰 · 태블릿 · PC 는 한 줄). 폭 질의를 못 쓰는 브라우저는 한 줄 + 작성자 말줄임.
   질의 틀은 .pl-nj-meta(초점 받는 것이 없는 요소) — 머리(.pl-nj-head)에 걸면 레이아웃 격리로 제목 초점 테의 z-index 가 머리 안에 갇혀 양옆 흰 띠(1절)에 가려짐 */
@container (max-width: 160px) {
  .pl-newsig-page-j .pl-nj-mrow { flex-direction: column; align-items: flex-start; }
  .pl-newsig-page-j .pl-nj-mrow .meta-sep { display: none; }
}
.pl-newsig-page-j .pl-nj-label { display: flex; align-items: baseline; min-width: 0; margin: 0 0 6px; font-family: 'Pretendard', 'Noto Sans KR', sans-serif; font-size: 12px; font-weight: 400; line-height: 16px; letter-spacing: 0; white-space: nowrap; color: #999; }
.pl-newsig-page-j .pl-nj-cat { flex: none; color: var(--nj-ink); font-weight: 500; }   /* 2026-10-27 사용자 "뉴스 작성자 12px 두께 400 프리텐다드" — 분류도 Inter 500 → 줄 전체 Pretendard 12/400(모든 폭 같음).
   2026-10-28 사용자 "뉴스 칼럼 구분 컬러는 회색에서 블랙으로 수정" → 분류(News · Column)만 #999 → #1d1d1d(사이트 먹색 — 작은 칸 · 큰 칸 모두, 작성자 · 구분선 · 날짜는 회색 그대로).
   이어서 "두께 500으로 해볼까?" → 분류만 400 → 500(Pretendard Medium) */
.pl-newsig-page-j .pl-nj-label .meta-sep { flex: none; margin: 0 8px; color: #d3d3d3; }   /* 사이트 뉴스 메타 줄 구분선과 같은 색 · 간격 */
.pl-newsig-page-j .pl-nj-who { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: 400; }
.pl-newsig-page-j .sub-news-item .news-img { order: 0 !important; flex: none; width: 100% !important; margin: 0 !important; background: var(--nj-panel); }
.pl-newsig-page-j .sub-news-item .news-img::before { padding-top: 133.333%; }   /* 2026-10-27 사용자 "이미지는 모두 3:4비율로" — 모든 칸 3:4.
   단 PC 큰 칸은 2026-10-28 레퍼런스 정렬로 높이를 두 줄이 정함(2절 — 1280 0.61 · 1440 0.63 · 1920 0.67 · 2560 0.70, 사진은 채워 양옆을 조금 자름) */
.pl-newsig-page-j .sub-news-item .news-img img { color: transparent; }   /* 불러오는 동안 대체 글(alt)이 판에 겹쳐 보이지 않게 — 화면낭독에는 그대로 */
.pl-newsig-page-j .sub-news-item .news-img.is-broken img { visibility: hidden; }   /* 못 불러온 사진 — 깨진 그림 표시 대신 #f2f2f2 빈 칸(page-j.js) */

.pl-newsig-page-j .pl-nj-body { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; margin-top: 20px; }   /* 2026-10-27 사용자 "c안 이미지 아래 보더 제거" — 사진 아래 #999 선 뺌 */
.pl-newsig-page-j .sub-news-item .news-title {
  order: 0 !important; margin: 0 !important; font-size: max(12px, calc(18 * var(--pl-fz, 1px))) !important; font-weight: 600; line-height: 1.4 !important; letter-spacing: -0.01em;
  color: var(--nj-ink) !important; word-break: keep-all; overflow-wrap: anywhere; text-wrap: balance;   /* balance — 끝줄에 한 낱말만 남지 않게(page-g 와 같은 처리) */
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
/* 2026-10-27 비율 다듬기: 줄높이 1.45 → 1.4 — 사이트 공통 규칙(common.css ':not(#pl-fix)' 제목 줄높이 1.4 !important)이 이겨 화면은 이미 1.4(25.2)였음,
   선언을 화면과 맞춤(보이는 변화 없음). 줄 수 3 → 4 — 53편을 다 펼쳐도 가장 긴 제목이 1280 · 1440 에서 꼭 세 줄(여유 0)이라, 더 긴 제목이 와도 잘리지 않게.
   subgrid 머리 줄은 그 줄의 가장 긴 제목에 맞춰지므로 지금 화면은 그대로 */
.pl-newsig-page-j .sub-news-item .news-title a { color: var(--nj-ink) !important; }
.pl-newsig-page-j .sub-news-item .news-title .pl-nj-nb { white-space: nowrap; }   /* 붙임표 이름(P-TIOX …)을 붙임표에서 꺾지 않음 — page-g 와 같음 */
.pl-newsig-page-j .sub-news-item .news-excerpt {
  order: 0 !important; margin: 0 !important; font-size: max(12px, calc(13 * var(--pl-fz, 1px))) !important; line-height: 1.6 !important; color: var(--nj-sub) !important;
  word-break: keep-all; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }


/* 큰 칸 글 덩어리 — 4열의 큰 칸 · 2열(960~1080 · 모바일)의 한 줄 전체 칸: [선 → 라벨 → 제목 → 요약] 한 덩어리 */
@media (1440px < width < 1920px) {
  .pl-newsig-page-j .sub-news-grid > .sub-news-item:is(:nth-child(14n+1):not(:nth-last-child(-n+6 of :not(.is-hidden))), :nth-child(14n+11):not(:nth-last-child(-n+3 of :not(.is-hidden)))) > .pl-nj-text {
    display: flex; flex-direction: column; min-width: 0; margin-top: 20px; }
  .pl-newsig-page-j .sub-news-grid > .sub-news-item:is(:nth-child(14n+1):not(:nth-last-child(-n+6 of :not(.is-hidden))), :nth-child(14n+11):not(:nth-last-child(-n+3 of :not(.is-hidden)))) .pl-nj-head { margin-top: 0; }
  .pl-newsig-page-j .sub-news-grid > .sub-news-item:is(:nth-child(14n+1):not(:nth-last-child(-n+6 of :not(.is-hidden))), :nth-child(14n+11):not(:nth-last-child(-n+3 of :not(.is-hidden)))) .pl-nj-body { margin-top: 20px; }
  /* 큰 칸 · 끝 묶음 1편(한 줄 전체)은 라벨 · 요약을 보이고 메타 줄을 숨김(2026-10-27 작은 칸만 메타 줄) */
  .pl-newsig-page-j .sub-news-grid > .sub-news-item:is(:nth-child(14n+1):not(:nth-last-child(-n+6 of :not(.is-hidden))), :nth-child(14n+11):not(:nth-last-child(-n+3 of :not(.is-hidden))), :nth-child(7n+1):nth-last-child(1 of :not(.is-hidden))) > .pl-nj-text { display: flex; flex-direction: column; min-width: 0; }
  .pl-newsig-page-j .sub-news-grid > .sub-news-item:is(:nth-child(14n+1):not(:nth-last-child(-n+6 of :not(.is-hidden))), :nth-child(14n+11):not(:nth-last-child(-n+3 of :not(.is-hidden))), :nth-child(7n+1):nth-last-child(1 of :not(.is-hidden))) .pl-nj-head { margin-top: 0; }
  .pl-newsig-page-j .sub-news-grid > .sub-news-item:is(:nth-child(14n+1):not(:nth-last-child(-n+6 of :not(.is-hidden))), :nth-child(14n+11):not(:nth-last-child(-n+3 of :not(.is-hidden))), :nth-child(7n+1):nth-last-child(1 of :not(.is-hidden))) .pl-nj-label > * { display: block; }   /* 큰 칸 라벨 = 분류 | 작성자(작은 칸은 분류만) */
  .pl-newsig-page-j .sub-news-grid > .sub-news-item:is(:nth-child(14n+1):not(:nth-last-child(-n+6 of :not(.is-hidden))), :nth-child(14n+11):not(:nth-last-child(-n+3 of :not(.is-hidden))), :nth-child(7n+1):nth-last-child(1 of :not(.is-hidden))) .pl-nj-body { display: flex; margin-top: 20px; }
  .pl-newsig-page-j .sub-news-grid > .sub-news-item:is(:nth-child(14n+1):not(:nth-last-child(-n+6 of :not(.is-hidden))), :nth-child(14n+11):not(:nth-last-child(-n+3 of :not(.is-hidden))), :nth-child(7n+1):nth-last-child(1 of :not(.is-hidden))) .pl-nj-meta { display: none; }
  .pl-newsig-page-j .sub-news-grid > .sub-news-item:is(:nth-child(14n+1):not(:nth-last-child(-n+6 of :not(.is-hidden))), :nth-child(14n+11):not(:nth-last-child(-n+3 of :not(.is-hidden))), :nth-child(7n+1):nth-last-child(1 of :not(.is-hidden))) .news-excerpt { display: -webkit-box; }
  .pl-newsig-page-j .sub-news-grid > .sub-news-item:is(:nth-child(7n+1):nth-last-child(2 of :not(.is-hidden)), :nth-child(7n+1):nth-last-child(2 of :not(.is-hidden)) + .sub-news-item) .pl-nj-body { display: none; }   /* 넓은 칸은 한 줄 — 사진 · 머리가 위아래 여백을 받음 */
  .pl-newsig-page-j .sub-news-grid > .sub-news-item:is(:nth-child(14n+1):not(:nth-last-child(-n+6 of :not(.is-hidden))), :nth-child(14n+11):not(:nth-last-child(-n+3 of :not(.is-hidden))), :nth-child(7n+1):nth-last-child(1 of :not(.is-hidden))) .news-excerpt { max-width: 40em; }   /* 2026-10-27 사용자 "큰이미지에 설명 두줄로" — 넓은 큰 칸에서 한 줄로 끝나지 않게 줄 길이를 30자 남짓으로(가장 짧은 요약 47자도 두 줄, 긴 요약은 두 줄에서 말줄임).
     2026-10-28 사용자 "news-excerpt 영역 max-width:40em으로 늘려줘" → 30em → 40em(13px 520 · ≥1920 14px 560 — 칸 글 폭이 그보다 좁은 1440 이하는 칸 폭 그대로) */
}
/* 1280~1440 5편 묶음(2-0) — 같은 규칙을 5편 묶음의 큰 칸(10n+1 · 10n+8) · 끝 1편에 */
@media (1279px < width <= 1440px) {
  .pl-newsig-page-j .sub-news-grid > .sub-news-item:is(:nth-child(10n+1):not(:nth-last-child(-n+4 of :not(.is-hidden))), :nth-child(10n+8):not(:nth-last-child(-n+2 of :not(.is-hidden)))) > .pl-nj-text {
    display: flex; flex-direction: column; min-width: 0; margin-top: 20px; }
  .pl-newsig-page-j .sub-news-grid > .sub-news-item:is(:nth-child(10n+1):not(:nth-last-child(-n+4 of :not(.is-hidden))), :nth-child(10n+8):not(:nth-last-child(-n+2 of :not(.is-hidden)))) .pl-nj-head { margin-top: 0; }
  .pl-newsig-page-j .sub-news-grid > .sub-news-item:is(:nth-child(10n+1):not(:nth-last-child(-n+4 of :not(.is-hidden))), :nth-child(10n+8):not(:nth-last-child(-n+2 of :not(.is-hidden)))) .pl-nj-body { margin-top: 20px; }
  /* 큰 칸 · 끝 묶음 1편(한 줄 전체)은 라벨 · 요약을 보이고 메타 줄을 숨김(2026-10-27 작은 칸만 메타 줄) */
  .pl-newsig-page-j .sub-news-grid > .sub-news-item:is(:nth-child(10n+1):not(:nth-last-child(-n+4 of :not(.is-hidden))), :nth-child(10n+8):not(:nth-last-child(-n+2 of :not(.is-hidden))), :nth-child(5n+1):nth-last-child(1 of :not(.is-hidden))) > .pl-nj-text { display: flex; flex-direction: column; min-width: 0; }
  .pl-newsig-page-j .sub-news-grid > .sub-news-item:is(:nth-child(10n+1):not(:nth-last-child(-n+4 of :not(.is-hidden))), :nth-child(10n+8):not(:nth-last-child(-n+2 of :not(.is-hidden))), :nth-child(5n+1):nth-last-child(1 of :not(.is-hidden))) .pl-nj-head { margin-top: 0; }
  .pl-newsig-page-j .sub-news-grid > .sub-news-item:is(:nth-child(10n+1):not(:nth-last-child(-n+4 of :not(.is-hidden))), :nth-child(10n+8):not(:nth-last-child(-n+2 of :not(.is-hidden))), :nth-child(5n+1):nth-last-child(1 of :not(.is-hidden))) .pl-nj-label > * { display: block; }   /* 큰 칸 라벨 = 분류 | 작성자(작은 칸은 분류만) */
  .pl-newsig-page-j .sub-news-grid > .sub-news-item:is(:nth-child(10n+1):not(:nth-last-child(-n+4 of :not(.is-hidden))), :nth-child(10n+8):not(:nth-last-child(-n+2 of :not(.is-hidden))), :nth-child(5n+1):nth-last-child(1 of :not(.is-hidden))) .pl-nj-body { display: flex; margin-top: 20px; }
  .pl-newsig-page-j .sub-news-grid > .sub-news-item:is(:nth-child(10n+1):not(:nth-last-child(-n+4 of :not(.is-hidden))), :nth-child(10n+8):not(:nth-last-child(-n+2 of :not(.is-hidden))), :nth-child(5n+1):nth-last-child(1 of :not(.is-hidden))) .pl-nj-meta { display: none; }
  .pl-newsig-page-j .sub-news-grid > .sub-news-item:is(:nth-child(10n+1):not(:nth-last-child(-n+4 of :not(.is-hidden))), :nth-child(10n+8):not(:nth-last-child(-n+2 of :not(.is-hidden))), :nth-child(5n+1):nth-last-child(1 of :not(.is-hidden))) .news-excerpt { display: -webkit-box; }
  .pl-newsig-page-j .sub-news-grid > .sub-news-item:is(:nth-child(10n+1):not(:nth-last-child(-n+4 of :not(.is-hidden))), :nth-child(10n+8):not(:nth-last-child(-n+2 of :not(.is-hidden))), :nth-child(5n+1):nth-last-child(1 of :not(.is-hidden))) .news-excerpt { max-width: 40em; }   /* 2026-10-27 사용자 "큰이미지에 설명 두줄로" — 넓은 큰 칸에서 한 줄로 끝나지 않게 줄 길이를 30자 남짓으로(가장 짧은 요약 47자도 두 줄, 긴 요약은 두 줄에서 말줄임).
     2026-10-28 사용자 "news-excerpt 영역 max-width:40em으로 늘려줘" → 30em → 40em(13px 520 · ≥1920 14px 560 — 칸 글 폭이 그보다 좁은 1440 이하는 칸 폭 그대로) */
}
/* 1920~ 9편 묶음(2-1) — 위와 같은 규칙을 9편 묶음의 큰 칸(18n+1 · 18n+14) · 끝 1편 · 끝 2편에 */
@media (width >= 1920px) {
  .pl-newsig-page-j .sub-news-grid > .sub-news-item:is(:nth-child(18n+1):not(:nth-last-child(-n+6 of :not(.is-hidden))), :nth-child(18n+14):not(:nth-last-child(-n+2 of :not(.is-hidden)))) > .pl-nj-text {
    display: flex; flex-direction: column; min-width: 0; margin-top: 20px; }
  .pl-newsig-page-j .sub-news-grid > .sub-news-item:is(:nth-child(18n+1):not(:nth-last-child(-n+6 of :not(.is-hidden))), :nth-child(18n+14):not(:nth-last-child(-n+2 of :not(.is-hidden)))) .pl-nj-head { margin-top: 0; }
  .pl-newsig-page-j .sub-news-grid > .sub-news-item:is(:nth-child(18n+1):not(:nth-last-child(-n+6 of :not(.is-hidden))), :nth-child(18n+14):not(:nth-last-child(-n+2 of :not(.is-hidden)))) .pl-nj-body { margin-top: 20px; }
  /* 큰 칸 · 끝 묶음 1편(한 줄 전체)은 라벨 · 요약을 보이고 메타 줄을 숨김(2026-10-27 작은 칸만 메타 줄) */
  .pl-newsig-page-j .sub-news-grid > .sub-news-item:is(:nth-child(18n+1):not(:nth-last-child(-n+6 of :not(.is-hidden))), :nth-child(18n+14):not(:nth-last-child(-n+2 of :not(.is-hidden))), :nth-child(9n+1):nth-last-child(1 of :not(.is-hidden))) > .pl-nj-text { display: flex; flex-direction: column; min-width: 0; }
  .pl-newsig-page-j .sub-news-grid > .sub-news-item:is(:nth-child(18n+1):not(:nth-last-child(-n+6 of :not(.is-hidden))), :nth-child(18n+14):not(:nth-last-child(-n+2 of :not(.is-hidden))), :nth-child(9n+1):nth-last-child(1 of :not(.is-hidden))) .pl-nj-head { margin-top: 0; }
  .pl-newsig-page-j .sub-news-grid > .sub-news-item:is(:nth-child(18n+1):not(:nth-last-child(-n+6 of :not(.is-hidden))), :nth-child(18n+14):not(:nth-last-child(-n+2 of :not(.is-hidden))), :nth-child(9n+1):nth-last-child(1 of :not(.is-hidden))) .pl-nj-label > * { display: block; }   /* 큰 칸 라벨 = 분류 | 작성자(작은 칸은 분류만) */
  .pl-newsig-page-j .sub-news-grid > .sub-news-item:is(:nth-child(18n+1):not(:nth-last-child(-n+6 of :not(.is-hidden))), :nth-child(18n+14):not(:nth-last-child(-n+2 of :not(.is-hidden))), :nth-child(9n+1):nth-last-child(1 of :not(.is-hidden))) .pl-nj-body { display: flex; margin-top: 20px; }
  .pl-newsig-page-j .sub-news-grid > .sub-news-item:is(:nth-child(18n+1):not(:nth-last-child(-n+6 of :not(.is-hidden))), :nth-child(18n+14):not(:nth-last-child(-n+2 of :not(.is-hidden))), :nth-child(9n+1):nth-last-child(1 of :not(.is-hidden))) .pl-nj-meta { display: none; }
  .pl-newsig-page-j .sub-news-grid > .sub-news-item:is(:nth-child(18n+1):not(:nth-last-child(-n+6 of :not(.is-hidden))), :nth-child(18n+14):not(:nth-last-child(-n+2 of :not(.is-hidden))), :nth-child(9n+1):nth-last-child(1 of :not(.is-hidden))) .news-excerpt { display: -webkit-box; }
  .pl-newsig-page-j .sub-news-grid > .sub-news-item:is(:nth-child(9n+1):nth-last-child(2 of :not(.is-hidden)), :nth-child(9n+1):nth-last-child(2 of :not(.is-hidden)) + .sub-news-item) .pl-nj-body { display: none; }   /* 넓은 칸은 한 줄 — 사진 · 머리가 위아래 여백을 받음 */
  .pl-newsig-page-j .sub-news-grid > .sub-news-item:is(:nth-child(18n+1):not(:nth-last-child(-n+6 of :not(.is-hidden))), :nth-child(18n+14):not(:nth-last-child(-n+2 of :not(.is-hidden))), :nth-child(9n+1):nth-last-child(1 of :not(.is-hidden))) .news-excerpt { max-width: 40em; }   /* 2026-10-27 사용자 "큰이미지에 설명 두줄로" — 넓은 큰 칸에서 한 줄로 끝나지 않게 줄 길이를 30자 남짓으로(가장 짧은 요약 47자도 두 줄, 긴 요약은 두 줄에서 말줄임).
     2026-10-28 사용자 "news-excerpt 영역 max-width:40em으로 늘려줘" → 30em → 40em(13px 520 · ≥1920 14px 560 — 칸 글 폭이 그보다 좁은 1440 이하는 칸 폭 그대로) */
}
@media (max-width: 1279px) {
  .pl-newsig-page-j .sub-news-grid > .sub-news-item:is(:nth-child(7n+1):not(:nth-last-child(-n+6 of :not(.is-hidden))), :nth-child(7n+1):nth-last-child(1 of :not(.is-hidden)), :nth-child(7n+1):nth-last-child(3 of :not(.is-hidden)), :nth-child(7n+1):nth-last-child(5 of :not(.is-hidden))) > .pl-nj-text {
    display: flex; flex-direction: column; min-width: 0; margin-top: 20px; }
  .pl-newsig-page-j .sub-news-grid > .sub-news-item:is(:nth-child(7n+1):not(:nth-last-child(-n+6 of :not(.is-hidden))), :nth-child(7n+1):nth-last-child(1 of :not(.is-hidden)), :nth-child(7n+1):nth-last-child(3 of :not(.is-hidden)), :nth-child(7n+1):nth-last-child(5 of :not(.is-hidden))) .pl-nj-head { margin-top: 0; }
  .pl-newsig-page-j .sub-news-grid > .sub-news-item:is(:nth-child(7n+1):not(:nth-last-child(-n+6 of :not(.is-hidden))), :nth-child(7n+1):nth-last-child(1 of :not(.is-hidden)), :nth-child(7n+1):nth-last-child(3 of :not(.is-hidden)), :nth-child(7n+1):nth-last-child(5 of :not(.is-hidden))) .pl-nj-label > * { display: block; }
  .pl-newsig-page-j .sub-news-grid > .sub-news-item:is(:nth-child(7n+1):not(:nth-last-child(-n+6 of :not(.is-hidden))), :nth-child(7n+1):nth-last-child(1 of :not(.is-hidden)), :nth-child(7n+1):nth-last-child(3 of :not(.is-hidden)), :nth-child(7n+1):nth-last-child(5 of :not(.is-hidden))) .pl-nj-body { display: flex; margin-top: 20px; }
  .pl-newsig-page-j .sub-news-grid > .sub-news-item:is(:nth-child(7n+1):not(:nth-last-child(-n+6 of :not(.is-hidden))), :nth-child(7n+1):nth-last-child(1 of :not(.is-hidden)), :nth-child(7n+1):nth-last-child(3 of :not(.is-hidden)), :nth-child(7n+1):nth-last-child(5 of :not(.is-hidden))) .pl-nj-meta { display: none; }
  .pl-newsig-page-j .sub-news-grid > .sub-news-item:is(:nth-child(7n+1):not(:nth-last-child(-n+6 of :not(.is-hidden))), :nth-child(7n+1):nth-last-child(1 of :not(.is-hidden)), :nth-child(7n+1):nth-last-child(3 of :not(.is-hidden)), :nth-child(7n+1):nth-last-child(5 of :not(.is-hidden))) .news-excerpt { display: -webkit-box; }
  .pl-newsig-page-j .sub-news-grid > .sub-news-item:is(:nth-child(7n+1):not(:nth-last-child(-n+6 of :not(.is-hidden))), :nth-child(7n+1):nth-last-child(1 of :not(.is-hidden)), :nth-child(7n+1):nth-last-child(3 of :not(.is-hidden)), :nth-child(7n+1):nth-last-child(5 of :not(.is-hidden))) .news-excerpt { max-width: 40em; }   /* 2026-10-28 30em → 40em(위 PC 큰 칸과 같이) */
}
@media (959px < width <= 1279px) {
  .pl-newsig-page-j .sub-news-grid > .sub-news-item:is(:nth-child(7n+1):not(:nth-last-child(-n+6 of :not(.is-hidden))), :nth-child(7n+1):nth-last-child(1 of :not(.is-hidden)), :nth-child(7n+1):nth-last-child(3 of :not(.is-hidden)), :nth-child(7n+1):nth-last-child(5 of :not(.is-hidden))) > .pl-nj-text { margin-top: 0; }   /* 사진 옆 — 라벨 윗변 = 사진 윗변 */
  /* (2026-10-27 비율 다듬기에서 작은 칸 요약을 사진 옆 다섯 줄로 보였다가, 같은 날 "작은 이미지 부분에 설명들 다 빼주고"로 다시 뺌) — 작은 칸은 한 줄이라 빈 요약 틀도 숨김 */
  .pl-newsig-page-j .sub-news-grid > .sub-news-item .pl-nj-body { display: none; }
}
/* 2026-10-27 비율 다듬기: 요약 13(≥1700 14 · ≥2200 15) → 13(≥1920 14). 제목이 18 로 고정이라 요약만 커지면 위계가 좁아짐(18:15 = 1.2) —
   15 는 칸 623 이던 옛 4열의 값(지금 2560 작은 칸 502), 1700 에서 14 로 올리면 여백 증가와 겹쳐 한 줄 글자 수가 줄었음. 제목:요약 1.29 이상 유지 */
@media (min-width: 1920px) {
  .pl-newsig-page-j .sub-news-item .news-excerpt { font-size: max(12px, calc(14 * var(--pl-fz, 1px))) !important; }
}
/* 2026-10-28 9편 묶음(처음 1440~)의 작은 칸 글 폭은 1440 169 · 1536 183 — 가장 긴 제목이 1440 에서 꼭 네 줄(줄 수 제한 4 와 같아 여유 0)이라 다섯 줄까지로 했음.
   같은 날 9편 묶음이 1920~ 로 옮겨 글 폭 234 이상(최대 세 줄)이라 지금은 여유분 — 9편 묶음과 같은 범위에 둠 */
@media (width >= 1920px) {
  .pl-newsig-page-j .sub-news-item .news-title { -webkit-line-clamp: 5; }
}

/* 올림 · 초점 — 새 올림 효과 없음: 사진에 올리면 사이트 제목 밑줄(2px 먹색)만.
   키보드 초점 2px 먹색 — 제목은 줄 수 자르기(overflow: hidden — PC 네 줄 · 모바일 다섯 줄, 2026-10-27 비율 다듬기)라 링크 대신 제목 상자에 바깥 4 · 사진은 사진에 바깥 4 + 제목 밑줄. :has 를 못 쓰는 브라우저는 링크에 바로 */
.pl-newsig-page-j .sub-news-item .news-title a:focus-visible { outline: 2px solid var(--nj-ink); outline-offset: 2px; background-size: 100% 2px; }
@supports selector(:has(a)) {
  .pl-newsig-page-j .sub-news-item .news-title a:focus-visible { outline: none; }
  .pl-newsig-page-j .sub-news-item .news-title:has(a:focus-visible) { position: relative; z-index: 2; outline: 2px solid var(--nj-ink); outline-offset: 4px; }
  .pl-newsig-page-j .sub-news-item .news-img a:focus-visible { outline: none; }
  .pl-newsig-page-j .sub-news-item .news-img:has(a:focus-visible) { z-index: 2; outline: 2px solid var(--nj-ink); outline-offset: 4px; }   /* z-index — 왼쪽 끝 칸의 테가 격자 양옆 흰 띠(1절) 위로 */
  .pl-newsig-page-j .sub-news-item:has(.news-img a:focus-visible) .news-title a { background-size: 100% 2px; }
}


/* =====================================================================
   4) 모바일(≤959) — 선이 화면 끝까지(격자 −20), 칸 안쪽 20 → 사진 · 글 왼쪽 끝 = 머리 글자 20. 큰 칸 = 한 줄 전체 · 사진 위, 작은 칸 = 둘씩.
      작은 칸(글 폭 360 140 · 390 155): 사진 3:4 → 14 → 분류 12 #999 → 6 → 제목 14/600/1.4(다섯 줄까지) → 6 → 메타 '날짜 | 작성자' 12 #999(2026-10-27 "작은 이미지 … 이미지가 제일 먼저" · 2026-10-28 분류 → 제목 → 날짜 | 작성자 —
        그 전: 라벨 → 6 → 제목 → 14 → 사진). 요약은 뺌.
      큰 칸: 사진 → 14 → 라벨 → 6 → 제목 → 14 → 요약(글자는 작은 칸과 같음 — 제목 14/600 · 요약 13 두 줄), 글 폭 = 사진 폭(480 까지).
      2026-10-27 비율 다듬기: 덩어리 사이 간격 16 · 12 · 8 → 14 하나(PC 의 20 하나 + 라벨 → 제목 8 과 같은 짜임). 14 = PC 20 × 0.7 = 칸 여백 비(20 : 28),
        = 제목 14px 의 1em → 칸 여백 : 칸 안 간격 = 20 : 14 = PC 28 : 20 과 같은 1.4.
   ===================================================================== */
@media (max-width: 959px) {
  .pl-newsig-page-j .pl-nj-head { margin-top: 14px; }   /* 사진 → 제목 14(2026-10-27 비율 다듬기의 머리 → 사진 14 를 사진 먼저 순서로 옮김) */
  .pl-newsig-page-j .pl-nj-meta { margin-top: 14px; line-height: 14px; }   /* 제목 → 메타 14(2026-10-28 PC 8 → 18 에 맞춰 6 → 14 — 모바일 덩어리 간격). 390 이하 폰처럼 좁아 두 줄이면 날짜 14 + 작성자 14 */
  .pl-newsig-page-j .pl-nj-label { margin-bottom: 6px; line-height: 14px; }
  .pl-newsig-page-j .sub-news-item .news-title { font-size: max(12px, calc(14 * var(--pl-fz, 1px))) !important; line-height: 1.4 !important; -webkit-line-clamp: 5; }   /* 2026-10-27 비율 다듬기: 줄높이 1.45 → 1.4(화면은 이미 공통 규칙 1.4 = 19.6), 줄 수 4 → 5(360 에 네 줄 제목이 있어 여유 0 → 1줄) */

  /* 2026-10-27 비율 다듬기: 큰 칸 사진 → 라벨 16 → 14, 제목 → 요약 8 → 14(PC 20 의 0.4배로 유난히 좁아 요약이 제목에 붙어 보였음) */
  .pl-newsig-page-j .sub-news-grid > .sub-news-item:is(:nth-child(7n+1):not(:nth-last-child(-n+6 of :not(.is-hidden))), :nth-child(7n+1):nth-last-child(1 of :not(.is-hidden)), :nth-child(7n+1):nth-last-child(3 of :not(.is-hidden)), :nth-child(7n+1):nth-last-child(5 of :not(.is-hidden))) > .pl-nj-text { margin-top: 14px; max-width: 480px; }   /* 480 = 사진 상한(아래) — 넓은 모바일(768)에서 제목 줄이 사진 오른쪽 끝(480)을 넘어 728 까지 뻗지 않게 */
  .pl-newsig-page-j .sub-news-grid > .sub-news-item:is(:nth-child(7n+1):not(:nth-last-child(-n+6 of :not(.is-hidden))), :nth-child(7n+1):nth-last-child(1 of :not(.is-hidden)), :nth-child(7n+1):nth-last-child(3 of :not(.is-hidden)), :nth-child(7n+1):nth-last-child(5 of :not(.is-hidden))) .pl-nj-body { display: flex; margin-top: 14px; }
  /* 큰 칸 사진 — 3:4(2026-10-27 "이미지는 모두 3:4"), 폰은 칸 글 폭 가득(390 350 × 467), 넓은 모바일 · 태블릿 세로는 폭 480 에서 멈춤(높이 640 — 한 화면을 다 덮지 않게, 왼쪽 정렬) */
  .pl-newsig-page-j .sub-news-grid > .sub-news-item:is(:nth-child(7n+1):not(:nth-last-child(-n+6 of :not(.is-hidden))), :nth-child(7n+1):nth-last-child(1 of :not(.is-hidden)), :nth-child(7n+1):nth-last-child(3 of :not(.is-hidden)), :nth-child(7n+1):nth-last-child(5 of :not(.is-hidden))) > .news-img { max-width: 480px; }
}


/* =====================================================================
   5) MORE — 2026-10-27 사용자 "버튼 스타일은 홈페이지에 올라가있는 스타일 처럼 적용해줘" → 운영 뉴스 목록 · 메인 MORE 와 같은 버튼
      (news-list.css #btn-sub-news-more 그대로: 1px #1d1d1d 테 · 'MORE' Inter 13/500 · 안쪽 6 × 36 · 올리면 먹색으로 참 0.3s · 초점 1px 바깥 4, 가운데).
      이 시안은 자리만: 격자 맨 아랫선에서 60(운영 PC 와 같은 값) · 모바일 40(운영 모바일 0 은 카드 아래 여백 90 이 있을 때 값 — 이 시안 칸에는 없어서).
      (그 전 같은 날: 줄 전체 버튼 → 가운데 테 상자 + 수 '20 / 53' · '+' · 진행 막대 → 모두 뺌)
      같은 날 "버튼 안에 MORE옆에 갯수 보여줬던거 해줘" → 버튼은 운영 모양 그대로, 'MORE' 옆 8 띄워 '21 / 53'(.pl-nj-count — 12/400 #999 고정폭 숫자,
      올리면 버튼이 먹색으로 차므로 #bbb; 이어서 "21 / 53에 letter-spacing을 좀 줄여줘" → 자간 0 → −0.04em). 수는 aria-hidden(버튼 이름 'MORE' 그대로), 누를 때마다 page-j.js 가 고침.
      다 펼쳐 news-list.js 가 버튼을 지우면 빈 틀도 숨김(:empty) → 격자 맨 아랫선이 마지막 선.
   ===================================================================== */
.pl-newsig-page-j .sub-news-more-wrap { margin: 60px 0 0 !important; text-align: center; }
.pl-newsig-page-j .sub-news-more-wrap:empty { display: none; }
.pl-newsig-page-j #btn-sub-news-more .pl-nj-count { margin-left: 8px; font-size: 12px; font-weight: 400; letter-spacing: -0.04em; font-variant-numeric: tabular-nums;
  color: #999; transition: color .3s ease; }
.pl-newsig-page-j #btn-sub-news-more:hover .pl-nj-count { color: #bbb; }
@media (prefers-reduced-motion: reduce) { .pl-newsig-page-j #btn-sub-news-more .pl-nj-count { transition: none; } }
@media (max-width: 959px) { .pl-newsig-page-j .sub-news-more-wrap { margin-top: 40px !important; } }

/* =====================================================================
   6) 인스타그램 — 머리(뉴스 머리와 같은 틀 + 오른쪽 계정 링크) + 게시물 격자(grid-a 와 같음 — page-g 에서 접두사만 바꿔 옮김)
   ===================================================================== */
.pl-ig-page-j { --igj-ink: #000; --igj-sub: #737373; --igj-line: #dbdbdb; --igj-fill: #efefef; --igj-fill-h: #dbdbdb; }
.pl-ig-page-j .pl-igj { color: var(--igj-ink); font-size: max(12px, calc(14 * var(--pl-fz, 1px))); line-height: 18px; }
.pl-ig-page-j .pl-igj-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.pl-ig-page-j svg { display: block; flex: none; }

/* ---------- 머리 — 뉴스 머리(.sub-news-header: 서브캡션 Inter 이탤릭 14 #999 + 제목 30/700, 격자까지 68 · 모바일 48)를 그대로 쓰고
   오른쪽에 계정 '@pagelab_seoul ↗' — 사이트 공통 밑줄 링크 .pl-link(common.css: Inter 13/500 #1d1d1d · 화살표 8 · 2px #e5e5e5 밑줄,
   올리거나 초점이면 먹색 선이 왼쪽부터 참) 그대로. 칩 · 프로필 사진 · 둥근 버튼 없음.
   PC: [서브캡션 / 제목 | 계정] — 계정 글자가 제목과 같은 기준선(격자 baseline 정렬, 숫자 보정 없음), 오른쪽 끝 = 격자 오른쪽 끝.
   모바일: 제목이 폭을 다 쓰므로 계정은 서브캡션 줄 오른쪽(같은 기준선) → 머리 높이 = 뉴스 머리 높이 ---------- */
.pl-ig-page-j .pl-igj-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 40px; align-items: end; }
.pl-ig-page-j .pl-igj-head .header-titles { display: contents; }
.pl-ig-page-j .pl-igj-head .sub-title { grid-row: 1; grid-column: 1; }
.pl-ig-page-j .pl-igj-head .main-title { grid-row: 2; grid-column: 1; align-self: baseline; min-width: 0; }
.pl-ig-page-j .pl-igj-acct { grid-row: 2; grid-column: 2; align-self: baseline; justify-self: end; white-space: nowrap; }
.pl-ig-page-j .pl-igj-acct:focus-visible { outline: 2px solid #1d1d1d; outline-offset: 4px; }
/* 누르는 범위만 글자 위아래로 넓힘(보이는 모양 · 밑줄 · 초점 테는 그대로) — .txt 의 ::after 는 공통 규칙이 비워 둔 자리 */
.pl-ig-page-j .pl-igj-acct.pl-link:not(#pl-x) .txt::after { content: ""; position: absolute; inset: -13px -8px -18px; width: auto; height: auto; background: none; }
@media (max-width: 959px) {
  .pl-ig-page-j .pl-igj-head .sub-title { align-self: baseline; }
  .pl-ig-page-j .pl-igj-head .main-title { grid-column: 1 / -1; }
  .pl-ig-page-j .pl-igj-acct { grid-row: 1; }
  .pl-ig-page-j .pl-igj-acct.pl-link:not(#pl-x) .txt::after { bottom: -6px; }   /* 바로 아래 제목에 닿지 않게(누르는 높이 32) */
}
/* 게시물이 하나도 없을 때(배포에서 사진이 아직 없을 때) — 머리만, 아래 여백 없이 */
.pl-ig-page-j--empty .pl-igj-head { margin-bottom: 0; }

/* ---------- 틀 — 없음(2026-10-27): 위 뉴스 칸 안 사진 · 글 끝(좌우 72 · 모바일 20)과 인스타그램 격자 바깥 끝이 같은 선 → 칸 격자에서 사진 벽으로 이어짐
   (뉴스 칸 선은 그보다 칸 안쪽 여백만큼 바깥 — REF1 처럼 선이 내용보다 밖으로). 선을 하나 더 두르면 뉴스 격자와 같은 틀을 한 번 더 그리는 셈이라 두지 않음 ---------- */

/* ---------- 게시물 격자 — grid-a 와 같음: 열 수(≥1680 5열(2026-10-28) · 1500~1679 4열 · 1499↓ 3열 · 모바일까지 3열(2026-10-28 최소 3)), 3:4, 사이 4px(모바일 3px),
   20개 한 번에 ---------- */
.pl-ig-page-j .pl-igj-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; margin: 0; padding: 0; list-style: none; }
@media (width < 1680px) { .pl-ig-page-j .pl-igj-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }   /* 2026-10-28 사용자: 1680 이상 5칸(B안과 같이) */
@media (max-width: 1499px) { .pl-ig-page-j .pl-igj-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pl-ig-page-j .pl-igj-cell { display: block; min-width: 0; margin: 0; padding: 0; }
.pl-ig-page-j .pl-igj-cell::marker, .pl-ig-page-j .pl-igj-end::marker { content: none; }
.pl-ig-page-j .pl-igj-tile { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--igj-fill); color: #fff; text-decoration: none; }
.pl-ig-page-j .pl-igj-tile.is-broken img { visibility: hidden; }   /* 못 불러온 사진 — 깨진 그림 대신 회색 칸 */
.pl-ig-page-j .pl-igj-tile img::after { content: ""; position: absolute; inset: 0; background: var(--igj-fill); }   /* 스크립트가 없어도(Chrome · Firefox 는 못 불러온 그림에만 그림) */
.pl-ig-page-j .pl-igj-tile img, .pl-ig-page-j .pl-igj-tile video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
/* 스크립트가 꺼진 브라우저는 controls 없는 영상에도 재생 막대를 그림 — 칸 전체가 링크라 숨김 */
.pl-ig-page-j .pl-igj-tile video::-webkit-media-controls { display: none !important; }
.pl-ig-page-j .pl-igj-tile video::-webkit-media-controls-enclosure { display: none !important; }
/* 사진을 아직 못 받은 칸 — 번호만 */
.pl-ig-page-j .pl-igj-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-en); font-size: max(12px, calc(20 * var(--pl-fz, 1px))); font-weight: 500; color: #c7c7c7; }
/* 릴스 표시 — 오른쪽 위 흰 아이콘(올렸을 때 덮개 위에도 그대로 — 인스타그램처럼) */
.pl-ig-page-j .pl-igj-badge { position: absolute; top: 12px; right: 12px; z-index: 3; width: 22px; height: 22px; filter: drop-shadow(0 0 2px rgba(0, 0, 0, .35)); }
/* 올리면(또는 키보드 초점) 어두운 덮개 + 캡션 앞부분(3줄) · 날짜 — 바로 바뀜(움직임 없음) */
.pl-ig-page-j .pl-igj-ov { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 0 14%; background: rgba(0, 0, 0, .62); text-align: center; opacity: 0; }
/* 사진 속 글자(아트보드 문구)와 겹치지 않게 덮개 뒤를 흐림 — 지원하는 브라우저만, 아니면 위의 짙은 덮개 */
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .pl-ig-page-j .pl-igj-ov { background: rgba(0, 0, 0, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }   /* .55 = 흰 바탕 위에서도 흰 글자 4.76:1 */
}
.pl-ig-page-j .pl-igj-ov-cap { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  font-size: max(12px, calc(15 * var(--pl-fz, 1px))); font-weight: 600; line-height: 22px; color: #fff; word-break: keep-all; overflow-wrap: anywhere; }
.pl-ig-page-j .pl-igj-ov-date { margin-top: 10px; font-size: max(12px, calc(13 * var(--pl-fz, 1px))); font-weight: 400; line-height: 16px; color: #fff; }
/* 2026-10-26 사용자 '인스타 섹션에 마우스 오버 효과 빼줘' — 게시물 칸에 올렸을 때 덮개(글 · 날짜) · 버튼 · 계정 칩의 색 바뀜을 뺌(누르면 그대로 인스타그램으로 감). 키보드로 옮겨 갈 때 보이는 테 · 덮개(:focus-visible)는 그대로 */
.pl-ig-page-j .pl-igj-acct:not(#pl-btn):hover:not(:focus-visible)::before { transform: scaleX(0); }   /* 계정 밑줄 링크(.pl-link)도 올렸을 때 검은 선이 차오르지 않게 — 키보드 초점일 때만 참(common.css 규칙보다 앞서도록 #pl-btn 까지) */
.pl-ig-page-j .pl-igj-tile:focus-visible { outline: none; }
.pl-ig-page-j .pl-igj-tile:focus-visible .pl-igj-ov { opacity: 1; }
.pl-ig-page-j .pl-igj-tile:focus-visible::after { content: ""; position: absolute; inset: 0; z-index: 4; box-shadow: inset 0 0 0 2px #1d1d1d, inset 0 0 0 4px #fff; pointer-events: none; }

/* ---------- 마지막 줄 남는 칸 — '…님의 게시물 더 보기'(grid-a 와 같음: 작은 둥근 테 아이콘 → 한 줄 → 회색 버튼), 게시물보다 조용하게.
   1px #dbdbdb 테두리 = 줄이 직사각형으로 닫히는 '칸'. 남는 칸 수는 열 수마다 다름 → 열 수별 클래스(…--c{열}-s{남는 칸}, s0 = 줄이 꽉 차 숨김).
   분기 = 격자 열 수와 같은 max-width 만(1499 · 1080) — 소수점 폭(브라우저 확대)에서도 열 수와 끝 칸이 어긋나지 않음 ---------- */
.pl-ig-page-j .pl-igj-end { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; margin: 0; padding: 24px;
  text-align: center; background: #fff; box-shadow: inset 0 0 0 1px var(--igj-line); }
.pl-ig-page-j .pl-igj-end--c5-s0 { display: none; }
.pl-ig-page-j .pl-igj-end--c5-s1 { grid-column: span 1; }
.pl-ig-page-j .pl-igj-end--c5-s2 { grid-column: span 2; }
.pl-ig-page-j .pl-igj-end--c5-s3 { grid-column: span 3; }
.pl-ig-page-j .pl-igj-end--c5-s4 { grid-column: span 4; }
@media (width < 1680px) {
  .pl-ig-page-j .pl-igj-end { display: flex; }
  .pl-ig-page-j .pl-igj-end--c4-s0 { display: none; }
  .pl-ig-page-j .pl-igj-end--c4-s1 { grid-column: span 1; }
  .pl-ig-page-j .pl-igj-end--c4-s2 { grid-column: span 2; }
  .pl-ig-page-j .pl-igj-end--c4-s3 { grid-column: span 3; }
}
@media (max-width: 1499px) {
  .pl-ig-page-j .pl-igj-end { display: flex; }
  .pl-ig-page-j .pl-igj-end--c3-s0 { display: none; }
  .pl-ig-page-j .pl-igj-end--c3-s1 { grid-column: span 1; }
  .pl-ig-page-j .pl-igj-end--c3-s2 { grid-column: span 2; }
}
.pl-ig-page-j .pl-igj-end-icon { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border: 1.5px solid var(--igj-ink); border-radius: 50%; color: var(--igj-ink); }
.pl-ig-page-j .pl-igj-end-icon svg { width: 22px; height: 22px; }
.pl-ig-page-j .pl-igj-end-title { margin: 14px 0 0; font-size: max(12px, calc(16 * var(--pl-fz, 1px))); font-weight: 600; line-height: 20px; color: var(--igj-ink); word-break: keep-all; overflow-wrap: anywhere; }
.pl-ig-page-j .pl-igj-end-title [lang="en"] { font-family: var(--font-en); }
/* 버튼 — 인스타그램 32 높이 · 모서리 8 · 14/600 회색(grid-a 와 같음) */
.pl-ig-page-j .pl-igj-btn { display: inline-flex; align-items: center; justify-content: center; flex: none; height: 32px; padding: 0 16px; border-radius: 8px;
  font-size: max(12px, calc(14 * var(--pl-fz, 1px))); font-weight: 600; line-height: 18px; white-space: nowrap; text-decoration: none; cursor: pointer;
  background: var(--igj-fill); color: var(--igj-ink); }
.pl-ig-page-j .pl-igj-btn:focus-visible { outline: 2px solid #1d1d1d; outline-offset: 2px; }
.pl-ig-page-j .pl-igj-end-btn { margin-top: 16px; }
/* 2026-10-28 사용자 "최소는 3개로" — 휴대폰도 3열이라 끝 칸이 105~185px 로 좁아짐 → 칸 폭 180 이하에서는 아이콘 → 글만 보이고,
   버튼은 칸 전체를 덮는 투명 링크(읽히는 이름 'Instagram에서 보기' · 새 창 안내는 그대로, 키보드 초점은 칸 안쪽 2px 선) */
.pl-ig-page-j .pl-igj-end { position: relative; container-type: inline-size; }
@media (max-width: 599px) { .pl-ig-page-j .pl-igj-grid .pl-igj-end { padding: 10px 6px; } }   /* 휴대폰 3열 끝 칸 — 글 폭을 넓힘(모바일 12 보다 앞서게 격자까지 붙여 씀) */
@container (max-width: 180px) {
  .pl-ig-page-j .pl-igj-grid .pl-igj-end-icon { width: 32px; height: 32px; border-width: 1px; }
  .pl-ig-page-j .pl-igj-grid .pl-igj-end-icon svg { width: 16px; height: 16px; }
  .pl-ig-page-j .pl-igj-grid .pl-igj-end-title { margin-top: 8px; font-size: 12px; line-height: 15px; text-wrap: balance; }   /* '님의 게시물 / 더 보기' — '보기' 혼자 남지 않게 */
  .pl-ig-page-j .pl-igj-grid .pl-igj-end-title [lang="en"] { display: block; font-size: 11px; letter-spacing: -0.01em; }   /* 계정 이름은 한 줄로 따로(‘…seou / l님의’ 처럼 끊기지 않게) */
  .pl-ig-page-j .pl-igj-grid .pl-igj-end-btn { position: absolute; inset: 0; z-index: 1; margin: 0; height: auto; padding: 0; border-radius: 0; background: transparent; color: transparent; overflow: hidden; }
  .pl-ig-page-j .pl-igj-grid .pl-igj-end-btn:focus-visible { outline: 2px solid #1d1d1d; outline-offset: -2px; }
}
@container (max-width: 100px) {   /* 320 폰(칸 91) — 끝 칸이 사진 칸(122)보다 높아지지 않게 */
  .pl-ig-page-j .pl-igj-grid .pl-igj-end-icon { width: 28px; height: 28px; }
  .pl-ig-page-j .pl-igj-grid .pl-igj-end-icon svg { width: 14px; height: 14px; }
  .pl-ig-page-j .pl-igj-grid .pl-igj-end-title { margin-top: 6px; }
}

/* ---------- 모바일 — 격자 2열은 20 여백 안(grid-a 와 같음) ---------- */
@media (max-width: 959px) {
  .pl-ig-page-j .pl-igj-grid { gap: 3px; }
  .pl-ig-page-j .pl-igj-badge { top: 8px; right: 8px; width: 18px; height: 18px; }
  .pl-ig-page-j .pl-igj-ph { font-size: max(12px, calc(16 * var(--pl-fz, 1px))); }
  .pl-ig-page-j .pl-igj-ov { padding: 0 10%; }
  .pl-ig-page-j .pl-igj-ov-cap { font-size: 12px; line-height: 17px; }
  .pl-ig-page-j .pl-igj-ov-date { margin-top: 6px; font-size: 11px; }

  .pl-ig-page-j .pl-igj-end { padding: 12px; }
  .pl-ig-page-j .pl-igj-end-icon { width: 44px; height: 44px; }
  .pl-ig-page-j .pl-igj-end-icon svg { width: 20px; height: 20px; }
  .pl-ig-page-j .pl-igj-end-title { margin-top: 10px; font-size: max(12px, calc(13 * var(--pl-fz, 1px))); line-height: 17px; }
  .pl-ig-page-j .pl-igj-end-btn { margin-top: 12px; height: 30px; padding: 0 12px; font-size: max(12px, calc(13 * var(--pl-fz, 1px))); }
}

/* 인스타그램 소개 문구 안 계정 이름(@pagelab_seoul) — 굵게(2026-11-12 사용자 '두께를 올려줘'), 글자 색 · 밑줄은 그대로 */
#pane-activities .pl-nhead-desc .pl-nhead-link { font-weight: 600; }

/* 2026-11-12 사용자 "모바일에서 인스타그램 섹션에 양쪽 여백을 없애줘" — 모바일(≤959)은 게시물 격자만 화면 양 끝까지(인스타 앱 프로필 격자처럼).
   머리(제목 · 서브 · 소개)는 다른 구역과 같은 좌우 20 그대로 — 틀(.pl-ntab-pane > .sub-news-wrapper)의 안쪽 여백 20 만큼 격자를 바깥으로 */
@media (max-width: 959px) {
  #pane-activities .pl-ig-page-j .pl-igj { margin-left: -20px; margin-right: -20px; }
}

/* =====================================================================
   7) 인스타그램 게시물 창(.pl-igm — 2026-11-13 사용자 "선택하면 링크이동을 해제하고 모달창으로 해당 게시물을 볼수있게 … 보내준 이미지 처럼
      대신 우리는 좌측에 글, 아래 좋아요 공유하기 디엠"). 모양은 인스타그램이 아니라 사이트 톤 — 직각, 먹색 #1d1d1d · 본문 #333 · 회색 #999 · 선 #e5e5e5,
      파란색 · 둥근 단추 없음. 창은 news-ig.js 가 body 끝에 붙임(고정 헤더 위로 — z-index 1000000, 메인 팝업 9999999 보다는 아래).
   PC(≥960): 어두운 바탕 가운데 [글 칸(왼쪽, 폭 360~440) | 사진 · 영상(오른쪽, 그 게시물 비율 — 사진 3:4 · 릴스 9:16)].
     높이 = 화면 높이 − 80(최대 960 = 칸 그림 원본 높이), 좌우에 이전 · 다음 단추 자리 76씩. 닫기 = 화면 오른쪽 위 흰 X.
     이전 · 다음 = 화면 양 끝 가운데 고정(검토 2026-11-13: 게시물마다 창 폭이 달라 단추가 움직이면 연달아 누르다 바탕을 눌러 닫혔음), DM 중엔 숨김.
     글 칸 = 머리(피드형 로고 — 2026-11-16 프로필 · 계정 · Instagram 링크 대신) → 글(칸 안에서 스크롤) → 좋아요 · 링크 복사 · DM → '여러 명이 좋아합니다' → 날짜.
     여러 장(2026-11-16) = 사진 칸이 세로 스크롤 스냅(한 장 = 사진 칸 한 화면), 오른쪽 세로 점(흰 점 + 옅은 그림자).
   모바일(≤959): 전체 화면 한 장(스크롤) — 머리(위에 붙음 — 로고 · 게시물 이전 · 다음 · 닫기) → 사진 · 영상(여러 장은 가로로 밀기) → 단추(가운데 장 점) → 좋아요 줄 → 글 → 날짜(인스타 앱 순서).
   DM: PC 는 글 칸을 덮는 같은 크기 판, 모바일은 아래에서 올라오는 전체 화면 — [제목 | X] → 어떤 게시물 → 이메일 · 이름 · 내용 → 개인정보 동의 → 보내기(폭 전체 먹색).
   ===================================================================== */
.pl-igm[hidden], .pl-igm [hidden] { display: none !important; }
.pl-igm { position: fixed; inset: 0; z-index: 1000000; display: flex; align-items: center; justify-content: center;
  --igm-ar: .75; --igm-vh: 100vh;
  color: #333; font-size: max(12px, calc(14 * var(--pl-fz, 1px))); line-height: 1.5; text-align: left; -webkit-text-size-adjust: 100%; opacity: 0; transition: opacity .2s ease; }
@supports (height: 100dvh) { .pl-igm { --igm-vh: 100dvh; } }
.pl-igm.is-on { opacity: 1; }
.pl-igm *, .pl-igm *::before, .pl-igm *::after { box-sizing: border-box; }
/* 단추 · 입력 기본값 지우기 — :where() 로 낮은 우선순위(아래 .pl-igm-x · .pl-igm-nav 같은 개별 규칙의 색 · 배경이 이김) */
.pl-igm :where(button, input, textarea) { font: inherit; color: inherit; letter-spacing: inherit; }
.pl-igm :where(button) { margin: 0; padding: 0; border: 0; border-radius: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pl-igm svg { display: block; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pl-igm-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.pl-igm :where(a, button, [tabindex]):focus-visible { outline: 2px solid #1d1d1d; outline-offset: 2px; }
.pl-igm-box:focus, .pl-igm-dm-title:focus, .pl-igm-done-title:focus { outline: none; }
.pl-igm-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .72); }

/* 틀 — [사진 | 글 칸](2026-11-13 사용자 "사진을 좌측으로"). 높이 --igm-h 하나로 사진 칸 폭(높이 × 비율)까지.
   글 칸 = 3:4 사진 폭의 45/55(2026-11-20 사용자 A안 "사진 55 : 글 45" — 높이 × 0.75 × 45/55 = 높이 × 0.61364, 최소 340px. 전: 화면 폭 30% · 360 ~ 440px 라 큰 화면일수록
   글 칸이 좁았음 — 1440×900 58.7:41.3 · 1920×1080 62:38). 화면이 좁으면 (화면 폭 − 단추 자리 152) ÷ (사진 비율 + 0.61364) 로 높이를 줄여 둘 다 들어가게 */
.pl-igm-box { position: relative; z-index: 1; display: grid; grid-template-columns: auto var(--igm-tw); background: #fff;
  --igm-h: min(calc(var(--igm-vh) - 80px), 960px, calc((100vw - 152px) / (var(--igm-ar) + 0.61364)));
  --igm-tw: max(340px, calc(var(--igm-h) * 0.61364));
  height: var(--igm-h); }
/* 2026-11-23 사용자 "지금 피드창 비율을 인스타그램 피드창처럼 비율 조절해 주고 라운드 들어가는 것까지": 인스타그램 웹 게시물 창을 실측(2026-11-23 — 3:4 게시물,
   화면 1920×1080 → 높이 1032 · 사진 774 · 글 500 / 1440×900 → 852 · 639 · 500 / 1280×720 → 672 · 504 · 500 / 1024×768 → 글 405 까지 줄고 높이도 줄어듦):
   높이 = 화면 높이 − 48(위아래 24), 사진 칸 = 높이 × 사진 비율, 글 칸 = 500px(화면이 좁으면 405 까지 줄고, 그래도 모자라면 높이를 줄임),
   창 폭 ≤ 화면 폭 − 128(좌우 단추 자리 64 씩 — 이전 · 다음 단추는 화면 끝 20px), 화면 가운데. 바깥 모서리 16px(사진 칸 왼쪽 위 · 아래, 글 칸 오른쪽 위 · 아래 — 인스타그램과 같은 값).
   전(2026-11-20 사용자 "배경에 맞춰 창 크기를 조절"): 창 폭 = 뒤에 깔린 피드 격자 폭(news-ig.js fitW 의 --igm-w · --igm-dx — 이제 CSS 가 쓰지 않음), 글 칸 = 남는 폭(최소 45%),
   높이 = 화면 − 80 · 최대 960. 모바일(≤959)은 그대로(화면 전체 한 장) */
@media (min-width: 960px) {
  .pl-igm-box { --igm-h: min(calc(var(--igm-vh) - 48px), calc((100vw - 128px - 405px) / var(--igm-ar)));
    grid-template-columns: auto clamp(405px, calc(100vw - 128px - var(--igm-h) * var(--igm-ar)), 500px); border-radius: 16px; }
  .pl-igm-media { border-radius: 16px 0 0 16px; overflow: hidden; }
  .pl-igm-panel { border-radius: 0 16px 16px 0; overflow: hidden; }   /* 글 칸을 덮는 DM 판(.pl-igm-dm)도 이 안이라 같이 둥글게 */
}
/* 2026-11-21 사용자 "조정래 원장 포스트 3 · 4번째 이미지 상단에 1픽셀 여백": 창 높이가 소수(예: 701.06px)가 되면 세로로 넘기는 사진 칸의 스크롤 자리(정수)와 장 자리(소수)가 어긋나
   앞 장의 맨 아랫줄이 다음 장 맨 위에 한 줄 비침. 높이를 4px 단위로 내림 — 장 자리가 늘 정수(배율 1.25 · 1.5 · 2 · 3 화면의 실제 픽셀로도), 사진 칸 폭(높이 × 0.75)도 정수.
   round() 를 모르는 예전 브라우저는 위 값 그대로 */
@supports (height: round(down, 10.5px, 4px)) {
  .pl-igm-box { --igm-h: round(down, min(calc(var(--igm-vh) - 80px), 960px, calc((100vw - 152px) / (var(--igm-ar) + 0.61364))), 4px); }
  @media (min-width: 960px) {
    .pl-igm-box { --igm-h: round(down, min(calc(var(--igm-vh) - 48px), calc((100vw - 128px - 405px) / var(--igm-ar))), 4px); }
  }
}
.pl-igm-panel { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; height: 100%; background: #fff;
  border-left: 1px solid #e5e5e5; }   /* PC 글 칸 왼쪽 선(2026-11-16 사용자 — 흰 사진이면 사진과 글 칸 경계가 안 보임). 모바일은 칸을 풀어(display: contents) 선 없음 */
.pl-igm-media { position: relative; width: calc(var(--igm-h) * var(--igm-ar)); height: var(--igm-h); background: #111; }
.pl-igm-frame { position: relative; width: 100%; height: 100%; overflow: hidden; background: #111; }
.pl-igm-slide { position: relative; width: 100%; height: 100%; overflow: hidden; background: #111; }
.pl-igm-frame img, .pl-igm-frame video { display: block; width: 100%; height: 100%; object-fit: cover; }
.pl-igm-slide.is-broken { background: #f2f2f2; }
.pl-igm-frame .pl-igm-vcover { position: absolute; inset: 0; pointer-events: none; }   /* 이어 보기로 넘어온 릴스 — 영상 첫 화면이 나올 때까지 미리보기 그림을 덮어 둠(news-ig.js makeSlide) */
.pl-igm-slide.is-broken img { visibility: hidden; }
.pl-igm-frame video::-webkit-media-controls-panel { background: none; }
/* 여러 장(2026-11-16 사용자 "스크롤하면 다음 이미지가 나오게") — PC: 세로 스크롤 스냅, 한 장 = 사진 칸 크기. 스크롤 막대는 숨김(점이 대신) */
.pl-igm-frame.is-multi { overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scroll-snap-type: y mandatory; scrollbar-width: none; }
.pl-igm-frame.is-multi::-webkit-scrollbar { display: none; }
.pl-igm-frame.is-multi .pl-igm-slide { flex: none; scroll-snap-align: start; scroll-snap-stop: always; }
.pl-igm .pl-igm-frame:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }   /* 사진 칸 초점(↑ ↓ 로 장 넘김) — 어두운 사진 · 바탕 위에서 보이게 흰 테 + 먹색 테 */
.pl-igm-media:has(> .pl-igm-frame:focus-visible)::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 4px #1d1d1d; }
.pl-igm .pl-igm-media:has(> .pl-igm-frame:focus-visible) .pl-igm-frame { outline: none; }
/* 둘째 장부터 영상(울쎄라 Q&A — 4:5 원본) — 게시물 칸 비율(3:4)에 맞춰 잘라 채움(인스타그램처럼, 모바일도) */
.pl-igm .pl-igm-slide--clip video { object-fit: cover; }
/* 장 표시 — PC: 사진 오른쪽 가운데 세로 점(흰 점, 지금 장 = 불투명 · 조금 크게), 누르면 그 장. 모바일은 단추 줄 가운데(.pl-igm-dots-h).
   점 묶음 뒤에 옅은 먹색 판(검토 2026-11-16: 흰 사진 위에선 지금 장과 다른 장이 구분되지 않았음 — 흰 · 복잡한 · 어두운 사진 모두에서 보이게) */
.pl-igm-dots { position: absolute; top: 50%; right: 8px; z-index: 2; display: flex; flex-direction: column; padding: 5px 0; border-radius: 11px;
  background: rgba(29, 29, 29, .5); transform: translateY(-50%); }
.pl-igm-dot { display: flex; align-items: center; justify-content: center; width: 22px; height: 14px; }
.pl-igm-dot::before { content: ""; display: block; width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .5);
  transition: background-color .2s ease, transform .2s ease; }
@media (hover: hover) { .pl-igm-dot:hover::before { background: rgba(255, 255, 255, .8); } }
.pl-igm-dot.is-on::before { background: #fff; transform: scale(1.2); }
.pl-igm-dots-h { display: none; }

/* 머리 — 피드형 로고(2026-11-16 사용자 "타원형 로고, pagelab_seoul, 인스타그램 버튼 제거하고 … 피드형-로고로"): 높이 12(처음 14 → 같은 날 사용자 "로고 사이즈 조금 줄이고"),
   폭이 모자라면(모바일 360) 비율 그대로 줄어듦. 창 이름은 숨긴 제목(.pl-igm-sr) */
.pl-igm-head { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 24px; border-bottom: 1px solid #e5e5e5; flex: none; }
.pl-igm-brand { display: flex; align-items: center; flex: 1 1 auto; min-width: 0; }
.pl-igm-logo { display: block; width: auto; height: auto; max-width: 100%; max-height: 12px; }
.pl-igm-pager { display: contents; }   /* PC: 이전 · 다음은 화면 양 끝 고정(아래 .pl-igm-nav) — 모바일만 로고 오른쪽 두 칸 */
/* 닫기 — PC 는 화면 오른쪽 위 흰 X(어두운 바탕 위, 인스타그램 자리), 모바일은 머리 오른쪽 먹색 X */
.pl-igm-x { position: fixed; top: 12px; right: 12px; z-index: 3; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; color: #fff; }
.pl-igm-x svg { width: 26px; height: 26px; stroke-width: 1.5; }
.pl-igm-x:focus-visible { outline-color: #fff; outline-offset: -4px; }

/* 글 — 인스타 원문 그대로(줄바꿈 유지), 칸 안에서만 스크롤. #해시태그 · @계정은 링크 없이 회색 */
.pl-igm-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 28px 24px; }   /* 28 24(2026-11-17 사용자) */
.pl-igm .pl-igm-body:focus-visible { outline-offset: -2px; }
/* 글 · DM 칸이 넘치면 아래 40 을 흐리게(news-ig.js fadeSync 가 .is-more — 끝까지 내리면 뺌) */
.pl-igm-body.is-more, .pl-igm-dm-scroll.is-more { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 40px), transparent); }
.pl-igm-cap { margin: 0; font-size: max(12px, calc(14 * var(--pl-fz, 1px))); line-height: 24px; color: #333; white-space: pre-wrap; overflow-wrap: anywhere; }
.pl-igm-cap:lang(ko) { word-break: keep-all; }
.pl-igm-tag { color: #686868; }

/* 단추 줄 — 좋아요(하트, 누르면 빨강으로 채움 — 2026-11-13 사용자 "블랙 말고 인스타처럼 레드") · 링크 복사 · DM(종이비행기). 아이콘 24 · 누르는 칸 40 */
.pl-igm-acts { display: flex; align-items: center; gap: 0; padding: 4px 18px 0; border-top: 1px solid #e5e5e5; flex: none; }   /* 위 8 → 4 · 아래 2 → 0 · 사이 2 → 0 · 좌우 18 = 아이콘(28, 칸 40) 왼쪽 끝이 글과 같은 24(2026-11-17 사용자) */
.pl-igm-act { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; color: #1d1d1d; }
.pl-igm-act svg { width: 28px; height: 28px; }   /* 좋아요 · 링크 복사 · DM — 24 → 28(2026-11-17 사용자) */
@media (hover: hover) { .pl-igm-act:hover { color: #686868; } }   /* 마우스만 — 아이폰은 누른 뒤 회색이 남아 눌린 것처럼 보였음(2026-11-18 밤 사파리 점검) */
.pl-igm-like[aria-pressed="true"], .pl-igm-like[aria-pressed="true"]:hover { color: #ff3040; }
.pl-igm-like[aria-pressed="true"] svg path { fill: #ff3040; }
.pl-igm-like.is-pop svg { animation: pl-igm-pop .32s ease-out; }
@keyframes pl-igm-pop { 0% { transform: scale(1); } 45% { transform: scale(1.22); } 100% { transform: scale(1); } }
.pl-igm-likes { margin: 0; padding: 0 24px; font-size: max(12px, calc(14 * var(--pl-fz, 1px))); font-weight: 600; line-height: 20px; color: #1d1d1d; flex: none; }
.pl-igm-date { display: block; padding: 2px 24px 18px; font-size: 12px; line-height: 18px; color: #999; flex: none; }   /* 2026-11-17 사용자: '여러 명이 좋아합니다' 위 여백 0 · 날짜 위 2px · 좌우 24(본문과 같은 줄) */

/* 이전 · 다음 — PC 는 화면 양 끝 가운데 고정(어두운 바탕 위 흰 꺾쇠 — 창 폭이 바뀌어도 같은 자리), 처음 · 마지막 게시물에선 숨김, DM 중엔 숨김 */
.pl-igm-nav { position: fixed; top: calc(50% - 16px); z-index: 2; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px;   /* 가운데 = top 계산(.pl-igm button 의 margin 0 이 margin 보정을 덮으므로). 원 40 → 32(2026-11-20 사용자 "라운드만 사이즈 줄이자" — 화살표 18 그대로) */
  border-radius: 50%; background: rgba(255, 255, 255, .92); color: #1d1d1d; box-shadow: 0 1px 6px rgba(0, 0, 0, .22); transition: background-color .2s ease, transform .2s ease; }
/* 2026-11-20 사용자 "피드를 켜면 양옆 화살표 뒤에 원형 배경 — 가시성 · 사이즈도 조금 줄여" — 흰 원(32) 안 검은 화살표 18(전: 어두운 바탕 위 흰 화살표 30, 원 없음) */
.pl-igm .pl-igm-nav svg { width: 18px; height: 18px; stroke-width: 2; }
@media (hover: hover) { .pl-igm .pl-igm-nav:hover { background: #fff; transform: scale(1.06); } }
.pl-igm-prev { left: 20px; }
.pl-igm-next { right: 20px; }
.pl-igm-nav:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.pl-igm.is-dm .pl-igm-nav { display: none; }

/* 영상 없는 릴스 — 사진 왼쪽 아래 'Instagram에서 영상 보기 ↗'(직각 먹색 띠, 원 게시물 새 창. 여러 장 '사진 모두 보기'는 2026-11-16 뺌 — 모든 장이 창 안에) */
.pl-igm-watch { position: absolute; left: 14px; bottom: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; max-width: calc(100% - 28px); min-height: 36px;
  padding: 8px 12px; background: rgba(29, 29, 29, .86); color: #fff; font-size: 12px; font-weight: 500; line-height: 16px; text-decoration: none; }
@media (hover: hover) { .pl-igm-watch:hover { background: #1d1d1d; color: #fff; } }
.pl-igm-watch svg { width: 10px; height: 10px; stroke-width: 1.8; }
.pl-igm .pl-igm-watch:focus-visible { outline-color: #fff; outline-offset: -4px; }

/* 알림(링크 복사) — 화면 아래 가운데 먹색 띠. 복사가 안 되면 주소 칸을 함께 보여 줌 */
.pl-igm-toast { position: fixed; left: 50%; bottom: 32px; z-index: 6; max-width: calc(100vw - 32px); transform: translateX(-50%);
  padding: 11px 16px; background: #1d1d1d; color: #fff; font-size: max(12px, calc(13 * var(--pl-fz, 1px))); line-height: 1.45; text-align: center; }
.pl-igm-toast input { display: block; width: min(420px, calc(100vw - 64px)); margin: 8px 0 2px; padding: 6px 8px; border: 1px solid #686868; border-radius: 0;
  background: #fff; color: #1d1d1d; font-family: var(--font-en); font-size: max(12px, calc(13 * var(--pl-fz, 1px))); }

/* ---------- DM ---------- */
.pl-igm-dm { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; min-height: 0; margin: 0; background: #fff; }
.pl-igm-dm-head { position: relative; display: flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 56px; border-bottom: 1px solid #e5e5e5; flex: none; }
.pl-igm-dm-title { margin: 0; font-size: max(12px, calc(15 * var(--pl-fz, 1px))); font-weight: 600; line-height: 20px; color: #1d1d1d; text-align: center; }
.pl-igm-dm-x { position: absolute; top: calc(50% - 22px); right: 8px; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: #1d1d1d; }
.pl-igm-dm-x svg { width: 22px; height: 22px; }
.pl-igm-dm-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 24px 8px; }
.pl-igm-dm-ctx { display: flex; align-items: center; gap: 12px; margin: 0 -24px 18px; padding: 14px 24px; border-bottom: 1px solid #e5e5e5; }
.pl-igm-dm-thumb { display: block; width: 36px; height: 48px; object-fit: cover; background: #f2f2f2; flex: none; }
.pl-igm-dm-ctx-t { min-width: 0; }
.pl-igm-dm-about { margin: 0; font-size: max(12px, calc(13 * var(--pl-fz, 1px))); font-weight: 600; line-height: 18px; color: #1d1d1d; }
.pl-igm-dm-about [lang="en"] { font-family: var(--font-en); }
.pl-igm .pl-igm-dm-line { margin: 2px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; line-height: 17px; color: #686868; }   /* 한 줄(… 줄임) — 중 · 일 페이지의 p { text-wrap: pretty } 가 nowrap 을 풀지 않게 .pl-igm 앞에 */
.pl-igm-f { margin: 0 0 16px; }
.pl-igm-f label { display: block; margin: 0 0 6px; font-size: 12px; font-weight: 500; line-height: 16px; color: #686868; }
.pl-igm-f input, .pl-igm-f textarea { display: block; width: 100%; margin: 0; padding: 11px 12px; border: 1px solid #e5e5e5; border-radius: 0; background: #fff;
  font-size: max(12px, calc(15 * var(--pl-fz, 1px))); line-height: 1.5; color: #1d1d1d; -webkit-appearance: none; appearance: none; box-shadow: none; }
.pl-igm-f input { height: 46px; }
.pl-igm-f textarea { min-height: 128px; resize: vertical; }
.pl-igm-f input::placeholder, .pl-igm-f textarea::placeholder { color: #999; opacity: 1; }
.pl-igm-f input:focus, .pl-igm-f textarea:focus { border-color: transparent; box-shadow: none; outline: 2px solid #1d1d1d; outline-offset: 2px; }   /* 초점 = 바깥 2px 테 하나만(2026-11-13 사용자 "보더가 2개인데 밖에 것만" — 안쪽 칸 선 · 오류 굵은 선은 숨김) */
.pl-igm-f [aria-invalid="true"] { border-color: #1d1d1d; box-shadow: inset 0 0 0 1px #1d1d1d; }
.pl-igm .pl-igm-agree input:focus-visible { outline: 2px solid #1d1d1d; outline-offset: 2px; }
.pl-igm-err { margin: 6px 0 0; font-size: 12px; font-weight: 500; line-height: 16px; color: #1d1d1d; }
.pl-igm-err::before { content: "— "; }
.pl-igm-err:empty { display: none; }
.pl-igm-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.pl-igm-agree { margin: 4px 0 6px; }
.pl-igm-agree label { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: max(12px, calc(13 * var(--pl-fz, 1px))); font-weight: 500; line-height: 19px; color: #333; cursor: pointer; }
.pl-igm-agree input { flex: none; width: 16px; height: 16px; margin: 1px 0 0; accent-color: #1d1d1d; }
.pl-igm-agree-note { margin: 6px 0 0 24px; font-size: 12px; line-height: 18px; color: #686868; }   /* 법정 안내 — 회색 #999 는 대비 부족(2.85:1) */
.pl-igm-agree-note a { color: #686868; text-decoration: underline; text-underline-offset: 2px; }
.pl-igm-agree .pl-igm-err { margin-left: 24px; }
.pl-igm-dm-foot { padding: 12px 24px 20px; border-top: 1px solid #e5e5e5; flex: none; }
.pl-igm-dm-msg { margin: 0 0 10px; font-size: max(12px, calc(13 * var(--pl-fz, 1px))); font-weight: 500; line-height: 18px; color: #1d1d1d; }
.pl-igm-dm-msg:empty { display: none; }
.pl-igm-send { display: block; width: 100%; height: 48px; background: #1d1d1d !important; color: #fff !important; font-size: max(12px, calc(15 * var(--pl-fz, 1px))); font-weight: 600; line-height: 48px; text-align: center; }
.pl-igm-send:hover { background: #333 !important; }
.pl-igm-send[aria-disabled="true"], .pl-igm-send:disabled { background: #686868 !important; cursor: default; }   /* 보내는 중(aria-disabled — 초점 유지) */
.pl-igm .pl-igm-send:focus-visible { outline-offset: 3px; }
/* 보낸 뒤(또는 미리보기 안내) */
.pl-igm-done { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.pl-igm-done-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 32px 24px 8px; }
.pl-igm-done-title { margin: 0; font-size: max(12px, calc(18 * var(--pl-fz, 1px))); font-weight: 600; line-height: 1.4; color: #1d1d1d; }
.pl-igm-done-body { margin: 8px 0 0; font-size: max(12px, calc(14 * var(--pl-fz, 1px))); line-height: 1.68; color: #333; }
.pl-igm-done-pre { margin: 16px 0 0; padding: 14px; background: #f2f2f2; font-family: inherit; font-size: 12px; line-height: 1.65; color: #333; white-space: pre-wrap; overflow-wrap: anywhere; }
.pl-igm-done-back { flex: none; display: block; width: calc(100% - 48px); height: 46px; margin: 12px 24px 20px; border: 1px solid #1d1d1d !important; font-size: max(12px, calc(14 * var(--pl-fz, 1px))); font-weight: 600; color: #1d1d1d; }

/* ---------- 모바일(≤959) — 전체 화면 한 장. 글 칸(.pl-igm-panel)을 풀어(display: contents) 인스타 앱 순서로 다시 놓음 ---------- */
@media (max-width: 959px) {
  .pl-igm { display: block; }
  .pl-igm-scrim { display: none; }
  .pl-igm-box { position: fixed; inset: 0; display: flex; flex-direction: column; height: auto; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; overflow-anchor: none; }   /* anchor none — 앞뒤 게시물을 바꿔 끼울 때 브라우저가 스크롤 값을 멋대로 옮기지 않게(news-ig.js seq*) */
  .pl-igm-panel { display: contents; }
  .pl-igm-head { display: none; }   /* 머리 줄(로고 · 이전 · 다음 · 닫기) 없음(2026-11-20 사용자 "창에서는 상단 바 제거 · 좌측 상단에 뒤로가기 버튼") — 아래 .pl-igm-back 하나 */
  /* 뒤로 = PC 양옆 화살표와 같은 흰 원(32 · 화살표 18 · 그림자), 왼쪽 위에 떠 있음. 누르는 칸은 44(::before). [소개 | 가격] 줄(47)이 있으면 그 줄 가운데 */
  .pl-igm-back { position: fixed; top: calc(8px + env(safe-area-inset-top, 0px)); left: 12px; z-index: 4; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px;
    border-radius: 50%; background: rgba(255, 255, 255, .92); color: #1d1d1d; box-shadow: 0 1px 6px rgba(0, 0, 0, .22); }
  .pl-igm-back::before { content: ""; position: absolute; inset: -6px; }
  .pl-igm .pl-igm-back svg { width: 18px; height: 18px; stroke-width: 2; }
  .pl-igm-back:focus-visible { outline: 2px solid #1d1d1d; outline-offset: 2px; }
  .pl-igm.is-dm .pl-igm-back { display: none; }
  .pl-igm-brand { margin-right: 8px; }
  .pl-igm-logo { max-height: 12px; }   /* 360 폭에서는 칸이 모자라 비율 그대로 조금 더 줄어듦 */
  /* 게시물 이전 · 다음 = 머리 로고 오른쪽(2026-11-16 — 사진 양옆에 두면 여러 장 넘김과 헷갈림: 사진 칸 = 장, 머리 = 게시물). 끝 게시물에서 숨어도 자리는 그대로 */
  .pl-igm-pager { display: grid; grid-template-columns: 44px 44px; flex: none; }
  .pl-igm-prev { grid-column: 1; }
  .pl-igm-next { grid-column: 2; }
  .pl-igm-x { position: static; flex: none; width: 44px; height: 44px; color: #1d1d1d; }   /* 360 폭에서도 44 그대로(줄어드는 건 로고만) */
  .pl-igm-x svg { width: 24px; height: 24px; }
  .pl-igm-x:focus-visible { outline-color: #1d1d1d; }
  /* 사진 최대 높이 = 화면 − 190(단추 · 좋아요 줄이 첫 화면에), 가로로 눕힌 폰처럼 낮은 화면(≤560)은 머리 아래 거의 전부(화면 − 56, 370 까지) */
  /* min-height 0 — 없으면 aspect-ratio 상자가 안의 사진 높이만큼 늘어나(예: 4:5 사진인데 칸이 3:4 높이) 사진 위아래에 빈칸(2026-11-17 사용자 "모바일에서 이미지 위아래로 빈 공간") */
  /* 모바일 사진 칸 = 늘 3:4(2026-11-17 사용자 "3:4로 맞추고" — 게시물마다 비율이 달라 칸 높이가 바뀌던 것). 세로 휴대폰은 높이 상한 없이 3:4 그대로,
     가로로 눕힌 폰만 아래 규칙으로 높이 상한(화면 − 56, 370 까지) */
  .pl-igm-media { order: 2; position: relative; flex: none; width: 100%; height: auto; aspect-ratio: 3 / 4; min-height: 0;
    --igm-mh: max(calc(var(--igm-vh) - 190px), min(calc(var(--igm-vh) - 56px), 370px)); }
  /* 최대 높이에 걸리면(가로로 눕힌 폰) 사진 칸이 넓어짐 — 장 틀은 게시물 비율 그대로 가운데(양옆 #111), 영상 장 cover 잘림도 PC 처럼 6% 남짓(검토 2026-11-16) */
  /* 세로 휴대폰 = 사진 칸 폭을 늘 꽉(2026-11-17 사용자 "모바일 사진 좌우에 블랙" — 화면이 짧아 높이가 최대에 걸리면 틀이 좁아져 양옆 #111 이 보였음). 사진은 cover 라 조금 잘림 */
  .pl-igm-frame { width: 100%; margin: 0 auto; }
  .pl-igm-frame video { object-fit: cover; }   /* 3:4 칸을 꽉(릴스 9:16 은 위아래가 잘림 — 인스타그램 피드처럼) */
  .pl-igm-frame img { object-fit: cover; }   /* 사진 = 칸을 꽉(비율이 조금 다른 장도 빈칸 없이 — 2026-11-17 사용자). 비율이 많이 다른 글 · 시술 사진(.is-fit, 가로 사진)만 맞춤 */
  /* 여러 장 — 사진 칸 안에서 가로로 밀기(화면 전체는 그대로 위아래 스크롤) */
  /* overscroll = 가로 contain · 세로 auto — 사진 위에서 위아래로 끌어도 화면(글 · 좋아요 · 날짜)이 스크롤되게(검토 2026-11-16: PC 규칙의 양방향 contain 이 막았음) */
  .pl-igm-frame.is-multi { display: flex; overflow-x: auto; overflow-y: hidden; overscroll-behavior: contain auto; scroll-snap-type: x mandatory; touch-action: pan-x pan-y; }
  .pl-igm-frame.is-multi .pl-igm-slide { flex: 0 0 100%; }
  .pl-igm-dots { display: none; }
  /* 장 점 = 사진 바로 아래 한 줄(2026-11-17 사용자: 사진 → 슬라이드 점 → 아이콘) — 아이콘 줄(.pl-igm-acts) 안에서 맨 앞 줄로 감싸 넘김 */
  .pl-igm-acts { position: relative; flex-wrap: wrap; }
  .pl-igm-dots-h { order: -1; flex: 0 0 100%; display: flex; justify-content: center; gap: 4px; padding: 10px 0 2px; pointer-events: none; }
  .pl-igm-dots-h span { display: block; width: 6px; height: 6px; border-radius: 50%; background: #999; opacity: .7; transition: opacity .2s ease, background-color .2s ease; }   /* 밝은 곳에서도 보이게(.45 → .7) */
  .pl-igm-dots-h span.is-on { background: #1d1d1d; opacity: 1; }
  .pl-igm-acts { order: 3; gap: 0; padding: 4px 10px 0; border-top: 0; }   /* 좌우 10 = 아이콘(28, 칸 폭 40) 왼쪽 끝이 글과 같은 16(2026-11-17 · 11-19) */
  .pl-igm-act { width: 40px; height: 44px; }   /* 아이콘 사이 16 → 8 → 12(2026-11-19 사용자 "더 좁혀" → "조금만 더 벌려") — 누르는 칸 폭 40, 높이 44 그대로(아이콘은 PC 와 같은 28) */
  .pl-igm-body.is-more { -webkit-mask-image: none; mask-image: none; }   /* 모바일 글은 화면 전체와 함께 스크롤(칸 스크롤 없음) */
  .pl-igm-likes { order: 4; padding: 0 16px; }
  .pl-igm-body { order: 5; flex: none; min-height: 0; overflow: visible; padding: 4px 16px 4px; }   /* 위 8 → 16(2026-11-17 사용자) → 4(2026-11-19 사용자 "피드 모바일 .pl-igm-body 상단 패딩 4px") */
  .pl-igm-date { order: 6; padding: 4px 16px calc(32px + env(safe-area-inset-bottom)); }
  .pl-igm .pl-igm-nav { position: static; width: 44px; height: 44px; border-radius: 0; background: none; box-shadow: none; color: #1d1d1d; }   /* 머리 안 두 칸(누르는 칸 44) — PC 의 흰 원은 없음 */
  .pl-igm .pl-igm-nav svg { width: 22px; height: 22px; stroke-width: 1.6; }
  .pl-igm-watch { left: 12px; bottom: 12px; min-height: 44px; padding: 0 14px; }
  .pl-igm-nav:focus-visible { outline-color: #1d1d1d; }
  .pl-igm-toast { bottom: calc(24px + env(safe-area-inset-bottom)); }
  /* DM — 아래에서 올라오는 전체 화면. 입력 글자 16(아이폰이 확대하지 않게) */
  .pl-igm-dm { position: fixed; inset: 0; z-index: 5; animation: pl-igm-up .28s ease-out; }
  .pl-igm-dm-scroll { padding: 0 16px 8px; }
  .pl-igm-dm-ctx { margin: 0 -16px 18px; padding: 12px 16px; }
  .pl-igm-f input, .pl-igm-f textarea { font-size: max(12px, calc(16 * var(--pl-fz, 1px))); }
  .pl-igm-dm-foot { padding: 10px 16px calc(14px + env(safe-area-inset-bottom)); }
  .pl-igm-done-scroll { padding: 28px 16px 8px; }
  .pl-igm-done-back { width: calc(100% - 32px); margin: 12px 16px 20px; }
  /* 2026-11-20 사용자 "모바일에서 아래로 내리면 다음 게시물 · 첫 장이나 글 쪽을 오른쪽으로 밀면 이전 화면 — 인스타그램처럼"(news-ig.js seq* · back*) */
  /* 가로 밀기를 스크립트가 받는 곳(오른쪽 = 이전 화면) — 글 · 단추 · 날짜 · 앞뒤 게시물 · 한 장짜리 사진 · 여러 장의 첫 장.
     창 전체(.pl-igm-box)에 걸면 조상 값이 겹쳐 둘째 장부터의 사진 가로 밀기까지 막혀(점검 2026-11-20) 칸마다 줌 */
  .pl-igm-head, .pl-igm-body, .pl-igm-acts, .pl-igm-likes, .pl-igm-date, .pl-igm-nextpv, .pl-igm-prevpost,
  .pl-igm-frame:not(.is-multi), .pl-igm-frame.is-multi.is-first { touch-action: pan-y pinch-zoom; }
  .pl-igm-nextpv { display: block; order: 7; flex: none; min-height: calc(var(--igm-vh) + 24px); cursor: pointer; }   /* 날짜 바로 아래 다음 게시물 그림(경계선 · 제목 줄 없음). 화면 높이 이상 — 그림 윗선이 머리 아래까지 올라올 수 있게(그 순간 다음 게시물로) */
  .pl-igm-nextpv-media { position: relative; width: 100%; aspect-ratio: 3 / 4; overflow: hidden; background: #111 center / cover no-repeat; }   /* 바탕 = 칸 사진(받아 둔 것 — 창 첫 장 사진을 받는 동안), 그 위에 창 첫 장 사진 · 첫 장 위 글 */
  .pl-igm-nextpv-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
  .pl-igm-prevpost { display: block; order: 0; flex: none; pointer-events: none; }   /* 지나온 게시물 복사본들 — 맨 위부터 쌓임(붙인 차례), 지금 게시물([소개 | 가격] · 사진) 바로 위 */
  .pl-igm-prevpost-seg, .pl-igm-nextpv-seg { background: #fff; }
  .pl-igm-feedend { display: block; order: 7; flex: none; height: calc(var(--igm-vh) * .4); }   /* 마지막 게시물 아래 빈 자리(news-ig.js seqPvOn) */
  .pl-igm .pl-igm-nextpv .pl-igm-ovl, .pl-igm .pl-igm-nextpv .pl-igm-ovl * { pointer-events: none !important; }
  /* 글 접기(news-ig.js clipBody — 2026-11-20 사용자 "인스타처럼 일부만 노출 · 더보기") — 높이는 스크립트가 잼(본문 첫 두 줄까지), '… 더 보기' = 둘째 줄 끝(왼쪽은 흰색으로 흐려짐) */
  .pl-igm-body.is-clip { position: relative; overflow: hidden; overflow: clip; overscroll-behavior: auto; cursor: pointer; }   /* clip = 스크롤 칸이 되지 않음(hidden 은 스크롤 칸이 되어 PC 규칙의 overscroll contain 이 살아나 글 위에서 밀면 창이 안 내려갔음) — 옛 브라우저는 hidden + auto */
  .pl-igm .pl-igm-more { position: absolute; right: 16px; z-index: 1; padding: 0 0 0 44px; background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff 36px); color: #686868; font-weight: 400; letter-spacing: 0; white-space: nowrap; cursor: pointer; }
  .pl-igm .pl-igm-more:focus-visible { outline: 2px solid #1d1d1d; outline-offset: 0; }   /* 미리보기 첫 장 위 글의 링크는 눌리지 않음(home-feed.css 의 pointer-events: auto 보다 우선) — 누르면 늘 다음 게시물로 */   /* [소개 | 가격] 줄 자리(높이만 — 바꿔 끼울 때 높이가 같게) */
  .pl-igm-prevpost-ph { background: #f2f2f2; }
  .pl-igm.is-price .pl-igm-nextpv, .pl-igm.is-price .pl-igm-prevpost, .pl-igm.is-price .pl-igm-feedend { display: none; }
  .pl-igm.is-backdrag .pl-igm-box { will-change: transform; box-shadow: -8px 0 24px rgba(0, 0, 0, .18); }
}
@media (min-width: 960px) { .pl-igm-nextpv, .pl-igm-prevpost, .pl-igm-back, .pl-igm-more, .pl-igm-feedend { display: none; } }   /* PC 에는 없음(모바일만 — 위 모바일 규칙) */
/* 가로로 눕힌 폰(높이가 낮음) — 최대 높이에 걸리면 사진 틀은 게시물 비율 그대로 가운데(양옆 #111 — 넓은 칸에 cover 로 크게 잘리지 않게) */
@media (max-width: 959px) and (orientation: landscape) {
  .pl-igm-media { max-height: var(--igm-mh); }
  .pl-igm-frame { width: min(100%, calc(var(--igm-mh) * 0.75)); }
  /* 다음 게시물 미리 그림도 같은 높이 상한 · 가운데 틀(창 사진 칸과 같게 — 넘어갈 때 높이가 같게, 검토 2026-11-20) */
  .pl-igm-nextpv-media { --igm-mh: max(calc(var(--igm-vh) - 190px), min(calc(var(--igm-vh) - 56px), 370px)); max-height: var(--igm-mh); background-color: #111; background-image: none !important; }   /* 칸 사진 바탕은 빼고 양옆 #111(창과 같게) */
  .pl-igm-nextpv-media img { width: min(100%, calc(var(--igm-mh) * 0.75)); margin: 0 auto; }
}
@keyframes pl-igm-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .pl-igm { transition: none; }
  .pl-igm-dot::before, .pl-igm-dots-h span { transition: none; }
  .pl-igm-like.is-pop svg, .pl-igm-dm { animation: none !important; }
}
