/* Project 400 v3.3.17 — one native, editorial Youth Ministry Page.
   Scoped to the single published Page. No global headers, footer, clergy, parish,
   reader or radio components are changed. Theme image slots use real Media Library
   attachments only; no public placeholder is generated. */
.p400m-page.p400m--youth-ministry{--y17-wine:var(--darcis-v119-header-bg,var(--burgundy-dark,#4e1111));--y17-gold:var(--gold,#c8a24a);--y17-soft:#f8f4ed;--y17-ink:#392b29;--y17-line:#e6dbcc;background:#fff;overflow-x:clip}
.p400m-page.p400m--youth-ministry .p400y17-section{padding:clamp(39px,4.5vw,66px) max(22px,calc((100% - 1170px)/2));margin:0;overflow:visible}
.p400m--youth-ministry .p400y17-section .p400m-inner{max-width:1170px;width:100%;margin:0 auto}
.p400m--youth-ministry .p400y17-section .wp-block-columns{display:grid;align-items:center;gap:clamp(16px,3vw,45px);min-width:0;margin:0}
.p400m--youth-ministry .p400y17-section .wp-block-columns>.wp-block-column{width:auto;min-width:0;max-width:100%;margin:0}
.p400m--youth-ministry .p400y17-section .wp-block-column>.wp-block-group{max-width:none}
.p400m--youth-ministry .p400y17-kicker,.p400m--youth-ministry .p400y17-card-kicker{font:800 .65rem/1.5 system-ui,sans-serif;letter-spacing:.14em;text-transform:uppercase;margin:0 0 10px;color:#a27438}
.p400m--youth-ministry .p400y17-section h2.p400y17-section-heading{font-family:'DM Serif Display',Georgia,serif;font-size:clamp(1.85rem,2.8vw,2.85rem);line-height:1.14;letter-spacing:-.018em;color:var(--y17-wine);font-weight:400;max-width:760px;margin:0 0 16px}
.p400m--youth-ministry .p400y17-section h2 em{font-weight:400;color:#ba8a39}
.p400m--youth-ministry .p400y17-section p{font-size:clamp(.94rem,1vw,1.02rem);line-height:1.65;color:#5e5450;margin:0 0 13px}
.p400m--youth-ministry .p400y17-section .p400y17-section-lead{max-width:800px;margin-bottom:22px}
.p400m--youth-ministry .p400y17-section .p400y17-card{border:1px solid var(--y17-line);border-radius:15px;padding:clamp(17px,1.8vw,25px);background:#fff;height:100%;box-shadow:0 7px 22px rgba(64,26,26,.045)}
.p400m--youth-ministry .p400y17-section .p400y17-card h3{font-family:'DM Serif Display',Georgia,serif;color:var(--y17-wine);line-height:1.2;font-weight:400;font-size:clamp(1.22rem,1.45vw,1.56rem);margin:0 0 10px}
.p400m--youth-ministry .p400y17-section .p400y17-card h3 span{font-size:.75em;color:#ad772d;white-space:nowrap}
.p400m--youth-ministry .p400y17-section .p400y17-card p{font-size:.90rem;line-height:1.56;margin:0}
.p400m--youth-ministry .p400y17-section .p400y17-card .p400y17-card-kicker{font-size:.60rem;color:#91672c;margin:0 0 10px}
/* HERO: meaningful content left, optional approved photograph right. */
.p400m--youth-ministry .p400y17-hero{background:linear-gradient(105deg,#4e1111,#65191b);color:#fff;position:relative}
.p400m--youth-ministry .p400y17-hero::before{content:"";position:absolute;top:0;right:2%;width:min(23vw,260px);aspect-ratio:1;border:1px solid rgba(235,188,103,.15);border-radius:100%;pointer-events:none}
.p400m--youth-ministry .p400y17-hero .p400y17-hero-cols{grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:clamp(24px,5vw,65px)}
.p400m--youth-ministry .p400y17-hero-cols:not(:has(.p400m-photo-frame)){grid-template-columns:minmax(0,1fr)}
.p400m--youth-ministry .p400y17-hero .p400y17-hero-copy{max-width:730px;position:relative;z-index:1}
.p400m--youth-ministry .p400y17-hero .p400y17-kicker{color:#edc67b}
.p400m--youth-ministry .p400y17-hero h2.p400y17-heading{font:400 clamp(2.3rem,4.3vw,4.15rem)/1.07 'DM Serif Display',Georgia,serif;color:white;letter-spacing:-.025em;margin:5px 0 19px;max-width:690px}
.p400m--youth-ministry .p400y17-hero h2.p400y17-heading em{color:#edc67b}
.p400m--youth-ministry .p400y17-hero .p400y17-deck{font-size:clamp(1.09rem,1.3vw,1.27rem);line-height:1.52;color:#fff;max-width:680px;margin-bottom:14px}
.p400m--youth-ministry .p400y17-hero p{color:#f6eae7;max-width:670px}
.p400m--youth-ministry .p400y17-hero-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px 18px;margin-top:19px}
.p400m--youth-ministry .p400y17-hero .p400m-link{background:var(--y17-gold);color:#4e1111;border-color:var(--y17-gold);margin:0}
.p400m--youth-ministry .p400y17-hero .p400y17-motto{font:800 .67rem/1.5 system-ui,sans-serif;letter-spacing:.14em;color:#ffe1a7;margin:0}
.p400m--youth-ministry .p400y17-section .p400y17-photo-wrap:not(:has(.p400m-photo-frame)){display:none!important}
.p400m--youth-ministry .p400y17-hero-cols>.wp-block-column:not(:has(.p400m-photo-frame)):last-child{display:none!important}
.p400m--youth-ministry .p400y17-photo-wrap .p400m-photo-frame{margin:0;border-radius:18px;box-shadow:0 18px 36px #26090829;background:transparent}
.p400m--youth-ministry .p400y17-photo-wrap .p400m-photo-frame img{width:100%;height:auto;max-width:100%;object-fit:contain;display:block}
/* Mission: two aligned text areas, not a copy of the standard office hero. */
.p400m--youth-ministry .p400y17-mission{background:#fff}
.p400m--youth-ministry .p400y17-mission-cols{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr)}
.p400m--youth-ministry .p400y17-mission-head{border-left:3px solid var(--y17-gold);padding-left:clamp(16px,2vw,30px)}
.p400m--youth-ministry .p400y17-mission-head h2{margin-bottom:0!important}
/* Objectives: four distinct numbered mini-panels. */
.p400m--youth-ministry .p400y17-objectives{background:var(--y17-soft)}
.p400m--youth-ministry .p400y17-four-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px!important;align-items:stretch!important}
.p400m--youth-ministry .p400y17-obj{border-top:4px solid #bd902f!important}
/* Three living groups, with visible depth. */
.p400m--youth-ministry .p400y17-communities{background:white}
.p400m--youth-ministry .p400y17-three-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:17px!important;align-items:stretch!important}
.p400m--youth-ministry .p400y17-community{border-top:5px solid var(--y17-wine)!important;box-shadow:0 11px 29px #350d0d10!important}
.p400m--youth-ministry .p400y17-community:nth-child(2){border-top-color:var(--y17-gold)!important}
.p400m--youth-ministry .p400y17-community .p400y17-card-note{margin-top:19px!important;padding-top:12px;border-top:1px solid var(--y17-line);font-size:.76rem!important;color:#895e33!important;font-weight:650}
.p400m--youth-ministry .p400y17-footnote{font-size:.77rem!important;line-height:1.54!important;margin:16px 0 0!important;color:#776d66!important}
/* Formation: large single editorial statement + compact pillar stack. */
.p400m--youth-ministry .p400y17-formation{background:var(--y17-soft)}
.p400m--youth-ministry .p400y17-formation-cols{grid-template-columns:minmax(0,.90fr) minmax(0,1.1fr);align-items:start!important}
.p400m--youth-ministry .p400y17-formation-intro .p400y17-photo-wrap{margin-top:20px}
.p400m--youth-ministry .p400y17-pillar-stack{display:grid;gap:10px}
.p400m--youth-ministry .p400y17-pillar-stack .p400y17-card{display:grid;grid-template-columns:125px minmax(0,1fr);column-gap:15px;align-items:center;padding:16px 18px}
.p400m--youth-ministry .p400y17-pillar .p400y17-card-kicker{grid-row:span 2;align-self:center}
.p400m--youth-ministry .p400y17-pillar h3{margin-bottom:5px!important}
/* Accompaniment: contrasting formal red panel, copy alongside. */
.p400m--youth-ministry .p400y17-accompaniment{background:#fff}
.p400m--youth-ministry .p400y17-care-cols{grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr)}
.p400m--youth-ministry .p400y17-accompaniment-panel{background:var(--y17-wine);color:#fff;border-radius:16px;padding:clamp(23px,3.2vw,40px);box-shadow:0 10px 26px #4e11111c}
.p400m--youth-ministry .p400y17-accompaniment-panel h3{font:400 clamp(1.5rem,2vw,2rem)/1.16 'DM Serif Display',Georgia,serif;color:#fff;margin:0 0 14px}
.p400m--youth-ministry .p400y17-accompaniment-panel p{color:#fff;margin:0;padding:10px 0 10px 17px;border-top:1px solid #ffffff2d;position:relative;font-size:.89rem}
.p400m--youth-ministry .p400y17-accompaniment-panel p::before{content:"•";color:var(--y17-gold);position:absolute;left:0}
/* Actual activities and optional documentary image. */
.p400m--youth-ministry .p400y17-in-action{background:var(--y17-soft)}
.p400m--youth-ministry .p400y17-activity-cols{grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:35px!important;margin-bottom:23px!important}
.p400m--youth-ministry .p400y17-activity-cols:not(:has(.p400m-photo-frame)){grid-template-columns:minmax(0,1fr)}
.p400m--youth-ministry .p400y17-activity-cols>.wp-block-column:last-child:not(:has(.p400m-photo-frame)){display:none}
.p400m--youth-ministry .p400y17-activity-story h3{font:400 1.42rem/1.2 'DM Serif Display',Georgia,serif;color:var(--y17-wine);margin:0 0 14px}
.p400m--youth-ministry .p400y17-activity-list{grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch!important;gap:14px!important}
.p400m--youth-ministry .p400y17-mini{padding:18px!important;border-radius:12px!important}
/* The entire gallery is absent until photos are selected. */
.p400m--youth-ministry .p400y17-gallery:not(:has(.p400m-photo-frame)){display:none!important}
.p400m--youth-ministry .p400y17-gallery{background:#fff}
.p400m--youth-ministry .p400y17-gallery-cols{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch!important}
.p400m--youth-ministry .p400y17-gallery-cols>.wp-block-column:not(:has(.p400m-photo-frame)){display:none}
/* Resource cards, external documents identified rather than dummy navigation. */
.p400m--youth-ministry .p400y17-resources{background:#fff;border-top:1px solid var(--y17-line)}
.p400m--youth-ministry .p400y17-resource-cols{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch!important}
.p400m--youth-ministry .p400y17-resource{border-top:4px solid #ad873b!important}
.p400m--youth-ministry .p400y17-resource-link a{color:#722024;font-weight:700;text-decoration:underline;text-underline-offset:4px}
/* CTA finishes cleanly above global footer. */
.p400m--youth-ministry .p400y17-join{background:var(--y17-wine);color:#fff}
.p400m--youth-ministry .p400y17-join-cols{grid-template-columns:minmax(0,1.3fr) minmax(0,.7fr);gap:50px!important}
.p400m--youth-ministry .p400y17-join h2{color:#fff!important}
.p400m--youth-ministry .p400y17-join .p400y17-kicker{color:#efca89}
.p400m--youth-ministry .p400y17-join p{color:#f4e5e3}
.p400m--youth-ministry .p400y17-join-actions{display:grid;justify-items:stretch;gap:10px}
.p400m--youth-ministry .p400y17-join-actions .p400m-link{margin:0;color:var(--y17-wine);text-align:center;justify-content:space-between}
.p400m--youth-ministry .p400y17-join-actions .wp-block-shortcode{width:100%}
/* Respect the site's content shell; editor-only handles are left alone. */
@media(max-width:1000px){
 .p400m--youth-ministry .p400y17-four-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .p400m--youth-ministry .p400y17-three-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:740px){
 .p400m--youth-ministry .p400y17-section{padding:36px 20px}
 .p400m--youth-ministry .p400y17-section .wp-block-columns:not(.p400y17-four-grid):not(.p400y17-activity-list){grid-template-columns:minmax(0,1fr)!important;gap:20px!important}
 .p400m--youth-ministry .p400y17-three-grid{grid-template-columns:minmax(0,1fr)!important}
 .p400m--youth-ministry .p400y17-four-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .p400m--youth-ministry .p400y17-activity-list{grid-template-columns:minmax(0,1fr)!important}
 .p400m--youth-ministry .p400y17-hero h2.p400y17-heading{font-size:clamp(2.15rem,8vw,3rem)}
 .p400m--youth-ministry .p400y17-pillar-stack .p400y17-card{grid-template-columns:100px minmax(0,1fr)}
 .p400m--youth-ministry .p400y17-join-actions{gap:5px}
}
@media(max-width:440px){
 .p400m--youth-ministry .p400y17-four-grid{grid-template-columns:minmax(0,1fr)!important}
 .p400m--youth-ministry .p400y17-pillar-stack .p400y17-card{display:block}
 .p400m--youth-ministry .p400y17-pillar .p400y17-card-kicker{grid-row:auto}
}


/* PROJECT 400 v3.3.18 — Youth-only editorial alignment and single-headline refinement.
   The Darcis Page headline/breadcrumb is the only page header. The introduction
   is a content section, not a second full-width burgundy headline.
   Use ONE container edge for every Youth section, including WP constrained blocks.
   No change to native post_content, Customizer image slots, Framix records or URLs. */
.p400m-page.p400m--youth-ministry .p400y17-section{
  padding-inline:max(22px,calc((100% - 1170px)/2));
}
.p400m-page.p400m--youth-ministry .p400y17-section .p400m-inner{
  width:100%!important;max-width:1170px!important;
  margin-left:0!important;margin-right:0!important;
}
/* WordPress' inner constrained layout can add auto margins/max-widths to direct
   children, which previously moved alternate headings and groups toward centre. */
.p400m-page.p400m--youth-ministry .p400y17-section .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)),
.p400m-page.p400m--youth-ministry .p400y17-section .p400m-inner > :where(.wp-block-columns,.wp-block-group,.wp-block-heading,.wp-block-paragraph){
  margin-left:0!important;margin-right:0!important;
}
.p400m-page.p400m--youth-ministry .p400y17-section .p400m-inner > .wp-block-columns{
  width:100%!important;max-width:100%!important;
  justify-self:stretch!important;
}
.p400m-page.p400m--youth-ministry .p400y17-section .wp-block-columns>.wp-block-column,
.p400m-page.p400m--youth-ministry .p400y17-section .wp-block-column>.wp-block-group{
  margin-left:0!important;margin-right:0!important;
  min-width:0;justify-self:stretch;
}
.p400m-page.p400m--youth-ministry .p400y17-section :is(h2,h3,p){
  text-align:left;
}
/* Darcis already renders the page's burgundy headline and breadcrumbs. */
.p400m-page.p400m--youth-ministry .p400y17-hero{
  background:linear-gradient(110deg,#fbf8f2 0%,#f4ebdf 100%);
  color:var(--y17-ink);border-bottom:1px solid #e6d7c4;
  padding-block:clamp(35px,3.7vw,54px);
}
.p400m-page.p400m--youth-ministry .p400y17-hero::before{
  content:none;
}
/* Keep the duplicate 'Youth Ministry · Diocese' label accessible in the saved
   WordPress text but suppress its repeated visual headline presentation. */
.p400m-page.p400m--youth-ministry .p400y17-hero .p400y17-kicker{display:none}
.p400m-page.p400m--youth-ministry .p400y17-hero .p400y17-heading{
  font-size:clamp(2rem,3.15vw,3.25rem);
  line-height:1.13;
  max-width:700px;
  margin:0 0 17px;
  color:var(--y17-wine);
}
.p400m-page.p400m--youth-ministry .p400y17-hero .p400y17-heading em{
  color:#9f702a;
}
.p400m-page.p400m--youth-ministry .p400y17-hero :is(.p400y17-deck,p){
  color:#433632;
}
.p400m-page.p400m--youth-ministry .p400y17-hero .p400y17-deck{
  font-size:clamp(1rem,1.18vw,1.14rem);
  line-height:1.55;
  max-width:700px;
}
.p400m-page.p400m--youth-ministry .p400y17-hero .p400y17-hero-copy{
  max-width:730px;padding:0;
}
.p400m-page.p400m--youth-ministry .p400y17-hero .p400y17-hero-actions{
  justify-content:flex-start;gap:10px 20px;margin-top:15px;
}
.p400m-page.p400m--youth-ministry .p400y17-hero .p400y17-motto{
  color:#7d4a24;font-size:.67rem;letter-spacing:.1em;
  border-left:2px solid var(--y17-gold);padding-left:11px;
}
/* Restore consistent editorial left edges inside all individual cards and the
   four formation pillars; keep purposeful 2/3/4-column grids intact. */
.p400m-page.p400m--youth-ministry :is(.p400y17-four-grid,.p400y17-three-grid,.p400y17-activity-list,.p400y17-resource-cols,.p400y17-gallery-cols) {
  width:100%;max-width:100%;margin-inline:0!important;
}
.p400m-page.p400m--youth-ministry .p400y17-section :is(.p400y17-card,.p400y17-pillar,.p400y17-activity-story,.p400y17-mission-body) :is(h3,p){
  text-align:left;margin-left:0!important;margin-right:0!important;
}
.p400m-page.p400m--youth-ministry .p400y17-section .p400y17-pillar-stack h3{
  justify-self:start;
}
/* Headings and editorial gaps remain strong without pushing a second header. */
.p400m-page.p400m--youth-ministry .p400y17-section:not(.p400y17-hero){
  padding-block:clamp(35px,3.8vw,54px);
}
@media(max-width:740px){
  .p400m-page.p400m--youth-ministry .p400y17-section{
    padding-inline:20px;
  }
  .p400m-page.p400m--youth-ministry .p400y17-section .p400m-inner{
    width:100%!important;max-width:100%!important;
  }
  .p400m-page.p400m--youth-ministry .p400y17-hero{
    padding-block:29px 36px;
  }
  .p400m-page.p400m--youth-ministry .p400y17-hero .p400y17-heading{
    font-size:clamp(1.85rem,7.5vw,2.75rem);
  }
}

/* PROJECT 400 v3.3.19 — Youth Ministry final photographic treatment.
   The existing Darcis page headline remains unchanged. This is a cinematic,
   image-led ARTICLE hero, not a second site header. The approved existing image
   ID is reused; no placeholder photograph is ever published. */
.p400m-page.p400m--youth-ministry .p400y17-hero{
  padding:0!important;background:linear-gradient(110deg,#4e1111 0%,#742323 100%)!important;
  color:#fff!important;border:0!important;overflow:hidden;position:relative;
}
.p400m-page.p400m--youth-ministry .p400y17-hero>.p400m-inner{
  width:100%!important;max-width:none!important;margin:0!important;
}
.p400m-page.p400m--youth-ministry .p400y17-hero .p400y17-hero-cols{
  position:relative;isolation:isolate;overflow:hidden;display:grid;
  grid-template-columns:minmax(0,1fr)!important;align-items:center;
  min-height:clamp(405px,37vw,535px);
  padding:clamp(45px,5.2vw,82px) max(22px,calc((100% - 1170px)/2));
  gap:0!important;
  background:linear-gradient(105deg,#521316,#792a27);
}
.p400m-page.p400m--youth-ministry .p400y17-hero .p400y17-hero-cols::before{
  content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
  background:linear-gradient(90deg,rgba(39,9,12,.92) 0%,rgba(55,12,16,.80) 32%,rgba(49,9,12,.42) 65%,rgba(38,9,12,.14) 100%);
}
.p400m-page.p400m--youth-ministry .p400y17-hero .p400y17-hero-cols>.wp-block-column:first-child{
  position:relative;z-index:2;max-width:700px;width:100%;align-self:center;
}
.p400m-page.p400m--youth-ministry .p400y17-hero .p400y17-hero-cols>.wp-block-column:last-child:has(.p400m-photo-frame){
  display:block!important;position:absolute!important;inset:0;z-index:0;
  margin:0!important;max-width:none!important;width:100%!important;height:100%;
}
.p400m-page.p400m--youth-ministry .p400y17-hero :is(.p400y17-photo-wrap,.p400m-photo-frame){
  width:100%!important;height:100%!important;max-width:none!important;
  margin:0!important;padding:0!important;overflow:hidden;border:0;border-radius:0!important;
  box-shadow:none!important;
}
.p400m-page.p400m--youth-ministry .p400y17-hero .p400m-photo-frame img{
  display:block;width:100%!important;height:100%!important;max-width:none!important;
  object-fit:cover!important;object-position:center 43%;border-radius:0!important;
  transform:scale(1);filter:saturate(.96);transition:transform .65s ease,filter .65s ease;
}
.p400m-page.p400m--youth-ministry .p400y17-hero:hover .p400m-photo-frame img{
  transform:scale(1.035);filter:saturate(1.08) brightness(1.08);
}
.p400m-page.p400m--youth-ministry .p400y17-hero .p400y17-hero-copy{
  padding:0;max-width:690px!important;position:relative;z-index:2;
}
.p400m-page.p400m--youth-ministry .p400y17-hero h2.p400y17-heading{
  color:#fff!important;font-size:clamp(2.35rem,4.5vw,4.25rem)!important;
  line-height:1.065;max-width:690px;margin:0 0 20px;
  text-shadow:0 2px 16px rgba(22,0,0,.38);
}
.p400m-page.p400m--youth-ministry .p400y17-hero h2.p400y17-heading em{color:#f4c86e!important}
.p400m-page.p400m--youth-ministry .p400y17-hero :is(p,.p400y17-deck){
  color:#fff!important;text-shadow:0 2px 9px rgba(24,0,0,.32);
}
.p400m-page.p400m--youth-ministry .p400y17-hero .p400y17-deck{
  font-size:clamp(1.04rem,1.3vw,1.19rem);font-weight:500;max-width:635px;
}
.p400m-page.p400m--youth-ministry .p400y17-hero .p400y17-motto{
  color:#f6d89b!important;border-color:#dfb45e;font-weight:750;
}
.p400m-page.p400m--youth-ministry .p400y17-hero .p400m-link,
.p400m-page.p400m--youth-ministry .p400y17-hero .p400m-link:visited{
  background:#e2b85d!important;color:#391013!important;border:1px solid #e2b85d!important;
  box-shadow:0 3px 15px rgba(0,0,0,.12);
}
.p400m-page.p400m--youth-ministry .p400y17-hero .p400m-link:is(:hover,:focus-visible){
  background:#fff7e8!important;color:#4e1111!important;border-color:#fff7e8!important;
  text-decoration:none!important;
}
/* Full-width photographic transition — absent altogether until an approved
   Customizer 'Highlight' photo is selected. This shortcode does not insert blank space. */
.p400m--youth-ministry .p400y19-photo-band{height:clamp(260px,29vw,405px);position:relative;overflow:hidden;background:#4e1111}
.p400m--youth-ministry .p400y19-photo-band-image,
.p400m--youth-ministry .p400y19-photo-band :is(.p400m-photo-frame,.p400m-photo){
  display:block;width:100%;height:100%;margin:0;max-width:none!important;border-radius:0!important;
}
.p400m--youth-ministry .p400y19-photo-band .p400m-photo{object-fit:cover;object-position:center 43%}
.p400m--youth-ministry .p400y19-photo-band:after{
  content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(36,9,12,.75),transparent 72%);pointer-events:none;
}
.p400m--youth-ministry .p400y19-photo-band-copy{
  position:absolute;z-index:1;left:max(22px,calc((100% - 1170px)/2));bottom:clamp(26px,3vw,48px);
  display:grid;gap:8px;max-width:min(85%,760px);color:#fff;
}
.p400m--youth-ministry .p400y19-photo-band-copy span{font:800 .69rem/1.4 system-ui,sans-serif;letter-spacing:.14em;color:#f3d18d}
.p400m--youth-ministry .p400y19-photo-band-copy strong{font:400 clamp(1.6rem,3.5vw,3rem)/1.1 'DM Serif Display',Georgia,serif}
/* Expand the existing gallery into a real, horizontally browsable photo collection.
   The old image columns stay editable in WordPress but are not duplicated publicly. */
.p400m--youth-ministry .p400y17-gallery:has(.p400y19-gallery) .p400y17-gallery-cols{display:none!important}
.p400m--youth-ministry .p400y17-gallery:not(:has(.p400y19-gallery)):not(:has(.p400m-photo-frame)){display:none!important}
.p400m--youth-ministry .p400y19-gallery{width:100%;max-width:100%;min-width:0}
.p400m--youth-ministry .p400y19-gallery-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 18px}
.p400m--youth-ministry .p400y19-gallery-top p{margin:0!important;font-size:.92rem!important;color:#5e5149}
.p400m--youth-ministry .p400y19-gallery-controls{display:flex;gap:8px;flex:none}
.p400m--youth-ministry .p400y19-gallery-controls button{
  width:42px;height:42px;border:1px solid #d9c5ad;border-radius:50%;background:#fff;color:#4e1111;
  font-size:22px;cursor:pointer;display:grid;place-items:center;transition:background .2s,color .2s,box-shadow .2s;
}
.p400m--youth-ministry .p400y19-gallery-controls button:is(:hover,:focus-visible){
  background:#4e1111;color:white;box-shadow:0 0 0 3px #e5bd6b5c;
}
.p400m--youth-ministry .p400y19-gallery-controls button:disabled{opacity:.35;cursor:default;box-shadow:none}
.p400m--youth-ministry .p400y19-gallery-track{
  display:flex;gap:18px;width:100%;max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;
  scroll-snap-type:x mandatory;scroll-padding-inline:0 18px;padding:5px 0 16px;
  scrollbar-width:thin;scrollbar-color:#bd955c #f4ece2;
}
.p400m--youth-ministry .p400y19-gallery-slide{
  flex:0 0 clamp(250px,34%,450px);min-width:0;scroll-snap-align:start;
  overflow:hidden;border-radius:16px;background:#f4eee6;box-shadow:0 8px 24px rgba(52,24,20,.09);
}
.p400m--youth-ministry .p400y19-gallery-slide .p400m-photo-frame{display:block;width:100%;height:260px;margin:0;border-radius:16px;overflow:hidden}
.p400m--youth-ministry .p400y19-gallery-slide .p400m-photo{
  display:block;width:100%;height:100%;object-fit:cover;border-radius:0!important;
  transition:transform .5s ease,filter .5s ease;
}
.p400m--youth-ministry .p400y19-gallery-slide:is(:hover,:focus-within) .p400m-photo{
  transform:scale(1.045);filter:brightness(1.06);
}
/* Invitation is separated from the global burgundy footer by an ivory surface
   and a gold upper rule; there is no duplicated dark-footer slab. */
.p400m-page.p400m--youth-ministry .p400y17-join{
  position:relative;background:linear-gradient(112deg,#f7eee0 0%,#fff9ef 76%)!important;
  color:#4e1111!important;border-top:4px solid #c8a24a;border-bottom:10px solid #fff;
  padding-block:clamp(32px,3.4vw,50px)!important;
}
.p400m-page.p400m--youth-ministry .p400y17-join :is(h2,.p400y17-kicker){color:#4e1111!important;text-shadow:none}
.p400m-page.p400m--youth-ministry .p400y17-join .p400y17-kicker{color:#9d6b21!important}
.p400m-page.p400m--youth-ministry .p400y17-join p{color:#50403b!important}
.p400m-page.p400m--youth-ministry .p400y17-join-cols{grid-template-columns:minmax(0,1.3fr) minmax(220px,.65fr);gap:35px!important;align-items:center!important}
.p400m-page.p400m--youth-ministry .p400y17-join-actions .p400m-link,
.p400m-page.p400m--youth-ministry .p400y17-join-actions .p400m-link:visited{
  display:flex;background:#4e1111!important;border:2px solid #4e1111!important;
  color:#fff!important;min-height:46px;padding:10px 17px;border-radius:9px;
  font-weight:750;text-decoration:none!important;
}
.p400m-page.p400m--youth-ministry .p400y17-join-actions .wp-block-shortcode:nth-child(2) .p400m-link,
.p400m-page.p400m--youth-ministry .p400y17-join-actions .wp-block-shortcode:nth-child(2) .p400m-link:visited{
  background:#fff!important;color:#4e1111!important;border-color:#4e1111!important;
}
.p400m-page.p400m--youth-ministry .p400y17-join-actions .p400m-link:is(:hover,:focus-visible){
  background:#a36b23!important;color:#fff!important;border-color:#a36b23!important;
  box-shadow:0 4px 12px #4e111130;text-decoration:none!important;
}
.p400m-page.p400m--youth-ministry .p400y17-join-actions .wp-block-shortcode:nth-child(2) .p400m-link:is(:hover,:focus-visible){
  background:#4e1111!important;color:#fff!important;border-color:#4e1111!important;
}
.p400m-page.p400m--youth-ministry :is(.p400y17-hero .p400m-link,.p400y17-join .p400m-link):focus-visible,
.p400m-page.p400m--youth-ministry .p400y19-gallery-track:focus-visible{
  outline:3px solid #d2a540;outline-offset:3px;
}
@media(max-width:740px){
  .p400m-page.p400m--youth-ministry .p400y17-hero .p400y17-hero-cols{
    min-height:440px;padding:45px 20px 40px;align-items:end!important;
  }
  .p400m-page.p400m--youth-ministry .p400y17-hero .p400y17-hero-cols::before{
    background:linear-gradient(0deg,rgba(40,8,12,.96) 0%,rgba(40,8,12,.8) 57%,rgba(40,8,12,.1) 100%);
  }
  .p400m-page.p400m--youth-ministry .p400y17-hero .p400y17-hero-cols>.wp-block-column:first-child{
    align-self:end;max-width:100%;
  }
  .p400m-page.p400m--youth-ministry .p400y17-hero h2.p400y17-heading{
    font-size:clamp(2.25rem,9.5vw,3.3rem)!important;
  }
  .p400m-page.p400m--youth-ministry .p400y17-join-cols{grid-template-columns:minmax(0,1fr)!important;gap:20px!important}
  .p400m--youth-ministry .p400y19-gallery-slide{flex-basis:min(83%,340px)}
  .p400m--youth-ministry .p400y19-gallery-slide .p400m-photo-frame{height:230px}
  .p400m--youth-ministry .p400y19-photo-band{height:270px}
}
@media(prefers-reduced-motion:reduce){
  .p400m--youth-ministry .p400y17-hero .p400m-photo-frame img,
  .p400m--youth-ministry .p400y19-gallery-slide .p400m-photo{transition:none!important;transform:none!important}
  .p400m--youth-ministry .p400y19-gallery-track{scroll-behavior:auto!important}
}
