/* ================================================================
   SUB/greeting2 — 인사말 2 (배너 + 글) · 2026-11-21
   위: 둥근 배너 사진 + 오른쪽 아래 큰 글(단어마다 톡 올라옴) / 아래: 큰 첫 문단 + 문단 + 오른쪽 서명
   모양 = [설정] 창 CSS 변수 --g2-* (없으면 아래 기본값) · 모션 = .g2_wrap.g2_in (greeting2.js 가 화면에 들어오면 붙임)
   ================================================================ */
.greeting2 { width: 100%; float: left; }
.greeting2 .g2_wrap { width: 100%; float: left; }

/* ── 배너 */
.greeting2 .g2_ban { position: relative; width: 100%; height: var(--g2-h, 400px); border-radius: var(--g2-rad, 30px); overflow: hidden; background: #e5e7eb; isolation: isolate; }
.greeting2 .g2_ph, .greeting2 .g2_ph > div, .greeting2 .g2_ph a { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.greeting2 .g2_ph img, .greeting2 .g2_ph video { width: 100%; height: 100%; object-fit: cover; object-position: var(--g2-fp, center center); display: block; max-width: none; }
.greeting2 .g2_ban::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(var(--g2-dir, 300deg), rgba(0,0,0, var(--g2-dim, .35)) 0%, rgba(0,0,0,0) 60%); }
.greeting2 .g2_ph_empty { display: flex !important; align-items: center; justify-content: center; color: #6b7280; font-size: 14px; cursor: pointer; border: 2px dashed #cbd5e1; border-radius: inherit; }
.greeting2 .g2_ph_empty small { margin-left: 6px; color: #9ca3af; }

/* 배너 위 글 — 위치 = --g2-cx/--g2-cy (오른쪽 아래 기본) */
.greeting2 .g2_cap { position: absolute; z-index: 2; right: var(--g2-px, 50px); bottom: var(--g2-py, 50px); left: auto; top: auto; max-width: calc(100% - var(--g2-px, 50px) * 2);
  text-align: right; color: var(--g2-tc, #ffffff); font-size: var(--g2-tfs, 40px); font-weight: var(--g2-tfw, 500); line-height: 1.45; letter-spacing: -0.02em; text-shadow: 0 2px 14px rgba(0,0,0,.25); }
.greeting2 .g2_ln { display: block; }
.greeting2 .g2_w { display: inline-block; }
.greeting2 .g2_cap b, .greeting2 .g2_cap strong { font-weight: 800; }
.greeting2 .g2_cap_empty { opacity: .7; font-size: 16px; }

/* ── 아래 글 */
.greeting2 .g2_body { width: 100%; float: left; margin-top: var(--g2-gap, 70px); color: var(--g2-c, #444); font-size: var(--g2-fs, 16px); line-height: var(--g2-lh, 175%); word-break: keep-all; }
.greeting2 .g2_p { margin: 0 0 var(--g2-pg, 24px); }
.greeting2 .g2_p:last-child { margin-bottom: 0; }
.greeting2 .g2_lead { margin-bottom: var(--g2-lg, 40px); color: var(--g2-lc, #222); font-size: var(--g2-lfs, 24px); font-weight: var(--g2-lfw, 500); line-height: 1.6; }
.greeting2 .g2_sig { width: 100%; float: left; margin-top: var(--g2-sgap, 40px); text-align: right; color: var(--g2-sc, #222); font-size: var(--g2-sfs, 18px); font-weight: var(--g2-sfw, 500); }
.greeting2 .g2_sig_empty { color: #9ca3af; font-size: 14px; }
.greeting2 .empty_li { color: #9ca3af; }

/* ── 모션 (기본 = 켜짐 · [설정] 모션 끄기 = .g2_still) */
.greeting2 .g2_ph { opacity: 0; transform: scale(var(--g2-zs, 1.15)); transition: opacity 1.2s ease, transform 2.4s cubic-bezier(.16, 1, .3, 1); will-change: transform; }
.greeting2 .g2_w { opacity: 0; transform: translateY(.55em) scale(.92); transition: opacity .5s ease, transform .7s cubic-bezier(.34, 1.56, .64, 1); transition-delay: var(--g2-d, 0s); }
.greeting2 .g2_p, .greeting2 .g2_sig { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .8s cubic-bezier(.16, 1, .3, 1); transition-delay: var(--g2-pd, .2s); }
.greeting2 .g2_sig { transition-delay: .6s; }
.greeting2 .g2_in .g2_ph { opacity: 1; transform: scale(1); }
.greeting2 .g2_in .g2_w { opacity: 1; transform: none; }
.greeting2 .g2_in .g2_p, .greeting2 .g2_in .g2_sig { opacity: 1; transform: none; }
.greeting2 .g2_still .g2_ph, .greeting2 .g2_still .g2_w, .greeting2 .g2_still .g2_p, .greeting2 .g2_still .g2_sig { opacity: 1 !important; transform: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  .greeting2 .g2_ph, .greeting2 .g2_w, .greeting2 .g2_p, .greeting2 .g2_sig { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ── 모바일 (767px 이하 = PC 크기 × 배율) */
@media (max-width: 767px) {
  .greeting2 .g2_ban { height: calc(var(--g2-h, 400px) * (var(--g2-mok, 60) / 100)); border-radius: calc(var(--g2-rad, 30px) * .6); }
  .greeting2 .g2_cap { right: calc(var(--g2-px, 50px) * .5); bottom: calc(var(--g2-py, 50px) * .5); max-width: calc(100% - var(--g2-px, 50px)); font-size: calc(var(--g2-tfs, 40px) * (var(--g2-mok, 60) / 100)); }
  .greeting2 .g2_body { margin-top: calc(var(--g2-gap, 70px) * .6); font-size: max(14px, calc(var(--g2-fs, 16px) * .94)); }
  .greeting2 .g2_lead { font-size: max(17px, calc(var(--g2-lfs, 24px) * .8)); margin-bottom: calc(var(--g2-lg, 40px) * .7); }
  .greeting2 .g2_sig { font-size: max(15px, calc(var(--g2-sfs, 18px) * .9)); }
}

/* ★1125 줄 간격 — 공통 리셋(html,body,div,span,p…{line-height:130%})이 안쪽 태그마다 행간을 박아 [설정] 줄 간격이 안 먹던 것 → 안쪽 태그는 상자 행간을 물려받음 (자체 class 규칙이 있는 칸은 그대로) */
html :where(.greeting2 .g2_body, .greeting2 .g2_cap, .greeting2 .g2_sig) :is(p,div,span,a,b,strong,em,i,u,small,font,li,ul,ol,mark,sub,sup,label,h1,h2,h3,h4,h5,h6) { line-height: inherit; }
