/*
  복제본 위에 얹는 모바일 보정층(원본 CSS 는 손대지 않는다 · PC 화면 변화 없음).
  2026-11-17 390px 실측으로 나온 것만 고친다.
*/
@media (max-width: 768px) {
  /* 1. 가로 밀림 — 손대지 않는다. 원본은 body 의 overflow-x:hidden 이 화면(viewport)으로 넘어가 이미 옆으로 안 밀린다.
        html 에 overflow 를 걸면 그 넘김이 끊겨 body 가 스크롤 상자가 되고 쪽 아래 절반이 잘렸다(2026-11-17 실측). */

  /* 2. 메인 01~06 — 글 상자가 절대 위치 + 스크롤 연동 이동이라 사진 · 다음 절 위로 겹쳤다.
        폰에서는 사진 → 글 순서로 쌓는다. 번호(01…)는 사진 모서리에 그대로 붙는다. */
  .sec_list { height: auto !important; padding-bottom: 48px !important; }
  .sec_list .float_wrap { flex-direction: column !important; height: auto !important; }
  .sec_list .img_area { width: 58% !important; height: auto !important; }
  .sec_list.left .img_area { align-self: flex-start; }
  .sec_list.right .img_area { align-self: flex-end; }
  .sec_list .text_area {
    position: relative !important; inset: auto !important; transform: none !important;
    width: auto !important; height: auto !important; margin: 28px 24px 0 !important; z-index: 3;
  }
  .sec_list .text_area .button { margin-top: 20px; }

  /* 3. 글 줄배열 — 한글은 이미 낱말 단위(keep-all). 마지막 줄에 한두 낱말만 남는 것을 막는다. */
  p, li, dd, td, .info, .txt { text-wrap: pretty; }
  h1, h2, h3, h4, .title, .sub_title h2 { text-wrap: balance; }

  /* 4. 전후사진 게시판 분류 탭 — 화면 밖으로 넘친 「리프팅 · 기타수술」이 안 보였다 → 두 줄로 */
  #bo_navi { overflow: visible !important; width: auto !important; }
  #bo_navi ul { display: flex !important; flex-wrap: wrap !important; justify-content: center; gap: 8px 6px; width: auto !important; }
  #bo_navi li { margin: 0 !important; }

  /* 5. 맨 아래 사업자 정보가 떠 있는 상담 단추에 가렸다 → 바닥에 여유 */
  footer, .footer, #footer { padding-bottom: 96px !important; }
}

/* 6. 확대를 허용하면서(viewport 정리) 생긴 일 — iOS 는 16px 보다 작은 입력칸을 누르면 화면을 확대한다. 상담 입력칸만 16px */
@media (max-width: 768px) {
  input[type="text"], input[type="tel"], textarea, select { font-size: 16px !important; }
}

/* 7. 폰에서 쪽 전체가 옆으로 밀리던 것(390px → 441px, 2026-11-17 실측, 원본도 같음).
   유튜브 절의 사진(.cont-mo)을 transform: scale(1.4) 로 키워 화면 밖으로 나간다 → 그 절에서 가로만 자른다.
   hidden 이 아니라 clip — hidden 은 세로까지 스크롤 상자가 된다. */
@media (max-width: 768px) {
  .cont-slide-wrap.youtube, .cont-slide-wrap.youtube .slide-left-area { overflow-x: clip; }
}

/* 8. 병원 소개 쪽(심포니소개 · 의료진소개)에서 3px 넘침(393px) — 부트스트랩 .row 의 음수 여백이 .container 밖으로 나간다 */
@media (max-width: 768px) {
  .content.sub .container, .section > .container { overflow-x: clip; }
}
