/* Round 134 — ministry page: hero, facts, About + slider, Vision/Mission/Purpose, Activities, Updates, Events, Gallery, closing banner.
   Uses the site's colour and font variables (navy + gold, Fraunces headings) so a church's own theme (Round 130) applies automatically.
   The site gives every <section> large padding, so each block here sets its own. */
.mpg-preview { background: #fff7e0; border-bottom: 1px solid #e8d49a; padding: 8px 0; font-size: .85rem; color: #5a4310; }
.mpg-preview a { margin-left: 12px; font-weight: 600; }

/* ---- buttons */
.mpg-btn { display: inline-flex; align-items: center; gap: 6px; padding: 11px 20px; border-radius: 10px; font: inherit; font-weight: 700; font-size: .92rem; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; line-height: 1.2; min-height: 44px; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.mpg-btn:hover { transform: translateY(-1px); }
.mpg-btn--gold { background: var(--gold-500, #cf9d3f); color: var(--navy-950, #0c2330); box-shadow: 0 4px 14px rgba(207, 157, 63, .35); }
.mpg-btn--gold:hover { background: var(--gold-400, #e0b563); }
.mpg-btn--navy { background: var(--navy-900, #123146); color: #fff; }
.mpg-btn--ghost { background: #fff; color: var(--navy-900, #123146); border-color: var(--steel-300, #aec3d2); padding: 8px 16px; font-size: .84rem; min-height: 40px; }
.mpg-btn--ghost:hover { border-color: var(--navy-700, #245576); }
.mpg-btn--line { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.mpg-ico { flex: 0 0 auto; }

/* ---- hero */
.mpg-hero { position: relative; isolation: isolate; background: linear-gradient(120deg, var(--navy-950, #0c2330) 0%, var(--navy-800, #1a4058) 100%); color: #fff; padding: 22px 0 70px; overflow: hidden; }
.mpg-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; z-index: -2; }
.mpg-hero.has-banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(12, 35, 48, .96) 0%, rgba(12, 35, 48, .82) 34%, rgba(12, 35, 48, .3) 66%, rgba(12, 35, 48, .05) 100%); }
.mpg-hero--compact { padding: 18px 0 26px; }
.mpg-crumbs { font-size: .78rem; color: rgba(255, 255, 255, .78); margin-bottom: 18px; }
.mpg-crumbs a { color: inherit; text-decoration: none; }
.mpg-crumbs a:hover { text-decoration: underline; }
.mpg-crumbs span { opacity: .6; margin: 0 2px; }
.mpg-crumbs span[aria-current] { opacity: 1; }
.mpg-hero-body { max-width: 560px; }
.mpg-logo { display: block; max-height: 78px; max-width: 220px; width: auto; height: auto; object-fit: contain; margin-bottom: 8px; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .35)); }
.mpg-logo--icon { font-size: 2.6rem; line-height: 1; filter: none; }
.mpg-hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.05; margin: 0 0 8px; }
.mpg-hero--compact h1 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
.mpg-tagline { font-family: var(--font-display, Georgia, serif); font-style: italic; font-size: 1.15rem; color: #fff; opacity: .95; margin: 0 0 10px; }
.mpg-summary { color: rgba(255, 255, 255, .92); font-size: 1.02rem; max-width: 460px; margin: 0 0 18px; }
.mpg-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.mpg-verse { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; color: rgba(255, 255, 255, .88); max-width: 360px; }

/* ---- quick facts (overlaps the hero's lower edge) */
.mpg-facts-wrap { position: relative; z-index: 2; margin-top: -42px; padding: 0 0 6px; }
.mpg-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0; background: #fff; border: 1px solid var(--line, #e3e9ed); border-radius: 14px; box-shadow: 0 10px 30px rgba(12, 35, 48, .12); overflow: hidden; }
.mpg-fact { display: flex; gap: 12px; align-items: center; padding: 14px 18px; border-right: 1px solid var(--line, #e3e9ed); min-width: 0; }
.mpg-fact:last-child { border-right: 0; }
.mpg-fact-ic { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%; background: var(--gold-100, #faf1de); color: var(--gold-600, #b8862f); display: inline-flex; align-items: center; justify-content: center; }
.mpg-fact small { display: block; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft, #4d5c66); }
.mpg-fact strong, .mpg-fact a { display: block; font-size: .93rem; color: var(--navy-950, #0c2330); font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.mpg-fact span { display: block; font-size: .78rem; color: var(--ink-soft, #4d5c66); }
.mpg-fact a:hover { text-decoration: underline; }
@media (max-width: 640px) { .mpg-fact { border-right: 0; border-bottom: 1px solid var(--line, #e3e9ed); } .mpg-fact:last-child { border-bottom: 0; } }

/* ---- sections */
.mpg-sec { padding: 46px 0; }
.mpg-tint { background: var(--fog-50, #f6f8fa); border-radius: 22px; margin: 0 12px; }
@media (min-width: 1300px) { .mpg-tint { margin: 0 auto; max-width: 1240px; } }
.mpg-sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.mpg-sec-head h2, .mpg-about-text h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 2px 0 0; }
.mpg-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-600, #b8862f); }
.mpg-eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--gold-500, #cf9d3f); }
.mpg-more { font-size: .85rem; font-weight: 600; color: var(--navy-800, #1a4058); text-decoration: none; }
.mpg-more:hover { text-decoration: underline; }
.mpg-empty { color: var(--ink-soft, #4d5c66); font-size: .92rem; }
.mpg-small, .mpg-muted { font-size: .8rem; color: var(--ink-soft, #4d5c66); }
.mpg-updated { text-align: right; font-size: .78rem; color: var(--ink-soft, #4d5c66); margin: 0; padding: 0 0 22px; }
.mpg-narrow { max-width: 780px; }

/* ---- about + slider */
.mpg-about-grid { display: grid; gap: 28px; align-items: center; grid-template-columns: 1fr; }
.mpg-about-grid.has-media { grid-template-columns: 1fr; }
@media (min-width: 900px) { .mpg-about-grid.has-media { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 44px; } }
.mpg-about { font-size: 1rem; color: var(--ink-soft, #4d5c66); }
.mpg-about p { margin-bottom: .9em; }
.mpg-about-text .mpg-about { margin-top: 12px; }
.mpg-about-media .mpg-slides { aspect-ratio: 16 / 10; max-height: none; border-radius: 16px; box-shadow: 0 12px 34px rgba(12, 35, 48, .18); }
.mpg-about-media .mpg-slide img { object-fit: cover; }

/* ---- vision / mission / purpose */
.mpg-vmp { display: grid; gap: 0; background: #fff; border-radius: 16px; box-shadow: 0 4px 22px rgba(12, 35, 48, .08); overflow: hidden; grid-template-columns: 1fr; }
@media (min-width: 900px) { .mpg-vmp--2 { grid-template-columns: repeat(2, 1fr); } .mpg-vmp--3 { grid-template-columns: repeat(3, 1fr); } }
.mpg-vmp-card { display: flex; gap: 16px; align-items: flex-start; padding: 24px 26px; border-bottom: 1px solid var(--line, #e3e9ed); }
@media (min-width: 900px) { .mpg-vmp-card { border-bottom: 0; border-right: 1px solid var(--line, #e3e9ed); } .mpg-vmp-card:last-child { border-right: 0; } }
.mpg-vmp-card:last-child { border-bottom: 0; }
.mpg-vmp-ic { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 50%; background: var(--gold-500, #cf9d3f); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.mpg-vmp-card h3 { font-size: 1.1rem; margin: 0 0 6px; }
.mpg-vmp-card p { margin: 0; font-size: .92rem; color: var(--ink-soft, #4d5c66); }

/* ---- activities */
.mpg-acts { display: grid; gap: 16px; align-items: start; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .mpg-acts--1 { grid-template-columns: minmax(0, 340px); } .mpg-acts--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mpg-acts--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .mpg-acts--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.mpg-act { background: #fff; border: 1px solid var(--line, #e3e9ed); border-radius: 14px; overflow: hidden; box-shadow: 0 2px 10px rgba(12, 35, 48, .06); display: flex; flex-direction: column; }
.mpg-act-img { aspect-ratio: 16 / 10; background: var(--fog-50, #eef2f5); overflow: hidden; }
.mpg-act-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.mpg-act:hover .mpg-act-img img { transform: scale(1.04); }
.mpg-act-body { padding: 12px 14px 15px; }
.mpg-act-body h3 { font-size: 1.02rem; margin: 0 0 4px; }
.mpg-act-body p { margin: 0; font-size: .86rem; color: var(--ink-soft, #4d5c66); }

/* ---- updates (cards) */
.mpg-cards { display: grid; gap: 16px; align-items: start; grid-template-columns: 1fr; }
@media (min-width: 640px) { .mpg-cards--cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .mpg-cards--cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mpg-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line, #e3e9ed); border-radius: 12px; overflow: hidden; box-shadow: 0 1px 3px rgba(18, 50, 71, .06); }
.mpg-card--list { flex-direction: row; align-items: stretch; }
.mpg-card.is-pinned, .mpg-card.is-featured { border-color: var(--gold-500, #cf9d3f); }
.mpg-card.is-cancelled h3 a { text-decoration: line-through; color: var(--ink-soft, #4d5c66); }
.mpg-thumb { display: block; aspect-ratio: 21 / 9; overflow: hidden; background: var(--fog-50, #eef2f5); }
.mpg-card--list .mpg-thumb { aspect-ratio: auto; width: 96px; flex: 0 0 96px; }
.mpg-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mpg-card-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.mpg-card h3 { font-size: .98rem; line-height: 1.3; margin: 0; }
.mpg-card h3 a { color: var(--navy-900, #123247); text-decoration: none; }
.mpg-card h3 a:hover { text-decoration: underline; }
.mpg-card p { margin: 0; font-size: .85rem; }
.mpg-line { color: var(--ink-soft, #4d5c66); }
.mpg-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .75rem; color: var(--ink-soft, #4d5c66); }
.mpg-badge { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--fog-50, #eef2f5); font-size: .7rem; font-weight: 700; }
.mpg-badge--gold { background: #fbf0d4; color: #7a5410; }
.mpg-badge--warn { background: #fff0cc; color: #7a5410; }
.mpg-badge--bad { background: #fde2e2; color: #8a1f1f; }
.mpg-badge--good { background: #dcf3e3; color: #1d6b3a; }
.mpg-badge--muted { background: #e9edf0; color: #55636d; }

/* ---- events (compact rows) */
.mpg-evgrid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .mpg-evgrid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); } }
.mpg-evrow { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: #fff; border: 1px solid var(--line, #e3e9ed); border-radius: 14px; box-shadow: 0 2px 10px rgba(12, 35, 48, .06); text-decoration: none; color: inherit; transition: box-shadow .15s ease, transform .15s ease; }
.mpg-evrow:hover { box-shadow: 0 8px 22px rgba(12, 35, 48, .13); transform: translateY(-1px); }
.mpg-evrow.is-featured { border-color: var(--gold-500, #cf9d3f); }
.mpg-evrow.is-cancelled .mpg-evtitle { text-decoration: line-through; color: var(--ink-soft, #4d5c66); }
.mpg-datebox { flex: 0 0 62px; width: 62px; padding: 6px 0 5px; text-align: center; border: 1.5px solid var(--gold-400, #e0b563); border-radius: 10px; background: #fff; line-height: 1.1; }
.mpg-datebox .m { display: block; font-size: .66rem; font-weight: 800; letter-spacing: .06em; color: var(--gold-600, #b8862f); }
.mpg-datebox .d { display: block; font-size: 1.45rem; font-weight: 800; color: var(--navy-950, #0c2330); font-family: var(--font-display, Georgia, serif); }
.mpg-datebox .w { display: block; font-size: .6rem; font-weight: 700; letter-spacing: .05em; color: var(--ink-soft, #4d5c66); }
.mpg-evbody { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.mpg-evtitle { font-family: var(--font-display, Georgia, serif); font-weight: 600; font-size: 1.02rem; color: var(--navy-950, #0c2330); line-height: 1.25; }
.mpg-evline { display: flex; align-items: center; gap: 6px; font-size: .84rem; color: var(--ink-soft, #4d5c66); }
.mpg-evline .mpg-ico { color: var(--gold-500, #cf9d3f); }
.mpg-evbadges { display: flex; gap: 6px; flex-wrap: wrap; }
.mpg-chev { color: var(--steel-500, #6f92ac); flex: 0 0 auto; }

.mpg-archive { margin-top: 22px; border-top: 1px dashed var(--line, #e3e9ed); padding-top: 12px; }
.mpg-archive summary { cursor: pointer; font-weight: 600; font-size: .92rem; margin-bottom: 12px; }

/* ---- one update */
.mpg-article { background: #fff; border: 1px solid var(--line, #e3e9ed); border-radius: 14px; padding: 20px 22px; }
.mpg-article h2 { font-size: 1.6rem; margin: 6px 0 12px; }
.mpg-hero-img-art { max-width: 100%; border-radius: 10px; margin: 6px 0 12px; }
.mpg-files { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 4px; font-size: .9rem; }

/* ---- gallery strip / grid / masonry / slider / viewer */
/* gallery */
.mpg-albums { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.mpg-chip { border: 1px solid var(--line, #e3e9ed); background: #fff; border-radius: 999px; padding: 5px 12px; font: inherit; font-size: .8rem; cursor: pointer; min-height: 32px; }
.mpg-chip.is-active { background: var(--navy-900, #123247); color: #fff; border-color: var(--navy-900, #123247); }
.mpg-gallery--grid .mpg-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 760px) { .mpg-gallery--grid .mpg-tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
[data-mpg-gallery-all].mpg-gallery--grid .mpg-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { [data-mpg-gallery-all].mpg-gallery--grid .mpg-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { [data-mpg-gallery-all].mpg-gallery--grid .mpg-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.mpg-gallery--grid .mpg-tile { aspect-ratio: 5 / 4; border-radius: 12px; }
.mpg-gallery--grid .mpg-tile img { width: 100%; height: 100%; object-fit: cover; }
.mpg-gallery--masonry .mpg-tiles { column-count: 2; column-gap: 6px; }
@media (min-width: 640px) { .mpg-gallery--masonry .mpg-tiles { column-count: 3; } }
@media (min-width: 1000px) { .mpg-gallery--masonry .mpg-tiles { column-count: 4; } }
.mpg-gallery--masonry .mpg-tile { break-inside: avoid; margin-bottom: 6px; }
.mpg-gallery--masonry .mpg-tile img { width: 100%; height: auto; }
.mpg-tile { display: block; overflow: hidden; border-radius: 8px; background: var(--fog-50, #eef2f5); }
.mpg-tile img { display: block; transition: transform .2s ease; }
.mpg-tile:hover img { transform: scale(1.03); }
.mpg-tile[hidden] { display: none; }
.mpg-slides { position: relative; aspect-ratio: 16 / 9; max-height: 360px; border-radius: 12px; overflow: hidden; background: #0e1f2b; }
.mpg-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .35s ease; pointer-events: none; }
.mpg-slide.is-active { opacity: 1; pointer-events: auto; }
.mpg-slide img { width: 100%; height: 100%; object-fit: contain; display: block; }
.mpg-arrow { position: absolute; top: 50%; transform: translateY(-50%); border: 0; background: rgba(0, 0, 0, .45); color: #fff; width: 40px; height: 40px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; z-index: 2; }
.mpg-arrow.prev { left: 8px; } .mpg-arrow.next { right: 8px; }
.mpg-dots { position: absolute; bottom: 8px; left: 0; right: 0; display: flex; gap: 6px; justify-content: center; z-index: 2; }
.mpg-dot { width: 9px; height: 9px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .55); padding: 0; cursor: pointer; }
.mpg-dot.is-active { background: #fff; }

/* full-screen viewer */
.mpg-lb { position: fixed; inset: 0; z-index: 1000; background: rgba(8, 18, 26, .94); display: flex; flex-direction: column; color: #fff; }
.mpg-lb[hidden] { display: none; }
.mpg-lb-stage { flex: 1; display: flex; align-items: center; justify-content: center; position: relative; min-height: 0; padding: 8px; }
.mpg-lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; }
.mpg-lb-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; font-size: .85rem; flex-wrap: wrap; }
.mpg-lb-cap { flex: 1; min-width: 160px; text-align: center; }
.mpg-lb button { background: rgba(255, 255, 255, .14); border: 0; color: #fff; border-radius: 8px; min-width: 44px; min-height: 44px; padding: 0 12px; font: inherit; cursor: pointer; }
.mpg-lb button:hover { background: rgba(255, 255, 255, .26); }
.mpg-lb-nav { position: absolute; top: 50%; transform: translateY(-50%); font-size: 1.6rem; }
.mpg-lb-nav.prev { left: 8px; } .mpg-lb-nav.next { right: 8px; }


/* ---- closing banner + join */
.mpg-cta { background: linear-gradient(120deg, var(--navy-950, #0c2330) 0%, var(--navy-800, #1a4058) 100%); color: #fff; padding: 40px 0; margin-top: 30px; }
.mpg-cta-in { display: grid; gap: 22px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .mpg-cta-in { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr) auto; gap: 34px; } .mpg-cta-in > .mpg-cta-mid { border-left: 1px solid rgba(255, 255, 255, .22); padding-left: 34px; } }
.mpg-cta-kicker { display: block; font-family: var(--font-display, Georgia, serif); font-style: italic; font-size: 1.5rem; color: var(--gold-400, #e0b563); margin-bottom: 2px; }
.mpg-cta h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin: 0; }
.mpg-cta-mid p { margin: 0 0 14px; color: rgba(255, 255, 255, .88); font-size: .98rem; max-width: 460px; }
.mpg-cta-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.mpg-cta-kw { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; }
.mpg-cta-kw li { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .85rem; color: rgba(255, 255, 255, .92); }
.mpg-cta-kw li + li { border-left: 1px solid rgba(255, 255, 255, .22); padding-left: 22px; }
.mpg-joinpanel { display: none; background: var(--fog-50, #f6f8fa); padding: 34px 0; border-bottom: 1px solid var(--line, #e3e9ed); }
.mpg-joinpanel:target, .mpg-joinpanel.is-open { display: block; }
.mpg-joinform { max-width: 760px; margin: 0 auto; background: #fff; border: 1px solid var(--line, #e3e9ed); border-radius: 14px; padding: 22px 24px; box-shadow: 0 6px 24px rgba(12, 35, 48, .08); }
.mpg-joinform h3 { margin: 0 0 4px; }
.mpg-joingrid { display: grid; gap: 12px; grid-template-columns: 1fr; margin: 14px 0; }
@media (min-width: 640px) { .mpg-joingrid { grid-template-columns: 1fr 1fr; } }
.mpg-joingrid label { display: block; font-size: .8rem; font-weight: 600; margin-bottom: 3px; }
.mpg-joingrid input { width: 100%; padding: 10px 12px; font-size: .95rem; border: 1px solid var(--steel-300, #aec3d2); border-radius: 8px; }

@media (max-width: 600px) {
  .mpg-hero { padding-bottom: 60px; }
  .mpg-hero.has-banner::before { background: linear-gradient(180deg, rgba(12, 35, 48, .9) 0%, rgba(12, 35, 48, .78) 100%); }
  .mpg-sec { padding: 34px 0; }
  .mpg-card--list .mpg-thumb { width: 78px; flex-basis: 78px; }
  .mpg-cta-kw { gap: 14px; } .mpg-cta-kw li + li { padding-left: 14px; }
}
@media (prefers-reduced-motion: reduce) { .mpg-slide, .mpg-tile img, .mpg-act-img img, .mpg-btn, .mpg-evrow { transition: none; } }
@media print { .mpg-lb, .mpg-joinpanel, .mpg-cta { display: none; } .mpg-hero { background: none; color: #000; } .mpg-hero h1, .mpg-tagline, .mpg-summary { color: #000; } }
