/* ================================================================
   06. KOL — MEET OUR DOCTORS
   원본: kuber-main/blocks/06_KOL_블록.html 의 <style> 블록을 그대로 이관.
   수치·색상은 확정본이므로 임의 변경 금지.
   ================================================================ */

  .ks-kol * {
    box-sizing: border-box;
    margin: 0;
    padding: 0
  }

  .ks-kol {
    --ci: #7e3236;
    --ink: #111111;
    --text: #616161;
    --line: #e5e5e5;
    --gap: 28px;
    --pv: 4;
    /* 한 화면에 보이는 카드 수 */
    width: 100%;
    background: #f7f7f7;
    color: var(--ink);
    /* PRESS에서 옮겨온 배경색 */
    padding: 150px 0;
    font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
  }

  .ks-kol__inner {
    width: 100%;
    max-width: 1560px;
    margin: 0 auto;
    padding: 0 32px
  }

  /* ---- 헤더 ---- */
  .ks-kol__eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--ci);
    margin-bottom: 18px;
    position: relative;
    padding-top: 16px;
  }

  .ks-kol__eyebrow::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 2px;
    background: var(--ci)
  }

  .ks-kol h2 {
    font-size: clamp(32px, 4.4vw, 56px);
    font-weight: 700;
    letter-spacing: -.03em;
    line-height: 1.05
  }

  .ks-kol__sub {
    margin-top: 14px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text)
  }

  .ks-kol__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px
  }

  /* ---- 카드 그리드 ---- */
  .ks-kol__carousel {
    position: relative;
    margin-top: 56px
  }

  .ks-kol__viewport {
    overflow: hidden
  }

  .ks-kol__track {
    display: flex;
    gap: var(--gap);
    transition: transform .55s cubic-bezier(.25, .7, .3, 1);
  }

  .ks-kol__card {
    flex: 0 0 calc((100% - var(--gap) * (var(--pv) - 1)) / var(--pv));
    max-width: calc((100% - var(--gap) * (var(--pv) - 1)) / var(--pv));
  }

  /* 좌우 화살표 : 카드 수가 한 화면보다 많을 때만 표시 */
  .ks-kol__navs {
    flex: 0 0 auto;
    display: flex;
    gap: 10px;
    padding-bottom: 4px
  }

  .ks-kol--static .ks-kol__navs {
    display: none
  }

  .ks-kol__nav {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    padding: 0;
    border: 1px solid #d8d8d8;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .3s ease, border-color .3s ease, opacity .3s ease;
  }

  .ks-kol__nav::after {
    content: "";
    width: 8px;
    height: 8px;
    border-top: 1.5px solid #555;
    border-right: 1.5px solid #555;
    transition: border-color .3s ease;
  }

  .ks-kol__nav--next::after {
    transform: translateX(-2px) rotate(45deg)
  }

  .ks-kol__nav--prev::after {
    transform: scaleX(-1) translateX(-2px) rotate(45deg)
  }

  /* next의 좌우 반전 = 완전 대칭 */
  .ks-kol__nav:hover:not(:disabled) {
    background: var(--ci);
    border-color: var(--ci)
  }

  .ks-kol__nav:hover:not(:disabled)::after {
    border-color: #fff
  }

  .ks-kol__nav:disabled {
    opacity: .28;
    cursor: default
  }

  .ks-kol__card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    cursor: pointer;
    text-align: left;
    transition: border-color .35s ease, box-shadow .35s ease;
  }

  .ks-kol__card:hover {
    z-index: 2
  }

  .ks-kol__card:hover {
    border-color: #cfcfcf;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .08)
  }

  .ks-kol__photo {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
    background: #eaeaea
  }

  .ks-kol__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform .8s cubic-bezier(.22, .61, .36, 1);
  }

  .ks-kol__card:hover .ks-kol__photo img {
    transform: scale(1.04)
  }

  .ks-kol__photo--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b5b5b5;
    font-size: 14px;
    letter-spacing: .04em
  }

  .ks-kol__badge {
    position: absolute;
    left: 0;
    bottom: 0;
    background: var(--ci);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    padding: 8px 14px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .35s ease, transform .35s ease;
  }

  .ks-kol__card:hover .ks-kol__badge {
    opacity: 1;
    transform: none
  }

  .ks-kol__info {
    padding: 24px 24px 28px;
    flex: 1
  }

  .ks-kol__name {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -.01em;
    line-height: 1.35
  }

  .ks-kol__line {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.65;
    color: var(--text)
  }

  .ks-kol__line b {
    font-weight: 600;
    color: var(--ink)
  }

  /* ---- 제품 모달 ---- */
  .ks-kol__modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
  }

  .ks-kol__modal.is-open {
    display: flex
  }

  .ks-kol__dim {
    position: absolute;
    inset: 0;
    background: rgba(12, 14, 16, .62)
  }

  .ks-kol__dialog {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 880px;
    background: #fff;
    display: grid;
    grid-template-columns: 1fr 1fr;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .28);
    animation: ks-kol-pop .28s cubic-bezier(.22, .61, .36, 1);
  }

  @keyframes ks-kol-pop {
    from {
      opacity: 0;
      transform: translateY(14px)
    }

    to {
      opacity: 1;
      transform: none
    }
  }

  .ks-kol__pimg {
    background: #f1f1f1;
    aspect-ratio: 1/1;
    overflow: hidden
  }

  .ks-kol__pimg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
  }

  .ks-kol__ptext {
    padding: 44px 44px 46px;
    display: flex;
    flex-direction: column;
    justify-content: center
  }

  .ks-kol__pname {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -.02em
  }

  .ks-kol__pby {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--ci)
  }

  .ks-kol__pdesc {
    margin-top: 20px;
    font-size: 14px;
    line-height: 1.85;
    color: var(--text)
  }

  .ks-kol__close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .9);
    font-size: 20px;
    line-height: 1;
    color: #555;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .25s ease, color .25s ease;
  }

  .ks-kol__close:hover {
    background: var(--ci);
    color: #fff
  }

  /* ---- 리빌 ---- */
  .ks-kol__head,
  .ks-kol__card {
    opacity: 0;
    transform: translateY(38px);
    transition: opacity .9s ease, transform .9s ease, border-color .35s ease, box-shadow .35s ease
  }

  .ks-kol.is-in .ks-kol__head,
  .ks-kol.is-in .ks-kol__card {
    opacity: 1;
    transform: none
  }

  .ks-kol.is-in .ks-kol__card:nth-child(1) {
    transition-delay: .10s
  }

  .ks-kol.is-in .ks-kol__card:nth-child(2) {
    transition-delay: .20s
  }

  .ks-kol.is-in .ks-kol__card:nth-child(3) {
    transition-delay: .30s
  }

  .ks-kol.is-in .ks-kol__card:nth-child(4) {
    transition-delay: .40s
  }

  /* ---- 반응형 ---- */
  @media (max-width:1189px) {
    .ks-kol {
      padding: 110px 0
    }

    .ks-kol__inner {
      padding: 0 40px
    }

    .ks-kol {
      --pv: 2;
      --gap: 24px
    }

    .ks-kol__carousel {
      margin-top: 44px
    }

    .ks-kol__dialog {
      max-width: 720px
    }

    .ks-kol__ptext {
      padding: 34px
    }
  }

  @media (max-width:767px) {
    .ks-kol {
      padding: 72px 0
    }

    .ks-kol__inner {
      padding: 0 24px
    }

    .ks-kol {
      --pv: 1;
      --gap: 16px
    }

    .ks-kol__carousel {
      margin-top: 32px
    }

    .ks-kol__head {
      flex-direction: column;
      align-items: flex-start;
      gap: 20px
    }

    .ks-kol__navs {
      align-self: flex-end;
      padding-bottom: 0
    }

    .ks-kol__nav {
      width: 40px;
      height: 40px
    }

    .ks-kol__info {
      padding: 20px 20px 24px
    }

    .ks-kol__dialog {
      grid-template-columns: 1fr;
      max-height: 86vh;
      overflow-y: auto
    }

    .ks-kol__pimg {
      aspect-ratio: 16/10
    }

    .ks-kol__ptext {
      padding: 26px 24px 32px
    }

    .ks-kol__pname {
      font-size: 22px
    }
  }

  @media (prefers-reduced-motion:reduce) {

    .ks-kol__head,
    .ks-kol__card {
      opacity: 1;
      transform: none;
      transition: none
    }

    .ks-kol__photo img {
      transition: none
    }

    .ks-kol__dialog {
      animation: none
    }
  }

/* ---- 닫기 버튼 X : 시안 대비 수정 (2026-09-08) ----
   시안은 &times; 글리프를 flex 로 가운데 정렬했지만, 글리프의 잉크 박스가
   라인 박스 중앙에 있지 않아 실제로는 원 안에서 1.47px 아래로 치우쳐 보였다.
   (flex 는 글리프가 아니라 라인 박스를 정렬한다)
   폰트에 따라 오차가 달라지므로, 글리프 대신 의사요소 2개로 X 를 그려
   항상 정중앙에 오게 한다. 굵기 1.4px 는 기존 글리프 실측값이고,
   막대 길이 12px 는 45° 회전 후 대각 폭이 실측값 8.94px 이 되도록 역산한 값이다. */
.ks-kol__close {
  font-size: 0;
}

.ks-kol__close::before,
.ks-kol__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1.4px;
  background: currentColor;
  border-radius: 1px;
}

.ks-kol__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.ks-kol__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
