@charset "utf-8";

/* ===============================
   발거술 페이지 기본 설정
================================ */
* {
  box-sizing: border-box;
}

.c_page {
  width: 100% !important;
  max-width: none !important;
  margin: 0 auto !important;
  padding: 0 !important;
  overflow-x: hidden;
}

/* ===============================
   상단 대표 이미지 중앙 정렬 + 축소
   .page_img 영역
================================ */
.c_page .page_img {
  width: 100vw !important;
  max-width: none !important;
  margin: 60px 0 0 calc(50% - 50vw) !important;
  padding: 0 !important;

  display: flex !important;
  justify-content: center !important;
  align-items: flex-start !important;

  text-align: center !important;
  float: none !important;
  clear: both !important;
  position: relative !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
}

.c_page .page_img img {
  width: 75vw !important;        /* 약 25% 축소 */
  max-width: 1100px !important;
  height: auto !important;

  display: block !important;
  margin: 0 auto !important;
  padding: 0 !important;

  float: none !important;
  position: static !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
}

/* ===============================
   상세페이지 이미지 중앙 정렬 + 축소
   .micro_wrap 영역
================================ */
.c_page .micro_wrap {
  width: 100vw !important;
  max-width: none !important;
  margin: 60px 0 0 calc(50% - 50vw) !important;
  padding: 0 !important;

  display: flex !important;
  justify-content: center !important;
  align-items: flex-start !important;

  text-align: center !important;
  float: none !important;
  clear: both !important;
  position: relative !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
}

.c_page .micro_img {
  width: 75vw !important;        /* 약 25% 축소 */
  max-width: 1100px !important;
  margin: 0 auto !important;
  padding: 0 !important;

  display: block !important;
  text-align: center !important;

  float: none !important;
  position: static !important;
}

.c_page .micro_img img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;

  display: block !important;
  margin: 0 auto !important;
  padding: 0 !important;

  float: none !important;
  position: static !important;
}

/* ===============================
   유튜브 섹션
================================ */
.micro_youtube_section {
  width: 100%;
  display: block;
  background: #5b473d;
}

.micro_youtube_bg {
  position: relative;
  width: 100%;
  background: url("http://howruclinic.com/theme/design/template/page20/images/youtube.png") no-repeat center center;
  background-size: cover;
  aspect-ratio: 1290 / 1074;
  overflow: hidden;
}

.micro_youtube_box {
  position: absolute;
  left: 50%;
  top: 49.5%;
  transform: translate(-50%, -50%);
  width: 72%;
  max-width: 860px;
}

.micro_youtube_card {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: block;
}

.micro_youtube_ratio {
  position: relative;
  display: block;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.micro_youtube_thumb {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 108%;
  height: 108%;
  display: block;
  object-fit: cover;
  transform: translate(-50%, -50%);
}

.micro_youtube_ratio iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  transform: none;
  background: #000;
}

.micro_youtube_dim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.08);
  transition: opacity .25s ease;
}

.micro_youtube_play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 92px;
  height: auto;
  transition: transform .25s ease, opacity .25s ease;
}

.micro_youtube_play svg {
  width: 100%;
  height: auto;
  display: block;
}

.micro_youtube_card:hover .micro_youtube_play {
  transform: translate(-50%, -50%) scale(1.06);
}

.micro_youtube_card.is-playing .micro_youtube_dim,
.micro_youtube_card.is-playing .micro_youtube_play {
  display: none;
}

/* 유튜브 더보기 버튼 */
.micro_youtube_actions {
  width: 100%;
  padding: 20px 0 34px;
  text-align: center;
  background: #5b473d;
}

.micro_youtube_more {
  min-width: 150px;
  height: 48px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  border-radius: 999px;
  cursor: pointer;
  transition: all .25s ease;
  font-family: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}

.micro_youtube_more:hover {
  background: #fff;
  color: #5b473d;
  border-color: #fff;
}

/* ===============================
   하단 고정 버튼
================================ */
.floating_btn {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 500px;
  background: #8c764d;
  color: #fff;
  text-align: center;
  padding: 15px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: bold;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  z-index: 999;
  transition: all 0.3s ease;
}

.floating_btn:hover {
  background: #6f5c3a;
  transform: translateX(-50%) scale(1.05);
}

/* ===============================
   태블릿
================================ */
@media screen and (max-width: 1024px) {
  .c_page .page_img img,
  .c_page .micro_img {
    width: 80vw !important;
    max-width: 900px !important;
  }

  .micro_youtube_box {
    width: 78%;
    top: 50%;
  }

  .micro_youtube_ratio {
    border-radius: 20px;
  }
}

/* ===============================
   모바일
================================ */
@media screen and (max-width: 768px) {
  .c_page .page_img {
    margin-top: 40px !important;
  }

  .c_page .micro_wrap {
    margin-top: 40px !important;
  }

  .c_page .page_img img,
  .c_page .micro_img {
    width: 92vw !important;
    max-width: 92vw !important;
  }

  .micro_youtube_bg {
    aspect-ratio: 1290 / 1188;
  }

  .micro_youtube_box {
    width: 78%;
    top: 51.2%;
  }

  .micro_youtube_ratio {
    border-radius: 16px;
  }

  .micro_youtube_play {
    width: 72px;
  }

  .micro_youtube_actions {
    margin-top: 10px;
    padding: 0 0 20px;
    background: #5b473d;
    position: relative;
    z-index: 2;
  }

  .micro_youtube_more {
    min-width: 112px;
    height: 38px;
    font-size: 14px;
    padding: 0 16px;
  }
}

/* 발거술 상세페이지 이미지 중앙 정렬 + 실제 크기 축소 */
.c_page .micro_wrap {
  width: 100% !important;
  max-width: 576px !important; /* 768px 기준 약 25% 축소 */
  margin: 60px auto 0 !important;
  padding: 0 !important;
  display: block !important;
  text-align: center !important;
  float: none !important;
  clear: both !important;
  position: relative !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
}

.c_page .micro_img {
  width: 100% !important;
  max-width: 576px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  display: block !important;
  text-align: center !important;
  float: none !important;
}

.c_page .micro_img img {
  width: 100% !important;
  max-width: 538px !important;
  height: auto !important;
  display: block !important;
  margin: 0 auto !important;
  padding: 0 !important;
  float: none !important;
}