html{
  scrollbar-gutter: stable;
  }

:root{
  --content-w: 1280px;
  --radius: 0px;
  --shadow: 0 18px 45px rgba(0,0,0,0.08);
  --brand: #19a7d8;
  --brand2:#0a9fd0;
 
}

*{ box-sizing: border-box; }
body{
  margin:0;
  font-family: Pretendard, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  color:#111;
  background:#fff;
}
/* img{ display:block; width:100%; height:auto; } */
/* ✅ 이 페이지(인공수정체 섹션) 안에서만 이미지 100% 적용 */
.hero img,
.iol-compare img,
.iol-lineup img{
  display: block;
  width: 100%;
  height: auto;
}


.container{
  width: min(var(--content-w), calc(100% - 40px));
  margin: 0 auto;
}

/* =========================
   HERO
========================= */
.hero{
  padding: 70px 0 60px;
  text-align:center;
}
.hero-kicker{
  margin: 0 0 10px;
  margin-top: 50px;
  font-size: 20px;
  color: var(--brand);
  font-weight: 500;
}
.hero-title{
  margin: 0 0 34px;
  font-size: 42px;
  letter-spacing: -1px;
  font-weight: 700;
  margin-top: 15px;
}



.cap-desc{
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 50px;

}

/* ===== HERO SWIPER ===== */
.hero-swiper{
  overflow: visible;
  padding: 0 300px; /* 양옆 노출 */
}

.hero-swiper .swiper-slide{
  width: 840px;
  opacity: .35;
  transform: scale(.96);
  transition: opacity .25s ease, transform .25s ease;
}
.hero-swiper .swiper-slide-active{
  opacity: 1;
  transform: scale(1);
}

/* dots */
.hero-dots{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:10px;
  margin-top:16px;
}
.hero-dots .dot{
  all: unset;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0,0,0,.25);
  cursor: pointer;
  display: inline-block;
  flex: 0 0 8px;
}
.hero-dots .dot.is-active{
  background: rgba(0,0,0,.9);
}

/* media */
.slide-media{
  height: 460px;
  overflow: hidden;
  background: #fff;
}
.slide-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;              /* 기본은 cover */
  transform: scale(1);
  transition: transform 1.1s ease; /* ✅ PC 줌 "느리게" */
  will-change: transform;
}

/* active는 contain */
.hero-swiper .swiper-slide-active .slide-media img{
  object-fit: contain;
}

/* ✅ PC 줌은 active만 */
.hero-swiper .swiper-slide-active:hover .slide-media img{
  transform: scale(1.08);
}

/* 캡션 active만 */
.hero-swiper .slide-caption{
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.hero-swiper .swiper-slide-active .slide-caption{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* PC 화살표 숨김 */
.hero-swiper .swiper-button-prev,
.hero-swiper .swiper-button-next{ display:none; }

/* ===== HERO MOBILE ===== */
@media (max-width: 900px){
  .hero-swiper{
    overflow: hidden;
    padding: 0 18px;
  }
  .hero-swiper .swiper-slide{ width: 240px !important; }

  .slide-media{ height: 320px; }

  /* 모바일 화살표 */
  .hero-swiper .swiper-button-prev,
  .hero-swiper .swiper-button-next{
    display: flex !important;
    width: auto !important;
    height: auto !important;
    background: none !important;
    border: 0 !important;
    box-shadow: none !important;
    opacity: .60 !important;
    top: 190px !important;
    transform: translateY(-50%) !important;
    z-index: 50 !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .hero-swiper .swiper-button-prev{ left: 20px !important; }
  .hero-swiper .swiper-button-next{ right: 20px !important; }

  .hero-swiper .swiper-button-prev::after,
  .hero-swiper .swiper-button-next::after{ content: "" !important; }

  .hero-swiper .swiper-button-prev::before,
  .hero-swiper .swiper-button-next::before{
    font-size: 40px !important;
    font-weight: 100 !important;
    color: rgba(255,255,255,.92) !important;
    line-height: 1 !important;
    letter-spacing: -2px !important;
    text-shadow: 0 2px 10px rgba(0,0,0,.18) !important;
  }
  .hero-swiper .swiper-button-prev::before{ content: "‹" !important; }
  .hero-swiper .swiper-button-next::before{ content: "›" !important; }

  .hero-swiper .swiper-button-prev:active,
  .hero-swiper .swiper-button-next:active{ opacity: .9 !important; }

  /* ✅ 모바일 줌 완전 차단 */
  .slide-media img{
    transform: none !important;
    transition: none !important;
    will-change: auto !important;
  }
 }

/* =========================
   IOL COMPARE
========================= */
.iol-compare{
  padding: 90px 0 90px;
  text-align: center;
}
.iol-compare .container{
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
}
.iol-title{
  margin: 0 0 18px;
  font-size: 40px;
  letter-spacing: -1px;
  font-weight: 800;
  color: #111;
}
.iol-desc{
  margin: 60px auto 46px;
  max-width: 820px;
  color: #444;
  line-height: 1.6;
  font-size: 18px;
}

/* PC */
.compare-pc{ display:block; }
.compare-m{ display:none; }

.pc-top{
  display: grid;
  grid-template-columns: 1fr 140px 1fr;
  column-gap: 40px;
  align-items: start;
  margin-bottom: 18px;
}
.pc-card{ text-align: center; }
.pc-media{
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  margin-top: 60px;
}
.pc-media img{
  margin-top: 20px;
}

.pc-card-title{
  margin: 22px 0 6px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #111;
}
.pc-card-sub{
  margin: 0;
  font-size: 18px;
  color: #b4b4b4;
}

/* rows */
.pc-rows{
  margin-top: 12px;
  display: grid;
  grid-auto-rows: 86px;
}
.pc-row{
  display: grid;
  grid-template-columns: 1fr 140px 1fr;
  column-gap: 40px;
  align-items: center;
  border-top: 1px solid #e8e8e8;
}
.pc-row:last-child{ border-bottom: 1px solid #e8e8e8; }

.pc-cell{
  text-align: center;
  font-size: 18px;
  color: #222;
  line-height: 1.7;
  padding: 0 6px;
}

/* mid icons */
.pc-mid{
  display:flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.pc-mid img{
  width: 50px;
  height: 50px;
  object-fit: contain;
}
.pc-mid span{
  font-size: 15px;
  font-weight: 600;
  color: var(--brand);
}

/* Mobile compare */
@media (max-width: 900px){
  .iol-compare{ padding: 70px 0; }
  .iol-title{ font-size: 30px; }
  .iol-desc{ margin-bottom: 26px; }

  .compare-pc{ display:none; }
  .compare-m{ display:block; }

  .compare-tabs{
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid #e9e9e9;
    margin: 0 auto 18px;
    max-width: 520px;
  }
  .tab-btn{
    appearance: none;
    border: 0;
    background: none;
    padding: 14px 8px 12px;
    font-size: 18px;
    font-weight: 800;
    color: #bdbdbd;
    cursor: pointer;
  }
  .tab-btn.is-active{ color: var(--brand); }

  .tab-underline{
    position:absolute;
    left: 0;
    bottom: -1px;
    width: 50%;
    height: 2px;
    background: var(--brand);
    transform: translateX(0);
    transition: transform .25s ease;
  }

  .m-panel{ display:none; text-align:center; }
  .m-panel.is-active{ display:block; }

  .m-media{
    width: min(520px, 100%);
    margin: 0 auto;
  }

  .m-title{
    margin: 18px 0 14px;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.6px;
    color: #111;
  }
  .m-sub{
    font-size: 16px;
    font-weight: 300;
    color: #666;
    margin-left: 6px;
  }

  .m-list li{
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid #e8e8e8;
    align-items: center;
  }

  .m-ico{
    display:flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }
  .m-ico img{
    width: 30px;
    height: 30px;
    object-fit: contain;
  }

  /* 라벨 줄바꿈 방지(돋보기 같은 단어) */
  .m-ico em{
    font-style: normal;
    font-size: 14px;
    font-weight: 500;
    color: var(--brand);
    line-height: 1;
    white-space: nowrap;
  }

  .m-txt{
    font-size: 16px;
    color: #222;
    line-height: 1.6;
    text-align: left;
  }
}

/* =========================
   IOL LINEUP
========================= */
.iol-lineup{
  padding: 80px 0 90px;
  text-align: center;
}
.iol-lineup .sec-kicker{
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--brand);
}
.iol-lineup .sec-title{
  margin: 0 0 14px;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -0.8px;
  color: #111;
}
.iol-lineup .sec-desc{
  margin: 0 auto 26px;
  max-width: 760px;
  font-size: 14px;
  line-height: 1.7;
  color: #444;
}


/* =========================
   IOL GRID: PC 4열 고정 / 모바일 2열 고정 (강제)
   반드시 CSS 맨 마지막에 붙이기
========================= */
.iol-lineup #iolGrid{
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important; /* ✅ PC 4열 고정 */
  gap: 18px !important;
  max-width: 980px;
  margin: 0 auto;
}

/* 카드가 그리드 안에서 안 찌그러지고, 컬럼 계산 꼬임 방지 */
.iol-lineup #iolGrid .iol-card{
  min-width: 0 !important;
}

@media (max-width: 900px){
  .iol-lineup #iolGrid{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important; /* ✅ 모바일 2열 */
    gap: 12px !important;
  }
}


/* tabs */
.iol-tabs{
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  max-width: 900px;
  margin: 0 auto 18px;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  margin-top: 60px;
}
.iol-tab{
  appearance: none;
  border: 0;
  background: transparent;
  padding: 16px 10px;
  font-size: 24px;
  font-weight: 600;
  color: #b9b9b9;
  cursor: pointer;
}
.iol-tab.is-active{ color: var(--brand2); }

.iol-tab-underline{
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 33.333%;
  background: var(--brand2);
  transform: translateX(0%);
  transition: transform .25s ease;
}

/* focus image */
.iol-focus-wrap{
  max-width: 980px;
  margin: 0 auto 26px;
}
.iol-focus{ display: none; }
.iol-focus.is-active{ display:block; }
.iol-focus img{ width:100%; }

/* grid */
.iol-grid{
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 900px){
  .iol-grid{
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px;
  }
}

/* card */
.iol-card{
  border: 1px solid #eee;
  background: #fff;
  padding: 0;
  text-align: center;
  cursor: pointer;
}
/* ✅ 이미지 영역도 칸 안에서만 */
.iol-thumb{
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.iol-thumb img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1);
  transition: transform .45s ease;
}


.iol-card:hover .iol-thumb img{ transform: scale(1.08); }
.iol-card:hover .iol-more{ opacity: 1; }

.iol-meta{
  padding: 14px 14px 16px;
  text-align: center;
  display:flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.iol-en{
  font-size: 15px;
  color: #9a9a9a;
  margin-bottom: 4px;
}
.iol-ko{
  font-size: 25px;
  font-weight: 700;
  color: #111;
}

.iol-card.is-hidden{ display:none; }




/* X 회전 */
.iol-modal__close{
  transition: transform 450ms cubic-bezier(.22,1,.36,1), background 200ms ease, opacity 200ms ease !important;
}
.iol-modal__close:hover{
  transform: rotate(180deg);
}
.iol-modal__close:active{
  transform: rotate(180deg) scale(.95);
}
.iol-modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
}


.iol-modal__bar{
  background: #11a8c7;
  color: #fff;
  padding: 16px 22px;
  display:flex;
  align-items:center;
  justify-content: space-between;
}

.iol-modal__title{
  margin:0;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.4px;
}

.iol-modal__close{
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
  opacity: .9;
}
.iol-modal__close:hover{ opacity: 1; }

.iol-modal__body{
  overflow: auto;
  padding: 22px 22px 18px;
}

/* media + logo */
.iol-modal__media{
  position: relative;
  display:flex;
  justify-content:center;
  align-items:center;
  background:#fff;
  padding-top: 8px;
}

.iol-modal__media img#iolModalImg{
  width: auto;
  max-width: 70%;
  max-height: 320px;
  object-fit: contain;
  display:block;
}

/* logo (우측 상단) */
.iol-modal__logo{
  position:absolute;
  top: 12px;
  right: 12px;
  height: 56px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  z-index: 5;
  opacity: .95;
  background: rgba(255,255,255,.85);
  padding: 6px 8px;
  border-radius: 10px;
}

.iol-modal__content{
  padding: 0 40px 20px;
  text-align: left; /* ✅ 기본은 왼쪽 정렬 */
}

.iol-modal__headline{
  margin: 0 0 10px;
  font-size: 25px;
  font-weight: 700;
  color: #13a6c3;
  letter-spacing: -0.3px;
}

.iol-modal__desc{
  margin: 0 0 14px;
  font-size: 18px;
  line-height: 1.7;
  color: #444;
}

.iol-modal__meta{
  border-top: 1px solid #e8e8e8;
  padding-top: 12px;
}

.iol-meta-row{
  display:flex;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid #f0f0f0;
  align-items:flex-start;
}
.iol-meta-row:first-child{ border-top: 0; }

.iol-meta-row strong{
  flex: 0 0 64px;
  font-size: 20px;
  color:#111;
}
.iol-meta-row span{
  font-size: 18px;
  color:#333;
  line-height: 1.65;
}

@media (max-width: 900px){

  .iol-modal__title{ font-size: 25px; }

  .iol-modal__media img#iolModalImg{
    max-width: 88%;
    max-height: 240px;
  }

  .iol-modal__headline{ font-size: 20px; }

  .iol-modal__logo{
    height: 44px;  /* ✅ 모바일은 height로 줄이기 */
    max-width: 120px;
  }
}

/* =========================
   IOL MODAL (Animated like Equip)
   - blind backdrop down
   - panel scale-in
   - close rotate
========================= */

/* 기본: display 토글 금지 */
.iol-modal{
  position: fixed;
  inset: 0;
  z-index: 9999;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition: opacity .25s ease, visibility 0s linear .25s;
}

.iol-modal.is-open{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;

  transition: opacity .25s ease;
}

/* =========================
   Backdrop: 내려오며 동시에 블러 시작 (지연 제거)
   - transform 애니메이션 제거 (블러 지연 원인)
   - clip-path로 '내려오는' 느낌만 구현
========================= */
.iol-modal__backdrop{
  position: absolute;
  inset: 0;
  z-index: 0;

  background: rgba(0,0,0,.55);

  /* ✅ 블러는 처음부터 켜둠 (지연 방지) */
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);

  /* ✅ 내려오는 연출은 clip-path로 */
  clip-path: inset(0 0 100% 0);
  opacity: 0;

  transition:
    clip-path 1800ms cubic-bezier(.16,1,.3,1),
    opacity 1500ms ease;
}

.iol-modal.is-open .iol-modal__backdrop{
  clip-path: inset(0 0 0 0);
  opacity: 1;
}

/* ✅ 패널: 작게 -> 커짐 */
.iol-modal__panel{
  position: absolute;
  z-index: 1;

  width: min(880px, calc(100% - 40px));
  max-height: min(82vh, 760px);

  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,.25);

  display: flex;
  flex-direction: column;

  opacity: 0;
  transform: translate(-50%, -50%) scale(.92);
  transition: transform 520ms cubic-bezier(.2,.9,.2,1), opacity 520ms ease;
  transition-delay: 160ms; /* 백드롭 먼저 */
}

.iol-modal.is-open .iol-modal__panel{
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* 바 */
.iol-modal__bar{
  background: #11a8c7;
  color: #fff;
  padding: 16px 22px;
  display:flex;
  align-items:center;
  justify-content: space-between;
}

/* X 버튼: 뱅글뱅글 */
.iol-modal__close{
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
  opacity: .9;
  border-radius: 12px;

  transition: transform .35s cubic-bezier(.22,1,.36,1), background .2s ease, opacity .2s ease;
}

.iol-modal__close:hover{
  transform: rotate(180deg);
  background: rgba(255,255,255,.14);
  opacity: 1;
}

.iol-modal__close:active{
  transform: rotate(180deg) scale(.95);
}

/* 바디 스크롤 */
.iol-modal__body{
  overflow: auto;
  padding: 22px 22px 18px;
}

/* ✅ ZEISS 로고만 더 크게 */
.iol-modal__logo[src*="logo-zeiss"]{
  height: 72px;      /* 기존 56px → 72px */
  max-width: 170px;  /* 필요하면 같이 확장 */
}

@media (max-width: 900px){
  .iol-modal__logo[src*="logo-zeiss"]{
    height: 60px;    /* 모바일에서도 조금 크게 */
    max-width: 150px;
  }
}

.iol-thumb{ position: relative; }

.iol-more{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .5px;
  color: #fff;
  background: rgba(114, 201, 217, 0.70);
  opacity: 0;
  transition: opacity .25s ease;
  z-index: 2;
}

.iol-badge{
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,.75);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 999px;
  z-index: 3;
}

.iol-card:hover .iol-more,
.iol-card:focus-visible .iol-more{
  opacity: 1;
}

@media (max-width: 900px){
  .iol-card:active .iol-more{ opacity: 1; }
}


/* ✅ 가로 스크롤 원천 봉쇄(대부분 이걸로 끝남) */
html, body{
  overflow-x: hidden;
}

/* ✅ iol 섹션 안에서만 튀어나오는 경우를 강하게 컷 */
.iol-lineup,
.iol-lineup .container{
  overflow-x: clip; /* 지원 안하면 hidden처럼 동작 */
}

/* ✅ 컨테이너/그리드가 화면 밖으로 안 나가게 */
.iol-grid,
.iol-focus-wrap,
.iol-tabs{
  max-width: 100%;
}

/* ✅ grid 아이템이 커져서 밀어내는 케이스 방지 */
.iol-grid > *{
  min-width: 0;
}

/* ✅ img가 가끔 width 계산으로 튀는 케이스 방지 */
.iol-focus img,
.iol-thumb img{
  max-width: 100%;
}

.iol-tabs,
.iol-focus-wrap,
.iol-grid{
  max-width: var(--iol-wrap-w) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* 이미지도 동일 폭 안에서 꽉 차게 */
.iol-focus img{
  width: 100%;
  height: auto;
  display: block;
}

/* =========================
   캡션 타이틀 (ALCON 트레이닝 센터 지정)
========================= */
.cap-title{
  margin: 18px 0 8px !important;   /* 이미지랑 거리 */
  font-size: 26px !important;      /* 글자 키우기 */
  font-weight: 800 !important;
  letter-spacing: -0.5px;
  color: #111;
  line-height: 1.25;
  text-align: center;
}

@media (max-width: 900px){
  .cap-title{
    margin-top: 14px !important;
    font-size: 20px !important;
  }
}
.iol-modal__media{ position: relative; }
.iol-modal__logo{ position:absolute; top:14px; right:14px; z-index:30; width:72px; height:auto; }

/* 모달 이미지 영역 기준점 */
.iol-modal__media{
  position: relative;
}

/* 메인 렌즈 이미지: 로고에 눌리지 않도록 */
#iolModalImg{
  display:block;
  width: 100%;
  height: auto;
}

/* ✅ 로고: "덮지 않게" 작게 + 우상단 고정 */
#iolModalLogo{
  position: absolute;
  top: 14px;
  right: 14px;
  width: 88px;      /* 여기 숫자만 조절하면 됨 (예: 72~110) */
  max-width: 30%;   /* 화면 작아도 과대해지지 않게 */
  height: auto;
  z-index: 3;
  object-fit: contain;
  background: rgba(255,255,255,.92); /* 로고 가독성 */
  padding: 6px 8px;
  border-radius: 10px;
}

/* 혹시 로고가 너무 앞에 떠서 거슬리면 더 약하게 */
@media (max-width: 480px){
  #iolModalLogo{ width: 76px; padding: 5px 7px; }
}

/* ===== HERO SWIPER MOBILE FIX ===== */
@media (max-width: 768px){

  /* swiper가 화면 폭을 꽉 쓰게 */
  .hero .container{
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .hero-swiper{
    width: 100%;
  }


  /* 이미지 박스 */
@media (max-width: 768px){
  .hero-swiper .slide-media{
    height: auto !important;
    aspect-ratio: 4 / 3;     /* 필요하면 4/3, 3/2로 변경 */
  }
  .hero-swiper .slide-media img{
    width: 100%;
    height: 100%;
    object-fit: cover;   
    }
}


  /* 만약 "잘리면 안됨"이 우선이면 위 object-fit:cover 대신 contain */
  /* .hero-swiper .slide-media img{ object-fit: contain; } */
}
@media (max-width: 768px){

  /* 캡션 영역이 줄바꿈/높이 자동으로 늘어나게 */
  .hero-swiper .slide-caption{
    padding-top: 10px !important; 
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    word-break: keep-all;            /* 한글 줄바꿈 안정 */
  }

  /* 제목 */
  .hero-swiper .cap-title{
    font-size: 18px;                 /* 필요하면 16~20 사이 조절 */
    line-height: 1.4;
    margin: 10px 0 8px;
    margin-top: 6px !important;     /* 지금 10px */
    margin-bottom: 6px !important;
  }

  /* 설명 */
  .hero-swiper .cap-desc{
    font-size: 16px;                 /* 필요하면 12~14 */
    line-height: 1.6;
    margin: 0;
  }
}

/* 모바일 타이틀/키커 축소 - 섹션별로 확실히 먹게 */
@media (max-width: 900px){

  /* HERO */
  .hero .hero-kicker{
    font-size: 15px !important;
    margin-top: 24px !important;
    margin-bottom: 6px !important;
  }
  .hero .hero-title{
    font-size: 28px !important;
    letter-spacing: -0.5px !important;
    margin-top: 8px !important;
    margin-bottom: 18px !important;
  }

  /* 다초점/단초점 비교 */
  .iol-compare .hero-kicker{
    font-size: 15px !important;
    margin-top: 24px !important;
    margin-bottom: 6px !important;
  }
  .iol-compare .hero-title{
    font-size: 28px !important;
    letter-spacing: -0.5px !important;
    margin-top: 8px !important;
    margin-bottom: 18px !important;
  }

  /* 인공수정체 라인업 */
  .iol-lineup .hero-kicker{
    font-size: 15px !important;
    margin-top: 24px !important;
    margin-bottom: 6px !important;
  }
  .iol-lineup .hero-title{
    font-size: 28px !important;
    letter-spacing: -0.5px !important;
    margin-top: 8px !important;
    margin-bottom: 18px !important;
  }
}
@media (max-width: 768px){

  /* 모바일에서는 양옆이 조금 보이도록 padding 유지 */
  .hero-swiper{
    padding: 0 14px !important;
    overflow: visible !important;
  }

  /* 기본(양옆): 작게 */
  .hero-swiper .swiper-slide{
    width: 72vw !important;          /* 옆 슬라이드 폭 */
    opacity: .35;
    transform: scale(.92);
    transition: transform .25s ease, opacity .25s ease;
  }

  /* 가운데(active): 크게 */
  .hero-swiper .swiper-slide-active{
    width: 86vw !important;          /* 가운데 슬라이드 폭 */
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 768px){
  /* 다/단초점 비교 섹션 설명 문단 */
  #iol-compare .cap-desc{
    max-width: 50ch;           /* ✅ 줄 길이 고정 (핵심) */
    margin: 12px auto 24px;    /* 위/아래 간격 정리 */
    font-size: 16px;
    line-height: 1.6;
    text-align: center;      /* ✅ 가운데 정렬 */
    word-break: keep-all;      /* ✅ 한글 단어 안깨짐 */
  }

  /* 모바일에서는 <br> 줄바꿈 제거해서 자연스러운 줄바꿈으로 */
  #iol-compare .cap-desc br{
    display: none;
  }
}

/* ✅ 모바일 팝업 중앙 고정 + 하단 잘림 방지 */
@media (max-width: 900px){
  .iol-modal{
    /* iOS 하단바/노치 안전영역 */
    padding: calc(env(safe-area-inset-top) + 12px) 12px calc(env(safe-area-inset-bottom) + 12px);
  }

  .iol-modal__panel{
    top: 50% !important;
    left: 50% !important;

    /* ⚠️ 기존 margin-top:10vh 때문에 아래로 밀렸던 거 제거 */
    margin-top: 0 !important;

    /* 애니메이션 transform을 쓰고 있으니 translate는 유지 */
    transform: translate(-50%, -50%) scale(.92) !important;

    width: calc(100% - 24px) !important;

    /* ✅ 모바일 주소창/툴바 변화까지 고려(dvh) */
    max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 24px) !important;
  }

  /* 열렸을 때 scale(1) 유지 */
  .iol-modal.is-open .iol-modal__panel{
    transform: translate(-50%, -50%) scale(1) !important;
  }
}
/* ✅ 모바일 팝업 여백 다이어트 */
@media (max-width: 900px){

  /* 바디 전체 패딩 줄이기 */
  .iol-modal__body{
    padding: 14px 14px 12px !important; /* 기존 22px → 축소 */
  }

  /* 이미지 영역 위쪽 여백 줄이기 */
  .iol-modal__media{
    padding-top: 4px !important; /* 기존 8px → 축소 */
  }

  /* 렌즈 이미지 사이즈 살짝 키우면서 공간 덜 남게 */
  .iol-modal__media img#iolModalImg{
    max-height: 210px !important; /* 기존 240px이면 조금 줄/조절 */
    max-width: 92% !important;
  }

  /* 본문 좌우 여백 줄이기 */
  .iol-modal__content{
    padding: 0 6px 12px !important; /* 기존 0 40px → 확 줄임 */
  }

  /* 헤드라인 아래 간격 줄이기 */
  .iol-modal__headline{
    margin-bottom: 6px !important;
  }

  /* 설명문 아래 간격 줄이기 */
  .iol-modal__desc{
    margin-bottom: 10px !important;
  }

  /* 제조사/특장점/옵션 rows 간격 줄이기 */
  .iol-meta-row{
    padding: 8px 0 !important; /* 기존 10px → 축소 */
    gap: 8px !important;
  }

  /* 라벨(제조사/특장점/옵션) 폭이 커서 공간 먹으면 조금 줄임 */
  .iol-meta-row strong{
    flex: 0 0 52px !important; /* 기존 64px → 축소 */
    font-size: 16px !important; /* 기존 20px → 모바일다운 크기 */
  }

  .iol-meta-row span{
    font-size: 15px !important; /* 기존 18px → 축소 */
    line-height: 1.55 !important;
  }

  /* 상단 타이틀바 높이도 살짝 줄이면 꽉 찬 느낌 */
  .iol-modal__bar{
    padding: 12px 16px !important;
  }

  .iol-modal__title{
    font-size: 20px !important;
  }

  .iol-modal__close{
    width: 40px !important;
    height: 40px !important;
    font-size: 34px !important;
  }

  /* 로고도 살짝 작게 */
  #iolModalLogo{
    width: 70px !important;
    padding: 5px 6px !important;
  }
}

.iol-modal__headline{
  line-height: 1.35 !important;
}



/* 모달 루트: 화면 기준(fixed) + 중앙정렬 */
#iolModal.iol-modal{
  position: fixed !important;
  inset: 0 !important;
  z-index: 99999 !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  padding: 24px !important;          /* 화면 가장자리 여백 */
}

/* 열렸을 때도 flex 유지 */
#iolModal.iol-modal.is-open{
  display: flex !important;
}

/* 패널: absolute 좌표 의존 제거 */
#iolModal .iol-modal__panel{
  position: relative !important;      /* ✅ absolute 금지 */
  left: auto !important;
  top: auto !important;
  transform: none !important;

  width: min(880px, calc(100% - 48px)) !important;
  max-height: min(82vh, 760px) !important;
  margin: 0 !important;
}

/* 백드롭은 fixed로 전체 덮기 */
#iolModal .iol-modal__backdrop{
  position: fixed !important;
  inset: 0 !important;
}

/* ✅ 인공수정체 라인업 설명문단: 모바일만 50ch + 가운데 */
@media (max-width: 768px){
  .iol-lineup .cap-desc{
    max-width: 50ch;
    font-size: 16px;
    line-height: 1.6;
    margin: 16px auto 26px;
    text-align: center;
    line-height: 1.75;
    word-break: keep-all;
  }

  /* 모바일에서만 br 숨기고 싶으면 */
  .iol-lineup .cap-desc br{ display: none; }
}
