/* ============================================================
   서울비디치과 Micro-Interactions & Scroll Animations v1.0
   ============================================================
   - GNB 스크롤 강화
   - 플로팅 CTA 마이크로 인터랙션
   - CTA 버튼 바운스 + 화살표 슬라이드
   - 스크롤 Reveal 정교화
   - 카드/링크 hover 강화
   ============================================================ */

/* ── 1. GNB 스크롤 강화 ── */
.site-header {
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1) !important;
}
.site-header.scrolled {
  background: rgba(255,255,255,0.88) !important;
  backdrop-filter: blur(24px) saturate(1.2) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.2) !important;
  box-shadow: 0 1px 12px rgba(107,66,38,0.06) !important;
}

/* ── 2. 플로팅 CTA 마이크로 인터랙션 ── */

/* 카카오톡 — 펄스 링 */
.floating-btn.kakao {
  position: relative;
}
.floating-btn.kakao::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid #FEE500;
  opacity: 0;
  animation: mi-pulse-ring 2.5s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}
@keyframes mi-pulse-ring {
  0% { transform: scale(0.9); opacity: 0.7; }
  70% { transform: scale(1.4); opacity: 0; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* 전화 — hover 시 흔들림 */
.floating-btn.phone:hover i,
.header-phone:hover i,
.mobile-cta-btn.phone:hover i {
  animation: mi-phone-shake 0.5s ease-in-out;
}
@keyframes mi-phone-shake {
  0%, 100% { transform: rotate(0deg); }
  15% { transform: rotate(-14deg); }
  30% { transform: rotate(14deg); }
  45% { transform: rotate(-10deg); }
  60% { transform: rotate(10deg); }
  75% { transform: rotate(-4deg); }
}

/* 맨위로 — hover 바운스 */
.floating-btn.top:hover i {
  animation: mi-bounce-up 0.5s ease;
}
@keyframes mi-bounce-up {
  0%, 100% { transform: translateY(0); }
  30% { transform: translateY(-5px); }
  50% { transform: translateY(0); }
  70% { transform: translateY(-3px); }
}

/* 플로팅 버튼 공통 hover 스케일 */
.floating-btn {
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1) !important;
}
.floating-btn:hover {
  transform: scale(1.1) !important;
}
.floating-btn:active {
  transform: scale(0.95) !important;
}

/* 모바일 하단 CTA 버튼 */
.mobile-cta-btn {
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1) !important;
}
.mobile-cta-btn:active {
  transform: scale(0.92) !important;
}

/* ── 3. CTA 버튼 (예약, 상담 등) — 바운스 + 화살표 ── */
.btn-primary,
.btn-reserve,
.btn-naver,
.btn-kakao,
.btn-google,
.hero-cta-group .btn,
.btn-lg {
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1) !important;
  position: relative;
  overflow: hidden;
}
.btn-primary:hover,
.btn-reserve:hover,
.hero-cta-group .btn:hover,
.btn-lg:hover {
  transform: translateY(-3px) scale(1.02) !important;
  box-shadow: 0 8px 24px rgba(107,66,38,0.18) !important;
}
.btn-primary:active,
.btn-reserve:active,
.hero-cta-group .btn:active {
  transform: translateY(-1px) scale(0.98) !important;
}

/* 화살표 아이콘 슬라이드 */
.btn i.fa-arrow-right,
.btn i.fa-chevron-right,
.btn-primary i.fa-arrow-right,
.btn-reserve i,
.treatment-card-arrow i,
.type-card-arrow i {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1) !important;
}
.btn:hover i.fa-arrow-right,
.btn:hover i.fa-chevron-right,
.btn-primary:hover i.fa-arrow-right {
  transform: translateX(4px);
}

/* ── 4. 스크롤 Reveal 강화 ── */

/* 새로운 reveal 클래스 (JS에서 자동 적용) */
.mi-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.mi-reveal.mi-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 스태거 딜레이 */
.mi-delay-1 { transition-delay: 80ms !important; }
.mi-delay-2 { transition-delay: 160ms !important; }
.mi-delay-3 { transition-delay: 240ms !important; }
.mi-delay-4 { transition-delay: 320ms !important; }
.mi-delay-5 { transition-delay: 400ms !important; }
.mi-delay-6 { transition-delay: 480ms !important; }

/* ── 5. 카드 / 링크 hover 강화 ── */

/* 공통 카드 — 부드러운 리프트 */
.treatment-card,
.why-card,
.philosophy-card,
.doctor-card-v2,
.review-card,
.type-card,
.floor-item,
.video-stat {
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1) !important;
}
.treatment-card:hover,
.why-card:hover,
.philosophy-card:hover,
.type-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 16px 48px rgba(107,66,38,0.1) !important;
}
.doctor-card-v2:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 16px 48px rgba(107,66,38,0.1) !important;
}
.review-card:hover {
  transform: translateY(-6px) !important;
}
.floor-item:hover {
  transform: translateX(6px) !important;
}
.video-stat:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 8px 24px rgba(107,66,38,0.08) !important;
}

/* 카드 내 아이콘 hover 시 미세 스케일 */
.treatment-card:hover .treatment-card-icon,
.why-card:hover .why-card-icon,
.philosophy-card:hover .philosophy-card-icon,
.type-card:hover .type-icon {
  transform: scale(1.08);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

/* 카드 화살표 hover 개선 */
.treatment-card:hover .treatment-card-arrow,
.type-card:hover .type-card-arrow {
  transform: translate(3px, -3px) !important;
}

/* 링크 hover — 네비게이션 */
.mega-dropdown-section a,
.simple-dropdown a {
  transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1) !important;
}
.mega-dropdown-section a:hover,
.simple-dropdown a:hover {
  transform: translateX(4px);
  background: var(--gray-50);
}

/* ── 6. 섹션 배지 등장 효과 ── */
.section-badge {
  transition: all 0.3s ease !important;
}
.section-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(107,66,38,0.1);
}

/* ── 7. 이미지 hover 줌 (이미 있지만 부드럽게) ── */
.doctor-card-photo img {
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

/* ── 8. FAQ 아코디언 개선 ── */
.faq-question {
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1) !important;
}
.faq-question:hover {
  background: rgba(107,66,38,0.02);
}

/* ── 9. 숫자 카운트업 스타일 ── */
.mi-counting {
  display: inline-block;
}

/* ============================================================
   v2.0 — 후기 스태거, 마우스 글로우, 히어로 효과, 스크롤 프로그레스
   ============================================================ */

/* ── 10. 후기 카드 스태거 등장 ── */
.reviews-grid .review-card {
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

/* ── 11. 마우스 글로우 (카드 hover 시 커서 따라 빛) ── */
.treatment-card,
.why-card,
.philosophy-card,
.type-card,
.review-card,
.why-hero-card {
  --glow-x: 50%;
  --glow-y: 50%;
}
.treatment-card::after,
.why-card::after,
.philosophy-card::after,
.type-card::after,
.why-hero-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: inherit;
  background: radial-gradient(
    320px circle at var(--glow-x) var(--glow-y),
    rgba(200, 169, 126, 0.08),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}
.treatment-card:hover::after,
.why-card:hover::after,
.philosophy-card:hover::after,
.type-card:hover::after,
.why-hero-card:hover::after {
  opacity: 1;
}

/* ── 11-b. 타임라인 카드 글로우네이트 (tl-card 전용) ── */
.tl-card {
  --glow-x: 50%;
  --glow-y: 50%;
  position: relative !important;
  overflow: hidden !important;
}
.tl-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: inherit;
  background: radial-gradient(
    400px circle at var(--glow-x) var(--glow-y),
    rgba(200, 169, 126, 0.15),
    transparent 55%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 2;
}
.tl-card:hover::after {
  opacity: 1;
}
/* 호버 시 카드 경계선 골드 강조 */
.tl-card:hover {
  border-color: rgba(200, 169, 126, 0.4) !important;
  box-shadow: 0 8px 32px rgba(200, 169, 126, 0.12) !important;
}
/* review-card는 position이 relative일 때만 동작 */
.review-card { position: relative; overflow: hidden; }
.review-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: inherit;
  background: radial-gradient(
    280px circle at var(--glow-x) var(--glow-y),
    rgba(200, 169, 126, 0.06),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}
.review-card:hover::after { opacity: 1; }

/* ── 12. CTA 버튼 빛 스위프 효과 ── */
.hero-cta-group .btn,
.btn-primary.btn-lg {
  --shine-x: -20%;
}
.hero-cta-group .btn::after,
.btn-primary.btn-lg::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255,255,255,0.25) 45%,
    rgba(255,255,255,0.25) 55%,
    transparent 65%
  );
  background-size: 200% 100%;
  background-position-x: var(--shine-x);
  pointer-events: none;
  transition: background-position-x 0.3s ease;
}
.hero-cta-group .btn:hover::after,
.btn-primary.btn-lg:hover::after {
  background-position-x: 120%;
  transition: background-position-x 0.6s ease;
}

/* ── 13. 스크롤 프로그레스 바 (메인페이지) ── */
.mi-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--brand-gold, #C8A97E), var(--brand, #6B4226));
  z-index: 99999;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ── 14. 히어로 향상 — 부드러운 등장 유지 ── */
.hero .reveal {
  will-change: opacity, transform;
}

/* ── 15. 숫자 카운트업 — 폰트 고정폭으로 깜빡임 방지 ── */
.video-stat-number,
.stat-number,
.why-card-stat .num,
.fac-mag-stat-num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

/* ── prefers-reduced-motion 존중 ── */
@media (prefers-reduced-motion: reduce) {
  .mi-reveal { transition: none !important; opacity: 1 !important; transform: none !important; }
  .floating-btn.kakao::before { animation: none !important; }
  .floating-btn:hover, .floating-btn:active { transform: none !important; }
  .btn-primary:hover, .btn-reserve:hover { transform: none !important; }
  .treatment-card:hover, .why-card:hover, .philosophy-card:hover,
  .doctor-card-v2:hover, .review-card:hover, .type-card:hover,
  .floor-item:hover, .video-stat:hover { transform: none !important; }
  .mi-phone-shake, .mi-bounce-up { animation: none !important; }
  .treatment-card::after, .why-card::after, .philosophy-card::after,
  .type-card::after, .why-hero-card::after, .review-card::after,
  .tl-card::after { display: none; }
  .mi-scroll-progress { display: none; }
  .hero-cta-group .btn::after, .btn-primary.btn-lg::after { display: none; }
}

/* 모바일에서 글로우/샤인 비활성화 (터치 기기) */
@media (hover: none) {
  .treatment-card::after, .why-card::after, .philosophy-card::after,
  .type-card::after, .why-hero-card::after, .review-card::after,
  .tl-card::after { display: none !important; }
  .hero-cta-group .btn::after, .btn-primary.btn-lg::after { display: none !important; }
}

/* ═══════════════════════════════════════════════════════════
   Magazine-Style Photo Gallery  v1.0
   — Editorial / Lookbook layout for clinic photos
   ═══════════════════════════════════════════════════════════ */

.mag-gallery {
  padding: 80px 0;
  background: #faf9f7;
  overflow: hidden;
}
.mag-gallery .section-header {
  margin-bottom: 48px;
}
.mag-gallery .mag-kicker {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand, #6B4226);
  border: 1.5px solid var(--brand, #6B4226);
  padding: 4px 14px;
  border-radius: 2px;
  margin-bottom: 16px;
}
.mag-gallery .mag-title {
  font-size: 2rem;
  font-weight: 800;
  color: #1a1a1a;
  line-height: 1.3;
  margin: 0 0 8px;
}
.mag-gallery .mag-subtitle {
  font-size: 0.95rem;
  color: #888;
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* Editorial Mosaic Grid */
.mag-mosaic {
  display: grid;
  gap: 6px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Desktop: 4-column editorial grid */
.mag-mosaic {
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto;
}

/* Each photo cell */
.mag-cell {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: #e8e4df;
}
.mag-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), filter 0.5s ease;
  filter: brightness(0.95);
}
.mag-cell:hover img {
  transform: scale(1.05);
  filter: brightness(1.02);
}

/* Caption overlay */
.mag-cell .mag-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 16px 14px;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 100%);
  color: #fff;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.mag-cell:hover .mag-caption {
  opacity: 1;
}
.mag-caption .cap-label {
  display: block;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 2px;
}
.mag-caption .cap-text {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
}

/* Feature cell — spans 2 cols & 2 rows */
.mag-cell.mag-feature {
  grid-column: span 2;
  grid-row: span 2;
}
.mag-cell.mag-feature img {
  min-height: 100%;
}

/* Tall cell — spans 2 rows */
.mag-cell.mag-tall {
  grid-row: span 2;
}

/* Wide cell — spans 2 cols */
.mag-cell.mag-wide {
  grid-column: span 2;
}

/* Aspect ratio helpers */
.mag-cell.mag-sq { aspect-ratio: 1 / 1; }
.mag-cell.mag-land { aspect-ratio: 4 / 3; }
.mag-cell.mag-port { aspect-ratio: 3 / 4; }

/* Divider line between gallery blocks */
.mag-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  color: #c9bfb3;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.mag-divider::before,
.mag-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e0d8ce;
}

/* Pull-quote style */
.mag-quote {
  max-width: 800px;
  margin: 0 auto 40px;
  padding: 0 20px;
  text-align: center;
}
.mag-quote blockquote {
  font-size: 1.3rem;
  font-weight: 300;
  font-style: italic;
  color: #4a3f35;
  line-height: 1.8;
  margin: 0;
  padding: 0;
  border: none;
}
.mag-quote cite {
  display: block;
  margin-top: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand, #6B4226);
  font-style: normal;
  letter-spacing: 0.08em;
}

/* Scroll reveal for gallery items */
.mag-cell {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.mag-cell.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered reveal delays */
.mag-cell:nth-child(1) { transition-delay: 0s; }
.mag-cell:nth-child(2) { transition-delay: 0.08s; }
.mag-cell:nth-child(3) { transition-delay: 0.16s; }
.mag-cell:nth-child(4) { transition-delay: 0.24s; }
.mag-cell:nth-child(5) { transition-delay: 0.32s; }
.mag-cell:nth-child(6) { transition-delay: 0.4s; }
.mag-cell:nth-child(7) { transition-delay: 0.48s; }
.mag-cell:nth-child(8) { transition-delay: 0.56s; }
.mag-cell:nth-child(9) { transition-delay: 0.64s; }
.mag-cell:nth-child(10) { transition-delay: 0.72s; }

/* ── Tablet ── */
@media (max-width: 1024px) {
  .mag-mosaic {
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
  }
  .mag-cell.mag-feature {
    grid-column: span 2;
    grid-row: span 2;
  }
  .mag-gallery .mag-title { font-size: 1.6rem; }
}

/* ── Mobile ── */
@media (max-width: 640px) {
  .mag-gallery { padding: 48px 0; }
  .mag-gallery .section-header { margin-bottom: 32px; }
  .mag-gallery .mag-title { font-size: 1.3rem; }
  .mag-mosaic {
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    padding: 0 12px;
  }
  .mag-cell.mag-feature {
    grid-column: span 2;
    grid-row: span 1;
    aspect-ratio: 16 / 9;
  }
  .mag-cell.mag-tall {
    grid-row: span 1;
  }
  .mag-cell.mag-wide {
    grid-column: span 2;
  }
  .mag-cell.mag-sq { aspect-ratio: 1 / 1; }
  .mag-cell .mag-caption { opacity: 1; padding: 24px 10px 10px; }
  .mag-caption .cap-text { font-size: 0.75rem; }
  .mag-divider { margin: 24px auto; }
  .mag-quote blockquote { font-size: 1.05rem; }
}

/* ═══════════════════════════════════════════════════════════
   Cinematic Dark Gallery  v1.0
   — Implant Center dramatic film-look layout
   ═══════════════════════════════════════════════════════════ */

.cine-gallery {
  position: relative;
  padding: 100px 0 80px;
  background: #0a0a0a;
  overflow: hidden;
}
/* Subtle grain overlay for film look */
.cine-gallery::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}
.cine-gallery > * {
  position: relative;
  z-index: 2;
}

/* Section header — cinematic */
.cine-gallery .cine-header {
  text-align: center;
  margin-bottom: 56px;
  padding: 0 20px;
}
.cine-gallery .cine-eyebrow {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #a08060;
  margin-bottom: 16px;
}
.cine-gallery .cine-eyebrow::before,
.cine-gallery .cine-eyebrow::after {
  content: '——';
  margin: 0 12px;
  color: #3d3228;
}
.cine-gallery .cine-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #f5f0eb;
  line-height: 1.3;
  margin: 0 0 12px;
}
.cine-gallery .cine-title .text-gold {
  background: linear-gradient(135deg, #c9a96e, #e8d5a8, #c9a96e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cine-gallery .cine-subtitle {
  font-size: 0.95rem;
  color: #777;
  font-weight: 300;
  letter-spacing: 0.04em;
}

/* Film-strip grid */
.cine-strip {
  display: grid;
  gap: 4px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  grid-template-columns: repeat(4, 1fr);
}

/* Each frame */
.cine-frame {
  position: relative;
  overflow: hidden;
  background: #111;
  border-radius: 2px;
}
.cine-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.8) contrast(1.1) saturate(0.85);
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.cine-frame:hover img {
  filter: brightness(1) contrast(1.05) saturate(1);
  transform: scale(1.04);
}

/* Cinematic letterbox bars on hover */
.cine-frame::before,
.cine-frame::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 0;
  background: #0a0a0a;
  z-index: 3;
  transition: height 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.cine-frame::before { top: 0; }
.cine-frame::after { bottom: 0; }
.cine-frame:hover::before,
.cine-frame:hover::after {
  height: 8%;
}

/* Caption — cinematic overlay */
.cine-frame .cine-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 48px 16px 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
  z-index: 4;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.cine-frame:hover .cine-caption {
  opacity: 1;
  transform: translateY(0);
}
.cine-caption .cc-tag {
  display: inline-block;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #c9a96e;
  border: 1px solid rgba(201,169,110,0.4);
  padding: 2px 8px;
  border-radius: 2px;
  margin-bottom: 4px;
}
.cine-caption .cc-text {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: #f0ebe4;
  line-height: 1.4;
}

/* Span helpers */
.cine-frame.cine-hero {
  grid-column: span 2;
  grid-row: span 2;
}
.cine-frame.cine-wide {
  grid-column: span 2;
}
.cine-frame.cine-tall {
  grid-row: span 2;
}
.cine-frame.cine-sq { aspect-ratio: 1 / 1; }
.cine-frame.cine-land { aspect-ratio: 16 / 10; }

/* Cinematic quote divider */
.cine-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1200px;
  margin: 48px auto;
  padding: 0 20px;
  color: #5a4a38;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.cine-divider::before,
.cine-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #3d3228, transparent);
}

.cine-pull {
  max-width: 800px;
  margin: 0 auto 48px;
  padding: 0 20px;
  text-align: center;
}
.cine-pull blockquote {
  font-size: 1.2rem;
  font-weight: 300;
  font-style: italic;
  color: #c9a96e;
  line-height: 1.9;
  margin: 0;
  padding: 0;
  border: none;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.cine-pull cite {
  display: block;
  margin-top: 10px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #666;
  font-style: normal;
  letter-spacing: 0.12em;
}

/* Scroll reveal */
.cine-frame {
  opacity: 0;
  transform: translateY(40px) scale(0.97);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), filter 0.8s;
}
.cine-frame.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.cine-frame:nth-child(1) { transition-delay: 0s; }
.cine-frame:nth-child(2) { transition-delay: 0.1s; }
.cine-frame:nth-child(3) { transition-delay: 0.2s; }
.cine-frame:nth-child(4) { transition-delay: 0.3s; }
.cine-frame:nth-child(5) { transition-delay: 0.4s; }
.cine-frame:nth-child(6) { transition-delay: 0.5s; }
.cine-frame:nth-child(7) { transition-delay: 0.6s; }
.cine-frame:nth-child(8) { transition-delay: 0.7s; }
.cine-frame:nth-child(9) { transition-delay: 0.8s; }

/* ── Tablet ── */
@media (max-width: 1024px) {
  .cine-strip { grid-template-columns: repeat(3, 1fr); gap: 3px; }
  .cine-gallery .cine-title { font-size: 1.7rem; }
  .cine-frame.cine-hero { grid-column: span 2; grid-row: span 2; }
}

/* ── Mobile ── */
@media (max-width: 640px) {
  .cine-gallery { padding: 60px 0 48px; }
  .cine-gallery .cine-header { margin-bottom: 36px; }
  .cine-gallery .cine-title { font-size: 1.3rem; }
  .cine-gallery .cine-eyebrow { font-size: 0.58rem; }
  .cine-gallery .cine-eyebrow::before,
  .cine-gallery .cine-eyebrow::after { content: '—'; margin: 0 6px; }
  .cine-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 3px;
    padding: 0 12px;
  }
  .cine-frame.cine-hero {
    grid-column: span 2;
    grid-row: span 1;
    aspect-ratio: 16 / 9;
  }
  .cine-frame.cine-wide { grid-column: span 2; }
  .cine-frame.cine-tall { grid-row: span 1; }
  .cine-frame .cine-caption {
    opacity: 1;
    transform: translateY(0);
    padding: 28px 10px 10px;
  }
  .cine-caption .cc-text { font-size: 0.72rem; }
  .cine-frame::before, .cine-frame::after { display: none; }
  .cine-divider { margin: 28px auto; }
  .cine-pull blockquote { font-size: 0.95rem; }
}

/* ═══════════════════════════════════════════════════
   EDITORIAL MAGAZINE GALLERY v3.0  (ed-mag)
   공통 럭셔리 매거진 레이아웃 — 임플란트·인비절라인·교정
   ═══════════════════════════════════════════════════ */

/* ── Base Section ── */
.ed-mag {
  padding: 100px 0 80px;
  background: #faf9f6;
  position: relative;
  overflow: hidden;
}
.ed-mag::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(107,66,38,0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 90%, rgba(201,169,110,0.04) 0%, transparent 50%);
  pointer-events: none;
}

/* ── Dark variant (Implant) ── */
.ed-mag--dark {
  background: #0a0a0a;
}
.ed-mag--dark::before {
  background:
    radial-gradient(ellipse at 30% 20%, rgba(201,169,110,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(107,66,38,0.04) 0%, transparent 50%);
}
.ed-mag--dark .ed-mag__title { color: #f0ece4; }
.ed-mag--dark .ed-mag__lead { color: #999; }
.ed-mag--dark .ed-mag__quote blockquote { color: #c9a96e; }
.ed-mag--dark .ed-mag__split-text h3 { color: #f0ece4; }
.ed-mag--dark .ed-mag__split-text p { color: #aaa; }
.ed-mag--dark .ed-mag__split-text { background: rgba(20,20,20,0.5); }

/* ── Header ── */
.ed-mag__header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
  padding: 0 24px;
  position: relative; z-index: 1;
}
.ed-mag__eyebrow {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #c9a96e;
  font-weight: 600;
  margin-bottom: 16px;
}
.ed-mag__title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  color: #222;
  line-height: 1.35;
  margin: 0 0 16px;
}
.ed-mag__accent {
  background: linear-gradient(135deg, #6B4226 20%, #c9a96e 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.ed-mag__lead {
  font-size: 0.95rem;
  color: #777;
  line-height: 1.8;
  margin: 0;
}
.ed-mag__rule {
  display: flex; justify-content: center; margin-top: 28px;
}
.ed-mag__rule span {
  width: 50px; height: 2px;
  background: linear-gradient(90deg, transparent, #c9a96e, transparent);
}

/* ── Tag ── */
.ed-mag__tag {
  display: inline-block;
  padding: 3px 12px;
  background: rgba(107,66,38,0.9);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 2px;
  margin-bottom: 8px;
}
.ed-mag--dark .ed-mag__tag {
  background: rgba(201,169,110,0.85);
  color: #111;
}

/* ── Hero ── */
.ed-mag__hero {
  position: relative;
  max-width: 1100px;
  margin: 0 auto 48px;
  padding: 0 20px;
  overflow: hidden;
}
.ed-mag__hero img {
  width: 100%; height: auto;
  aspect-ratio: 16 / 8;
  object-fit: cover; display: block;
  border-radius: 6px;
  filter: brightness(0.92) contrast(1.03);
  transition: transform 0.8s cubic-bezier(0.25,0.46,0.45,0.94);
}
.ed-mag--dark .ed-mag__hero img {
  filter: brightness(0.80) contrast(1.1) saturate(0.85);
}
.ed-mag__hero:hover img { transform: scale(1.02); }
.ed-mag__hero-overlay {
  position: absolute;
  bottom: 0; left: 20px; right: 20px;
  padding: 80px 32px 28px;
  background: linear-gradient(0deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.25) 70%, transparent 100%);
  border-radius: 0 0 6px 6px;
}
.ed-mag__hero-overlay h3 {
  color: #fff; font-size: 1.3rem; font-weight: 700;
  margin: 6px 0 4px; line-height: 1.4;
}
.ed-mag__hero-overlay p {
  color: rgba(255,255,255,0.78); font-size: 0.82rem;
  margin: 0; line-height: 1.5;
}

/* ── Quote ── */
.ed-mag__quote {
  max-width: 640px;
  margin: 0 auto 52px;
  padding: 0 24px;
  text-align: center;
}
.ed-mag__quote blockquote {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 300; font-style: italic;
  color: #6B4226; line-height: 1.9;
  margin: 0; position: relative; padding: 0 20px;
}
.ed-mag__quote blockquote::before,
.ed-mag__quote blockquote::after {
  content: ''; display: block;
  width: 36px; height: 1px;
  background: #c9a96e;
  margin: 0 auto 20px;
}
.ed-mag__quote blockquote::after { margin: 20px auto 0; }

/* ── Grid A : 2+1 stack ── */
.ed-mag__grid-a {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  max-width: 1100px;
  margin: 0 auto 48px;
  padding: 0 20px;
}
.ed-mag__cell {
  position: relative; overflow: hidden; border-radius: 4px;
}
.ed-mag__cell img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.7s ease, filter 0.5s ease;
  filter: brightness(0.88) saturate(0.95);
}
.ed-mag--dark .ed-mag__cell img {
  filter: brightness(0.78) contrast(1.08) saturate(0.82);
}
.ed-mag__cell:hover img {
  transform: scale(1.04);
  filter: brightness(0.95) saturate(1.05);
}
.ed-mag--dark .ed-mag__cell:hover img {
  filter: brightness(0.88) saturate(0.95);
}
.ed-mag__cell--tall { grid-row: span 2; }
.ed-mag__cell--tall img { height: 100%; min-height: 400px; }
.ed-mag__cell--stack {
  display: flex; flex-direction: column; gap: 6px;
}
.ed-mag__cell-inner {
  position: relative; overflow: hidden;
  border-radius: 4px; flex: 1;
}
.ed-mag__cell-inner img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.7s ease, filter 0.5s ease;
  filter: brightness(0.88) saturate(0.95);
}
.ed-mag--dark .ed-mag__cell-inner img {
  filter: brightness(0.78) contrast(1.08) saturate(0.82);
}
.ed-mag__cell-inner:hover img {
  transform: scale(1.04);
  filter: brightness(0.95) saturate(1.05);
}

/* ── Caption Overlay ── */
.ed-mag__caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 60px 18px 16px;
  background: linear-gradient(0deg, rgba(0,0,0,0.68) 0%, rgba(0,0,0,0.15) 60%, transparent 100%);
  opacity: 0; transform: translateY(8px);
  transition: all 0.4s ease;
}
.ed-mag__cell:hover .ed-mag__caption,
.ed-mag__cell-inner:hover .ed-mag__caption {
  opacity: 1; transform: translateY(0);
}
.ed-mag__caption h4 {
  color: #fff; font-size: 0.88rem; font-weight: 700;
  margin: 4px 0 2px; line-height: 1.3;
}
.ed-mag__caption p {
  color: rgba(255,255,255,0.72); font-size: 0.72rem;
  margin: 0; line-height: 1.4;
}

/* ── Cinema ── */
.ed-mag__cinema {
  position: relative;
  max-width: 1100px;
  margin: 0 auto 48px;
  padding: 0 20px;
  overflow: hidden;
}
.ed-mag__cinema img {
  width: 100%; aspect-ratio: 21 / 9;
  object-fit: cover; display: block;
  border-radius: 4px;
  filter: brightness(0.85) saturate(0.92);
  transition: transform 0.8s ease;
}
.ed-mag--dark .ed-mag__cinema img {
  filter: brightness(0.75) contrast(1.1) saturate(0.8);
}
.ed-mag__cinema:hover img { transform: scale(1.02); }
.ed-mag__cinema-cap {
  position: absolute;
  bottom: 0; left: 20px; right: 20px;
  padding: 64px 28px 22px;
  background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, transparent 100%);
  border-radius: 0 0 4px 4px;
}
.ed-mag__cinema-cap h4 {
  color: #fff; font-size: 1rem; font-weight: 700;
  margin: 6px 0 3px;
}
.ed-mag__cinema-cap p {
  color: rgba(255,255,255,0.72); font-size: 0.78rem; margin: 0;
}

/* ── Grid B : 3 columns ── */
.ed-mag__grid-b {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  max-width: 1100px;
  margin: 0 auto 48px;
  padding: 0 20px;
}
.ed-mag__grid-b .ed-mag__cell img { aspect-ratio: 3 / 4; }

/* ── Split ── */
.ed-mag__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-width: 1100px;
  margin: 0 auto 48px;
  padding: 0 20px;
  align-items: center;
}
.ed-mag__split--reverse { direction: rtl; }
.ed-mag__split--reverse > * { direction: ltr; }
.ed-mag__split-img {
  position: relative; overflow: hidden; border-radius: 4px;
}
.ed-mag__split-img img {
  width: 100%; aspect-ratio: 4 / 5;
  object-fit: cover; display: block;
  filter: brightness(0.9) saturate(0.95);
  transition: transform 0.8s ease;
}
.ed-mag--dark .ed-mag__split-img img {
  filter: brightness(0.78) saturate(0.85);
}
.ed-mag__split-img:hover img { transform: scale(1.03); }
.ed-mag__split-img .ed-mag__tag {
  position: absolute; top: 16px; left: 16px;
}
.ed-mag__split-text { padding: 40px 48px; }
.ed-mag__split-text h3 {
  font-size: 1.4rem; font-weight: 800;
  color: #333; line-height: 1.5;
  margin: 0 0 16px;
}
.ed-mag__split-text p {
  font-size: 0.88rem; color: #666;
  line-height: 1.9; margin: 0 0 24px;
}
.ed-mag__split-sig {
  display: block;
  font-size: 0.68rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: #c9a96e; font-weight: 600;
}

/* ── Duo ── */
.ed-mag__duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  max-width: 1100px;
  margin: 0 auto 48px;
  padding: 0 20px;
}
.ed-mag__duo .ed-mag__cell img { aspect-ratio: 16 / 10; }

/* ── Scroll Reveal ── */
.ed-mag .reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.ed-mag .reveal.visible {
  opacity: 1; transform: translateY(0);
}

/* ═══ ED-MAG Responsive ═══ */
@media (max-width: 1024px) {
  .ed-mag { padding: 80px 0 60px; }
  .ed-mag__hero-overlay h3 { font-size: 1.1rem; }
  .ed-mag__split-text { padding: 28px 32px; }
  .ed-mag__split-text h3 { font-size: 1.2rem; }
}
@media (max-width: 640px) {
  .ed-mag { padding: 64px 0 48px; }
  .ed-mag__header { margin-bottom: 40px; }
  .ed-mag__eyebrow { font-size: 0.58rem; letter-spacing: 0.25em; }
  .ed-mag__lead { font-size: 0.85rem; }
  .ed-mag__hero img { aspect-ratio: 16 / 10; }
  .ed-mag__hero-overlay { padding: 50px 18px 16px; left: 0; right: 0; }
  .ed-mag__hero-overlay h3 { font-size: 0.95rem; }
  .ed-mag__hero-overlay p { font-size: 0.72rem; }
  .ed-mag__quote blockquote { font-size: 0.92rem; }
  .ed-mag__grid-a { grid-template-columns: 1fr; gap: 5px; }
  .ed-mag__cell--tall { grid-row: span 1; }
  .ed-mag__cell--tall img { min-height: auto; aspect-ratio: 4 / 3; }
  .ed-mag__cell--stack { flex-direction: row; }
  .ed-mag__cell--stack .ed-mag__cell-inner img { aspect-ratio: 1; }
  .ed-mag__grid-b { grid-template-columns: repeat(2, 1fr); }
  .ed-mag__grid-b .ed-mag__cell:first-child { grid-column: span 2; }
  .ed-mag__grid-b .ed-mag__cell:first-child img { aspect-ratio: 16 / 9; }
  .ed-mag__split { grid-template-columns: 1fr; }
  .ed-mag__split--reverse { direction: ltr; }
  .ed-mag__split-img img { aspect-ratio: 4 / 3; }
  .ed-mag__split-text { padding: 24px 16px; text-align: center; }
  .ed-mag__split-text h3 { font-size: 1.15rem; }
  .ed-mag__split-text p { font-size: 0.82rem; }
  .ed-mag__duo { grid-template-columns: 1fr; }
  .ed-mag__cinema img { aspect-ratio: 16 / 9; }
  .ed-mag__cinema-cap { padding: 40px 16px 14px; left: 0; right: 0; }
  .ed-mag__cinema-cap h4 { font-size: 0.88rem; }
  .ed-mag__caption { opacity: 1; transform: translateY(0); padding: 36px 12px 10px; }
  .ed-mag__caption h4 { font-size: 0.78rem; }
  .ed-mag__caption p { font-size: 0.65rem; }
}

/* ═══════════════════════════════════════════════════
   PEDIATRIC LUXURY MAGAZINE GALLERY v2.0
   럭셔리 매거진·에디토리얼 레이아웃 (소아치과 전용)
   ═══════════════════════════════════════════════════ */

/* ── Base Section ── */
.pedo-mag {
  padding: 100px 0 80px;
  background: #faf9f6;
  position: relative;
  overflow: hidden;
}
.pedo-mag::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(107,66,38,0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 90%, rgba(201,169,110,0.04) 0%, transparent 50%);
  pointer-events: none;
}
.pedo-mag--warm {
  background: linear-gradient(180deg, #fef7f0 0%, #faf9f6 40%, #f0faf5 70%, #faf9f6 100%);
}

/* ── Header ── */
.pedo-mag__header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}
.pedo-mag__eyebrow {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #c9a96e;
  font-weight: 600;
  margin-bottom: 16px;
}
.pedo-mag__title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  color: #222;
  line-height: 1.35;
  margin: 0 0 16px;
}
.pedo-mag__accent {
  background: linear-gradient(135deg, #6B4226 20%, #c9a96e 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.pedo-mag__lead {
  font-size: 0.95rem;
  color: #777;
  line-height: 1.8;
  margin: 0;
}
.pedo-mag__rule {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}
.pedo-mag__rule span {
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #c9a96e, transparent);
}

/* ── Tag Label ── */
.pedo-mag__tag {
  display: inline-block;
  padding: 3px 12px;
  background: rgba(107,66,38,0.9);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 2px;
  margin-bottom: 8px;
}

/* ── Hero Full-Bleed ── */
.pedo-mag__hero {
  position: relative;
  max-width: 1100px;
  margin: 0 auto 48px;
  padding: 0 20px;
  overflow: hidden;
}
.pedo-mag__hero img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  filter: brightness(0.92) contrast(1.03);
  transition: transform 0.8s cubic-bezier(0.25,0.46,0.45,0.94);
}
.pedo-mag__hero:hover img {
  transform: scale(1.02);
}
.pedo-mag__hero-overlay {
  position: absolute;
  bottom: 20px;
  left: 40px;
  right: 40px;
  background: linear-gradient(0deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.25) 70%, transparent 100%);
  padding: 80px 32px 28px;
  border-radius: 0 0 6px 6px;
  bottom: 0;
  left: 20px;
  right: 20px;
}
.pedo-mag__hero-overlay h3 {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 6px 0 4px;
  line-height: 1.4;
}
.pedo-mag__hero-overlay p {
  color: rgba(255,255,255,0.78);
  font-size: 0.82rem;
  margin: 0;
  line-height: 1.5;
}

/* ── Quote Divider ── */
.pedo-mag__quote {
  max-width: 640px;
  margin: 0 auto 52px;
  padding: 0 24px;
  text-align: center;
}
.pedo-mag__quote blockquote {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 300;
  font-style: italic;
  color: #6B4226;
  line-height: 1.9;
  margin: 0;
  position: relative;
  padding: 0 20px;
}
.pedo-mag__quote blockquote::before,
.pedo-mag__quote blockquote::after {
  content: '';
  display: block;
  width: 36px;
  height: 1px;
  background: #c9a96e;
  margin: 0 auto 20px;
}
.pedo-mag__quote blockquote::after {
  margin: 20px auto 0;
}

/* ── Grid A : 2+1 스택 (시설) ── */
.pedo-mag__grid-a {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  max-width: 1100px;
  margin: 0 auto 48px;
  padding: 0 20px;
}
.pedo-mag__cell {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}
.pedo-mag__cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s ease, filter 0.5s ease;
  filter: brightness(0.88) saturate(0.95);
}
.pedo-mag__cell:hover img {
  transform: scale(1.04);
  filter: brightness(0.95) saturate(1.05);
}
.pedo-mag__cell--tall {
  grid-row: span 2;
}
.pedo-mag__cell--tall img {
  height: 100%;
  min-height: 400px;
}
.pedo-mag__cell--stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pedo-mag__cell-inner {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  flex: 1;
}
.pedo-mag__cell-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s ease, filter 0.5s ease;
  filter: brightness(0.88) saturate(0.95);
}
.pedo-mag__cell-inner:hover img {
  transform: scale(1.04);
  filter: brightness(0.95) saturate(1.05);
}

/* ── Caption Overlay ── */
.pedo-mag__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 60px 18px 16px;
  background: linear-gradient(0deg, rgba(0,0,0,0.68) 0%, rgba(0,0,0,0.15) 60%, transparent 100%);
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.4s ease;
}
.pedo-mag__cell:hover .pedo-mag__caption,
.pedo-mag__cell-inner:hover .pedo-mag__caption {
  opacity: 1;
  transform: translateY(0);
}
.pedo-mag__caption h4 {
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  margin: 4px 0 2px;
  line-height: 1.3;
}
.pedo-mag__caption p {
  color: rgba(255,255,255,0.72);
  font-size: 0.72rem;
  margin: 0;
  line-height: 1.4;
}

/* ── Cinema Wide ── */
.pedo-mag__cinema {
  position: relative;
  max-width: 1100px;
  margin: 0 auto 48px;
  padding: 0 20px;
  overflow: hidden;
}
.pedo-mag__cinema img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  display: block;
  border-radius: 4px;
  filter: brightness(0.85) saturate(0.92);
  transition: transform 0.8s ease;
}
.pedo-mag__cinema:hover img {
  transform: scale(1.02);
}
.pedo-mag__cinema-cap {
  position: absolute;
  bottom: 0;
  left: 20px;
  right: 20px;
  padding: 64px 28px 22px;
  background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, transparent 100%);
  border-radius: 0 0 4px 4px;
}
.pedo-mag__cinema-cap h4 {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  margin: 6px 0 3px;
}
.pedo-mag__cinema-cap p {
  color: rgba(255,255,255,0.72);
  font-size: 0.78rem;
  margin: 0;
}

/* ── Grid B : 3컬럼 (진료) ── */
.pedo-mag__grid-b {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  max-width: 1100px;
  margin: 0 auto 48px;
  padding: 0 20px;
}
.pedo-mag__grid-b .pedo-mag__cell img {
  aspect-ratio: 3 / 4;
}

/* ── Split : 텍스트+이미지 ── */
.pedo-mag__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-width: 1100px;
  margin: 0 auto 48px;
  padding: 0 20px;
  align-items: center;
}
.pedo-mag__split-img {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}
.pedo-mag__split-img img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  filter: brightness(0.9) saturate(0.95);
  transition: transform 0.8s ease;
}
.pedo-mag__split-img:hover img {
  transform: scale(1.03);
}
.pedo-mag__split-img .pedo-mag__tag {
  position: absolute;
  top: 16px;
  left: 16px;
}
.pedo-mag__split-text {
  padding: 40px 48px;
}
.pedo-mag__split-text h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #333;
  line-height: 1.5;
  margin: 0 0 16px;
}
.pedo-mag__split-text p {
  font-size: 0.88rem;
  color: #666;
  line-height: 1.9;
  margin: 0 0 24px;
}
.pedo-mag__split-sig {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #c9a96e;
  font-weight: 600;
}

/* ── Duo : 2컬럼 ── */
.pedo-mag__duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  max-width: 1100px;
  margin: 0 auto 48px;
  padding: 0 20px;
}
.pedo-mag__duo .pedo-mag__cell img {
  aspect-ratio: 16 / 10;
}

/* ── Scroll Reveal ── */
.pedo-mag .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.pedo-mag .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══ Responsive ═══ */

/* ── Tablet ── */
@media (max-width: 1024px) {
  .pedo-mag { padding: 80px 0 60px; }
  .pedo-mag__hero-overlay h3 { font-size: 1.1rem; }
  .pedo-mag__split-text { padding: 28px 32px; }
  .pedo-mag__split-text h3 { font-size: 1.2rem; }
}

/* ── Mobile ── */
@media (max-width: 640px) {
  .pedo-mag { padding: 64px 0 48px; }
  .pedo-mag__header { margin-bottom: 40px; }
  .pedo-mag__eyebrow { font-size: 0.58rem; letter-spacing: 0.25em; }
  .pedo-mag__lead { font-size: 0.85rem; }
  .pedo-mag__hero img { aspect-ratio: 16 / 10; }
  .pedo-mag__hero-overlay { padding: 50px 18px 16px; left: 0; right: 0; }
  .pedo-mag__hero-overlay h3 { font-size: 0.95rem; }
  .pedo-mag__hero-overlay p { font-size: 0.72rem; }
  .pedo-mag__quote blockquote { font-size: 0.92rem; }

  /* 그리드 A: 1컬럼 스택 */
  .pedo-mag__grid-a {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .pedo-mag__cell--tall { grid-row: span 1; }
  .pedo-mag__cell--tall img { min-height: auto; aspect-ratio: 4 / 3; }
  .pedo-mag__cell--stack { flex-direction: row; }
  .pedo-mag__cell--stack .pedo-mag__cell-inner img { aspect-ratio: 1; }

  /* 그리드 B: 1 + 2 */
  .pedo-mag__grid-b {
    grid-template-columns: repeat(2, 1fr);
  }
  .pedo-mag__grid-b .pedo-mag__cell:first-child {
    grid-column: span 2;
  }
  .pedo-mag__grid-b .pedo-mag__cell:first-child img {
    aspect-ratio: 16 / 9;
  }

  /* Split: 세로 스택 */
  .pedo-mag__split {
    grid-template-columns: 1fr;
  }
  .pedo-mag__split-img img { aspect-ratio: 4 / 3; }
  .pedo-mag__split-text {
    padding: 24px 16px;
    text-align: center;
  }
  .pedo-mag__split-text h3 { font-size: 1.15rem; }
  .pedo-mag__split-text p { font-size: 0.82rem; }

  /* Duo: 1컬럼 */
  .pedo-mag__duo {
    grid-template-columns: 1fr;
  }

  /* Cinema */
  .pedo-mag__cinema img { aspect-ratio: 16 / 9; }
  .pedo-mag__cinema-cap { padding: 40px 16px 14px; left: 0; right: 0; }
  .pedo-mag__cinema-cap h4 { font-size: 0.88rem; }

  /* 모바일 캡션 항상 표시 */
  .pedo-mag__caption {
    opacity: 1;
    transform: translateY(0);
    padding: 36px 12px 10px;
  }
  .pedo-mag__caption h4 { font-size: 0.78rem; }
  .pedo-mag__caption p { font-size: 0.65rem; }
}

/* ═══════════════════════════════════════════════════════════
   Pastel Luxury Kids Gallery  v1.0
   — Warm editorial layout for pediatric dentistry
   ═══════════════════════════════════════════════════════════ */

.kids-gallery {
  position: relative;
  padding: 80px 0;
  background: linear-gradient(180deg, #fefcf9 0%, #f4f0ff 50%, #fef4f0 100%);
  overflow: hidden;
}

/* Header */
.kids-gallery .kids-header {
  text-align: center;
  margin-bottom: 48px;
  padding: 0 20px;
}
.kids-gallery .kids-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #7c5cbf;
  background: rgba(124,92,191,0.08);
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 14px;
}
.kids-gallery .kids-title {
  font-size: 2rem;
  font-weight: 800;
  color: #2d2235;
  line-height: 1.3;
  margin: 0 0 10px;
}
.kids-gallery .kids-title .text-pastel {
  background: linear-gradient(135deg, #7c5cbf, #e57ba0, #f9a85c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.kids-gallery .kids-subtitle {
  font-size: 0.92rem;
  color: #888;
  font-weight: 400;
}

/* Polaroid-style grid */
.kids-mosaic {
  display: grid;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  grid-template-columns: repeat(4, 1fr);
}

/* Polaroid card */
.kids-card {
  position: relative;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}
.kids-card:hover {
  transform: translateY(-6px) rotate(-0.5deg);
  box-shadow: 0 12px 32px rgba(124,92,191,0.15);
}
.kids-card .kids-img-wrap {
  position: relative;
  overflow: hidden;
}
.kids-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.kids-card:hover img {
  transform: scale(1.06);
}

/* Sticker-style tag on image */
.kids-sticker {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
  z-index: 2;
  letter-spacing: 0.04em;
}
.kids-sticker.purple { background: rgba(124,92,191,0.9); color: #fff; }
.kids-sticker.pink { background: rgba(229,123,160,0.9); color: #fff; }
.kids-sticker.mint { background: rgba(52,199,163,0.9); color: #fff; }
.kids-sticker.orange { background: rgba(249,168,92,0.9); color: #fff; }
.kids-sticker.sky { background: rgba(100,181,246,0.9); color: #fff; }

/* Caption bar below image */
.kids-card .kids-cap {
  padding: 12px 14px;
}
.kids-cap .kc-title {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #333;
  line-height: 1.3;
  margin-bottom: 2px;
}
.kids-cap .kc-desc {
  display: block;
  font-size: 0.72rem;
  color: #999;
  line-height: 1.4;
}

/* Span helpers */
.kids-card.kids-hero {
  grid-column: span 2;
  grid-row: span 2;
}
.kids-card.kids-wide {
  grid-column: span 2;
}
.kids-card.kids-hero .kids-img-wrap { height: 100%; }
.kids-card.kids-hero img { min-height: 100%; }
.kids-card .kids-img-wrap.ks-sq { aspect-ratio: 1 / 1; }
.kids-card .kids-img-wrap.ks-land { aspect-ratio: 4 / 3; }

/* Cute divider */
.kids-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  color: #c9a0dc;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}
.kids-divider::before,
.kids-divider::after {
  content: '';
  flex: 1;
  max-width: 200px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #e8d0f0, transparent);
  border-radius: 1px;
}

/* Pull-quote */
.kids-pull {
  max-width: 700px;
  margin: 0 auto 40px;
  padding: 0 20px;
  text-align: center;
}
.kids-pull blockquote {
  font-size: 1.15rem;
  font-weight: 400;
  font-style: italic;
  color: #6b5a7e;
  line-height: 1.9;
  margin: 0;
  padding: 0;
  border: none;
}
.kids-pull cite {
  display: block;
  margin-top: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #c080d0;
  font-style: normal;
  letter-spacing: 0.08em;
}

/* Scroll reveal */
.kids-card {
  opacity: 0;
  transform: translateY(32px) rotate(1deg);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}
.kids-card.revealed {
  opacity: 1;
  transform: translateY(0) rotate(0);
}
.kids-card:nth-child(1) { transition-delay: 0s; }
.kids-card:nth-child(2) { transition-delay: 0.08s; }
.kids-card:nth-child(3) { transition-delay: 0.16s; }
.kids-card:nth-child(4) { transition-delay: 0.24s; }
.kids-card:nth-child(5) { transition-delay: 0.32s; }
.kids-card:nth-child(6) { transition-delay: 0.4s; }
.kids-card:nth-child(7) { transition-delay: 0.48s; }
.kids-card:nth-child(8) { transition-delay: 0.56s; }

/* ── Tablet ── */
@media (max-width: 1024px) {
  .kids-mosaic { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .kids-gallery .kids-title { font-size: 1.6rem; }
  .kids-card.kids-hero { grid-column: span 2; grid-row: span 2; }
}

/* ── Mobile ── */
@media (max-width: 640px) {
  .kids-gallery { padding: 48px 0; }
  .kids-gallery .kids-header { margin-bottom: 28px; }
  .kids-gallery .kids-title { font-size: 1.25rem; }
  .kids-mosaic {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0 12px;
  }
  .kids-card.kids-hero {
    grid-column: span 2;
    grid-row: span 1;
  }
  .kids-card.kids-hero .kids-img-wrap { aspect-ratio: 16 / 9; }
  .kids-card.kids-wide { grid-column: span 2; }
  .kids-card .kids-cap { padding: 10px 12px; }
  .kids-cap .kc-title { font-size: 0.78rem; }
  .kids-cap .kc-desc { font-size: 0.68rem; }
  .kids-divider { margin: 24px auto; }
  .kids-pull blockquote { font-size: 0.95rem; }
  .kids-card:hover { transform: none; }
}
