/* 그림 위 글자 층 — 바탕 그림(글자를 지운 그림) 위에 원래 자리·색·굵기로 글자를 얹는다.
   글자 크기는 층 폭 대비(cqw)라 그림이 줄면 함께 준다. 자리는 그림 픽셀 대비 % 다. */
._img_box:has(> .imgtx) { position: relative; }
.imgtx {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(100%, calc(var(--w) * 1px)); aspect-ratio: var(--ar);
  container-type: inline-size; direction: ltr; pointer-events: none;
  visibility: hidden; margin: 0; padding: 0; line-height: normal; text-align: left; display: block;
}
.imgtx > .imgtx-cover { position: absolute; display: none; pointer-events: none; }
.imgtx > .imgtx-t[data-i18n-removed] + .imgtx-cover, .imgtx > .imgtx-cover.is-on { display: block; }
img:not([style*="visibility:hidden"]):not([style*="visibility: hidden"]) + .imgtx { visibility: visible; }
.imgtx > .imgtx-t {
  position: absolute; display: flex; align-items: center; box-sizing: border-box;
  margin: 0 !important; padding: 0 !important; border: 0; background: none;
  font-family: 'Pretendard', 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans', sans-serif !important;
  font-size: calc(var(--fs) * 1cqw * var(--fit, 1)) !important;
  line-height: var(--lh) !important; letter-spacing: 0 !important;
  white-space: normal; word-break: normal; overflow-wrap: normal;
  direction: ltr !important; unicode-bidi: plaintext !important; text-shadow: none; overflow: visible;
}
html[lang^="ko"] .imgtx > .imgtx-t { white-space: nowrap; word-break: keep-all; letter-spacing: var(--ls, 0) !important; }
.imgtx > .imgtx-t.imgtx-serif { font-family: 'Nanum Myeongjo', 'AppleMyungjo', 'Apple Myungjo', 'Batang', 'Noto Serif KR', 'Noto Serif CJK KR', 'Source Han Serif K', 'Times New Roman', serif !important; }
.imgtx > .imgtx-t .imgtx-em { color: var(--em, inherit); font: inherit; }
/* 외국어 화면 전용 글자 폭(fw) — 번역이 길어 그림 도형(원 등) 밖으로 나가는 칸을 한국어 자리는 그대로 두고 좁힌다 */
html:not([lang^="ko"]) .imgtx > .imgtx-t.imgtx-fw { left: var(--fl) !important; width: var(--fw) !important; }
/* 한국어 화면 — 원래 그림(글자가 그림에 들어 있음)을 보여 주고, 층은 화면에서만 숨겨 읽기 도구·검색용 글자로 남긴다 */
.imgtx.imgtx-a11y {
  position: absolute !important; left: 0 !important; top: 0 !important; transform: none !important;
  width: 1px !important; height: 1px !important; aspect-ratio: auto !important;
  overflow: hidden !important; clip-path: inset(50%) !important; white-space: nowrap;
  visibility: visible !important; margin: -1px !important; padding: 0 !important; border: 0 !important;
}
