/* 
 * 리뉴얼 추가 섹션 스타일: 3개국 전문 컨설팅 / 인증서 섹션 / FAQ 비용 안내
 */

/* ----------------------------------------------------
   3개국 전문 컨설팅 섹션 (베트남 · 캄보디아 · 라오스)
   ---------------------------------------------------- */
.tri-country {
  padding: calc(120 * var(--d)) 0;
  background-color: #fcf9f5;
  border-top: 1px solid #efe8df;
  border-bottom: 1px solid #efe8df;
}
.tri-country-heading {
  text-align: center;
  margin-bottom: calc(60 * var(--d));
}
.tri-country-heading h2 {
  margin: calc(16 * var(--d)) 0 calc(20 * var(--d));
  font-family: var(--heading);
  font-size: calc(44 * var(--d));
  line-height: 1.35;
  color: var(--dark);
  letter-spacing: -0.02em;
}
.tri-country-lead {
  font-size: calc(20 * var(--d));
  line-height: 1.7;
  color: #555;
  max-width: calc(960 * var(--d));
  margin: 0 auto;
  word-break: keep-all;
}
.tri-country-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: calc(30 * var(--d));
}
.tri-country-card {
  background: #fff;
  border-radius: calc(16 * var(--d));
  padding: calc(40 * var(--d)) calc(32 * var(--d));
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  border: 1px solid #eee;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}
.tri-country-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}
.tri-country-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: calc(6 * var(--d)) calc(16 * var(--d));
  border-radius: 999px;
  background: #fff0f2;
  color: var(--red);
  font-weight: 700;
  font-size: calc(14 * var(--d));
  margin-bottom: calc(16 * var(--d));
  width: fit-content;
}
.tri-country-card h3 {
  margin: 0 0 calc(12 * var(--d));
  font-family: var(--heading);
  font-size: calc(26 * var(--d));
  color: var(--dark);
}
.tri-country-card p {
  margin: 0 0 calc(20 * var(--d));
  font-size: calc(16 * var(--d));
  line-height: 1.65;
  color: #777;
  word-break: keep-all;
  flex-grow: 1;
}
.tri-country-features {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid #f0f0f0;
  padding-top: calc(16 * var(--d));
}
.tri-country-features li {
  position: relative;
  padding-left: calc(22 * var(--d));
  font-size: calc(15 * var(--d));
  color: #555;
  margin-bottom: calc(8 * var(--d));
  line-height: 1.5;
}
.tri-country-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: bold;
}

/* ----------------------------------------------------
   하단 인증서 및 보증 섹션
   ---------------------------------------------------- */
.certificates {
  padding: calc(110 * var(--d)) 0;
  background: #fff;
  border-top: 1px solid #eee;
}
.certificates-heading {
  text-align: center;
  margin-bottom: calc(50 * var(--d));
}
.certificates-heading h2 {
  margin: calc(16 * var(--d)) 0 calc(16 * var(--d));
  font-family: var(--heading);
  font-size: calc(40 * var(--d));
  color: var(--dark);
  letter-spacing: -0.02em;
}
.certificates-lead {
  font-size: calc(18 * var(--d));
  color: #666;
  line-height: 1.6;
}
.certificates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: calc(28 * var(--d));
}
.cert-card {
  background: #fdfdfd;
  border: 1px solid #e9e9e9;
  border-radius: calc(12 * var(--d));
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.cert-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.cert-thumb-btn {
  border: none;
  background: #ffffff;
  padding: calc(10 * var(--d));
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: calc(440 * var(--d));
  aspect-ratio: 1 / 1.42;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid #f0f0f0;
}
.cert-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  transition: transform 0.3s ease;
}
.cert-thumb-btn:hover img {
  transform: scale(1.03);
}
.cert-info {
  padding: calc(16 * var(--d)) calc(18 * var(--d));
  text-align: center;
}
.cert-info h4 {
  margin: 0 0 calc(6 * var(--d));
  font-family: var(--heading);
  font-size: calc(16 * var(--d));
  color: var(--dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cert-info span {
  font-size: calc(13 * var(--d));
  color: #888;
}

/* FAQ 비용 안내 박스 */
.faq-cost-box {
  margin: calc(16 * var(--d)) 0;
  background: #fff;
  border: 1px solid #ffd4d8;
  border-radius: calc(12 * var(--d));
  padding: calc(20 * var(--d)) calc(24 * var(--d));
}
.faq-cost-list {
  display: flex;
  gap: calc(16 * var(--d));
  margin-bottom: calc(14 * var(--d));
}
.faq-cost-item {
  flex: 1;
  background: #fff8f8;
  border: 1px solid #ffe3e6;
  border-radius: calc(8 * var(--d));
  padding: calc(12 * var(--d)) calc(16 * var(--d));
  text-align: center;
}
.faq-cost-item .country {
  display: block;
  font-weight: 700;
  font-size: calc(16 * var(--d));
  color: var(--dark);
  margin-bottom: calc(4 * var(--d));
}
.faq-cost-item .price {
  font-family: var(--heading);
  font-weight: 700;
  font-size: calc(20 * var(--d));
  color: var(--red);
}
.faq-cost-notice {
  font-size: calc(14 * var(--d));
  line-height: 1.6;
  color: #666;
  margin: 0;
  word-break: keep-all;
}
.faq-cost-call {
  display: inline-flex;
  align-items: center;
  gap: calc(8 * var(--d));
  margin-top: calc(12 * var(--d));
  padding: calc(10 * var(--d)) calc(20 * var(--d));
  background: var(--red);
  color: #fff;
  border-radius: calc(6 * var(--d));
  text-decoration: none;
  font-weight: 700;
  font-size: calc(14 * var(--d));
  transition: background 0.2s ease;
}
.faq-cost-call:hover {
  background: #e02334;
}

/* 갤러리 하단 수평 정렬 보정 */
.gallery-item .photo-frame {
  overflow: hidden !important;
  display: block !important;
}
.gallery-item .photo-frame img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

/* 모바일 미디어 쿼리 */
@media (max-width: 767px) {
  .tri-country {
    padding: calc(140 * var(--m)) 0;
  }
  .tri-country-heading {
    margin-bottom: calc(70 * var(--m));
  }
  .tri-country-heading h2 {
    font-size: calc(52 * var(--m));
    margin: calc(20 * var(--m)) 0 calc(24 * var(--m));
  }
  .tri-country-lead {
    font-size: calc(28 * var(--m));
    line-height: 1.65;
  }
  .tri-country-grid {
    grid-template-columns: 1fr;
    gap: calc(36 * var(--m));
  }
  .tri-country-card {
    padding: calc(48 * var(--m)) calc(40 * var(--m));
    border-radius: calc(24 * var(--m));
  }
  .tri-country-badge {
    padding: calc(8 * var(--m)) calc(20 * var(--m));
    font-size: calc(22 * var(--m));
    margin-bottom: calc(20 * var(--m));
  }
  .tri-country-card h3 {
    font-size: calc(36 * var(--m));
    margin-bottom: calc(16 * var(--m));
  }
  .tri-country-card p {
    font-size: calc(26 * var(--m));
    margin-bottom: calc(24 * var(--m));
  }
  .tri-country-features {
    padding-top: calc(20 * var(--m));
  }
  .tri-country-features li {
    padding-left: calc(32 * var(--m));
    font-size: calc(24 * var(--m));
    margin-bottom: calc(12 * var(--m));
  }

  .certificates {
    padding: calc(140 * var(--m)) 0;
  }
  .certificates-heading {
    margin-bottom: calc(60 * var(--m));
  }
  .certificates-heading h2 {
    font-size: calc(52 * var(--m));
  }
  .certificates-lead {
    font-size: calc(26 * var(--m));
  }
  .certificates-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: calc(24 * var(--m));
  }
  .cert-card {
    border-radius: calc(16 * var(--m));
  }
  .cert-info {
    padding: calc(20 * var(--m)) calc(16 * var(--m));
  }
  .cert-info h4 {
    font-size: calc(24 * var(--m));
  }
  .cert-info span {
    font-size: calc(20 * var(--m));
  }

  .faq-cost-box {
    margin: calc(24 * var(--m)) 0;
    padding: calc(28 * var(--m)) calc(24 * var(--m));
    border-radius: calc(16 * var(--m));
  }
  .faq-cost-list {
    flex-direction: column;
    gap: calc(16 * var(--m));
  }
  .faq-cost-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: calc(18 * var(--m)) calc(24 * var(--m));
  }
  .faq-cost-item .country {
    font-size: calc(26 * var(--m));
    margin-bottom: 0;
  }
  .faq-cost-item .price {
    font-size: calc(30 * var(--m));
  }
  .faq-cost-notice {
    font-size: calc(22 * var(--m));
  }
  .faq-cost-call {
    width: 100%;
    justify-content: center;
    padding: calc(18 * var(--m)) calc(24 * var(--m));
    font-size: calc(24 * var(--m));
    border-radius: calc(10 * var(--m));
  }
}

/* 성혼 스토리 & 갤러리 이미지 크기/정렬 강제 고정 */
.journal-feature .photo-button,
.journal-feature .responsive-photo {
  width: 100% !important;
  height: calc(510 * var(--d)) !important;
  max-height: calc(510 * var(--d)) !important;
  overflow: hidden !important;
  position: relative !important;
  display: block !important;
  background: #222;
}

.journal-feature .photo-button img,
.journal-feature .responsive-photo img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
}

.journal-card .photo-button,
.journal-card .responsive-photo {
  width: 100% !important;
  height: calc(241 * var(--d)) !important;
  max-height: calc(241 * var(--d)) !important;
  overflow: hidden !important;
  position: relative !important;
  display: block !important;
  background: #f0f0f0;
}

.journal-card .photo-button img,
.journal-card .responsive-photo img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
}

.gallery-grid--desktop .gallery-item .photo-frame {
  width: 100% !important;
  overflow: hidden !important;
  display: block !important;
  background: #222;
}

.gallery-grid--desktop .gallery-item .photo-frame img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
}

.gallery-grid--mobile .gallery-item .photo-frame {
  width: 100% !important;
  overflow: hidden !important;
  display: block !important;
  background: #222;
}

.gallery-grid--mobile .gallery-item .photo-frame img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
}

@media (max-width: 767px) {
  .journal-feature .photo-button,
  .journal-feature .responsive-photo {
    height: calc(560 * var(--m)) !important;
    max-height: calc(560 * var(--m)) !important;
  }
  .journal-card .photo-button,
  .journal-card .responsive-photo {
    height: calc(420 * var(--m)) !important;
    max-height: calc(420 * var(--m)) !important;
  }
}

/* ----------------------------------------------------
   라이트박스 팝업 컨트롤 (사진 세로 중앙 정렬 & 컨트롤 고정)
   ---------------------------------------------------- */
dialog[open].lightbox,
.lightbox[open] {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  background: transparent !important;
  color: white !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 99999 !important;
}

.lightbox-inner {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
}

.lightbox figure,
.lightbox-figure {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  max-width: 86vw !important;
  max-height: 80vh !important;
}

.lightbox-photo-frame,
.lightbox .photo-frame {
  width: auto !important;
  height: auto !important;
  max-width: 86vw !important;
  max-height: 80vh !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  overflow: hidden !important;
  border-radius: 12px !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7) !important;
}

.lightbox-photo-frame img,
.lightbox img,
#lightbox-image {
  width: auto !important;
  height: auto !important;
  max-width: 86vw !important;
  max-height: 80vh !important;
  object-fit: contain !important;
  object-position: center center !important;
  display: block !important;
  border-radius: 10px !important;
}

.lightbox figcaption {
  position: fixed !important;
  bottom: 24px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  margin: 0 !important;
  padding: 8px 24px !important;
  background: rgba(30, 30, 30, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border-radius: 999px !important;
  color: #f0f0f0 !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  letter-spacing: -0.01em !important;
  text-align: center !important;
  max-width: min(80vw, 600px) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
  z-index: 1005 !important;
}

.lightbox-prev,
.lightbox-next {
  position: fixed !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 54px !important;
  height: 54px !important;
  border-radius: 50% !important;
  background: rgba(30, 30, 30, 0.75) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5) !important;
  transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
  z-index: 1000 !important;
}

.lightbox-prev {
  left: 28px !important;
}

.lightbox-next {
  right: 28px !important;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.95) !important;
  color: #111111 !important;
  border-color: #ffffff !important;
  transform: translateY(-50%) scale(1.1) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6) !important;
}

.lightbox-prev:active,
.lightbox-next:active {
  transform: translateY(-50%) scale(0.96) !important;
}

.lightbox .dialog-close {
  position: fixed !important;
  top: 24px !important;
  right: 28px !important;
  width: 46px !important;
  height: 46px !important;
  border-radius: 50% !important;
  background: rgba(35, 35, 35, 0.8) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4) !important;
  transition: all 0.25s ease !important;
  z-index: 1010 !important;
}

.lightbox .dialog-close:hover {
  background: #ff3042 !important;
  border-color: #ff3042 !important;
  transform: rotate(90deg) scale(1.08) !important;
}

@media (max-width: 767px) {
  .lightbox-inner {
    padding: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
  }

  .lightbox figure,
  .lightbox-figure {
    max-width: 94vw !important;
    max-height: 76vh !important;
  }

  .lightbox-photo-frame,
  .lightbox .photo-frame,
  .lightbox img,
  #lightbox-image {
    max-width: 94vw !important;
    max-height: 76vh !important;
    border-radius: 8px !important;
  }

  .lightbox figcaption {
    bottom: 20px !important;
    font-size: 13px !important;
    padding: 6px 16px !important;
    max-width: 90vw !important;
  }

  .lightbox-prev,
  .lightbox-next {
    position: fixed !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 44px !important;
    height: 44px !important;
    background: rgba(30, 30, 30, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    z-index: 1000 !important;
  }

  .lightbox-prev {
    left: 10px !important;
  }

  .lightbox-next {
    right: 10px !important;
  }

  .lightbox .dialog-close {
    position: fixed !important;
    top: 16px !important;
    right: 16px !important;
    width: 40px !important;
    height: 40px !important;
    z-index: 1010 !important;
  }
}

/* ----------------------------------------------------
   푸터 하단 관리자 로그인 링크
---------------------------------------------------- */
.admin-footer-link {
  display: inline-block;
  font-size: calc(13 * var(--d));
  color: #777777 !important;
  text-decoration: none !important;
  margin-left: calc(14 * var(--d));
  opacity: 0.65;
  transition: all 0.2s ease;
  vertical-align: middle;
  cursor: pointer;
}

.admin-footer-link:hover {
  opacity: 1;
  color: #9b2838 !important;
  text-decoration: underline !important;
}

@media (max-width: 767px) {
  .admin-footer-link {
    font-size: calc(23 * var(--m));
    margin-left: calc(14 * var(--m));
  }
}

/* ====================================================
   배경흰색 모달창 (갤러리 / 성혼 스토리 중앙 정렬 & 스크롤바 장착)
   ==================================================== */
dialog.white-gallery-modal {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 20px !important;
  background: #ffffff !important;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4) !important;
  width: min(1080px, 94vw) !important;
  height: 90vh !important;
  max-height: 90vh !important;
  z-index: 999999 !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  display: none;
}

dialog.white-gallery-modal[open] {
  display: flex !important;
  flex-direction: column !important;
}

dialog.white-gallery-modal::backdrop {
  background: rgba(0, 0, 0, 0.72) !important;
  backdrop-filter: blur(5px) !important;
}

.wgm-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: #ffffff;
  overflow: hidden;
  position: relative;
}

/* 상단 고정 헤더: 스크롤되지 않고 상단 고정 */
.wgm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: #ffffff;
  border-bottom: 1px solid #ebebeb;
  flex-shrink: 0;
  z-index: 20;
}

.wgm-tabs {
  display: flex;
  gap: 8px;
}

.wgm-tab {
  background: #f5f5f7;
  border: 1px solid #e5e5ea;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 600;
  color: #555555;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
}

.wgm-tab:hover {
  background: #ebebee;
  color: #222222;
}

.wgm-tab.is-active {
  background: #b82635 !important;
  color: #ffffff !important;
  border-color: #b82635 !important;
}

.wgm-tab-count {
  font-size: 12px;
  opacity: 0.85;
}

.wgm-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wgm-counter {
  font-size: 14px;
  font-weight: 600;
  color: #666666;
  background: #f4f4f4;
  padding: 5px 12px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.wgm-close-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #e5e5e5;
  background: #f8f8f8;
  color: #333333;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.wgm-close-btn:hover {
  background: #e9ecef;
  color: #111111;
  transform: rotate(90deg);
}

/* ====================================================
   스크롤 가능한 모달 본문 영역 (스크롤바로 밑으로 내려보기)
   ==================================================== */
.wgm-scroll-body {
  flex: 1;
  overflow-y: auto !important;
  overflow-x: hidden;
  padding: 0 0 30px;
  background: #ffffff;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

/* 선명하고 부드러운 스크롤바 */
.wgm-scroll-body::-webkit-scrollbar {
  width: 9px;
}
.wgm-scroll-body::-webkit-scrollbar-track {
  background: #f5f5f7;
  border-radius: 4px;
}
.wgm-scroll-body::-webkit-scrollbar-thumb {
  background: #c2c2c9;
  border-radius: 5px;
}
.wgm-scroll-body::-webkit-scrollbar-thumb:hover {
  background: #8e8e93;
}

/* 1. 성혼 사진 뷰 스타일 */
.wgm-view-gallery {
  display: block;
}

.wgm-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  min-height: 280px;
  max-height: 54vh;
  padding: 16px 20px;
  box-sizing: border-box;
  background: #ffffff;
  overflow: hidden;
  user-select: none;
}

.wgm-photo-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  max-height: 52vh;
}

.wgm-image {
  max-width: 100%;
  max-height: 50vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  display: block;
  margin: 0 auto;
  transition: opacity 0.2s ease;
}

/* 사진 좌우 이전/다음 버튼 */
.wgm-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #dedede;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  color: #333333;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
  padding: 0;
}

.wgm-nav-btn:hover {
  background: #b82635 !important;
  color: #ffffff !important;
  border-color: #b82635 !important;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 6px 18px rgba(184, 38, 53, 0.35);
}

.wgm-prev {
  left: 20px;
}

.wgm-next {
  right: 20px;
}

.wgm-info {
  text-align: center;
  padding: 10px 24px 8px;
  background: #ffffff;
}

.wgm-caption {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 4px;
}

.wgm-desc {
  font-size: 13px;
  color: #666666;
  margin: 0 auto;
  line-height: 1.5;
  max-width: 640px;
}

/* 하단 썸네일 스트립 */
.wgm-thumbnail-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 10px 24px 14px;
  background: #fbfbfb;
  border-top: 1px solid #f0f0f0;
  flex-shrink: 0;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.wgm-thumbnail-strip::-webkit-scrollbar {
  height: 6px;
}

.wgm-thumbnail-strip::-webkit-scrollbar-thumb {
  background: #d4d4d8;
  border-radius: 4px;
}

.wgm-thumb-item {
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  margin: 0;
  background: #eee;
  cursor: pointer;
  opacity: 0.55;
  transition: all 0.2s ease;
  display: block;
}

.wgm-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wgm-thumb-item:hover {
  opacity: 0.85;
}

.wgm-thumb-item.is-active {
  opacity: 1 !important;
  border-color: #b82635 !important;
  transform: scale(1.06);
  box-shadow: 0 3px 10px rgba(184, 38, 53, 0.3);
}

/* 갤러리 하단 DB 전체 사진 그리드 섹션 */
.wgm-gallery-all-wrap {
  margin-top: 24px;
  padding: 20px 28px 10px;
  border-top: 1px solid #f0f0f0;
}

.wgm-subheading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}

.wgm-subheading h4 {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
}

.wgm-badge-count {
  font-size: 14px;
  color: #b82635;
  font-weight: 700;
}

.wgm-subheading-tip {
  font-size: 13px;
  color: #888888;
}

.wgm-gallery-grid-all {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
}

.wgm-all-thumb {
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  background: #f0f0f0;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
  position: relative;
}

.wgm-all-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.wgm-all-thumb:hover {
  border-color: #b82635;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.wgm-all-thumb:hover img {
  transform: scale(1.08);
}

.wgm-all-thumb.is-active {
  border-color: #b82635 !important;
  box-shadow: 0 0 0 2px rgba(184, 38, 53, 0.35);
}

/* ====================================================
   2. 성혼 스토리 상세 뷰 스타일 (본문 내용 밑으로 스크롤 열람)
   ==================================================== */
.wgm-view-story {
  display: block;
}

.wgm-story-article {
  max-width: 820px;
  margin: 0 auto;
  padding: 24px 32px 16px;
}

.wgm-story-header {
  margin-bottom: 20px;
}

.wgm-story-badge {
  display: inline-block;
  padding: 4px 10px;
  background: #fbf0f1;
  color: #b82635;
  font-size: 13px;
  font-weight: 700;
  border-radius: 4px;
  margin-bottom: 10px;
}

.wgm-story-title {
  font-size: 24px;
  font-weight: 800;
  color: #1a1a1a;
  line-height: 1.45;
  margin: 0 0 10px;
  word-break: keep-all;
}

.wgm-story-meta {
  font-size: 13px;
  color: #888888;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f0f0f0;
}

.wgm-meta-divider {
  color: #ddd;
}

.wgm-story-img-container {
  margin: 20px 0 24px;
  background: #fafafa;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 480px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.wgm-story-main-img {
  max-width: 100%;
  max-height: 480px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* 본문 내용: 스크롤바를 통해 길게 내려보며 전문을 읽는 영역 */
.wgm-story-body-content {
  font-size: 16px;
  line-height: 1.9;
  color: #2b2b2b;
  word-break: break-word;
  white-space: pre-wrap;
  margin: 24px 0 32px;
  padding: 0 4px;
}

.wgm-story-body-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 20px auto;
  display: block;
}

.wgm-story-nav-bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 30px;
}

.wgm-story-nav-btn {
  background: #ffffff;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  color: #444444;
  cursor: pointer;
  transition: all 0.2s ease;
}

.wgm-story-nav-btn:hover {
  background: #f7f7f7;
  color: #b82635;
  border-color: #b82635;
}

/* 다른 성혼 스토리 카드 그리드 */
.wgm-story-all-wrap {
  margin-top: 20px;
  padding: 20px 28px 10px;
  border-top: 1px solid #f0f0f0;
}

.wgm-story-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}

.wgm-story-card {
  background: #ffffff;
  border: 1px solid #ececec;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.wgm-story-card:hover {
  transform: translateY(-3px);
  border-color: #b82635;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.wgm-story-card.is-active {
  border-color: #b82635;
  box-shadow: 0 0 0 2px rgba(184, 38, 53, 0.25);
}

.wgm-story-card-thumb {
  width: 100%;
  height: 135px;
  object-fit: cover;
  background: #f0f0f0;
  display: block;
}

.wgm-story-card-body {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wgm-story-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #222222;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wgm-story-card-date {
  font-size: 12px;
  color: #888888;
}

/* 페이징 네비게이션 컨트롤 */
.wgm-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 22px 0 10px;
  padding: 8px 0;
  flex-wrap: wrap;
}

.wgm-page-btn,
.wgm-page-num {
  border: 1px solid #e2e2e7;
  background: #ffffff;
  color: #444444;
  padding: 6px 13px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  box-sizing: border-box;
}

.wgm-page-btn:hover:not(:disabled),
.wgm-page-num:hover {
  border-color: #b82635;
  color: #b82635;
  background: #fdf6f7;
}

.wgm-page-num.is-active {
  background: #b82635 !important;
  color: #ffffff !important;
  border-color: #b82635 !important;
  box-shadow: 0 2px 8px rgba(184, 38, 53, 0.25);
}

.wgm-page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  border-color: #ededed;
  background: #fafafa;
}

/* 하단 갤러리/스토리 더보기 및 무한스크롤 컨트롤 */
.wgm-more-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 24px 0 16px;
  padding: 8px 0;
  width: 100%;
}

.wgm-load-more-btn {
  background: #ffffff;
  border: 1.5px solid #b82635;
  color: #b82635;
  font-size: 14px;
  font-weight: 700;
  padding: 11px 28px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(184, 38, 53, 0.12);
  transition: all 0.22s ease;
  font-family: inherit;
}

.wgm-load-more-btn:hover {
  background: #b82635;
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(184, 38, 53, 0.28);
  transform: translateY(-2px);
}

.wgm-load-more-btn:active {
  transform: translateY(0);
}

.wgm-all-loaded-notice {
  font-size: 13px;
  color: #999999;
  padding: 10px 22px;
  background: #f7f7f8;
  border-radius: 20px;
  display: inline-block;
  font-weight: 500;
}

.wgm-fade-smooth {
  animation: wgmSmoothFade 0.25s ease-out;
}

@keyframes wgmSmoothFade {
  from { opacity: 0.2; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 모바일 반응형 처리 */
@media (max-width: 767px) {
  dialog.white-gallery-modal {
    width: 95vw !important;
    height: 92vh !important;
    max-height: 92vh !important;
    border-radius: 14px !important;
  }

  .wgm-header {
    padding: 12px 14px;
  }

  .wgm-tab {
    padding: 6px 12px;
    font-size: 13px;
  }

  .wgm-counter {
    font-size: 12px;
    padding: 3px 8px;
  }

  .wgm-close-btn {
    width: 32px;
    height: 32px;
  }

  .wgm-stage {
    min-height: 220px;
    max-height: 44vh;
    padding: 10px 8px;
  }

  .wgm-image {
    max-height: 42vh;
  }

  .wgm-nav-btn {
    width: 38px;
    height: 38px;
  }

  .wgm-prev {
    left: 8px;
  }

  .wgm-next {
    right: 8px;
  }

  .wgm-info {
    padding: 8px 14px 6px;
  }

  .wgm-caption {
    font-size: 16px;
  }

  .wgm-desc {
    font-size: 12px;
  }

  .wgm-thumbnail-strip {
    padding: 8px 14px 12px;
    gap: 8px;
  }

  .wgm-thumb-item {
    width: 48px;
    height: 48px;
  }

  .wgm-story-article {
    padding: 16px 14px;
  }

  .wgm-story-title {
    font-size: 19px;
  }

  .wgm-story-body-content {
    font-size: 15px;
    line-height: 1.8;
  }

  .wgm-gallery-all-wrap, .wgm-story-all-wrap {
    padding: 16px 14px 10px;
  }

  .wgm-gallery-grid-all {
    grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
    gap: 8px;
  }

  .wgm-story-card-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}


/* ==========================================================================
   럭키결혼정보 에디토리얼 심층 섹션 (특징 / 미래 / 비용 / 9단계 절차 / 양심선언)
   원본 시안(CSS/style.css)의 헤어라인·비대칭 스플릿·명조 포인트 문법 계승
   ========================================================================== */

.ed-section {
  padding-top: calc(195 * var(--d));
  padding-bottom: calc(185 * var(--d));
  position: relative;
}

.ed-section h2 {
  font-family: var(--heading);
  font-size: calc(62 * var(--d));
  line-height: 1.45;
  letter-spacing: calc(-2.5 * var(--d));
}

.ed-section .eyebrow {
  font-size: calc(18 * var(--d));
  margin-bottom: calc(30 * var(--d));
}

/* 공통 상단 좌·우 스플릿 헤딩 (.stories-heading 문법 계승) */
.ed-split-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: calc(60 * var(--d));
  margin-bottom: calc(96 * var(--d));
}

.ed-split-sub {
  max-width: calc(560 * var(--d));
  font-size: calc(21 * var(--d));
  line-height: 1.9;
  color: #b5b5b5;
  letter-spacing: calc(-0.4 * var(--d));
  padding-bottom: calc(6 * var(--d));
}

.ed-split-sub--light {
  color: #888;
}

/* --------------------------------------------------------------------------
   공통 에디토리얼 포토 프레임 (.intro-photo & .everyday-photo 건축적 문법 계승)
   -------------------------------------------------------------------------- */
.ed-visual-figure {
  position: relative;
  isolation: isolate;
  margin: calc(46 * var(--d)) 0 calc(26 * var(--d));
}

.ed-visual-figure::before {
  content: '';
  position: absolute;
  z-index: 0;
  left: calc(-24 * var(--d));
  bottom: calc(-28 * var(--d));
  width: calc(188 * var(--d));
  height: calc(148 * var(--d));
  background: #f3f0ed;
  pointer-events: none;
}

.ed-visual-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  overflow: hidden;
  background: #eeeae4;
}

.ed-visual-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s ease;
}

.ed-visual-figure:hover .ed-visual-frame img {
  transform: scale(1.022);
}

.ed-visual-figure figcaption {
  position: absolute;
  z-index: 2;
  right: calc(-1 * var(--d));
  bottom: calc(-1 * var(--d));
  background: #ffffff;
  padding: calc(22 * var(--d)) calc(28 * var(--d));
  font-family: var(--serif);
  font-size: calc(19 * var(--d));
  line-height: 1.7;
  color: #636363;
  letter-spacing: calc(-0.4 * var(--d));
}

.ed-visual-figure--counseling .ed-visual-frame {
  aspect-ratio: 920 / 700;
}

.ed-visual-figure--promise::before {
  background: #eae4dc;
}

.ed-visual-figure--promise .ed-visual-frame {
  aspect-ratio: 880 / 920;
}

.ed-visual-figure--promise .ed-visual-frame img {
  object-position: center top;
}

.ed-visual-figure--harmony {
  margin-bottom: 0;
}

.ed-visual-figure--harmony::before {
  left: auto;
  bottom: auto;
  right: calc(-22 * var(--d));
  top: calc(-22 * var(--d));
  width: calc(176 * var(--d));
  height: calc(140 * var(--d));
  background: #e3dbd1;
}

.ed-visual-figure--harmony .ed-visual-frame {
  aspect-ratio: 4 / 5;
}

/* --------------------------------------------------------------------------
   1. 럭키만의 특징 (#lucky-features) — 좌측 에디토리얼 비주얼 + 우측 2열 헤어라인
   -------------------------------------------------------------------------- */
.ed-features {
  background: #ffffff;
}

.ed-features-layout {
  display: grid;
  grid-template-columns: calc(520 * var(--d)) 1fr;
  column-gap: calc(104 * var(--d));
  align-items: start;
}

.ed-features-intro,
.ed-manifesto-title {
  position: relative;
}

.ed-intro-body {
  margin-top: calc(36 * var(--d));
  font-size: calc(22 * var(--d));
  line-height: 1.95;
  color: #7d7d7d;
  letter-spacing: calc(-0.5 * var(--d));
}

.ed-intro-body::before {
  content: '';
  display: block;
  width: calc(48 * var(--d));
  height: 1px;
  background: var(--red);
  margin-bottom: calc(30 * var(--d));
}

.ed-serif-note {
  margin-top: calc(46 * var(--d));
  padding-top: calc(32 * var(--d));
  border-top: 1px solid #ececec;
  font-family: var(--serif);
  font-size: calc(25 * var(--d));
  line-height: 1.85;
  color: #4a4a4a;
  letter-spacing: calc(-0.6 * var(--d));
}

.ed-features-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: calc(52 * var(--d));
  row-gap: calc(78 * var(--d));
  padding-top: calc(8 * var(--d));
}

.ed-feature-item {
  border-top: 1px solid #dfdfdf;
  padding-top: calc(32 * var(--d));
  position: relative;
}

.ed-feature-item::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: calc(32 * var(--d));
  height: 2px;
  background: var(--red);
  transition: width 0.3s ease;
}

.ed-feature-item:hover::before {
  width: 100%;
}

.ed-index {
  display: block;
  font-family: var(--serif);
  font-size: calc(22 * var(--d));
  line-height: 1.4;
  color: var(--red);
  margin-bottom: calc(22 * var(--d));
}

.ed-feature-copy h3 {
  font-family: var(--heading);
  font-size: calc(28 * var(--d));
  line-height: 1.5;
  letter-spacing: calc(-0.9 * var(--d));
  color: var(--dark);
  margin-bottom: calc(14 * var(--d));
}

.ed-feature-copy p {
  font-size: calc(20 * var(--d));
  line-height: 1.88;
  color: #7c7c7c;
  letter-spacing: calc(-0.4 * var(--d));
}

/* --------------------------------------------------------------------------
   1-B. 럭키만의 차별화된 System (#lucky-system) — 시그니처 강조 에디토리얼 섹션
   -------------------------------------------------------------------------- */
.ed-system {
  background: #faf7f3;
  border-top: 1px solid #ece5dc;
}

.ed-system-head {
  display: grid;
  grid-template-columns: calc(540 * var(--d)) 1fr;
  column-gap: calc(80 * var(--d));
  align-items: end;
  margin-bottom: calc(88 * var(--d));
}

.ed-system-title-wrap {
  position: relative;
}

.ed-system-quote {
  margin: 0 0 calc(8 * var(--d));
  padding: calc(6 * var(--d)) 0 calc(6 * var(--d)) calc(34 * var(--d));
  border-left: 2px solid var(--red);
}

.ed-system-quote p {
  font-family: var(--serif);
  font-size: calc(25 * var(--d));
  line-height: 1.82;
  color: #3d3834;
  letter-spacing: calc(-0.6 * var(--d));
  word-break: keep-all;
}

.ed-system-body {
  display: grid;
  grid-template-columns: 1fr calc(520 * var(--d));
  column-gap: calc(96 * var(--d));
  align-items: start;
}

.ed-system-list {
  border-top: 2px solid var(--dark);
}

.ed-system-item {
  display: grid;
  grid-template-columns: calc(62 * var(--d)) 1fr;
  column-gap: calc(22 * var(--d));
  padding: calc(36 * var(--d)) calc(28 * var(--d)) calc(36 * var(--d)) calc(8 * var(--d));
  border-bottom: 1px solid #e4ddd4;
  align-items: baseline;
  position: relative;
}

.ed-system-item--point {
  background: #ffffff;
  padding: calc(38 * var(--d)) calc(34 * var(--d));
  border-left: 3px solid var(--red);
}

.ed-system-no {
  font-family: var(--serif);
  font-size: calc(24 * var(--d));
  font-weight: 700;
  color: var(--red);
  line-height: 1.4;
}

.ed-system-copy h3 {
  font-family: var(--heading);
  font-size: calc(27 * var(--d));
  line-height: 1.48;
  letter-spacing: calc(-0.8 * var(--d));
  color: var(--dark);
  margin-bottom: calc(12 * var(--d));
}

.ed-system-copy p {
  font-size: calc(20 * var(--d));
  line-height: 1.9;
  color: #6c665f;
  letter-spacing: calc(-0.4 * var(--d));
  word-break: keep-all;
}

.ed-system-copy strong {
  color: #262320;
  font-weight: 700;
}

.ed-em-line {
  background: none;
  color: #221f1c;
  font-weight: 700;
  box-shadow: inset 0 -0.48em 0 rgba(255, 96, 112, 0.16);
  padding: 0 calc(2 * var(--d));
}

.ed-system-aside {
  position: relative;
}

.ed-visual-figure--system {
  margin: 0 0 calc(42 * var(--d));
}

.ed-visual-figure--system::before {
  left: auto;
  right: calc(-24 * var(--d));
  bottom: calc(-26 * var(--d));
  background: #ebe3d9;
}

.ed-visual-figure--system .ed-visual-frame {
  aspect-ratio: 880 / 960;
}

.ed-system-pillars {
  margin: 0;
  background: #ffffff;
  border-top: 2px solid var(--dark);
  border-bottom: 1px solid #e2dbd2;
  padding: calc(10 * var(--d)) calc(32 * var(--d));
}

.ed-pillar-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: calc(18 * var(--d));
  padding: calc(22 * var(--d)) 0;
}

.ed-pillar-row + .ed-pillar-row {
  border-top: 1px solid #eee9e2;
}

.ed-pillar-row dt {
  font-family: var(--heading);
  font-size: calc(20 * var(--d));
  font-weight: 700;
  color: var(--red);
  flex: none;
}

.ed-pillar-row dd {
  margin: 0;
  font-size: calc(18.5 * var(--d));
  line-height: 1.6;
  color: #67615a;
  text-align: right;
  letter-spacing: calc(-0.3 * var(--d));
}

/* --------------------------------------------------------------------------
   2. 국제결혼의 미래 (#marriage-future) — 다크 헤어라인 비교 & 2단 매거진 칼럼
   -------------------------------------------------------------------------- */
.ed-future.section-dark {
  background: var(--dark);
  color: #fff;
}

.ed-future h2 em {
  color: var(--pink);
}

.ed-country-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: calc(48 * var(--d));
}

.ed-country-col {
  border-top: 1px solid #595959;
  padding-top: calc(32 * var(--d));
}

.ed-country-col--korea {
  border-top: 2px solid var(--pink);
}

.ed-col-meta {
  display: block;
  font-size: calc(16 * var(--d));
  letter-spacing: calc(0.8 * var(--d));
  color: #a8a8a8;
  margin-bottom: calc(20 * var(--d));
}

.ed-country-col--korea .ed-col-meta {
  color: var(--pink);
  font-weight: 700;
}

.ed-country-col h3 {
  font-family: var(--heading);
  font-size: calc(32 * var(--d));
  line-height: 1.45;
  color: #fff;
  margin-bottom: calc(18 * var(--d));
}

.ed-country-col p {
  font-size: calc(20 * var(--d));
  line-height: 1.9;
  color: #bcbcbc;
  letter-spacing: calc(-0.4 * var(--d));
}

.ed-future-editorial {
  margin-top: calc(96 * var(--d));
  padding-top: calc(76 * var(--d));
  border-top: 1px solid #4a4a4a;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 0;
}

.ed-essay-col {
  position: relative;
  padding-right: calc(56 * var(--d));
}

.ed-essay-col + .ed-essay-col {
  padding-right: 0;
  padding-left: calc(56 * var(--d));
  border-left: 1px solid #4a4a4a;
}

.ed-roman {
  display: block;
  font-family: var(--serif);
  font-size: calc(16 * var(--d));
  letter-spacing: calc(1.6 * var(--d));
  color: #9e9e9e;
  margin-bottom: calc(20 * var(--d));
}

.ed-essay-col h3 {
  font-family: var(--heading);
  font-size: calc(28 * var(--d));
  line-height: 1.55;
  color: #f5f5f5;
  margin-bottom: calc(22 * var(--d));
  letter-spacing: calc(-0.8 * var(--d));
}

.ed-essay-col p {
  font-size: calc(20 * var(--d));
  line-height: 1.95;
  color: #b8b8b8;
  letter-spacing: calc(-0.4 * var(--d));
}

/* --------------------------------------------------------------------------
   3. 국제결혼 비용 (#marriage-cost) — 에디토리얼 매니페스토 & 건축적 명세표
   -------------------------------------------------------------------------- */
.ed-cost {
  background: var(--light);
}

.ed-cost-manifesto {
  display: grid;
  grid-template-columns: calc(490 * var(--d)) 1fr;
  column-gap: calc(110 * var(--d));
  align-items: start;
}

.ed-prose-lead {
  font-family: var(--serif);
  font-size: calc(32 * var(--d));
  line-height: 1.65;
  color: #222;
  letter-spacing: calc(-1 * var(--d));
  margin-bottom: calc(32 * var(--d));
}

.ed-manifesto-prose > p:not(.ed-prose-lead) {
  font-size: calc(21 * var(--d));
  line-height: 1.95;
  color: #6f6f6f;
  letter-spacing: calc(-0.4 * var(--d));
}

.ed-manifesto-prose > p:not(.ed-prose-lead) + p {
  margin-top: calc(26 * var(--d));
}

.ed-manifesto-prose > p strong {
  color: #2b2b2b;
}

.ed-manifesto-statement {
  margin-top: calc(44 * var(--d));
  background: #ffffff;
  padding: calc(42 * var(--d)) calc(48 * var(--d));
  border-top: 2px solid var(--dark);
}

.ed-manifesto-statement p {
  font-size: calc(20 * var(--d));
  line-height: 1.9;
  color: #666;
  margin-bottom: calc(20 * var(--d));
}

.ed-manifesto-statement strong {
  display: block;
  font-family: var(--heading);
  font-size: calc(22 * var(--d));
  line-height: 1.65;
  color: var(--red);
  letter-spacing: calc(-0.5 * var(--d));
}

/* 국가별 기본 정찰 금액 바 */
.ed-rate-ledger {
  margin-top: calc(92 * var(--d));
  background: #ffffff;
  border-top: 2px solid var(--red);
  border-bottom: 1px solid #e2e2e2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ed-rate-cell {
  padding: calc(48 * var(--d)) calc(52 * var(--d));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.ed-rate-cell + .ed-rate-cell {
  border-left: 1px solid #ebebeb;
}

.ed-rate-eng {
  font-size: calc(14 * var(--d));
  letter-spacing: calc(2.2 * var(--d));
  color: #9e9e9e;
  font-weight: 700;
  margin-bottom: calc(10 * var(--d));
}

.ed-rate-country {
  font-family: var(--heading);
  font-size: calc(26 * var(--d));
  color: var(--dark);
  margin-bottom: calc(20 * var(--d));
}

.ed-rate-amount {
  font-family: var(--heading);
  font-size: calc(50 * var(--d));
  line-height: 1.15;
  font-weight: 700;
  color: var(--red);
  letter-spacing: calc(-1.5 * var(--d));
}

.ed-rate-amount span {
  font-family: var(--font);
  font-size: calc(21 * var(--d));
  font-weight: 400;
  color: #666;
  margin-left: calc(8 * var(--d));
  letter-spacing: calc(-0.4 * var(--d));
}

/* 6대 포함 내역 명세표 */
.ed-spec-wrap {
  margin-top: calc(92 * var(--d));
}

.ed-spec-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: calc(32 * var(--d));
}

.ed-spec-header h3 {
  font-family: var(--heading);
  font-size: calc(34 * var(--d));
  letter-spacing: calc(-1 * var(--d));
  color: var(--dark);
}

.ed-spec-header span {
  font-size: calc(19 * var(--d));
  color: #8b8b8b;
}

.ed-spec-table {
  margin: 0;
  border-top: 1px solid #333;
  border-bottom: 1px solid #d8d8d8;
  background: #ffffff;
}

.ed-spec-row {
  display: grid;
  grid-template-columns: calc(340 * var(--d)) 1fr;
  column-gap: calc(48 * var(--d));
  padding: calc(30 * var(--d)) calc(44 * var(--d));
  align-items: baseline;
}

.ed-spec-row + .ed-spec-row {
  border-top: 1px solid #eaeaea;
}

.ed-spec-row dt {
  font-family: var(--heading);
  font-size: calc(23 * var(--d));
  font-weight: 700;
  color: var(--dark);
  display: flex;
  align-items: baseline;
  gap: calc(16 * var(--d));
}

.ed-spec-num {
  font-family: var(--serif);
  font-size: calc(19 * var(--d));
  font-weight: 400;
  color: var(--red);
}

.ed-spec-row dd {
  margin: 0;
  font-size: calc(20 * var(--d));
  line-height: 1.85;
  color: #747474;
  letter-spacing: calc(-0.4 * var(--d));
  word-break: keep-all;
}

/* 사후 추가금 주의 및 계약서 보장 서약 */
.ed-pledge-grid {
  margin-top: calc(64 * var(--d));
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: calc(36 * var(--d));
}

.ed-pledge-caution {
  background: #eceae7;
  padding: calc(48 * var(--d)) calc(50 * var(--d));
}

.ed-pledge-oath {
  background: #ffffff;
  border-top: 3px solid var(--red);
  padding: calc(48 * var(--d)) calc(52 * var(--d));
}

.ed-pledge-kicker {
  display: block;
  font-size: calc(16 * var(--d));
  font-weight: 700;
  letter-spacing: calc(1 * var(--d));
  color: #888;
  margin-bottom: calc(16 * var(--d));
}

.ed-pledge-oath .ed-pledge-kicker {
  color: var(--red);
}

.ed-pledge-caution h4,
.ed-pledge-oath h4 {
  margin: 0 0 calc(20 * var(--d));
  font-family: var(--heading);
  font-size: calc(27 * var(--d));
  line-height: 1.48;
  letter-spacing: calc(-0.8 * var(--d));
  color: var(--dark);
}

.ed-pledge-caution p,
.ed-pledge-oath p {
  font-size: calc(20 * var(--d));
  line-height: 1.9;
  color: #686868;
  letter-spacing: calc(-0.4 * var(--d));
}

.ed-pledge-oath p strong {
  color: #222;
}

.ed-inline-link {
  display: inline-flex;
  align-items: center;
  gap: calc(18 * var(--d));
  margin-top: calc(30 * var(--d));
  padding-bottom: calc(8 * var(--d));
  border-bottom: 1px solid #ffbdc5;
  font-size: calc(19 * var(--d));
  font-weight: 700;
  color: var(--dark);
}

.ed-inline-link .ui-arrow {
  width: calc(24 * var(--d));
  color: var(--red);
}

/* --------------------------------------------------------------------------
   4. 럭키 결혼 진행 절차 (#lucky-process-detail) — 9단계 아키텍처 타임라인
   -------------------------------------------------------------------------- */
.ed-steps {
  background: #ffffff;
}

.ed-timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: calc(48 * var(--d));
  row-gap: calc(74 * var(--d));
}

.ed-timeline-step {
  position: relative;
}

.ed-step-top {
  display: flex;
  align-items: center;
  gap: calc(20 * var(--d));
  margin-bottom: calc(26 * var(--d));
}

.ed-step-no {
  font-family: var(--heading);
  font-size: calc(22 * var(--d));
  font-weight: 700;
  color: var(--red);
  flex: none;
}

.ed-step-line {
  flex: 1;
  height: 1px;
  background: #dcdcdc;
  transition: background 0.25s ease;
}

.ed-timeline-step:hover .ed-step-line,
.ed-timeline-step--point .ed-step-line {
  background: var(--red);
}

.ed-timeline-step h3 {
  font-family: var(--heading);
  font-size: calc(28 * var(--d));
  line-height: 1.5;
  letter-spacing: calc(-0.9 * var(--d));
  color: var(--dark);
  margin-bottom: calc(14 * var(--d));
}

.ed-timeline-step p {
  font-size: calc(20 * var(--d));
  line-height: 1.88;
  color: #7d7d7d;
  letter-spacing: calc(-0.4 * var(--d));
}

.ed-timeline-step p strong {
  color: #333;
}

/* --------------------------------------------------------------------------
   5. 국제결혼을 해서는 안 될 사람 (#marriage-ethics) — 웜스톤 스플릿 헌장
   -------------------------------------------------------------------------- */
.ed-ethics {
  background: #f3f0ed;
}

.ed-ethics-layout {
  display: grid;
  grid-template-columns: calc(490 * var(--d)) 1fr;
  column-gap: calc(106 * var(--d));
  align-items: start;
}

.ed-ethics-intro {
  position: relative;
}

.ed-ethics-desc {
  margin-top: calc(32 * var(--d));
  font-size: calc(21 * var(--d));
  line-height: 1.9;
  color: #7b756e;
  letter-spacing: calc(-0.4 * var(--d));
}

.ed-charter-list {
  border-top: 1px solid #333;
}

.ed-charter-row {
  display: grid;
  grid-template-columns: calc(56 * var(--d)) 1fr;
  column-gap: calc(24 * var(--d));
  padding: calc(34 * var(--d)) 0;
  border-bottom: 1px solid #dad3cb;
  align-items: baseline;
}

.ed-charter-no {
  font-family: var(--serif);
  font-size: calc(23 * var(--d));
  color: var(--red);
}

.ed-charter-body h3 {
  font-family: var(--heading);
  font-size: calc(26 * var(--d));
  line-height: 1.5;
  letter-spacing: calc(-0.8 * var(--d));
  color: #292929;
  margin-bottom: calc(10 * var(--d));
}

.ed-charter-body p {
  font-size: calc(20 * var(--d));
  line-height: 1.85;
  color: #756f68;
  letter-spacing: calc(-0.4 * var(--d));
}

/* ==========================================================================
   모바일 반응형 (@media max-width: 767px) — CSS/style.css 의 --m 규격 100% 일치
   ========================================================================== */
@media (max-width: 767px) {
  .ed-section {
    padding-top: calc(175 * var(--m));
    padding-bottom: calc(165 * var(--m));
  }

  .ed-section .eyebrow {
    font-size: calc(33 * var(--m));
    margin-bottom: calc(38 * var(--m));
  }

  .ed-section h2 {
    font-size: calc(88 * var(--m));
    line-height: 1.46;
    letter-spacing: calc(-3.5 * var(--m));
  }

  .ed-split-head {
    flex-direction: column;
    align-items: flex-start;
    gap: calc(34 * var(--m));
    margin-bottom: calc(84 * var(--m));
  }

  .ed-split-sub {
    max-width: none;
    font-size: calc(38 * var(--m));
    line-height: 1.85;
    padding-bottom: 0;
  }

  /* 공통 에디토리얼 포토 프레임 모바일 */
  .ed-visual-figure {
    margin: calc(62 * var(--m)) 0 calc(28 * var(--m));
  }

  .ed-visual-figure::before {
    left: calc(-20 * var(--m));
    bottom: calc(-32 * var(--m));
    width: calc(248 * var(--m));
    height: calc(192 * var(--m));
  }

  .ed-visual-figure--harmony {
    margin-bottom: 0;
  }

  .ed-visual-figure--harmony::before {
    left: auto;
    bottom: auto;
    right: calc(-18 * var(--m));
    top: calc(-22 * var(--m));
    width: calc(230 * var(--m));
    height: calc(180 * var(--m));
  }

  .ed-visual-figure--harmony .ed-visual-frame {
    aspect-ratio: 4 / 4.6;
  }

  .ed-visual-figure--harmony .ed-visual-frame img {
    object-position: center 40%;
  }

  .ed-visual-figure figcaption {
    right: 0;
    bottom: calc(-1 * var(--m));
    max-width: 88%;
    padding: calc(25 * var(--m)) calc(36 * var(--m));
    font-size: calc(33 * var(--m));
    line-height: 1.72;
  }

  /* 1. 특징 모바일 */
  .ed-features-layout {
    grid-template-columns: 1fr;
    row-gap: calc(88 * var(--m));
  }

  .ed-features-intro,
  .ed-manifesto-title,
  .ed-ethics-intro {
    position: relative;
  }

  .ed-intro-body {
    margin-top: calc(42 * var(--m));
    font-size: calc(38 * var(--m));
    line-height: 1.88;
  }

  .ed-intro-body::before {
    width: calc(72 * var(--m));
    margin-bottom: calc(38 * var(--m));
  }

  .ed-serif-note {
    margin-top: calc(48 * var(--m));
    padding-top: calc(40 * var(--m));
    font-size: calc(42 * var(--m));
    line-height: 1.8;
  }

  .ed-features-list {
    grid-template-columns: 1fr;
    row-gap: calc(64 * var(--m));
    padding-top: 0;
  }

  .ed-feature-item {
    padding-top: calc(38 * var(--m));
  }

  .ed-feature-item::before {
    width: calc(54 * var(--m));
  }

  .ed-index {
    font-size: calc(36 * var(--m));
    margin-bottom: calc(20 * var(--m));
  }

  .ed-feature-copy h3,
  .ed-system-copy h3,
  .ed-timeline-step h3,
  .ed-charter-body h3 {
    font-size: calc(48 * var(--m));
    line-height: 1.52;
    letter-spacing: calc(-1.4 * var(--m));
    margin-bottom: calc(18 * var(--m));
  }

  .ed-feature-copy p,
  .ed-system-copy p,
  .ed-timeline-step p,
  .ed-charter-body p {
    font-size: calc(38 * var(--m));
    line-height: 1.86;
  }

  /* 1-B. 차별화된 System 모바일 */
  .ed-system-head {
    grid-template-columns: 1fr;
    row-gap: calc(44 * var(--m));
    margin-bottom: calc(72 * var(--m));
  }

  .ed-system-quote {
    margin: 0;
    padding: calc(8 * var(--m)) 0 calc(8 * var(--m)) calc(38 * var(--m));
  }

  .ed-system-quote p {
    font-size: calc(40 * var(--m));
    line-height: 1.78;
  }

  .ed-system-body {
    grid-template-columns: 1fr;
    row-gap: calc(76 * var(--m));
  }

  .ed-system-aside {
    order: -1;
  }

  .ed-visual-figure--system {
    margin: 0 0 calc(54 * var(--m));
  }

  .ed-visual-figure--system::before {
    left: auto;
    right: calc(-18 * var(--m));
    bottom: calc(-30 * var(--m));
  }

  .ed-system-pillars {
    padding: calc(12 * var(--m)) calc(42 * var(--m));
  }

  .ed-pillar-row {
    flex-direction: column;
    align-items: flex-start;
    gap: calc(10 * var(--m));
    padding: calc(32 * var(--m)) 0;
  }

  .ed-pillar-row dt {
    font-size: calc(38 * var(--m));
  }

  .ed-pillar-row dd {
    font-size: calc(35 * var(--m));
    text-align: left;
    line-height: 1.65;
  }

  .ed-system-item {
    grid-template-columns: calc(74 * var(--m)) 1fr;
    column-gap: calc(22 * var(--m));
    padding: calc(46 * var(--m)) calc(12 * var(--m));
  }

  .ed-system-item--point {
    padding: calc(48 * var(--m)) calc(38 * var(--m));
  }

  .ed-system-no {
    font-size: calc(38 * var(--m));
  }

  /* 2. 미래 모바일 */
  .ed-country-columns {
    grid-template-columns: 1fr;
    gap: calc(64 * var(--m));
  }

  .ed-country-col {
    padding-top: calc(38 * var(--m));
  }

  .ed-col-meta {
    font-size: calc(30 * var(--m));
    margin-bottom: calc(20 * var(--m));
  }

  .ed-country-col h3 {
    font-size: calc(52 * var(--m));
    margin-bottom: calc(20 * var(--m));
  }

  .ed-country-col p {
    font-size: calc(38 * var(--m));
    line-height: 1.88;
  }

  .ed-future-editorial {
    margin-top: calc(96 * var(--m));
    padding-top: calc(76 * var(--m));
    grid-template-columns: 1fr;
    row-gap: calc(72 * var(--m));
  }

  .ed-essay-col {
    padding-right: 0;
  }

  .ed-essay-col + .ed-essay-col {
    padding-left: 0;
    border-left: 0;
    padding-top: calc(72 * var(--m));
    border-top: 1px solid #4a4a4a;
  }

  .ed-roman {
    font-size: calc(29 * var(--m));
    margin-bottom: calc(22 * var(--m));
  }

  .ed-essay-col h3 {
    font-size: calc(48 * var(--m));
    line-height: 1.55;
    margin-bottom: calc(24 * var(--m));
  }

  .ed-essay-col p {
    font-size: calc(38 * var(--m));
    line-height: 1.9;
  }

  /* 3. 비용 모바일 */
  .ed-cost-manifesto {
    grid-template-columns: 1fr;
    row-gap: calc(78 * var(--m));
  }

  .ed-prose-lead {
    font-size: calc(48 * var(--m));
    line-height: 1.65;
    margin-bottom: calc(36 * var(--m));
  }

  .ed-manifesto-prose > p:not(.ed-prose-lead) {
    font-size: calc(38 * var(--m));
    line-height: 1.9;
  }

  .ed-manifesto-prose > p:not(.ed-prose-lead) + p {
    margin-top: calc(34 * var(--m));
  }

  .ed-manifesto-statement {
    margin-top: calc(52 * var(--m));
    padding: calc(52 * var(--m)) calc(46 * var(--m));
  }

  .ed-manifesto-statement p {
    font-size: calc(37 * var(--m));
    line-height: 1.88;
    margin-bottom: calc(26 * var(--m));
  }

  .ed-manifesto-statement strong {
    font-size: calc(40 * var(--m));
    line-height: 1.65;
  }

  .ed-rate-ledger {
    margin-top: calc(88 * var(--m));
    grid-template-columns: 1fr;
  }

  .ed-rate-cell {
    padding: calc(52 * var(--m)) calc(48 * var(--m));
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: calc(16 * var(--m));
  }

  .ed-rate-cell + .ed-rate-cell {
    border-left: 0;
    border-top: 1px solid #ebebeb;
  }

  .ed-rate-eng {
    width: 100%;
    font-size: calc(26 * var(--m));
    margin-bottom: calc(2 * var(--m));
  }

  .ed-rate-country {
    font-size: calc(48 * var(--m));
    margin-bottom: 0;
  }

  .ed-rate-amount {
    font-size: calc(68 * var(--m));
  }

  .ed-rate-amount span {
    font-size: calc(36 * var(--m));
    margin-left: calc(10 * var(--m));
  }

  .ed-spec-wrap {
    margin-top: calc(92 * var(--m));
  }

  .ed-spec-header {
    flex-direction: column;
    gap: calc(14 * var(--m));
    margin-bottom: calc(38 * var(--m));
  }

  .ed-spec-header h3 {
    font-size: calc(54 * var(--m));
  }

  .ed-spec-header span {
    font-size: calc(35 * var(--m));
  }

  .ed-spec-row {
    grid-template-columns: 1fr;
    row-gap: calc(18 * var(--m));
    padding: calc(44 * var(--m)) calc(42 * var(--m));
  }

  .ed-spec-row dt {
    font-size: calc(44 * var(--m));
    gap: calc(20 * var(--m));
  }

  .ed-spec-num {
    font-size: calc(36 * var(--m));
  }

  .ed-spec-row dd {
    font-size: calc(37 * var(--m));
    line-height: 1.85;
  }

  .ed-pledge-grid {
    margin-top: calc(64 * var(--m));
    grid-template-columns: 1fr;
    gap: calc(40 * var(--m));
  }

  .ed-pledge-caution,
  .ed-pledge-oath {
    padding: calc(56 * var(--m)) calc(48 * var(--m));
  }

  .ed-pledge-kicker {
    font-size: calc(30 * var(--m));
    margin-bottom: calc(20 * var(--m));
  }

  .ed-pledge-caution h4,
  .ed-pledge-oath h4 {
    font-size: calc(46 * var(--m));
    margin-bottom: calc(24 * var(--m));
  }

  .ed-pledge-caution p,
  .ed-pledge-oath p {
    font-size: calc(38 * var(--m));
    line-height: 1.88;
  }

  .ed-inline-link {
    margin-top: calc(38 * var(--m));
    font-size: calc(36 * var(--m));
    gap: calc(22 * var(--m));
    padding-bottom: calc(12 * var(--m));
  }

  .ed-inline-link .ui-arrow {
    width: calc(38 * var(--m));
  }

  /* 4. 9단계 절차 모바일 */
  .ed-timeline {
    grid-template-columns: 1fr;
    row-gap: calc(64 * var(--m));
  }

  .ed-step-top {
    gap: calc(26 * var(--m));
    margin-bottom: calc(26 * var(--m));
  }

  .ed-step-no {
    font-size: calc(38 * var(--m));
  }

  /* 5. 양심 선언 모바일 */
  .ed-ethics-layout {
    grid-template-columns: 1fr;
    row-gap: calc(76 * var(--m));
  }

  .ed-ethics-desc {
    margin-top: calc(36 * var(--m));
    font-size: calc(38 * var(--m));
    line-height: 1.88;
  }

  .ed-charter-row {
    grid-template-columns: calc(74 * var(--m)) 1fr;
    column-gap: calc(24 * var(--m));
    padding: calc(46 * var(--m)) 0;
  }

  .ed-charter-no {
    font-size: calc(38 * var(--m));
  }
}
