/* 원남교회 새 홈페이지 */
/* 페이지 넘길 때 하얗게 깜빡이지 않고 부드럽게 바뀜 */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .18s; }
:root {
  --ink: #333; --dark: #1a1a1a; --muted: #777; --line: #e2e3e7; --bg: #fff; --soft: #f3f4f7;
  --blue: #1b5cb8; --blue-d: #0f4596; --sky: #1e9bd7; --gray: #ebebf0; --band: #d9dbe4;
  --head: rgba(0, 0, 0, .8); --hh: 82px; --hhm: 64px;
  --font: 'NanumSquare', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  /* 예전 이름 (관리자·글쓰기 화면에서 씀) */
  --navy: var(--blue); --gold: var(--sky); --gold-d: var(--blue);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.7; font-size: 16px; word-break: keep-all; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button { font-family: inherit; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.empty { color: var(--muted); text-align: center; padding: 40px 0; }

/* ---------- 상단 메뉴 ---------- */
.gnb { position: fixed; top: 0; left: 0; right: 0; z-index: 60; background: var(--head); color: #fff; }
.gnb-in { max-width: 1600px; margin: 0 auto; padding: 0 40px; height: 82px; display: flex; align-items: center; gap: 30px; }
.logo { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.02em; flex: none; }
.logo img { max-height: 50px; width: auto; display: block; }
.nav { flex: 1; display: flex; justify-content: center; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; }
.nav > ul > li { position: relative; }
.nav > ul > li > a { display: block; white-space: nowrap; padding: 0 28px; line-height: 82px; font-size: 17px; font-weight: 700; }
.nav > ul > li.cur > a, .nav > ul > li:hover > a { color: #7cc4f0; }
.nav .sub { list-style: none; margin: 0; padding: 12px 0; position: absolute; left: 50%; top: 100%; transform: translateX(-50%); min-width: 180px; background: #fff; color: var(--ink); border-top: 3px solid var(--sky); box-shadow: 0 12px 30px rgba(0,0,0,.18); opacity: 0; visibility: hidden; transition: .2s; text-align: center; }
.nav > ul > li:hover .sub, .nav > ul > li:focus-within .sub { opacity: 1; visibility: visible; }
.nav .sub a { display: block; padding: 7px 20px; font-size: 15px; white-space: nowrap; }
.nav .sub a:hover { color: var(--sky); }
.util { display: flex; align-items: center; gap: 12px; font-size: 14px; flex: none; }
.util i { font-style: normal; opacity: .6; }
.util a:hover { color: #7cc4f0; }
.nav-btn { flex: none; background: none; border: 0; width: 40px; height: 40px; padding: 8px 6px; cursor: pointer; position: relative; z-index: 2; }
.nav-btn span { display: block; height: 2px; background: #fff; margin: 6px 0 6px auto; transition: .25s; }
.nav-btn span:nth-child(1) { width: 100%; } .nav-btn span:nth-child(2) { width: 70%; } .nav-btn span:nth-child(3) { width: 100%; }
.nav-open .nav-btn span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-btn span:nth-child(2) { opacity: 0; }
.nav-open .nav-btn span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ☰ 전체 메뉴 */
.sitemap { position: fixed; inset: var(--hh) 0 0; z-index: 55; background: rgba(15, 30, 60, .97); color: #fff; overflow-y: auto; opacity: 0; visibility: hidden; transition: .25s; }
.nav-open .sitemap { opacity: 1; visibility: visible; }
.nav-open { overflow: hidden; }
.sm-in { max-width: 1300px; margin: 0 auto; padding: 50px 30px 80px; }
.sm-util { display: none; gap: 12px; margin-bottom: 20px; font-size: 15px; }
.sm-util i { font-style: normal; opacity: .5; }
.sm-cols, .fm-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 30px 24px; }
.sm-cols h3, .fm-cols h3 { margin: 0 0 18px; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.35); font-size: 19px; font-weight: 700; }
.sm-cols ul, .fm-cols ul { list-style: none; margin: 0; padding: 0; }
.sm-cols li a, .fm-cols li a { display: block; padding: 4px 0; font-size: 15px; opacity: .85; }
.sm-cols a:hover, .fm-cols a:hover { opacity: 1; color: #9fd6f7; }

/* ---------- 메인 큰 영상·사진 ---------- */
.hero { position: relative; height: 100vh; min-height: 560px; max-height: 1100px; background: #111; overflow: hidden; color: #fff; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s; }
.hero-slide.on { opacity: 1; z-index: 1; }
.hero-bg, .hero-slide video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: center/cover no-repeat; }
.hero-slide.on .hero-bg { animation: zoom 9s ease-out forwards; }
@keyframes zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-slide::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.2); }
.hero-txt { position: absolute; z-index: 2; left: 0; right: 0; bottom: 22%; text-align: center; padding: 0 20px; }
.hero-txt h2 { margin: 0 0 20px; font-size: clamp(32px, 5.2vw, 76px); font-weight: 800; line-height: 1.25; letter-spacing: -.02em; text-shadow: 0 3px 16px rgba(0,0,0,.35); }
.hero-txt h2 span { display: inline; padding-bottom: 6px; background: linear-gradient(#1e7be0, #1e7be0) left bottom / 100% 6px no-repeat; }
.hero-txt p { margin: 0 auto 26px; max-width: 900px; font-size: clamp(15px, 1.6vw, 20px); text-shadow: 0 2px 10px rgba(0,0,0,.4); }
.hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-media::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.2); }
.hero-slide::after { display: none; }
/* 영상이 있는 메인: 영상은 잘리지 않게 다 보이고(상단 메뉴 아래부터), 문구는 영상 아래 띠 */
.hero.hero-stack { height: auto; min-height: 0; max-height: none; padding-top: var(--hh); background: #000; }
.hero-stack .hero-slide { position: relative; display: none; opacity: 1; }
.hero-stack .hero-slide.on { display: block; }
.hero-stack .hero-media { position: relative; inset: auto; }
.hero-stack .hero-media::after { display: none; }
.hero-stack .hero-media video { position: relative; inset: auto; display: block; width: 100%; height: auto; max-height: calc(100vh - var(--hh)); object-fit: contain; }
.hero-stack .hero-bg { position: relative; inset: auto; aspect-ratio: 21 / 9; }
.hero-stack .hero-txt { position: static; transform: none; padding: 34px 20px 38px; background: linear-gradient(135deg, #0f2a55, #1b4a8f); }
.hero-stack .hero-txt h2 { font-size: clamp(24px, 3vw, 40px); margin-bottom: 12px; text-shadow: none; }
.hero-stack .hero-txt h2 span { background-size: 100% 4px; }
.hero-stack .hero-txt p { margin-bottom: 0; text-shadow: none; font-size: clamp(14px, 1.3vw, 17px); opacity: .9; }
.hero-stack .hero-txt .btn-box { margin-top: 20px; }
.hero-stack .hero-dots { position: static; padding: 14px 0; background: #0f2a55; }
@media (max-width: 1024px) { .hero.hero-stack { padding-top: var(--hhm); } .hero-stack .hero-media video { max-height: none; } .hero-stack .hero-bg { aspect-ratio: 4 / 3; } }
.hero-dots { position: absolute; z-index: 3; bottom: 40px; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; }
.hero-dots button { width: 34px; height: 4px; border: 0; padding: 0; background: rgba(255,255,255,.4); cursor: pointer; }
.hero-dots button.on { background: #fff; }

/* ---------- 버튼 ---------- */
.btn-box { display: inline-flex; align-items: center; justify-content: center; min-width: 200px; height: 62px; padding: 0 30px; border: 1px solid var(--blue); color: var(--blue); font-size: 17px; transition: .2s; }
.btn-box:hover { background: var(--blue); color: #fff; }
.btn-box.light { border-color: #fff; color: #fff; }
.btn-box.light:hover { background: #fff; color: var(--blue); }
.btn-box.black { background: #000; border-color: #000; color: #fff; }
.btn-box.black:hover { background: #222; }
.btn-line { display: inline-block; padding: 10px 26px; border: 1px solid var(--blue); color: var(--blue); font-size: 15px; transition: .2s; }
.btn-line:hover { background: var(--blue); color: #fff; }
.btn-line.light { border-color: rgba(255,255,255,.8); color: #fff; }
.btn { display: inline-block; padding: 10px 24px; background: var(--blue); color: #fff; border: 1px solid var(--blue); font: inherit; font-size: 15px; cursor: pointer; border-radius: 2px; }
.btn.line { background: #fff; color: var(--blue); }
.btn.danger { background: #b3261e; border-color: #b3261e; }
.btn.wide { width: 100%; padding: 13px; }

/* ---------- 메인 칸 공통 ---------- */
.m-head { text-align: center; margin-bottom: 50px; }
.m-head h2 { margin: 0; font-size: clamp(30px, 3.4vw, 46px); font-weight: 800; color: var(--dark); letter-spacing: -.02em; line-height: 1.3; }
.m-head h2::before { content: ''; display: block; width: 50px; height: 6px; background: var(--sky); margin: 0 auto 22px; }
.eyebrow { margin: 0 0 12px; color: var(--sky); font-size: 15px; font-weight: 700; letter-spacing: .12em; }
.m-items, .m-html { padding: 0 0 100px; }
.m-html { padding-top: 100px; }
.deco { position: absolute; border-radius: 50%; pointer-events: none; }

/* 표어(Welcome) */
.m-welcome { position: relative; overflow: hidden; padding: 110px 0 80px; text-align: center; background: linear-gradient(120deg, #e3f3ff 0%, #dfe5ff 55%, #fff 55.2%); }
.m-welcome .d1 { width: 160px; height: 160px; left: 3%; top: 38%; background: #fbf2de; }
.m-welcome .d2 { width: 150px; height: 150px; right: 3%; top: 40px; border: 18px solid #e8e9ee; }
.m-welcome .wrap { position: relative; max-width: 980px; }
.m-welcome .wrap.has-img { max-width: 1240px; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; text-align: left; }
.m-welcome .eyebrow { font-size: clamp(30px, 3.4vw, 44px); font-weight: 800; color: var(--dark); letter-spacing: -.01em; margin-bottom: 26px; }
.m-welcome h2 { margin: 0; font-size: clamp(22px, 2.3vw, 30px); font-weight: 700; color: var(--dark); line-height: 1.5; }
.m-welcome .txt { margin: 20px 0 30px; color: #888; font-size: 18px; }
.w-img img { width: 100%; display: block; }

/* 바로가기 카드 (메인) */
.m-items .cards { grid-template-columns: repeat(4, 1fr); gap: 34px; max-width: 1060px; margin: 0 auto; }
.m-items .card { background: var(--gray); border: 0; aspect-ratio: 1 / 1.06; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px; }
.m-items a.card:hover { transform: none; box-shadow: none; background: var(--blue); color: #fff; }
.m-items .card-img { width: 84px; height: 84px; aspect-ratio: auto; border-radius: 50%; margin-bottom: 22px; flex: none; }
.m-items .card-body { padding: 0; }
.m-items .card-body h4 { font-size: clamp(20px, 2vw, 28px); font-weight: 800; margin: 0; color: inherit; }
.m-items .card-body .sub { color: inherit; opacity: .8; font-size: 13px; margin-top: 10px; }
.m-items .card-body .txt { display: none; }

/* 주일설교 (파란 칸) */
.m-sermon { position: relative; overflow: hidden; padding: 110px 0; color: #fff; background: linear-gradient(135deg, #1550a8 0%, #1b5cb8 50%, #2a6cc6 100%); }
.m-sermon .d1 { width: 520px; height: 520px; left: -180px; top: -60px; background: rgba(255,255,255,.06); }
.m-sermon .d2 { width: 760px; height: 760px; right: -240px; top: -200px; background: rgba(255,255,255,.05); }
.ms-grid { position: relative; display: grid; grid-template-columns: 1fr 300px; gap: 60px; align-items: center; max-width: 1100px; }
.ms-label { margin: 0 0 40px; font-size: 26px; font-weight: 700; display: flex; align-items: center; gap: 12px; }
.ms-label i { width: 36px; height: 22px; background: linear-gradient(115deg, transparent 0 18%, #fff 18% 44%, transparent 44% 56%, #fff 56% 82%, transparent 82%); }
.ms-main h3 { margin: 0 0 12px; font-size: clamp(30px, 3.6vw, 50px); font-weight: 800; line-height: 1.3; letter-spacing: -.02em; }
.ms-main .bible { margin: 0 0 30px; font-size: clamp(20px, 2vw, 28px); }
.ms-main .who { margin: 0 0 50px; font-size: 18px; opacity: .95; }
.ms-btns { display: flex; gap: 20px; flex-wrap: wrap; margin: 0; }
.ms-btns .btn-box { min-width: 250px; height: 78px; font-size: 18px; }
.ms-side { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 24px; }
.ms-side a { display: block; position: relative; aspect-ratio: 1; overflow: hidden; background: #0b2f66; }
.ms-side .th { position: absolute; inset: 0; background: center/cover no-repeat; transition: transform .4s; }
.ms-side a:hover .th { transform: scale(1.06); }
.ms-side .t { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 18px; background: linear-gradient(transparent, rgba(0,0,0,.75)); }
.ms-side b { display: block; font-size: 17px; line-height: 1.4; }
.ms-side em { font-style: normal; font-size: 13px; opacity: .8; }

/* 교회소식 */
.news-band { background: var(--band); padding: 30px 0 40px; }
.news-band .m-head { margin: 0; }
.news-body { background: #6b6d72 linear-gradient(rgba(70,72,78,.88), rgba(70,72,78,.88)); color: #fff; padding: 80px 0; }
.news-grid { display: grid; grid-template-columns: 340px 1fr; gap: 60px; align-items: start; max-width: 1180px; }
.news-l h3 { margin: 0 0 16px; font-size: clamp(30px, 3vw, 44px); font-weight: 800; line-height: 1.3; }
.news-l p { margin: 0 0 34px; font-size: 18px; opacity: .9; }
.news-l .btn-box { min-width: 160px; height: 54px; }
.tab-nav.box { display: flex; gap: 0; margin: 0 0 14px; justify-content: flex-start; background: #fff; }
.tab-nav.box li { flex: 1; }
.tab-nav.box button { width: 100%; border-radius: 0; border: 0; border-right: 1px solid var(--line); background: #fff; color: #222; font-weight: 700; padding: 14px 10px; }
.tab-nav.box li:last-child button { border-right: 0; }
.tab-nav.box button.on { background: var(--sky); color: #fff; }
.news-list { list-style: none; margin: 0; padding: 0; }
.news-list li { display: flex; justify-content: space-between; gap: 20px; padding: 13px 4px; border-bottom: 1px solid rgba(255,255,255,.3); font-size: 16px; }
.news-list a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-list a:hover { text-decoration: underline; }
.news-list span { flex: none; opacity: .85; }
.news-list .empty { color: #ddd; }

/* Gallery */
.m-gallery { padding: 100px 0; }
.gal-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 250px; gap: 10px; }
.gal-grid a { position: relative; overflow: hidden; background: var(--soft); }
.gal-grid a:nth-child(10n+1), .gal-grid a:nth-child(10n+8) { grid-column: span 2; }
.gal-grid .th { position: absolute; inset: 0; background: center/cover no-repeat; transition: transform .5s; }
.gal-grid a:hover .th { transform: scale(1.06); }
.gal-grid .cap { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 16px; color: #fff; background: rgba(27, 92, 184, .82); opacity: 0; transition: .3s; }
.gal-grid a:hover .cap, .gal-grid a:focus .cap { opacity: 1; }
.gal-grid .cap b { font-size: 17px; line-height: 1.4; }
.gal-grid .cap em { font-style: normal; font-size: 14px; margin-top: 6px; }
.m-gallery .more { text-align: center; margin: 50px 0 0; }

/* 대표 사진 없는 영상 글의 첫 화면 */
.th.has-frame { overflow: hidden; background: #111; }
.th.has-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.b-gallery .th.has-frame { position: relative; }
.video-frame { position: relative; aspect-ratio: 16/9; background: #000; }
.video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- 서브 ---------- */
.sub-visual { position: relative; height: calc(248px + var(--hh)); padding-top: var(--hh); background: var(--blue) center/cover no-repeat; color: #fff; display: flex; align-items: center; justify-content: center; text-align: center; }
.sub-visual::before { content: ''; position: absolute; inset: 0; background: rgba(0, 20, 50, .3); }
.sv-txt { position: relative; padding: 0 20px; }
.sv-txt h2 { margin: 0 0 14px; font-size: clamp(30px, 3.4vw, 42px); font-weight: 800; text-shadow: 0 2px 10px rgba(0,0,0,.3); }
.sv-title, .sv-sub { margin: 0; font-size: 18px; line-height: 1.5; text-shadow: 0 1px 6px rgba(0,0,0,.4); }
.sv-sub { margin-top: 4px; font-size: 16px; opacity: .9; }
.location { background: var(--soft); border-bottom: 1px solid #e3e4e9; position: relative; z-index: 20; }
.loc-in { max-width: 1060px; margin: 0 auto; padding: 0 20px; display: flex; align-items: stretch; height: 52px; }
.location .home { display: flex; align-items: center; padding: 0 16px; border-right: 1px solid #d5d7dd; border-left: 1px solid #d5d7dd; color: #555; }
.loc-dd { position: relative; border-right: 1px solid #d5d7dd; }
.loc-dd > button { height: 100%; min-width: 120px; padding: 0 40px 0 20px; border: 0; background: none; font-size: 15px; font-weight: 700; color: #222; cursor: pointer; text-align: left; position: relative; }
.loc-dd > button::after { content: ''; position: absolute; right: 18px; top: 50%; margin-top: -2px; border: 5px solid transparent; border-top-color: #1b3f7a; border-bottom: 0; }
.loc-dd ul { list-style: none; margin: 0; padding: 6px 0; position: absolute; left: -1px; right: -1px; top: 100%; min-width: 180px; background: #fff; border: 1px solid #d5d7dd; box-shadow: 0 8px 20px rgba(0,0,0,.08); display: none; }
.loc-dd.open ul, .loc-dd:hover ul { display: block; }
.loc-dd li a { display: block; padding: 8px 20px; font-size: 14px; white-space: nowrap; }
.loc-dd li a:hover, .loc-dd li.on a { color: var(--sky); font-weight: 700; }
.page { max-width: 1240px; padding: 80px 20px 120px; } /* 11-08 모든 페이지를 게시판·메인과 같은 폭으로 (전 1080) */
.page.narrow { max-width: 460px; }
.page.board { max-width: 1240px; } /* 게시판은 메인 화면과 같은 폭 */
.page-head { text-align: center; margin-bottom: 44px; padding-bottom: 36px; border-bottom: 2px solid #111; position: relative; }
.page-head h2 { margin: 0; font-size: clamp(28px, 3vw, 38px); font-weight: 800; color: var(--dark); letter-spacing: -.02em; }
.admin-edit { position: absolute; right: 0; top: 8px; font-size: 13px; padding: 6px 12px; border: 1px solid var(--blue); color: var(--blue); }
.page-intro { margin-bottom: 40px; }

/* 페이지 칸 */
.blk { margin-bottom: 70px; }
.blk-title { font-size: 24px; font-weight: 800; color: var(--dark); margin: 0 0 26px; padding-left: 16px; border-left: 5px solid var(--sky); line-height: 1.3; }
.text-block { margin-bottom: 50px; }
.text-block.has-img { display: grid; grid-template-columns: 2fr 3fr; gap: 50px; align-items: start; }
.text-block + .text-block.has-img:nth-of-type(even) .tb-img { order: 2; }
.tb-img img { width: 100%; display: block; }
.tb-body h3 { margin: 0 0 8px; font-size: 28px; font-weight: 800; color: var(--dark); line-height: 1.4; }
.tb-body .sub { margin: 0 0 20px; color: var(--sky); font-weight: 700; }
.txt img, .b-content img, .block-html img { max-width: 100%; height: auto; }
.txt table, .b-content table, .block-html table { border-collapse: collapse; max-width: 100%; }
.txt td, .txt th, .block-html td, .block-html th, .b-content td, .b-content th { border: 1px solid var(--line); padding: 8px 12px; }
.people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 40px 26px; }
.people li { text-align: center; }
.people .ph { aspect-ratio: 3/4; background: var(--gray); overflow: hidden; margin-bottom: 14px; }
.people .ph img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; display: block; }
.people.ph-small .ph { max-width: var(--ph-max); margin-left: auto; margin-right: auto; }
.people strong { display: block; font-size: 18px; font-weight: 800; color: var(--dark); }
.people .role { display: block; color: var(--sky); font-size: 14px; font-weight: 700; }
.people .desc { font-size: 14px; color: #666; margin-top: 6px; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 30px; border-left: 2px solid var(--line); }
.timeline li { position: relative; display: flex; gap: 26px; padding: 0 0 22px; }
.timeline li::before { content: ''; position: absolute; left: -38px; top: 7px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--sky); }
.timeline .date { flex: 0 0 140px; font-weight: 800; color: var(--blue); }
.timeline .what img { display: block; max-width: 320px; margin-top: 10px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; }
.card { display: block; background: #fff; border: 1px solid var(--line); transition: .25s; overflow: hidden; }
a.card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,.1); }
.card-img { aspect-ratio: 4/3; background: var(--gray) center/cover; }
.card-body { padding: 20px 22px 24px; }
.card-body h4 { margin: 0 0 4px; font-size: 20px; font-weight: 800; color: var(--dark); }
.card-body .sub { margin: 0; color: var(--sky); font-size: 14px; font-weight: 700; }
.card-body .txt { font-size: 15px; color: #666; margin-top: 8px; }
.tab-nav { list-style: none; margin: 0 0 44px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0; }
.tab-nav button { font: inherit; font-size: 15px; font-weight: 700; padding: 13px 26px; border: 1px solid #d5d7dd; margin: 0 -1px -1px 0; background: #fff; cursor: pointer; color: #555; }
.tab-nav button.on { background: var(--blue); border-color: var(--blue); color: #fff; position: relative; }
.tab-pane { display: none; }
.tab-pane.on { display: block; }

/* 예전 홈페이지에서 옮겨 온 칸 */
.block-html { margin-bottom: 30px; overflow-x: auto; }
.block-html table { width: 100%; border-top: 2px solid #111; font-size: 15px; }
.block-html th { background: var(--soft); font-weight: 700; white-space: nowrap; }
.block-html th, .block-html td { border: 0; border-bottom: 1px solid var(--line); padding: 13px 14px; }
.block-html h4, .block-html h5 { font-size: 20px; font-weight: 800; margin: 20px 0 10px; color: var(--dark); }
.block-html ul { padding-left: 20px; }
.block-html ul.img_box_type01 { list-style: none; padding-left: 0; margin: 0; font-size: 0; line-height: 0; display: flex; flex-wrap: wrap; align-items: flex-start; } /* 교회시설 사진 목록: 점 없앰, 예전 글의 &nbsp; 빈 줄 없앰 (11-08) */
.block-html ul.img_box_type01 li { display: block; width: 49%; margin: 0 2% 30px 0; } /* 11-08 사진 한 줄에 2장 */
.block-html ul.img_box_type01 li:nth-of-type(2n) { margin-right: 0; }
.block-html ul.img_box_type01 img { display: block; width: 100%; height: auto; }
.block-html ul.img_box_type01 li > p { margin: 10px 0 0; font-size: 16px; line-height: 1.6; }
.block-html .kakao_map, .block-html [class*=root_daum_roughmap] { width: 100% !important; }
.block-html .mo_br { display: none; }

/* ---------- 게시판 ---------- */
.board-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 10px; flex-wrap: wrap; }
.board-top .count { margin: 0; color: var(--muted); font-size: 14px; }
.board-top .count b { color: var(--blue); }
.search { display: flex; }
.search input { width: 220px; padding: 9px 12px; border: 1px solid #d5d7dd; font: inherit; font-size: 14px; }
.search button { padding: 9px 18px; border: 0; background: #222; color: #fff; font: inherit; font-size: 14px; cursor: pointer; }
.b-list { width: 100%; border-collapse: collapse; border-top: 2px solid #111; font-size: 15px; }
.b-list th { padding: 15px 8px; border-bottom: 1px solid #c9cbd1; font-weight: 700; background: var(--soft); }
.b-list td { padding: 15px 8px; border-bottom: 1px solid var(--line); text-align: center; color: var(--muted); }
.b-list td.tt { text-align: left; color: #222; }
.b-list td.tt a:hover { color: var(--blue); text-decoration: underline; }
.b-list .no { width: 80px; } .b-list .wr { width: 120px; } .b-list .dt { width: 120px; } .b-list .hit { width: 80px; }
.b-list tr.notice { background: #f5f9fe; }
.badge { display: inline-block; padding: 1px 8px; background: var(--sky); color: #fff; font-size: 12px; border-radius: 2px; }
.b-gallery { list-style: none; margin: 0; padding: 30px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 36px 24px; border-top: 2px solid #111; }
.b-gallery .th { display: block; aspect-ratio: 4/3; background: var(--gray) center/cover; margin-bottom: 14px; transition: .3s; }
.b-gallery.is-video .th { aspect-ratio: 16/9; position: relative; }
.b-gallery.is-video .th::after { content: '▶'; position: absolute; right: 10px; bottom: 10px; width: 38px; height: 38px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.b-gallery a:hover .th { opacity: .85; }
.b-gallery a:hover strong { color: var(--blue); }
.b-gallery strong { display: block; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #222; }
.b-gallery .meta { font-size: 13px; color: var(--muted); }
.b-gallery .empty { grid-column: 1/-1; }
.paging { display: flex; justify-content: center; gap: 4px; margin: 44px 0 0; flex-wrap: wrap; }
.paging a, .paging b { min-width: 36px; height: 36px; padding: 0 6px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); font-size: 14px; }
.paging b { background: var(--blue); border-color: var(--blue); color: #fff; }
.btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 24px; flex-wrap: wrap; }
.btns form.inline { display: inline; margin: 0; }
.b-read header { border-top: 2px solid #111; border-bottom: 1px solid var(--line); padding: 26px 4px 18px; margin-bottom: 30px; }
.b-read h2 { margin: 0 0 10px; font-size: 25px; font-weight: 800; color: var(--dark); line-height: 1.45; }
.b-read .meta, .b-read .sermon { margin: 0; color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.b-read .sermon { margin-top: 6px; color: var(--ink); }
.b-read .video-frame { margin-bottom: 30px; }
.unmute-btn { position: absolute; left: 14px; top: 14px; z-index: 2; height: 38px; padding: 0 16px; border: 0; border-radius: 20px; background: rgba(0,0,0,.7); color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; }
.unmute-btn:hover { background: #e60023; }
.play-btn { position: absolute; left: 50%; top: 50%; z-index: 2; width: 84px; height: 84px; margin: -42px 0 0 -42px; padding: 0 0 0 6px; border: 0; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; font-size: 34px; line-height: 84px; text-align: center; cursor: pointer; }
.play-btn:hover { background: var(--sky, #00a6c1); }
.b-images img { display: block; margin: 0 auto 20px; max-width: 100%; height: auto; }
/* 글 사진 팝업 */
img.zoomable { cursor: zoom-in; }
body.img-pop-open { overflow: hidden; }
.img-pop { position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,.9); display: flex; align-items: center; justify-content: center; -webkit-user-select: none; user-select: none; }
.img-pop .ip-stage { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 0; box-sizing: border-box; overflow: auto; }
.img-pop { overflow: hidden; }
.img-pop::before { content: ''; position: absolute; inset: -60px; background: var(--ip-bg, none) center / cover no-repeat; filter: blur(40px) brightness(.55); transition: background-image .2s; }
.img-pop .ip-stage { position: relative; z-index: 1; }
.img-pop button, .img-pop .ip-n { z-index: 2; }
.img-pop .ip-stage { scrollbar-width: none; }
.img-pop .ip-stage::-webkit-scrollbar { display: none; }
.img-pop .ip-stage img { display: block; width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; } /* 처음: 사진 전체를 한 화면에 */
.img-pop.big .ip-stage { display: block; overflow: auto; cursor: grab; }
.img-pop.big .ip-stage img { height: auto; max-width: none; margin: 0 auto; cursor: grab; } /* ＋·누르기: 2배·3배, 끌어서 이동 */
.img-pop.dragging .ip-stage, .img-pop.dragging .ip-stage img { cursor: grabbing; }
.img-pop button { position: absolute; border: 0; background: rgba(0,0,0,.4); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: background .2s; }
.img-pop button:hover { background: rgba(0,0,0,.7); }
.img-pop .ip-x { top: 14px; right: 14px; width: 44px; height: 44px; font-size: 20px; }
.img-pop .ip-zoom { top: 14px; right: 68px; width: 44px; height: 44px; font-size: 22px; }
.img-pop .ip-prev, .img-pop .ip-next { top: 50%; width: 52px; height: 52px; margin-top: -26px; font-size: 38px; line-height: 1; padding-bottom: 4px; }
.img-pop .ip-prev { left: 14px; }
.img-pop .ip-next { right: 14px; }
.img-pop .ip-n { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 14px; background: rgba(0,0,0,.45); padding: 5px 14px; border-radius: 14px; }
@media (max-width: 650px) {
  .img-pop .ip-stage { padding: 0; }
  .img-pop .ip-prev, .img-pop .ip-next { width: 40px; height: 40px; margin-top: -20px; font-size: 30px; background: rgba(0,0,0,.35); }
  .img-pop .ip-prev { left: 6px; } .img-pop .ip-next { right: 6px; }
}
.b-content { min-height: 100px; padding-bottom: 30px; overflow-wrap: anywhere; }
.b-link a { color: var(--blue); word-break: break-all; }
.b-files { list-style: none; margin: 0; padding: 14px 18px; background: var(--soft); font-size: 14px; }
.b-files a::before { content: '📎 '; }
.b-nav { list-style: none; margin: 40px 0 0; padding: 0; border-top: 1px solid #111; }
.b-nav li { display: flex; gap: 20px; padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 15px; }
.b-nav span { flex: 0 0 70px; color: var(--muted); }
.b-form label { display: block; margin-bottom: 16px; font-size: 14px; font-weight: 700; }
.b-form input[type=text], .b-form input[type=url], .b-form input[type=email], .b-form input[type=password], .b-form input[type=search], .b-form input[type=datetime-local], .b-form input:not([type]) { display: block; width: 100%; margin-top: 6px; padding: 11px 12px; border: 1px solid #cfd3d8; font: inherit; font-size: 15px; font-weight: 400; border-radius: 2px; }
.b-form input[readonly] { background: var(--soft); }
.b-form .row { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-end; }
.b-form .row > label { flex: 1 1 200px; }
.b-form label.chk { display: flex; align-items: center; gap: 6px; font-weight: 400; flex: 0 0 auto; }
.b-form .err { color: #b3261e; background: #fdecea; padding: 10px 14px; }
.b-form .ok { color: #1e6b34; background: #e8f5ec; padding: 10px 14px; }
.sub-links { text-align: center; font-size: 14px; color: var(--muted); }
.cur-thumb img { max-height: 90px; vertical-align: middle; }
/* 사진 여러 장 */
.photo-box { border: 1px dashed #c3c8ce; padding: 16px; margin: 20px 0; border-radius: 4px; background: #fafbfc; }
.pb-head { font-size: 14px; margin-bottom: 10px; }
.pb-head span { color: var(--muted); font-size: 13px; }
.b-form .pb-pick { display: inline-block; margin: 0 0 12px; cursor: pointer; }
.pb-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; counter-reset: pb; }
.pb-list li { position: relative; aspect-ratio: 1; background: #fff; border: 1px solid var(--line); cursor: grab; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.pb-list li img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.pb-list li.loading { opacity: .5; }
.pb-list li.fail { outline: 2px solid #b3261e; }
.pb-list li.sortable-ghost { opacity: .3; }
.pb-list .doc-name { font-size: 12px; padding: 8px; text-align: center; word-break: break-all; }
.pb-list li::before { content: counter(pb); counter-increment: pb; position: absolute; left: 4px; top: 4px; background: rgba(0,0,0,.6); color: #fff; font-size: 11px; padding: 0 6px; border-radius: 8px; }
.pb-del { position: absolute; right: 4px; top: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(179,38,30,.9); color: #fff; font-size: 16px; line-height: 1; cursor: pointer; }
.pb-status { margin: 8px 0 0; font-size: 13px; color: var(--muted); }

/* ---------- 아래 ---------- */
.foot-map { background: var(--blue) linear-gradient(135deg, #1a55ad, #2160bd); color: #fff; padding: 60px 0 70px; }
.foot { background: #fff; color: #333; padding: 46px 0 50px; font-size: 14px; text-align: center; }
.foot .wrap { position: relative; }
.f-logo { margin: 0 0 18px; font-size: 26px; font-weight: 800; color: var(--dark); }
.f-logo img { max-height: 56px; width: auto; }
.f-info { margin: 0 0 8px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 0; }
.f-info span + span::before { content: '|'; margin: 0 10px; color: #bbb; }
.f-copy { margin: 0; color: #666; font-size: 13px; }
.to-top { position: absolute; right: 20px; top: -46px; width: 58px; height: 58px; display: flex; align-items: center; justify-content: center; background: var(--sky); color: #fff; }

/* 칸 안 긴 제목이 화면을 넓히지 않게 */
.ms-grid > *, .news-grid > *, .gal-grid > *, .b-gallery > *, .people > *, .cards > *, .pb-list > *, .m-welcome .wrap.has-img > *, .text-block.has-img > * { min-width: 0; }

/* ---------- 태블릿·휴대폰 ---------- */
@media (max-width: 1200px) {
  .nav > ul > li > a { padding: 0 16px; font-size: 16px; }
  .gnb-in { padding: 0 24px; }
}
@media (max-width: 1024px) {
  .gnb-in { height: 64px; padding: 0 16px; justify-content: space-between; }
  .logo { font-size: 22px; } .logo img { max-height: 40px; }
  .nav, .util { display: none; }
  .sitemap { inset: var(--hhm) 0 0; }
  .sm-in { padding: 24px 20px 60px; }
  .sm-util { display: flex; }
  .sm-cols { grid-template-columns: 1fr 1fr; gap: 26px 20px; }
  .sm-cols h3 { font-size: 17px; margin-bottom: 10px; padding-bottom: 10px; }
  .sub-visual { padding-top: var(--hhm); height: calc(196px + var(--hhm)); }
  .m-welcome .wrap.has-img, .text-block.has-img { grid-template-columns: 1fr; gap: 30px; }
  .text-block + .text-block.has-img:nth-of-type(even) .tb-img { order: 0; }
  .m-items .cards { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .ms-grid { grid-template-columns: 1fr; gap: 40px; }
  .ms-side { flex-direction: row; }
  .ms-side li { flex: 1; }
  .news-grid { grid-template-columns: 1fr; gap: 30px; }
  .gal-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .gal-grid a:nth-child(10n+1), .gal-grid a:nth-child(10n+8) { grid-column: auto; }
  .gal-grid a:nth-child(5n+1) { grid-column: span 2; }
  .gal-grid .cap { opacity: 1; top: auto; padding: 10px; background: linear-gradient(transparent, rgba(0,0,0,.7)); align-items: flex-start; text-align: left; }
  .gal-grid .cap b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
  .gal-grid .cap em { display: none; }
  .fm-cols { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 650px) {
  body { font-size: 15px; }
  .hero { height: 78vh; min-height: 440px; }
  .hero-txt { bottom: 18%; }
  .hero-txt h2 span { background-size: 100% 4px; }
  .m-head { margin-bottom: 34px; }
  .m-head h2::before { width: 40px; height: 5px; margin-bottom: 16px; }
  .m-welcome { padding: 70px 0 50px; background: linear-gradient(160deg, #e3f3ff 0%, #dfe5ff 70%, #fff 70.3%); }
  .m-welcome .d1 { width: 90px; height: 90px; } .m-welcome .d2 { width: 90px; height: 90px; border-width: 12px; }
  .m-welcome .txt { font-size: 16px; }
  .m-items { padding-bottom: 60px; }
  .m-items .cards { gap: 12px; }
  .m-items .card { aspect-ratio: 1; }
  .m-items .card-img { width: 60px; height: 60px; margin-bottom: 14px; }
  .m-sermon { padding: 70px 0; }
  .ms-label { font-size: 20px; margin-bottom: 24px; }
  .ms-main .bible { margin-bottom: 18px; }
  .ms-main .who { margin-bottom: 30px; font-size: 16px; }
  .ms-btns { gap: 10px; }
  .ms-btns .btn-box { min-width: 0; flex: 1; height: 58px; font-size: 16px; padding: 0 10px; }
  .ms-side { gap: 12px; }
  .ms-side b { font-size: 14px; } .ms-side .t { padding: 30px 12px 12px; }
  .news-body { padding: 50px 0; }
  .news-l p { font-size: 16px; margin-bottom: 20px; }
  .news-list li { font-size: 15px; gap: 10px; }
  .news-list span { font-size: 13px; }
  .tab-nav.box { flex-wrap: wrap; }
  .m-gallery { padding: 60px 0; }
  .gal-grid { grid-auto-rows: 130px; gap: 6px; }
  .foot-map { display: none; }
  .loc-in { padding: 0; height: 46px; }
  .location .home { border-left: 0; padding: 0 12px; }
  .loc-dd { flex: 1; min-width: 0; }
  .loc-dd > button { width: 100%; min-width: 0; padding: 0 30px 0 12px; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .loc-dd > button::after { right: 12px; }
  .loc-dd:hover ul { display: none; }
  .loc-dd ul { min-width: 0; }
  .loc-dd li a { white-space: normal; }
  .loc-dd.open ul { display: block; }
  .page { padding: 44px 16px 70px; }
  .wrap { padding: 0 16px; }
  .page-head { margin-bottom: 30px; padding-bottom: 24px; }
  .admin-edit { position: static; display: inline-block; margin-top: 10px; }
  .tab-nav button { padding: 10px 14px; font-size: 14px; }
  .b-list .no, .b-list .wr { display: none; }
  .b-list .dt { width: 86px; font-size: 13px; } .b-list .hit { width: 50px; font-size: 13px; }
  .b-gallery { grid-template-columns: 1fr 1fr; gap: 22px 12px; }
  .search input { width: 140px; }
  .people { grid-template-columns: repeat(2, 1fr); gap: 26px 14px; }
  .timeline { padding-left: 20px; }
  .timeline li { flex-direction: column; gap: 2px; }
  .timeline li::before { left: -29px; }
  .timeline .date { flex: none; }
  .pb-list { grid-template-columns: repeat(3, 1fr); }
  .f-info { flex-direction: column; }
  .f-info span + span::before { display: none; }
  .to-top { width: 46px; height: 46px; right: 16px; top: -40px; }
}

/* ---------- 디자인(템플릿) 공통 ---------- */
.topbar { display: none; }
.logo .lg { display: block; max-height: 52px; width: auto; }
.head-dark .gnb .lg-c, .head-light .gnb .lg-w { display: none; }
.foot .f-logo .lg { display: inline-block; max-height: 60px; }
.foot-dark .foot .lg-c, .foot-light .foot .lg-w { display: none; }
.ms-thumb { display: none; }
.quickbar { display: none; }
.theme-preview { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 200; background: #111; color: #fff; padding: 10px 18px; border-radius: 30px; font-size: 14px; box-shadow: 0 6px 20px rgba(0,0,0,.3); display: flex; gap: 14px; align-items: center; white-space: nowrap; }
.theme-preview a { color: #7cc4f0; text-decoration: underline; }
@media (max-width: 1024px) { .logo .lg { max-height: 40px; } }

/* 상단 LIVE 버튼 (유튜브 실시간 예배) */
.live-btn { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 16px; background: #e60023; color: #fff !important; font-size: 13px; font-weight: 800; letter-spacing: .05em; line-height: 1; }
.live-btn i { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: livepulse 1.4s infinite; }
.live-btn:hover { background: #c4001d; }
.live-btn.is-off { background: #8e959c; }
.live-btn.is-off i { animation: none; opacity: .6; }
.live-btn.is-off:hover { background: #767d84; }
.live-btn.is-off { display: none; } /* 11-08 평상시(생방송 아닐 때)는 숨김, 생방송이면 빨간 버튼으로 나타남 */
@keyframes livepulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@media (max-width: 1024px) { .live-btn { height: 28px; padding: 0 10px; font-size: 12px; margin-left: auto; margin-right: 8px; } }
/* LIVE 팝업 */
.live-pop { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0,0,0,.75); }
body.live-open { overflow: hidden; }
.lp-box { width: min(1100px, 100%); background: #000; box-shadow: 0 20px 60px rgba(0,0,0,.5); display: flex; flex-direction: column; }
.lp-bar { display: flex; align-items: center; gap: 8px; padding: 8px 10px 8px 14px; background: #111; color: #fff; }
.lp-bar b { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 15px; }
.lp-bar b i { width: 9px; height: 9px; border-radius: 50%; background: #e60023; animation: livepulse 1.4s infinite; }
.lp-bar button { height: 34px; padding: 0 14px; border: 1px solid #555; border-radius: 4px; background: #222; color: #fff; font-size: 14px; cursor: pointer; }
.lp-bar button:hover { background: #333; }
.lp-bar .lp-close { width: 38px; padding: 0; font-size: 22px; line-height: 1; }
.lp-video { position: relative; aspect-ratio: 16 / 9; }
.lp-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lp-box:fullscreen, .lp-box.max { width: 100%; height: 100%; }
.lp-box:-webkit-full-screen { width: 100%; height: 100%; }
/* 전체 화면: 영상이 화면 전체, 위 버튼 줄은 영상 위에 겹쳐 3초 뒤 숨김(위쪽에 마우스 올리면 다시 보임) */
.lp-box.full { position: relative; }
.lp-box.full .lp-video { position: absolute; inset: 0; aspect-ratio: auto; }
.lp-box.full .lp-bar { position: absolute; left: 0; right: 0; top: 0; z-index: 2; background: linear-gradient(rgba(0,0,0,.75), transparent); padding-bottom: 24px; transition: opacity .4s; }
.lp-box.full.idle .lp-bar { opacity: 0; }
.lp-box.full.idle .lp-bar:hover { opacity: 1; }
.live-pop:has(.lp-box.max) { padding: 0; }
@media (max-width: 650px) { .live-pop { padding: 10px; } .lp-bar b { font-size: 13px; } .lp-bar button { height: 30px; padding: 0 10px; font-size: 13px; } }
/* 실시간 예배 페이지 (/live) */
.live-page { padding: calc(var(--hh) + 40px) 0 70px; background: #f4f5f7; }
.live-page .wrap { max-width: 1100px; }
.lv-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.lv-head h2 { margin: 0; font-size: clamp(20px, 2.4vw, 30px); font-weight: 800; color: #111; }
.lv-badge { display: inline-flex; align-items: center; gap: 6px; margin: 0; height: 28px; padding: 0 12px; border-radius: 15px; background: #e60023; color: #fff; font-size: 13px; font-weight: 800; letter-spacing: .05em; }
.lv-badge i { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: livepulse 1.4s infinite; }
.lv-player { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 12px; overflow: hidden; box-shadow: 0 14px 34px rgba(0,0,0,.18); }
.lv-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lv-player .empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #ccc; }
.lv-unmute { position: absolute; z-index: 2; left: 50%; top: 16px; transform: translateX(-50%); height: 52px; padding: 0 26px; border: 0; border-radius: 26px; background: rgba(230,0,35,.92); color: #fff; font-size: 18px; font-weight: 800; cursor: pointer; box-shadow: 0 6px 20px rgba(0,0,0,.35); }
.lv-unmute:hover { background: #c4001d; }
@media (max-width: 650px) { .lv-unmute { height: 44px; padding: 0 20px; font-size: 16px; top: 10px; } }
.lv-note { margin: 14px 2px 0; color: #777; font-size: 14px; }
.lv-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 30px; }
@media (max-width: 1024px) { .live-page { padding-top: calc(var(--hhm) + 20px); } }
@media (max-width: 650px) {
  .live-page { padding-bottom: 40px; }
  .live-page .wrap { padding: 0; }
  .lv-head { padding: 0 16px; }
  .lv-player { border-radius: 0; }
  .lv-note { padding: 0 16px; font-size: 13px; }
  .lv-btns { padding: 0 16px; }
  .lv-btns .btn-box { flex: 1 1 140px; min-width: 0; }
}
/* 11-08 휴대폰·폴드 가로 모드: 실시간 예배 페이지는 상단바·아래 바로가기 숨기고 영상을 화면 높이에 맞춤 (PC 는 해당 없음) */
@media (orientation: landscape) and (max-height: 540px), (orientation: landscape) and (pointer: coarse), (orientation: landscape) and (any-pointer: coarse) {
  body:has(.live-page) .gnb, body:has(.live-page) .quickbar, body:has(.live-page) .to-top { display: none !important; }
  .live-page { padding-top: 0 !important; }
  .live-page .wrap { max-width: none; padding: 0; }
  .live-page .lv-head { display: none; }
  .live-page .lv-player { width: min(100%, calc(100vh * 16 / 9)); width: min(100%, calc(100dvh * 16 / 9)); margin: 0 auto; border-radius: 0; box-shadow: none; }
  .live-page .lv-note, .live-page .lv-btns { padding: 0 16px; }
}
/* 상단 예배 버튼 (LIVE 왼쪽) */
.worship-btn { flex: none; display: inline-flex; align-items: center; height: 30px; padding: 0 14px; margin-right: 6px; border: 1px solid currentColor; border-radius: 16px; font-size: 13px; font-weight: 700; line-height: 1; }
.worship-btn:hover { opacity: .75; }
@media (max-width: 1024px) {
  .worship-btn { height: 28px; padding: 0 10px; font-size: 12px; margin-left: auto; }
  .worship-btn + .live-btn { margin-left: 0; }
}

/* 선교활동(sub.php?m=16, row_table 안 table_type02 만 — 행사일정 row_table 은 건드리지 않음): 예전 사이트처럼 표 두 개 나란히·가운데 정렬·칸 줄 (11-08) */
.block-html:has(.row_table .table_type02) div:has(> .row_table) { display: flex; gap: 0; font-size: 0; line-height: 0; }
.block-html:has(.row_table .table_type02) .row_table { flex: 1 1 0; min-width: 0; font-size: 0; line-height: 0; }
.block-html:has(.row_table .table_type02) .row_table.tb100 { flex: none; width: 100%; }
.block-html:has(.row_table .table_type02) .row_table table { width: 100%; border-top: 1px solid #707070; font-size: 16px; line-height: 25px; table-layout: fixed; }
.block-html:has(.row_table .table_type02) .row_table colgroup, .block-html:has(.row_table .table_type02) .row_table col { display: none; } /* 원본에 빈 colgroup 이 있어 칸이 밀림 → 폭은 아래에서 */
.block-html:has(.row_table .table_type02) .row_table th:first-child:nth-last-child(3) { width: 20%; }
.block-html:has(.row_table .table_type02) .row_table th:first-child:nth-last-child(3) ~ th { width: 40%; }
.block-html:has(.row_table .table_type02) .row_table th:first-child:nth-last-child(2) { width: 70%; }
.block-html:has(.row_table .table_type02) .row_table th:first-child:nth-last-child(2) ~ th { width: 30%; }
.block-html:has(.row_table .table_type02) .row_table th, .block-html:has(.row_table .table_type02) .row_table td { height: 60px; padding: 0 6px; text-align: center; border-bottom: 1px solid #d1d1d1; border-right: 1px solid #d1d1d1; word-break: keep-all; }
.block-html:has(.row_table .table_type02) .row_table th { background: #f6f6f6; font-size: 18px; font-weight: 500; color: #000; }
.block-html:has(.row_table .table_type02) .row_table td { color: #000; }
.block-html:has(.row_table .table_type02) .row_table tr > :last-child { border-right: 0; }
.block-html:has(.row_table .table_type02) div:has(> .row_table) > .row_table:first-of-type:not(:last-of-type) tr > :last-child { border-right: 1px solid #d1d1d1; }
@media (max-width: 650px) {
  .block-html:has(.row_table .table_type02) div:has(> .row_table) { flex-direction: column; gap: 20px; }
  .block-html:has(.row_table .table_type02) .row_table table { font-size: 14px; }
  .block-html:has(.row_table .table_type02) .row_table th { font-size: 15px; }
  .block-html:has(.row_table .table_type02) .row_table th, .block-html:has(.row_table .table_type02) .row_table td { height: 46px; }
  .block-html:has(.row_table .table_type02) div:has(> .row_table) > .row_table:first-of-type:not(:last-of-type) tr > :last-child { border-right: 0; }
}
/* 행사일정(sub.php?m=12): 예전 사이트처럼 한 분기 석 달을 나란히, 월마다 제목 표시 (11-08) */
.block-html div:has(> .group .row_table .table_type01) { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; align-items: start; font-size: 0; line-height: 0; }
.block-html .group:has(.row_table .table_type01) { min-width: 0; font-size: 16px; line-height: 1.6; }
.block-html .group:has(.row_table .table_type01) > .title { position: relative; padding: 0 0 12px 16px; font-size: 20px; font-weight: 700; line-height: 30px; color: #111; }
.block-html .group:has(.row_table .table_type01) > .title::before { content: ""; position: absolute; left: 0; top: 5px; width: 4px; height: 20px; background: var(--sky, #00a6c1); }
.block-html .group:has(.row_table .table_type01) .row_table { font-size: 0; line-height: 0; }
.block-html .group:has(.row_table .table_type01) table { width: 100%; border-top: 1px solid #707070; font-size: 15px; line-height: 1.5; table-layout: fixed; } /* 날짜 칸 폭을 모든 달이 똑같이 */
.block-html .group:has(.row_table .table_type01) th { width: 36%; background: #f6f6f6; text-align: center; font-weight: 600; word-break: keep-all; padding: 14px 6px; }
.block-html .group:has(.row_table .table_type01) td { text-align: left; padding: 14px 12px; word-break: keep-all; }
@media (max-width: 900px) {
  .block-html div:has(> .group .row_table .table_type01) { grid-template-columns: 1fr; gap: 36px; }
}
/* 차량운행시간(sub.php?m=14): 예전 사이트처럼 차량 3대씩 나란히, 차량 제목 굵게 가운데, 순서·시간 칸 좁게 (11-08) */
.block-html div:has(> .group .col_table) { display: flex; flex-wrap: wrap; align-items: flex-start; font-size: 0; line-height: 0; } /* grid 는 앞의 빈칸(&nbsp;)이 한 칸을 차지해서 flex+여백으로 */
.block-html .group:has(.col_table) { width: 32%; margin: 0 2% 44px 0; min-width: 0; font-size: 0; line-height: 0; }
.block-html .group:has(.col_table):nth-of-type(3n) { margin-right: 0; }
.block-html .group:has(.col_table) > .title { padding: 0 0 12px; font-size: 19px; font-weight: 700; line-height: 1.45; text-align: center; color: #111; }
.block-html .group:has(.col_table) .col_table { font-size: 0; line-height: 0; }
.block-html .group:has(.col_table) table { width: 100%; table-layout: fixed; border-top: 1px solid #707070; font-size: 15px; line-height: 1.5; }
.block-html .group:has(.col_table) th { background: #f6f6f6; text-align: center; font-weight: 600; padding: 13px 4px; }
.block-html .group:has(.col_table) th:first-child { width: 17%; }
.block-html .group:has(.col_table) th:last-child { width: 20%; }
.block-html .group:has(.col_table) td { padding: 13px 8px; word-break: keep-all; }
.block-html .group:has(.col_table) td.num { text-align: center; }
.block-html .group:has(.col_table) td.time { text-align: center; }
@media (max-width: 900px) {
  .block-html .group:has(.col_table) { width: 100%; margin: 0 0 36px; }
}