/* Desktop preview overrides; loaded only by index_new.php. */
html{scroll-behavior:smooth;scroll-padding-top:100px}body{background:#f5f6f4}
#mg-mobile-draft{max-width:none;font-size:16px;--mg-radius:20px}
#mg-mobile-draft .test-note{background:#edf1e9;color:#677260;padding:5px 20px;font-size:11px}
#mg-mobile-draft .top{padding:15px max(32px,calc((100vw - 1240px)/2));gap:24px;position:relative;z-index:5}
#mg-mobile-draft .logo{width:178px}
#mg-mobile-draft .desktop-nav{display:flex;align-items:center;gap:30px;margin-left:auto;font-size:15px;font-weight:600;white-space:nowrap}
#mg-mobile-draft .desktop-nav a:hover{color:#7b915c}
#mg-mobile-draft .menu{padding:28px max(32px,calc((100vw - 1240px)/2));grid-template-columns:repeat(4,1fr)}
#mg-mobile-draft .hero{height:660px;max-height:calc(100vh - 115px);min-height:460px}
#mg-mobile-draft .hero-copy{left:max(48px,calc((100vw - 1160px)/2));right:15%;bottom:150px;max-width:830px}
#mg-mobile-draft .hero .eyebrow{font-size:16px;letter-spacing:4px;margin-bottom:23px}
#mg-mobile-draft .hero h1{font-size:clamp(36px,4vw,58px);line-height:1.4;letter-spacing:-2px;text-shadow:0 2px 18px #0003}
#mg-mobile-draft .verse-ref{font-size:17px;margin-top:24px}
#mg-mobile-draft .hero-bottom{left:max(48px,calc((100vw - 1160px)/2));right:auto;width:350px;bottom:55px}
#mg-mobile-draft .welcome{max-width:1240px;margin:auto;padding:76px 30px 36px}
#mg-mobile-draft .welcome h2{font-size:38px;margin:12px 0}
#mg-mobile-draft .welcome p{font-size:16px}
#mg-mobile-draft .sections{max-width:1240px;margin:auto;padding:0 30px 80px;grid-template-columns:1.2fr 1fr;gap:26px;align-items:stretch}
#mg-mobile-draft .section-card{padding:32px;min-width:0}
#mg-mobile-draft .section-head h2{font-size:23px}
#mg-mobile-draft #mg-sermon .sermon-title{font-size:21px}
#mg-mobile-draft .bulletins a{padding:27px 0;font-size:17px;line-height:1.7}
#mg-mobile-draft time{font-size:13px}
#mg-mobile-draft .quick{grid-column:1/-1;padding:28px 32px;display:flex;align-items:center;gap:36px}
#mg-mobile-draft .quick-title{display:block;flex-shrink:0;margin:0}
#mg-mobile-draft .quick-grid{flex:1;grid-template-columns:repeat(6,minmax(0,1fr))}
#mg-mobile-draft .quick-grid a:nth-child(n){grid-column:auto;min-height:76px;font-size:14px}
#mg-mobile-draft .word-card{grid-column:1/-1;display:grid;grid-template-columns:1fr 1.15fr;column-gap:65px;padding:45px;background:#e6eddf}
#mg-mobile-draft .word-card>.summary{grid-column:2;grid-row:1/6;margin:0;border-top:0;border-left:1px solid #c6d2bd;padding:0 0 0 45px}
#mg-mobile-draft .word-card>.verse{font-size:26px}
#mg-mobile-draft .summary p{font-size:16px}
#mg-mobile-draft .photo-section{padding:75px max(30px,calc((100vw - 1180px)/2));background:#e9e9e3}
#mg-mobile-draft .photo-heading h2{font-size:42px;line-height:1.3;margin:15px 0}
#mg-mobile-draft .photo-heading p{font-size:15px}
#mg-mobile-draft .mosaic{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:12px}
#mg-mobile-draft .quote-tile{font-size:18px;padding:30px}
#mg-mobile-draft .album-more{width:max-content;margin-top:35px;font-size:15px}
#mg-mobile-draft .kids-gallery{padding:90px max(30px,calc((100vw - 1180px)/2));display:grid;grid-template-columns: .75fr 1.6fr;gap:60px;align-items:start}
#mg-mobile-draft .kids-gallery>header{padding-top:25px}
#mg-mobile-draft .kids-gallery h2{font-size:38px;margin:15px 0 28px}
#mg-mobile-draft .kids-intro{font-size:16px}
#mg-mobile-draft .kids-frame{padding:32px}
#mg-mobile-draft .kids-label{font-size:12px;margin-bottom:28px}
#mg-mobile-draft .kids-grid{grid-auto-rows:155px;gap:12px}
#mg-mobile-draft .footer{padding:55px 30px}
#mg-mobile-draft .footer strong{font-size:23px}
#mg-mobile-draft .footer address,#mg-mobile-draft .footer p{font-size:13px}
@media(max-width:1100px){#mg-mobile-draft .desktop-nav{gap:16px;font-size:13px}#mg-mobile-draft .logo{width:145px}#mg-mobile-draft .kids-gallery{gap:30px}#mg-mobile-draft .quick{display:block}#mg-mobile-draft .quick-title{margin-bottom:20px}}
@media(max-width:760px){#mg-mobile-draft .desktop-nav{display:none}#mg-mobile-draft .top{padding:12px 20px}#mg-mobile-draft .menu{grid-template-columns:1fr 1fr;padding:16px 24px}#mg-mobile-draft .hero{height:550px;max-height:none;min-height:0}#mg-mobile-draft .hero-copy{left:25px;right:25px;bottom:130px}#mg-mobile-draft .hero h1{font-size:32px;letter-spacing:-1px}#mg-mobile-draft .hero .eyebrow{font-size:12px;letter-spacing:2px}#mg-mobile-draft .hero-bottom{left:25px;width:calc(100% - 50px)}#mg-mobile-draft .welcome{padding:40px 22px 24px}#mg-mobile-draft .welcome h2{font-size:27px}#mg-mobile-draft .sections{grid-template-columns:1fr;padding:0 16px 45px}#mg-mobile-draft .section-card{padding:23px}#mg-mobile-draft .quick-grid{grid-template-columns:repeat(3,1fr)}#mg-mobile-draft .quick{padding:24px}#mg-mobile-draft .word-card{display:block;padding:28px}#mg-mobile-draft .word-card>.summary{border-left:0;border-top:1px solid #c6d2bd;padding:25px 0 0;margin-top:25px}#mg-mobile-draft .photo-section{padding:45px 16px}#mg-mobile-draft .photo-heading h2{font-size:32px}#mg-mobile-draft .mosaic{grid-template-columns:1fr 1fr;padding:7px;gap:7px}#mg-mobile-draft .quote-tile{padding:18px;font-size:14px}#mg-mobile-draft .kids-gallery{display:block;padding:45px 18px}#mg-mobile-draft .kids-gallery h2{font-size:28px}#mg-mobile-draft .kids-frame{padding:20px 16px}#mg-mobile-draft .kids-grid{grid-auto-rows:110px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* PC slideshow: overlap the outgoing and incoming images for a gentle dissolve. */
#mg-mobile-draft .hero-photo{transition:opacity 2.4s ease-in-out;will-change:opacity}
@media(prefers-reduced-motion:reduce){#mg-mobile-draft .hero-photo{transition:none}}

/* Explicit PC autoplay preference, with the visible pause control retained. */
#mg-mobile-draft[data-hero-autoplay="true"] .hero-photo{transition:opacity 2.4s ease-in-out!important}
#mg-mobile-draft[data-hero-autoplay="true"] .hero-copy{transition:opacity .45s ease!important}

/* Sequential gallery entrance and monochrome-to-colour transition requested for PC. */
#mg-mobile-draft[data-hero-autoplay="true"] :is(.mosaic .tile,.kids-tile).reveal{opacity:0;transform:translateY(18px);transition:opacity .9s ease,transform .9s ease!important}
#mg-mobile-draft[data-hero-autoplay="true"] :is(.mosaic .tile,.kids-tile).visible{opacity:1;transform:none}
#mg-mobile-draft[data-hero-autoplay="true"] .kids-tile img{filter:grayscale(1);transition:filter 1.8s ease .6s!important}
#mg-mobile-draft[data-hero-autoplay="true"] .kids-tile.visible img{filter:grayscale(0)}

/* Desktop image-overlay header and full-width dropdown. */
#mg-mobile-draft{position:relative}
@media(min-width:761px){
#mg-mobile-draft .test-note{position:absolute;top:0;left:0;right:0;z-index:10;background:rgba(255,255,255,.75)}
#mg-mobile-draft .top{position:absolute;top:28px;left:0;right:0;background:transparent;color:#fff;min-height:95px;transition:background .25s,color .25s}
#mg-mobile-draft .top .desktop-nav summary,#mg-mobile-draft .top .menu-button{color:inherit;text-shadow:0 1px 5px #0007}
#mg-mobile-draft .top:hover,#mg-mobile-draft .top:focus-within,#mg-mobile-draft .top.nav-expanded{background:#fff;color:#243c35}
#mg-mobile-draft .top:hover summary,#mg-mobile-draft .top:focus-within summary,#mg-mobile-draft .top.nav-expanded summary{ text-shadow:none }
#mg-mobile-draft .top .desktop-nav .mg-nav-group{position:static}
#mg-mobile-draft .top .desktop-nav .mg-nav-children{position:absolute;left:0;right:0;top:100%;transform:none;width:auto;min-height:190px;padding:32px max(35px,calc((100vw - 900px)/2));background:#fff;border:0;border-top:1px solid #edf0eb;border-radius:0;box-shadow:0 18px 28px #18342618;display:grid;grid-template-columns:repeat(4,minmax(130px,1fr));align-content:start;gap:8px 20px;backdrop-filter:none}
#mg-mobile-draft .top .desktop-nav details:not([open]) .mg-nav-children{display:none}
#mg-mobile-draft .top .desktop-nav .mg-nav-children a{padding:10px 0}
#mg-mobile-draft .menu{position:absolute;top:123px;left:0;right:0;z-index:12;background:#fff;max-height:70vh;overflow:auto}
#mg-mobile-draft .hero{height:780px;max-height:100vh;min-height:580px}
}
/* Move slide containers; zoom the image independently. */
#mg-mobile-draft .pc-slide{position:absolute;inset:0;overflow:hidden;visibility:hidden;transform:translateX(100%);transition:none!important}
#mg-mobile-draft .pc-slide.entering{visibility:visible;transform:translateX(100%);z-index:1}
#mg-mobile-draft .pc-slide.current{visibility:visible;transform:translateX(0);transition:transform 1.1s ease-in-out!important;z-index:2}
#mg-mobile-draft .pc-slide.leaving{visibility:visible;transform:translateX(-100%);transition:transform 1.1s ease-in-out!important;z-index:1}
#mg-mobile-draft[data-hero-autoplay="true"] .pc-slide .hero-photo{opacity:1;transition:none!important;transform:scale(1.12)}
#mg-mobile-draft .pc-slide.current .hero-photo{animation:mg-pc-zoom-out 5s linear forwards}
#mg-mobile-draft .pc-slide.leaving .hero-photo{transform:scale(1)}
#mg-mobile-draft.hero-paused .pc-slide.current .hero-photo{animation-play-state:paused}
#mg-mobile-draft .veil{z-index:3;pointer-events:none}
#mg-mobile-draft .hero-copy,#mg-mobile-draft .hero-bottom{z-index:4}
@keyframes mg-pc-zoom-out{from{transform:scale(1.12)}to{transform:scale(1)}}

/* Full-screen PC hero with a translucent white navigation surface. */
@media(min-width:761px){
#mg-mobile-draft .hero{height:100vh;height:100svh;max-height:none;min-height:580px}
#mg-mobile-draft .top,#mg-mobile-draft .top:hover,#mg-mobile-draft .top:focus-within,#mg-mobile-draft .top.nav-expanded{background:#fff;color:#243c35;backdrop-filter:none;-webkit-backdrop-filter:none}
#mg-mobile-draft .top .desktop-nav summary,#mg-mobile-draft .top .menu-button{color:#243c35;text-shadow:none}
#mg-mobile-draft .top .desktop-nav .mg-nav-children{background:rgba(255,255,255,.88);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
}

/* Align every submenu with the first top-level label (church introduction). */
@media(min-width:761px){
#mg-mobile-draft .top .desktop-nav .mg-nav-children{padding:26px 32px 28px var(--mg-submenu-start,32px);grid-template-columns:repeat(auto-fit,minmax(min(130px,100%),1fr));gap:8px 20px;box-sizing:border-box}
}

/* Inset rounded submenu panel; preserve the shared first-menu alignment. */
@media(min-width:761px){
#mg-mobile-draft .top .desktop-nav .mg-nav-children{left:20px;right:20px;width:auto;border-radius:18px;border:1px solid rgba(255,255,255,.65);padding-left:max(20px,calc(var(--mg-submenu-start,40px) - 21px));box-shadow:0 14px 32px rgba(24,52,38,.14);overflow:hidden}
}

/* Rounded main navigation panel, aligned with the dropdown panel. */
@media(min-width:761px){
#mg-mobile-draft .top{left:20px;right:20px;border-radius:18px;padding-left:max(20px,calc((100vw - 1240px)/2 - 20px));padding-right:max(20px,calc((100vw - 1240px)/2 - 20px));box-shadow:0 8px 24px rgba(24,52,38,.08)}
#mg-mobile-draft .top .desktop-nav .mg-nav-children{left:0;right:0;padding-left:max(20px,calc(var(--mg-submenu-start,40px) - 1px))}
}

/* Navigation typography inspired by the supplied reference. */
@media(min-width:761px){
#mg-mobile-draft .top .desktop-nav{font-family:'Noto Sans KR','Malgun Gothic','Apple SD Gothic Neo',sans-serif}
#mg-mobile-draft .top .desktop-nav summary{font-family:inherit;font-size:16px;font-weight:700;line-height:1.5;letter-spacing:-.5px;color:#25364b;text-shadow:none;gap:8px}
#mg-mobile-draft .top .desktop-nav summary:after{content:'';width:6px;height:6px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);align-self:center;margin:0 3px 4px}
#mg-mobile-draft .top .desktop-nav details[open]>summary,#mg-mobile-draft .top .desktop-nav summary:hover{color:#2466d8}
#mg-mobile-draft .top .desktop-nav details[open]>summary:after{transform:rotate(225deg);margin-bottom:0}
#mg-mobile-draft .top .desktop-nav .mg-nav-children a{font-family:inherit;font-size:14.4px;font-weight:500;line-height:1.65;letter-spacing:-.3px;color:#39475a}
#mg-mobile-draft .top .desktop-nav .mg-nav-children a:hover{color:#2466d8;background:rgba(234,241,255,.65)}
}
@media(min-width:761px) and (max-width:1200px){
#mg-mobile-draft .top{gap:16px}
#mg-mobile-draft .top .desktop-nav .mg-navigation{gap:14px}
#mg-mobile-draft .top .desktop-nav summary{font-size:12.8px;gap:5px}
#mg-mobile-draft .top .desktop-nav .mg-nav-children a{font-size:15px}
}
@media(min-width:761px) and (max-width:950px){
#mg-mobile-draft .top{gap:10px;padding-left:16px;padding-right:16px}
#mg-mobile-draft .top .logo{width:110px}
#mg-mobile-draft .top .desktop-nav .mg-navigation{gap:10px}
#mg-mobile-draft .top .desktop-nav summary{font-size:11.2px;letter-spacing:-.5px;gap:3px}
#mg-mobile-draft .top .menu-button{width:32px;flex-shrink:0}
}

/* Quiet footer with church contact details and useful links. */
#mg-mobile-draft .footer{background:#fff;text-align:left;padding:48px max(30px,calc((100vw - 1180px)/2));color:#34465f}
#mg-mobile-draft .footer strong{color:#243c55;font-size:20px}
#mg-mobile-draft .footer address,#mg-mobile-draft .footer p{color:#617082}
#mg-mobile-draft .footer-bottom{border-top:1px solid #d8e0e9;margin-top:28px;padding-top:24px;display:flex;align-items:center;justify-content:space-between;gap:30px}
#mg-mobile-draft .footer .copyright{margin:0;font-size:12px;color:#274565}
#mg-mobile-draft .footer a{text-decoration:none}
#mg-mobile-draft .footer a:hover{text-decoration:underline}
#mg-mobile-draft .footer-youtube{display:inline-block;margin-top:15px;color:#c83030;font-size:14px;font-weight:600}
#mg-mobile-draft .footer-links{display:flex;align-items:center;gap:24px;font-size:13px;color:#26466b}
#mg-mobile-draft .footer-top{display:grid;place-items:center;width:46px;height:46px;border:1px solid #1f4c88;border-radius:50%;font-size:26px;flex-shrink:0}
@media(max-width:760px){#mg-mobile-draft .footer{padding:32px 24px}#mg-mobile-draft .footer-bottom{align-items:flex-start;flex-direction:column;gap:20px}#mg-mobile-draft .footer-links{gap:16px;flex-wrap:wrap}}

@media(min-width:761px){#mg-mobile-draft .footer-bottom{flex-direction:row}#mg-mobile-draft .footer-links{width:auto}#mg-mobile-draft .footer-top{margin-left:0}}

/* Compact dropdown sized to its actual rows. */
#mg-mobile-draft .top .desktop-nav .mg-nav-children{min-height:0;padding-top:16px;padding-bottom:16px;row-gap:4px}
#mg-mobile-draft .top .desktop-nav .mg-nav-children a{display:flex;align-items:baseline;gap:9px;padding-top:7px;padding-bottom:7px}
#mg-mobile-draft .top .desktop-nav .mg-nav-children a:before{content:"";display:block;flex:0 0 4px;width:4px;height:4px;background:#82958c;align-self:flex-start;margin-top:.68em;border-radius:1px}

/* Opaque dropdown background. */
#mg-mobile-draft .top .desktop-nav .mg-nav-children{background:#fff;backdrop-filter:none;-webkit-backdrop-filter:none}

/* No panel behind the primary dropdown links. */
#mg-mobile-draft .top .desktop-nav .mg-nav-children{background:transparent;border:0;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none}
#mg-mobile-draft .top .desktop-nav .mg-nav-children a,#mg-mobile-draft .top .desktop-nav .mg-nav-children a:hover{color:#fff;background:transparent;text-shadow:0 1px 4px #000,0 1px 10px #0008}
#mg-mobile-draft .top .desktop-nav .mg-nav-children a:before{background:#fff}

/* Match the transparent subpage header with a compact white logo badge. */
@media(min-width:761px){
 #mg-mobile-draft .top,#mg-mobile-draft .top:hover,#mg-mobile-draft .top:focus-within,#mg-mobile-draft .top.nav-expanded{background:transparent;border:0;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none}
 #mg-mobile-draft .top>a{display:block;flex:0 0 auto;width:max-content;background:#fff;border:1px solid rgba(255,255,255,.85);border-radius:10px;padding:4px 6px;line-height:0;box-shadow:0 4px 18px rgba(0,0,0,.08)}
 #mg-mobile-draft .top .logo{display:block}
 #mg-mobile-draft .top .desktop-nav summary,#mg-mobile-draft .top .desktop-nav summary:hover,#mg-mobile-draft .top .desktop-nav details[open]>summary,#mg-mobile-draft .top .menu-button{color:#fff;text-shadow:0 1px 5px rgba(0,0,0,.55)}
}
