/* 외국어 지면에서만 싣는다(생성기 build.py) — 한국어 지면용 keep-all·break-all 이 라틴·키릴 낱말을 중간에서 끊지 않게 */
html:not([lang^="ko"]) body, html:not([lang^="ko"]) body * { word-break: normal !important; overflow-wrap: break-word; }
html[lang^="ja"] body *, html[lang^="zh"] body *, html[lang^="th"] body * { line-break: auto; }

/* 서브 탭줄 — 칸 폭이 고정인 넓은 화면(1024px 이상)에서 긴 외국어 라벨이 칸을 넘지 않게 두 줄로 접는다. 1023px 이하는 글자 폭을 따르는 밀리는 줄이라 건드리지 않는다 */
@media all and (min-width: 1024px) {
  html:not([lang^="ko"]) body :is(#introduce, #introduce2, #introduce3, #oneday, #digital, #ddc, #mise, #child, #smart, #news, #tips, #youtube, #kin) > .head > div > ul > li > button > a {
    box-sizing: border-box;
    padding: 0 12px;
    font-size: 16px;
    line-height: 1.25;
    letter-spacing: 0;
    text-align: center;
    white-space: normal;
    overflow-wrap: break-word;
  }
}

/* 홈 진료시간·오시는 길 — Directions 같은 라벨이 고정 폭(129px)에 막혀 낱말 중간에서 끊기지 않게. 라벨 폭은 글자를 따른다 */
@media all and (min-width: 768px) {
  html:not([lang^="ko"]) body #wrap #section10 .container .road > div > h4 {
    flex: 0 0 auto;
    width: max-content;
    max-width: 45%;
    white-space: normal;
    overflow-wrap: normal;
  }
}

/* 홈 예약 및 상담 번호 — 긴 라벨 옆에서 번호가 두 줄로 꺾이고, 원래 행간(16px)이 글자(36px)보다 작아 두 줄이 겹친다.
   번호는 한 줄로 두고 라벨이 접히게 한다. 혹시 접혀도 줄이 겹치지 않게 행간을 글자 크기에 맞춘다 */
@media all and (min-width: 768px) {
  html:not([lang^="ko"]) body #wrap #section10 .container .tel { gap: 32px; }
  html:not([lang^="ko"]) body #wrap #section10 .container .tel > h4 { flex: 0 1 auto; min-width: 0; }
  html:not([lang^="ko"]) body #wrap #section10 .container .tel > h3 {
    flex: 0 0 auto;
    white-space: nowrap;
    line-height: 1.2;
  }
  /* 진료시간표 줄 — 글 칸이 표보다 좁은 고정 폭(526px)이라 긴 외국어 요일·점심 문구가 표 선 밖으로 나간다.
     줄 폭을 표에 맞추고, 시간은 한 줄로 두고, 긴 요일 라벨과 점심 문구는 접히게 한다 */
  html:not([lang^="ko"]) body #wrap #section10 .container .time ul li { height: auto; min-height: 69px; display: flex; align-items: center; }
  html:not([lang^="ko"]) body #wrap #section10 .container .time ul li h6 {
    width: 100%;
    gap: 24px;
    white-space: normal;
    line-height: 1.3;
    padding: 12px 0;
  }
  html:not([lang^="ko"]) body #wrap #section10 .container .time ul li h6 span { flex: 0 0 auto; white-space: nowrap; line-height: 1.3; }
  html:not([lang^="ko"]) body #wrap #section10 .container .time ul li:nth-of-type(4) h6 span {
    flex: 0 1 338px;
    min-width: 0;
    white-space: normal;
  }
}

/* 홈 진료시간표 — 휴대폰에서 외국어 시간 문구(09:30 AM ~ 09:00 PM 등)는 한국어보다 길어 26px 로는 칸을 넘어 줄이 꺾인다.
   한 줄에 들어가게 글자를 줄이고, 줄 높이도 함께 줄여 표가 길게 늘어지지 않게 한다.
   시간 세 줄은 한 줄로 두고, 문장인 점심 줄은 길면 접히되 두 줄이 서로 붙지 않게 행간을 글자에 맞춘다 */
@media all and (max-width: 767px) {
  html:not([lang^="ko"]) body #wrap #section10 .container .time ul li h6 span {
    font-size: 18px;
    line-height: 56px;
    white-space: nowrap;
  }
  html:not([lang^="ko"]) body #wrap #section10 .container .time ul li:nth-of-type(4) h6 span {
    white-space: normal;
    line-height: 1.35;
    padding: 16px 0;
    text-align: end;
  }
}

/* 푸터 진료시간 — 요일 라벨 칸이 53px 고정이라 Saturday 같은 라벨이 끊기거나 옆 글과 겹친다. 라벨 칸을 가장 긴 라벨에 맞춰 네 줄이 함께 정렬되게 */
html:not([lang^="ko"]) footer .container .timeAndNumber ul {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  column-gap: 27px;
  row-gap: 19px;
}
html:not([lang^="ko"]) footer .container .timeAndNumber ul li,
html:not([lang^="ko"]) footer .container .timeAndNumber ul li p {
  display: contents;
}
html:not([lang^="ko"]) footer .container .timeAndNumber ul li span {
  width: auto;
  white-space: nowrap;
}

/* 홈 의료진 이름·분야 — 휴대폰은 다섯 칸(칸 폭 약 78px)이라 긴 이름·분야명이 옆 칸과 겹치지 않게 칸 안에서 접는다.
   칸 순서는 사진 속 원장님 순서와 같아야 하므로 오른쪽→왼쪽 언어에서도 왼쪽부터 놓는다 */
@media all and (max-width: 767px) {
  html:not([lang^="ko"]) body #wrap #section05 .container .m-doclist {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-template-rows: auto auto;
    direction: ltr;
  }
  html:not([lang^="ko"]) body #wrap #section05 .container .m-doclist li {
    display: grid;
    grid-row: span 2;
    grid-template-rows: subgrid;
    row-gap: 4px;
    align-content: start;
    align-items: start;
    min-width: 0;
    justify-content: flex-start;
    padding: 0 1px;
    box-sizing: border-box;
  }
  html[dir="rtl"] body #wrap #section05 .container .m-doclist {
    margin-left: 0 !important;
    margin-right: calc(50% - 50vw) !important;
  }
  html:not([lang="ar"]) body #wrap #section05 .container .m-doclist li { direction: ltr; }
  html[lang="ar"] body #wrap #section05 .container .m-doclist li { direction: rtl; }
  html:not([lang^="ko"]) body #wrap #section05 .container .m-doclist em {
    display: block;
    width: 100%;
    white-space: normal;
    overflow-wrap: break-word;
    hyphens: manual;
    width: calc(100% + 8px);
    margin: 0 -4px;
    text-align: center;
    align-self: end;
    font-size: 10px;
    line-height: 1.25;
    letter-spacing: 0;
  }
  html:not([lang^="ko"]) body #wrap #section05 .container .m-doclist span {
    width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
    font-size: 11px;
  }
  html:not([lang^="ko"]) body #wrap #section05 .container .m-doclist b {
    max-width: 100%;
    font-size: 13px;
    line-height: 1.25;
    overflow-wrap: anywhere;
    text-align: center;
  }
}

/* 알약(둥근 태그) — 번역 글이 한국어보다 길어 고정 폭·고정 높이를 넘지 않게. 폭·높이는 글자를 따르되 원래 크기가 최소값이다 */
html:not([lang^="ko"]) body #wrap #section03 .container .position-relative .position-absolute label {
  width: auto;
  min-width: 280px;
  max-width: 100%;
  height: auto;
  min-height: 41px;
  padding: 6px 22px;
  box-sizing: border-box;
  text-align: center;
}
html:not([lang^="ko"]) body #wrap #section03 .container .position-relative .position-absolute div {
  flex-wrap: wrap;
}
html:not([lang^="ko"]) body #ddc #section08 .container .boxes .box {
  height: auto;
  min-height: 56px;
  padding: 8px 24px;
  line-height: 1.35;
  text-align: center;
  box-sizing: border-box;
}
html:not([lang^="ko"]) body #ddc #section08 .container .boxes {
  flex-wrap: wrap;
}
/* 세미나·수상 사진 아래 연월 칸 — 옆 글이 길어도 연월이 눌려 글자가 칸 밖으로 나가지 않게 */
html:not([lang^="ko"]) body .swiper-slide > .d-flex > span {
  flex: 0 0 auto;
  white-space: nowrap;
  margin-inline-start: 8px;
}
@media all and (max-width: 767px) {
  /* 지면 안 탭 버튼 — 한 줄 고정이라 긴 번역 라벨이 옆 칸으로 넘친다. 칸 안에서 접는다 */
  html:not([lang^="ko"]) body .tab-buttons .tab-btn,
  html:not([lang^="ko"]) body ul.equipment-tabs .tab-btn,
  html:not([lang^="ko"]) body #oneday #section08 .equipment-tabs .tab-btn,
  html:not([lang^="ko"]) body #digital #section08 .tab-buttons .tab-btn span {
    white-space: normal !important;
    overflow-wrap: anywhere;
    line-height: 1.3 !important;
  }
  html:not([lang^="ko"]) body .tab-buttons .tab-btn,
  html:not([lang^="ko"]) body ul.equipment-tabs .tab-btn {
    height: auto !important;
    padding: 8px 10px !important;
    min-width: 0 !important;
  }
}

/* 홈 진료 안내 네 칸 단추(Sedation Care 등) — 195×59 고정이라 번역 글이 두 줄로 쌓여 단추 밖으로 나간다. 폭·높이는 글자를 따르되 원래 크기가 최소값이다 */
html:not([lang^="ko"]) body #wrap #section03 .boxes .box > a div {
  width: max-content;
  min-width: 195px;
  max-width: calc(100% - 24px);
  height: auto;
  min-height: 59px;
  padding: 6px 18px;
  box-sizing: border-box;
  gap: 14px !important;
}
html:not([lang^="ko"]) body #wrap #section03 .boxes .box > a div p {
  font-size: 20px;
  line-height: 1.3 !important;
  text-align: center;
  white-space: normal !important;
  margin: 0;
}
@media all and (max-width: 1023px) {
  html:not([lang^="ko"]) body #wrap #section03 .boxes .box > a div {
    width: calc(100% - 24px);
    min-width: 0;
    max-width: 195px;
    min-height: 44px;
    height: auto;
    padding: 4px 10px;
    gap: 6px !important;
  }
  html:not([lang^="ko"]) body #wrap #section03 .boxes .box > a div p {
    font-size: 14px !important;
    line-height: 1.25 !important;
  }
}

/* 홈 의료진 소개 머리줄(제목 + «의사 소개» 단추) — 제목이 길어지면 213px 고정 높이·195px 단추가 눌려 글자가 겹친다 */
@media all and (min-width: 768px) {
  html:not([lang^="ko"]) body #wrap #section05 .container > div:first-of-type {
    height: auto;
    min-height: 213px;
    max-width: 100%;
  }
  html:not([lang^="ko"]) body #wrap #section05 .container > div:first-of-type h1 {
    font-size: 40px;
    line-height: 1.25;
    min-width: 0;
  }
  html:not([lang^="ko"]) body #wrap #section05 .container > div:first-of-type button {
    flex: 0 0 auto;
    width: auto;
    min-width: 195px;
  }
  html:not([lang^="ko"]) body #wrap #section05 .container > div:first-of-type button a {
    white-space: nowrap;
    gap: 14px;
    padding: 0 20px;
  }
}

/* 홈 의료진 머리줄 — 휴대폰에서도 높이 213px 고정이라 제목이 세 줄 이상이면 단추가 아래 설명 글을 덮는다. 높이를 내용이 정하게 */
@media all and (max-width: 767px) {
  html:not([lang^="ko"]) body #wrap #section05 .container > div:first-of-type {
    height: auto !important;
    min-height: 0 !important;
  }
}

/* 오시는 길 전화 단추 — 국제 형식 번호(+82-…)가 한국식 번호보다 길어 고정 폭 단추 밖으로 나가지 않게 */
html:not([lang^="ko"]) body #introduce3 #section02 .container .map ul li button:has(a[href^="tel:"]) {
  width: auto !important;
  min-width: 0 !important;
  padding: 0 clamp(14px, 2vw, 28px);
  box-sizing: border-box;
  flex: 0 0 auto;
}
html:not([lang^="ko"]) body #introduce3 #section02 .container .map ul li button:has(a[href^="tel:"]) a {
  gap: 12px !important;
  white-space: nowrap;
}

/* 수면진료 지면(PC) — 번역 제목이 한국어보다 길어 고정 폭·고정 줄높이에서 옆 글·숫자와 겹치던 것 */
@media all and (min-width: 1024px) {
  html:not([lang^="ko"]) body #sleep #section01 .box {
    width: 100%;
    max-width: 1100px;
    height: auto;
    gap: 40px;
    box-sizing: border-box;
    padding: 0 24px;
  }
  html:not([lang^="ko"]) body #sleep #section01 .box .text {
    width: auto;
    height: auto;
    flex: 1 1 0;
    min-width: 0;
  }
  html:not([lang^="ko"]) body #sleep #section01 .box .text h2 {
    font-size: 40px;
    line-height: 1.3;
  }
  html:not([lang^="ko"]) body #sleep #section01 .box .text h2 span {
    white-space: normal;
  }
  html:not([lang^="ko"]) body #sleep #section01 .point {
    flex: 0 0 auto;
  }
  html:not([lang^="ko"]) body #sleep #section02 .container h1 {
    font-size: 46px;
    line-height: 1.3;
  }
  html:not([lang^="ko"]) body #sleep #section02 .container .tabs {
    height: auto;
    gap: 80px;
    margin-top: 32px;
  }
  html:not([lang^="ko"]) body #sleep #section07 h2 {
    line-height: 1.3;
    padding: 0 24px;
  }
  html:not([lang^="ko"]) body #sleep #section07 h2 + h2 {
    line-height: 1.15;
    margin-top: 12px;
    flex-wrap: wrap;
  }
  html:not([lang^="ko"]) body #sleep #section07 .tab-buttons {
    width: 100%;
    max-width: 1430px;
    flex-wrap: wrap;
    gap: 12px;
    padding: 0 24px;
    box-sizing: border-box;
  }
  html:not([lang^="ko"]) body #sleep #section07 .tab-button {
    height: auto;
    min-height: 70px;
    padding: 8px 14px;
    box-sizing: border-box;
    font-size: 22px;
    line-height: 1.3;
    text-align: center;
  }
}

/* 의료진 소개 지면 이름 탭 — 277×70 고정 칸에 번역된 «이름, 직함»이 들어가지 않아 칸 밖으로 나가던 것 */
@media all and (min-width: 1024px) {
  html:not([lang^="ko"]) body #introduce2 #section01 .container ul {
    width: 100%;
    max-width: 1430px;
    align-items: stretch;
  }
  html:not([lang^="ko"]) body #introduce2 #section01 .container ul li {
    width: auto;
    height: auto;
    flex: 1 1 0;
    min-width: 0;
    min-height: 70px;
  }
  html:not([lang^="ko"]) body #introduce2 #section01 .container ul li button,
  html:not([lang^="ko"]) body #introduce2 #section01 .container ul li.active button {
    min-height: 70px;
    padding: 6px 10px;
    box-sizing: border-box;
    font-size: 20px;
    letter-spacing: 0;
    line-height: 1.25;
    white-space: normal;
    overflow-wrap: break-word;
  }
}

/* 홈 수면진료 소개 제목 — 한 줄 고정(nowrap)이라 번역 제목이 흰 상자 밖으로 나가던 것 */
@media all and (min-width: 1024px) {
  html:not([lang^="ko"]) body #wrap #section03 .container .position-relative .position-absolute {
    width: min(800px, 100%);
    height: auto;
    min-height: 205px;
  }
  html:not([lang^="ko"]) body #wrap #section03 .container .position-relative .position-absolute h1 {
    white-space: normal;
    font-size: 38px;
    line-height: 1.25;
  }
}

/* 시술 소개 지면 — 고정 폭·높이 상자(소개 글·바로가기 단추·탭 단추·카드)에 번역 글이 한국어보다 길어 밖으로 나가거나 아래 요소를 덮던 것.
   크기는 글자를 따르되 원래 크기가 최소값이다 */
@media all and (min-width: 768px) {
  html:not([lang^="ko"]) body #introduce #section03 .container > div:nth-of-type(2) p {
    height: auto;
    margin-bottom: 40px;
  }
  html:not([lang^="ko"]) body #introduce #section03 .container > div:nth-of-type(2) button {
    width: auto;
    min-width: 240px;
    height: auto;
    min-height: 59px;
    padding: 0 22px;
    box-sizing: border-box;
  }
  html:not([lang^="ko"]) body #introduce #section03 .container > div:nth-of-type(2) button a {
    white-space: nowrap;
    gap: 12px;
  }
  html:not([lang^="ko"]) body #introduce #section05 .container .position-relative .position-absolute {
    width: min(800px, 100%);
    height: auto;
    min-height: 205px;
  }
  html:not([lang^="ko"]) body #introduce #section05 .container .position-relative .position-absolute h1 {
    white-space: normal;
    font-size: 38px;
    line-height: 1.25;
  }
  html:not([lang^="ko"]) body #digital :is(#section01, #section02, #section03, #section04, #section05, #section06, #section07, #section08) .tab-btn {
    height: auto;
    min-height: 69px;
    padding: 8px 14px;
    box-sizing: border-box;
    font-size: 20px;
    line-height: 1.3;
    white-space: normal;
    overflow-wrap: break-word;
  }
  html:not([lang^="ko"]) body #oneday #section08 .tab-btn {
    width: 100%;
    height: auto;
    min-height: 53px;
    padding: 6px 10px;
    box-sizing: border-box;
    font-size: 18px;
    line-height: 1.25;
    white-space: normal;
    overflow-wrap: break-word;
  }
  html:not([lang^="ko"]) body #oneday #section08 .pagination-btn {
    white-space: normal;
    line-height: 1.3;
    padding: 8px 12px;
    text-overflow: clip;
  }
  html:not([lang^="ko"]) body #child #section02 .container .box {
    height: auto;
    min-height: 200px;
    padding-bottom: 28px;
    box-sizing: border-box;
  }
}

@media all and (min-width: 768px) {
  html:not([lang^="ko"]) body #digital #section02 .container .step02 button {
    width: auto;
    min-width: 230px;
    height: auto;
    min-height: 59px;
    padding: 6px 22px;
    box-sizing: border-box;
    line-height: 1.3;
  }
  html:not([lang^="ko"]) body #introduce #section09 .swiper .swiper-slide {
    height: auto;
    min-height: 328px;
  }
  html:not([lang^="ko"]) body #introduce #section09 .swiper .swiper-slide .slide-content {
    height: auto;
  }
  html:not([lang^="ko"]) body #introduce #section09 .swiper .swiper-slide h4 {
    font-size: 26px;
    line-height: 1.3;
    min-width: 0;
  }
  html:not([lang^="ko"]) body #introduce #section09 .swiper .swiper-slide h6 {
    min-width: 0;
    margin-bottom: 24px;
  }
  html:not([lang^="ko"]) body #child #section05 .position-relative {
    height: auto;
    min-height: 660px;
  }
  html:not([lang^="ko"]) body #child #section05 .container p {
    line-height: 1.6;
  }
}

/* 수면 소개 구역 — 영상 아래 단추가 낱말 길이에 맞고, 제목 칸이 글줄 높이를 넘지 않게(1024px 이상) */
@media all and (min-width: 1024px) {
  html:not([lang^="ko"]) body #introduce #section06 .container .videoBox button {
    width: auto;
    min-width: 230px;
    height: auto;
    min-height: 59px;
  }
  html:not([lang^="ko"]) body #introduce #section06 .container .videoBox button a {
    gap: 16px;
    padding: 0 24px;
    line-height: 1.4;
    white-space: nowrap;
  }
  html:not([lang^="ko"]) body #introduce #section06 .position-relative .position-absolute h1 {
    height: auto;
    line-height: 1.3;
    padding-top: 16px;
    padding-bottom: 6px;
  }
  /* 어린이 교정 소개 — 글이 오른쪽 사진 아래로 깔리지 않게 왼쪽 칸 안에서 줄을 바꾼다 */
  html:not([lang^="ko"]) body #child #section05 .container p {
    max-width: 620px;
  }
  /* 어린이 교정 소개(아랍어) — 오른쪽에서 시작하는 글이 사진 칸으로 깔리지 않게 사진 왼쪽 칸 폭 안에 두고 칸의 왼쪽 끝에 붙인다 */
  html[lang="ar"] body #child #section05 .container :is(h2, p) {
    max-width: calc(33.8vw - 16px);
    margin-left: 0;
    margin-right: auto;
  }
}

/* 보철 마감 원 그림 — 그림에 z-index 2 가 붙어 있어 글자 층(1)이 그림 뒤로 가려지므로 이 글자 층만 그림 위로 올린다 */
html:not([lang^="ko"]) .ss-imgtx[data-imgtx="smartSect02Img02"] {
  z-index: 3;
}

/* 충치 치료 알약 라벨(보존치료 그림) — 한 줄짜리 알약이라 긴 낱말도 두 줄로 접지 않고 한 줄 그대로 글자만 줄여 알약 안에 넣는다 */
html:not([lang^="ko"]) .ss-imgtx[data-imgtx="smartSect05Img03"] > .ss-imgtx-t {
  white-space: nowrap;
}

/* 교정 3D 진단 제목 — 두 줄로 접힐 때 위아래 줄이 겹치지 않게 줄 높이를 글자 크기에 맞춘다 */
html:not([lang^="ko"]) body #ddc #section05 .container h2 {
  line-height: 1.25;
}

/* 교정 진행 단계(일본어) — 768~1023px 에서 칸이 좁아 이웃 단계 글과 맞닿지 않게 글자를 조금 줄이고 칸 안에서 접는다 */
@media all and (min-width: 768px) and (max-width: 1023px) {
  html:lang(ja) body #ddc #section02 .title > .ss-tl .ss-tl-x {
    min-width: 0;
    max-width: 100%;
    font-size: max(11px, calc(var(--u) * 17));
    overflow-wrap: anywhere;
  }
}

/* 위생 인증 안내 띠 — 글이 길어 두 줄이 돼도 둥근 띠 안에 들어오게 높이를 글에 맞춘다 */
@media all and (min-width: 1024px) {
  html:not([lang^="ko"]) body #introduce #section08 .sect08Bottom .box01 aside {
    height: auto;
    min-height: 55px;
  }
}

/* 칸 높이가 고정이라 긴 외국어 글이 두 줄로 접히면 칸 밖으로 나가는 자리 — 높이를 글에 맞춘다(1024px 이상) */
@media all and (min-width: 1024px) {
  html:not([lang^="ko"]) body #introduce #section06 .position-relative .position-absolute h1 {
    white-space: normal;
  }
  html:not([lang^="ko"]) body #smart #section13 > div:nth-of-type(2) .container .boxes .box div {
    height: auto;
    min-height: 66px;
  }
  html:not([lang^="ko"]) body #smart #section13 > div:nth-of-type(2) .container .boxes .box div span {
    align-self: stretch;
    height: auto;
  }
  html:not([lang^="ko"]) body #smart #section13 > div:nth-of-type(2) .container .boxes .box div h6 {
    line-height: 1.3;
    padding: 8px 0;
  }
  html:not([lang^="ko"]) body #smart #section08 > div:nth-of-type(2) .container .box {
    height: auto;
    min-height: 77px;
    padding: 8px 12px;
  }
  html:not([lang^="ko"]) body #smart #section08 > div:nth-of-type(2) .container .box p {
    line-height: 1.4;
  }
}

/* 근관 끝 절제(endodontic01) 제목 — 외국어는 두 줄로 접혀 줄간격 40px(글자 50px)에서 위아래 줄이 겹친다 */
html:not([lang^="ko"]) body #mise #section12 .container h2 {
  line-height: 1.25;
}
/* 장비 소개 상세 버튼 — 외국어 글자가 버튼 밖으로 나가지 않게 간격을 줄인다 */
html:not([lang^="ko"]) body #oneday #section08 button[data-video-src] > a {
  gap: 10px !important;
  white-space: nowrap;
}

/* 충치치료·사랑니발치(care01) 본문 — 외국어는 글이 길어 PC 그림 위 알약 이름표(Inlay·Resin·Crown·학생 질문 칸) 밑으로 깔린다.
   알약 그림은 화면 폭에 비례해 커지므로(왼쪽 끝 ≈ 40.4vw, 첫 이름표 ≈ 57vw) 본문 칸 폭도 화면 폭에 비례해 이름표 앞에서 접는다.
   아랍어(오른쪽에서 시작)는 칸을 왼쪽으로 붙여 알약 그림 쪽으로 밀려가지 않게 한다. 1440px 이상은 기준선에서 이미 겹침이 없어 그대로 둔다 */
@media all and (min-width: 1024px) and (max-width: 1439px) {
  html:not([lang^="ko"]) body #smart :is(#section05, #section06) > .position-relative > .container > div:first-child {
    max-width: calc(44.4vw - 16px);
    margin-left: 0;
    margin-right: auto;
  }
}

/* 사랑니발치(care01 section06) 본문 — 한국어는 아래 치료사례 칸이 흰 바탕을 길게 받쳐 주지만 외국어는 그 칸이 없어 남색 띠가 문단 뒤까지 올라온다.
   본문 칸 밑에 여백을 더해 남색 띠를 문단 아래로 내리고(띠는 칸 맨 아래에 붙어 있어 아래 그림 줄은 그대로 남색 위에 놓인다),
   1440px 이상에서는 오른쪽 이빨 그림 앞에서 문단이 접히게 한다. 그림이 없어지는 1920px 이상은 손대지 않는다 */
@media all and (min-width: 1024px) and (max-width: 1919px) {
  html:not([lang^="ko"]) body #smart #section06 > .position-relative > .container > div:first-child {
    margin-bottom: calc(20vw + 90px);
  }
}
@media all and (min-width: 1440px) and (max-width: 1599px) {
  html:not([lang^="ko"]) body #smart #section06 > .position-relative > .container > div:first-child {
    max-width: 600px;
    margin-left: 0;
    margin-right: auto;
  }
}

/* 소아 교정장치 그림(child01 section06) — 폰 전용 줄맞춤 그림으로 바꿔 끼우는 규칙이 한국어 글자가 든 그림을 불러온다.
   외국어는 글자를 지운 바탕 그림에 번역을 얹으므로 바꿔 끼우지 않고 원래 그림을 그대로 둔다 */
html:not([lang^="ko"]) body #child #section06 .container img[src*="childSect06Img"] {
  content: normal !important;
}

/* 네비게이션 임플란트 안내 그림(implant01 section03) — 위 본문용 연파랑 span 색이 그림 번역 글자에도 걸려 밝은 바탕에서 안 읽힌다.
   번역 글자는 자기 칸이 정한 색을 따른다 */
html:not([lang^="ko"]) body #digital #section03 .container .ss-imgtx-t span {
  color: inherit;
}
