/* PROJECT 400 v3.3.22 — ten individual editorial art directions.
 * This layer overrides only the ten v3.3.21 ministry Pages. It never touches Youth,
 * Bishop, Social Communication, parish cards, the reader or global site chrome. */
.p400m-page.p400x-v3321{--p400x22-wine:var(--p400x-burg,#4e1111);--p400x22-honey:#cba653;--p400x22-cream:#f7f2e9;--p400x22-text:#443c39}
.p400m-page.p400x-v3321 .p400x-section{position:relative}
.p400m-page.p400x-v3321 .p400x-title{font-size:clamp(2rem,3.6vw,3.8rem);line-height:1.12}
.p400m-page.p400x-v3321 .p400x-heading{font-size:clamp(1.7rem,2.6vw,2.8rem);line-height:1.17}
.p400m-page.p400x-v3321 .p400m-photo-frame{position:relative;isolation:isolate;overflow:hidden;max-width:100%;background:#e5ded2;box-shadow:0 16px 38px #3b17151b}
.p400m-page.p400x-v3321 .p400m-photo-frame img{object-fit:cover!important;display:block;width:100%;height:100%;min-height:0}
.p400m-page.p400x-v3321 .p400x22-sample-caption{position:absolute;inset:auto 12px 12px auto;z-index:2;padding:5px 9px;background:rgba(25,22,21,.76);color:#fff;font:700 10px/1.2 system-ui,sans-serif;letter-spacing:.025em;border-radius:3px}
.p400m-page.p400x-v3321 .p400x22-admin-media{position:absolute;bottom:12px;left:12px;z-index:8;border-radius:6px;background:#fff;color:#4e1111!important;border:2px solid #d7b361;box-shadow:0 8px 22px #0003;padding:8px 11px;text-decoration:none;font:800 11px/1.35 system-ui,sans-serif;max-width:calc(100% - 24px);white-space:normal;transition:background .2s,color .2s}
.p400m-page.p400x-v3321 .p400x22-admin-media:is(:hover,:focus-visible){background:#4e1111;color:white!important;outline:3px solid #cfb36a;outline-offset:2px}
/* Galleries: the same editable shortcode has ten different page-native treatments. */
.p400m-page.p400x-v3321 .p400x22-gallery-module{display:block!important;margin:0!important;max-width:none!important;width:100%!important}
.p400m-page.p400x-v3321 .p400x22-album{background:#eee8dc;position:relative;padding:clamp(34px,5vw,76px) 24px;overflow:hidden;margin:0}
.p400m-page.p400x-v3321 .p400x22-album-inner{max-width:1120px;margin:auto}
.p400m-page.p400x-v3321 .p400x22-album-heading{max-width:730px;margin-bottom:25px}
.p400m-page.p400x-v3321 .p400x22-album-heading h2{font:400 clamp(1.8rem,2.9vw,2.9rem)/1.16 'DM Serif Display',Georgia,serif;color:#501616;margin:0 0 10px}
.p400m-page.p400x-v3321 .p400x22-album-heading>p:last-child{font:400 15px/1.62 system-ui,sans-serif;color:#62564c;max-width:690px;margin:0}
.p400m-page.p400x-v3321 .p400x22-gallery-viewport{display:flex;gap:17px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;padding:8px 4px 20px;scrollbar-width:thin;scrollbar-color:#b48c4f transparent}
.p400m-page.p400x-v3321 .p400x22-gallery-cell{flex:0 0 clamp(250px,34%,390px);height:clamp(215px,29vw,340px);scroll-snap-align:start;min-width:0}
.p400m-page.p400x-v3321 .p400x22-gallery-cell .p400m-photo-frame{width:100%;height:100%;border-radius:14px;margin:0}
.p400m-page.p400x-v3321 .p400x22-gallery-cell .p400m-photo-frame img{height:100%!important;object-fit:cover!important}
.p400m-page.p400x-v3321 .p400x22-album-controls{display:flex;justify-content:flex-end;gap:9px;margin-top:6px}
.p400m-page.p400x-v3321 .p400x22-album-controls button{appearance:none;border:1px solid #6b2422;background:#fff;border-radius:50%;color:#5a1717;width:43px;height:43px;font:600 24px/1 system-ui;cursor:pointer}
.p400m-page.p400x-v3321 .p400x22-album-controls button:is(:hover,:focus-visible){background:#5a1717;color:#fff;outline-offset:3px}
/* Independent logo controls; actual PNG/WebP is never forced to a circle or square. */
.p400m-page.p400x-v3321 .p400x22-logo-holder{display:block;position:relative;width:min(100%,235px);min-height:100px;margin:0 0 21px;background:transparent!important;border:0!important;border-radius:0!important}
.p400m-page.p400x-v3321 .p400x22-logo-art{display:flex;width:100%;max-width:235px;height:100px;align-items:center;justify-content:flex-start}
.p400m-page.p400x-v3321 .p400x22-logo-art img{display:block;width:auto!important;height:auto!important;max-width:min(100%,235px)!important;max-height:100px!important;object-fit:contain!important;box-shadow:none!important;filter:none!important;border-radius:0!important}
.p400m-page.p400x-v3321 .p400x22-logo-holder .p400x22-admin-media{bottom:-20px;left:0}
/* 01 PASTORAL — arched editorial liturgy, distinct long-form mandate. */
.p400m--pastoral-office.p400x-v3321 .p400x-pastoral-lead{background:linear-gradient(110deg,#f7f1e6 0%,#fff 62%);padding-block:45px}
.p400m--pastoral-office.p400x-v3321 .p400x-pastoral-split{grid-template-columns:1fr .84fr;gap:60px!important;align-items:center}
.p400m--pastoral-office.p400x-v3321 .p400x-pastoral-lead .p400m-photo-frame{border-radius:235px 235px 10px 10px;max-height:510px;aspect-ratio:4/5;margin-inline:auto}
.p400m--pastoral-office.p400x-v3321 .p400x-pastoral-lead .p400x-title{max-width:620px;font-size:clamp(2.2rem,4.4vw,4.5rem)}
.p400m--pastoral-office.p400x-v3321 .p400x-pastoral-mandate{background:#fff;padding-block:44px;border-bottom:1px solid #e0cba8}
.p400m--pastoral-office.p400x-v3321 .p400x-pastoral-mandate .p400x-heading{font-size:clamp(1.6rem,2.3vw,2.38rem)}
.p400m--pastoral-office.p400x-v3321 .p400x-pastoral-ministries{background:#faf7f0}
.p400m--pastoral-office.p400x-v3321 .p400x-pastoral-ministries .p400x-card{border-top:3px solid #c8a25a;border-radius:4px;box-shadow:none}
.p400m--pastoral-office.p400x-v3321 .p400x22-album{background:#4b1515}
.p400m--pastoral-office.p400x-v3321 .p400x22-album :is(h2,.p400x-eyebrow){color:#eed194}
.p400m--pastoral-office.p400x-v3321 .p400x22-album-heading>p:last-child{color:#fff5e9}
.p400m--pastoral-office.p400x-v3321 .p400x22-gallery-cell .p400m-photo-frame{border-radius:140px 140px 4px 4px}
/* 02 CATECHESIS — ruled journal and learning folios, rather than service cards. */
.p400m--catechesis-office.p400x-v3321 .p400x-cate-hero{background:repeating-linear-gradient(0deg,transparent 0,transparent 42px,#eadfcc 43px),#fffaf1;border-bottom:5px solid #b89547}
.p400m--catechesis-office.p400x-v3321 .p400x-cate-open{grid-template-columns:.83fr 1.17fr;gap:55px!important;align-items:stretch}
.p400m--catechesis-office.p400x-v3321 .p400x-cate-open .p400x-col:first-child{order:2;align-self:center}
.p400m--catechesis-office.p400x-v3321 .p400x-cate-open .p400x-col:last-child{order:1}
.p400m--catechesis-office.p400x-v3321 .p400x-cate-hero .p400m-photo-frame{border-radius:10px 75px 10px 10px;min-height:390px;height:100%;box-shadow:14px 15px 0 #ead9b8}
.p400m--catechesis-office.p400x-v3321 .p400x-cate-hero .p400x-title{font-size:clamp(2.2rem,4.2vw,4.25rem);border-bottom:2px solid #d8b56e;padding-bottom:19px}
.p400m--catechesis-office.p400x-v3321 .p400x-cate-steps{background:#f7f3ea}
.p400m--catechesis-office.p400x-v3321 .p400x-cate-steps .p400x-step{border-left:2px solid #be923d;padding-left:22px;background:linear-gradient(90deg,#fff6e6,transparent 60%);margin-bottom:6px}
.p400m--catechesis-office.p400x-v3321 .p400x22-album{background:repeating-linear-gradient(0deg,#f9f4ea,#f9f4ea 45px,#e8dfce 46px)}
.p400m--catechesis-office.p400x-v3321 .p400x22-gallery-cell{transform:rotate(-1.5deg);box-shadow:11px 11px 0 #dec9a1}
.p400m--catechesis-office.p400x-v3321 .p400x22-gallery-cell:nth-child(even){transform:rotate(1.8deg)}
/* 03 EDUCATION — photo-led school magazine and ruled directory index. */
.p400m--education-office.p400x-v3321 .p400x-edu-hero{background:#ede6d8;padding-top:0;padding-bottom:50px}
.p400m--education-office.p400x-v3321 .p400x-edu-hero-grid{grid-template-columns:1fr 1.4fr;gap:0!important;align-items:stretch}
.p400m--education-office.p400x-v3321 .p400x-edu-hero .p400x-col:first-child{padding:36px 36px 34px 8px;align-self:end}
.p400m--education-office.p400x-v3321 .p400x-edu-hero .p400m-photo-frame{height:clamp(350px,40vw,540px);border-radius:0 0 22px 22px;box-shadow:0 15px 35px #47241d21}
.p400m--education-office.p400x-v3321 .p400x-edu-hero .p400x-title{font-size:clamp(2.5rem,4.1vw,4.5rem);border-top:0;position:relative}
.p400m--education-office.p400x-v3321 .p400x-edu-hero .p400x-title::before{content:'EDUCATION / FAITH';display:block;color:#a5762e;font:800 .66rem/1.4 system-ui,sans-serif;letter-spacing:.2em;padding-bottom:12px}
.p400m--education-office.p400x-v3321 .p400x-edu-programme .p400x-card{background:#fffdf8;min-height:210px;padding-top:32px;clip-path:polygon(0 0,100% 0,100% calc(100% - 18px),calc(100% - 18px) 100%,0 100%)}
.p400m--education-office.p400x-v3321 .p400x-edu-schools{background:#f4eadd;border-left:0}
.p400m--education-office.p400x-v3321 .p400x-edu-schools .p400x-record{border-left:4px solid #aa7939;border-radius:0}
.p400m--education-office.p400x-v3321 .p400x22-album{background:#fff;padding-block:45px}
.p400m--education-office.p400x-v3321 .p400x22-gallery-cell{flex-basis:clamp(220px,27%,320px);height:260px}
.p400m--education-office.p400x-v3321 .p400x22-gallery-cell .p400m-photo-frame{border-radius:3px 3px 20px 3px;border-bottom:6px solid #c6a355}
/* 04 CARITAS — expansive humanitarian photographic mosaic + high-contrast statement. */
.p400m--caritas-ngong.p400x-v3321 .p400x-caritas-hero{background:#f2eee8;padding-block:22px 50px}
.p400m--caritas-ngong.p400x-v3321 .p400x-caritas-open{grid-template-columns:.83fr 1.17fr;gap:55px!important}
.p400m--caritas-ngong.p400x-v3321 .p400x-caritas-open .p400x-col:first-child{position:relative;align-self:center}
.p400m--caritas-ngong.p400x-v3321 .p400x-caritas-hero .p400x-title{font-size:clamp(2.5rem,4.9vw,5rem)}
.p400m--caritas-ngong.p400x-v3321 .p400x-photo-mosaic{display:grid!important;grid-template-columns:1.25fr .85fr;grid-template-rows:220px 220px;gap:12px!important}
.p400m--caritas-ngong.p400x-v3321 .p400x-photo-mosaic>.p400x-media:first-child{grid-row:1/3}
.p400m--caritas-ngong.p400x-v3321 .p400x-photo-mosaic .p400m-photo-frame{height:100%;border-radius:6px}
.p400m--caritas-ngong.p400x-v3321 .p400x-photo-mosaic .p400m-photo-frame img{height:100%!important}
.p400m--caritas-ngong.p400x-v3321 .p400x-caritas-focus{background:#4e1111}
.p400m--caritas-ngong.p400x-v3321 .p400x-caritas-focus :is(.p400x-eyebrow,.p400x-heading),.p400m--caritas-ngong.p400x-v3321 .p400x-caritas-focus p{color:#fff7eb!important}
.p400m--caritas-ngong.p400x-v3321 .p400x-caritas-focus .p400x-heading{font-size:clamp(2.4rem,4.2vw,4.4rem)}
.p400m--caritas-ngong.p400x-v3321 .p400x-caritas-themes{background:#f9f2e5}
.p400m--caritas-ngong.p400x-v3321 .p400x-caritas-themes .p400x-card{border:0;border-radius:0 26px 0 0;box-shadow:0 12px 28px #4f302514}
.p400m--caritas-ngong.p400x-v3321 .p400x22-album{background:#ede3d1}
.p400m--caritas-ngong.p400x-v3321 .p400x22-gallery-cell:first-child{flex-basis:47%}
.p400m--caritas-ngong.p400x-v3321 .p400x22-gallery-cell:nth-child(2){flex-basis:26%;height:250px;margin-top:80px}
.p400m--caritas-ngong.p400x-v3321 .p400x22-gallery-cell:nth-child(3){flex-basis:33%;margin-top:22px}
/* 05 JUSTICE & PEACE — civic-advocacy frontispiece, oversized quote and numbered pathway. */
.p400m--justice-and-peace.p400x-v3321 .p400x-peace-hero{background:#4d1111;padding-block:36px}
.p400m--justice-and-peace.p400x-v3321 .p400x-peace-hero .p400x-peace-open{grid-template-columns:1.07fr .93fr;gap:50px!important}
.p400m--justice-and-peace.p400x-v3321 .p400x-peace-hero :is(.p400x-title,.p400x-eyebrow,.p400x-lead),.p400m--justice-and-peace.p400x-v3321 .p400x-peace-hero p{color:#fff9ee!important}
.p400m--justice-and-peace.p400x-v3321 .p400x-peace-hero .p400x-title{font-size:clamp(2.3rem,4.9vw,5.1rem);max-width:560px}
.p400m--justice-and-peace.p400x-v3321 .p400x-peace-hero .p400m-photo-frame{height:460px;clip-path:polygon(13% 0,100% 0,100% 100%,0 100%,0 15%);border-radius:0}
.p400m--justice-and-peace.p400x-v3321 .p400x-peace-stand{background:#fff;padding-block:48px}
.p400m--justice-and-peace.p400x-v3321 .p400x-peace-stand .p400x-heading{font-size:clamp(2.25rem,3.8vw,4rem);border-left:6px solid #cba653;padding-left:22px}
.p400m--justice-and-peace.p400x-v3321 .p400x-peace-work{background:#f9f5ec}
.p400m--justice-and-peace.p400x-v3321 .p400x-peace-work .p400x-card{background:transparent;border:0;border-left:1px solid #cba653;border-radius:0;box-shadow:none;padding:12px 21px}
.p400m--justice-and-peace.p400x-v3321 .p400x-peace-action .p400x-step{border-top:0;border-left:4px solid #cba653;padding-left:22px}
.p400m--justice-and-peace.p400x-v3321 .p400x22-album{background:#e7ded1}
.p400m--justice-and-peace.p400x-v3321 .p400x22-gallery-cell .p400m-photo-frame{border-radius:2px;filter:saturate(.8)}
/* 06 PMC — soft circles, expressive chapter badges, cheerful child-centred layout. */
.p400m--pontifical-missionary-children.p400x-v3321 .p400x-pmc-hero{background:#f4e6c8;overflow:hidden}
.p400m--pontifical-missionary-children.p400x-v3321 .p400x-pmc-hero::after{content:'';position:absolute;width:280px;height:280px;border:15px solid #dbb65c55;border-radius:50%;right:-110px;top:-160px;pointer-events:none}
.p400m--pontifical-missionary-children.p400x-v3321 .p400x-pmc-hero .p400x-grid{grid-template-columns:1fr .86fr;gap:60px!important}
.p400m--pontifical-missionary-children.p400x-v3321 .p400x-pmc-hero .p400x-title{font-size:clamp(2.6rem,4.8vw,4.7rem)}
.p400m--pontifical-missionary-children.p400x-v3321 .p400x-pmc-hero .p400m-photo-frame{border-radius:50%;aspect-ratio:1/1;border:10px solid #fff8e8;outline:5px dotted #bd903b;box-shadow:20px 10px 0 #8c2322aa;max-width:440px;margin-inline:auto}
.p400m--pontifical-missionary-children.p400x-v3321 .p400x-pmc-activities{background:#fffaf2}
.p400m--pontifical-missionary-children.p400x-v3321 .p400x-pmc-activities .p400x-card{border-radius:28px 6px 28px 6px;border:2px solid #e5ca88;box-shadow:none}
.p400m--pontifical-missionary-children.p400x-v3321 .p400x-pmc-community{background:#f4e7d7}
.p400m--pontifical-missionary-children.p400x-v3321 .p400x22-album{background:#fff6de}
.p400m--pontifical-missionary-children.p400x-v3321 .p400x22-gallery-cell .p400m-photo-frame{border-radius:50%;width:min(100%,310px);height:min(74vw,310px);outline:7px solid #e8b85a;outline-offset:-7px}
/* 07 SCC — intimate home-and-neighbourhood storytelling, centred family photo. */
.p400m--small-christian-communities.p400x-v3321 .p400x-scc-hero{background:linear-gradient(135deg,#fbf5e9 0%,#f0e2d1 100%)}
.p400m--small-christian-communities.p400x-v3321 .p400x-scc-hero .p400x-grid{grid-template-columns:.92fr 1.08fr;align-items:center}
.p400m--small-christian-communities.p400x-v3321 .p400x-scc-hero .p400m-photo-frame{border:14px solid #fff;box-shadow:0 20px 40px #562b1a33;border-radius:55% 55% 8px 8px;max-height:500px}
.p400m--small-christian-communities.p400x-v3321 .p400x-scc-hero .p400x-title{font-size:clamp(2.5rem,4.6vw,4.8rem)}
.p400m--small-christian-communities.p400x-v3321 .p400x-scc-story{background:#fff}
.p400m--small-christian-communities.p400x-v3321 .p400x-scc-story .p400x-heading{max-width:750px}
.p400m--small-christian-communities.p400x-v3321 .p400x-scc-circles{background:#f3ece2}
.p400m--small-christian-communities.p400x-v3321 .p400x-scc-circles .p400x-card{border-radius:0;border-top:4px solid #b99757;border-bottom:4px solid #b99757;background:#fffefa;box-shadow:none}
.p400m--small-christian-communities.p400x-v3321 .p400x22-album{background:#f4e8d7}
.p400m--small-christian-communities.p400x-v3321 .p400x22-gallery-cell .p400m-photo-frame{border-radius:60px 3px 60px 3px}
/* 08 RETREAT CENTRES — landscape hero, numbered venue list, quiet visual gallery. */
.p400m--pastoral-and-retreat-centres.p400x-v3321 .p400x-centres-hero{background:#4e1111;padding-top:25px;padding-bottom:30px}
.p400m--pastoral-and-retreat-centres.p400x-v3321 .p400x-centres-hero .p400x-title,.p400m--pastoral-and-retreat-centres.p400x-v3321 .p400x-centres-hero .p400x-eyebrow,.p400m--pastoral-and-retreat-centres.p400x-v3321 .p400x-centres-hero p{color:#fff!important}
.p400m--pastoral-and-retreat-centres.p400x-v3321 .p400x-centres-hero .p400x-title{max-width:850px;font-size:clamp(2.4rem,4.8vw,5rem)}
.p400m--pastoral-and-retreat-centres.p400x-v3321 .p400x-centres-hero .p400m-photo-frame{height:clamp(340px,42vw,580px);border-radius:2px 2px 50px 2px;margin-top:32px}
.p400m--pastoral-and-retreat-centres.p400x-v3321 .p400x-centres-list{background:#fbf7f0}
.p400m--pastoral-and-retreat-centres.p400x-v3321 .p400x-centres-list .p400x-step{grid-template-columns:90px minmax(0,1fr);gap:30px;border-bottom:1px solid #b69a72;padding-block:19px}
.p400m--pastoral-and-retreat-centres.p400x-v3321 .p400x-centres-visual{background:#fff}
.p400m--pastoral-and-retreat-centres.p400x-v3321 .p400x22-album{background:#f2e6d5}
.p400m--pastoral-and-retreat-centres.p400x-v3321 .p400x22-gallery-cell{flex-basis:52%;height:360px}
.p400m--pastoral-and-retreat-centres.p400x-v3321 .p400x22-gallery-cell:nth-child(even){flex-basis:30%;height:285px;margin-top:65px}
/* 09 HEALTH — tranquil editorial care story, accessible clean cards. */
.p400m--health-services.p400x-v3321 .p400x-health-hero{background:linear-gradient(90deg,#fff,#f7f3e9);padding-block:30px}
.p400m--health-services.p400x-v3321 .p400x-health-hero .p400x-grid{grid-template-columns:1.05fr .95fr}
.p400m--health-services.p400x-v3321 .p400x-health-hero .p400m-photo-frame{border-radius:3px 95px 3px 95px;height:440px;max-width:520px}
.p400m--health-services.p400x-v3321 .p400x-health-hero .p400x-title{font-size:clamp(2.3rem,4.1vw,4.25rem)}
.p400m--health-services.p400x-v3321 .p400x-health-work{background:#f0e8dc}
.p400m--health-services.p400x-v3321 .p400x-health-areas .p400x-card{border-radius:28px 6px 28px 6px;border-left:5px solid #a4804b;box-shadow:none}
.p400m--health-services.p400x-v3321 .p400x-health-facilities{background:#fff}
.p400m--health-services.p400x-v3321 .p400x22-album{background:#f5ece6}
.p400m--health-services.p400x-v3321 .p400x22-gallery-cell .p400m-photo-frame{border-radius:2px 75px 2px 2px}
/* 10 FINANCE — architectural ledger, quiet media, highly structured responsibility rows. */
.p400m--finance-and-administration.p400x-v3321 .p400x-admin-hero{background:#f3efe9;border-bottom:5px solid #4e1111;padding-block:36px}
.p400m--finance-and-administration.p400x-v3321 .p400x-admin-hero .p400x-grid{grid-template-columns:1.25fr .75fr;align-items:center}
.p400m--finance-and-administration.p400x-v3321 .p400x-admin-hero .p400m-photo-frame{height:360px;border-radius:0 0 0 80px;box-shadow:20px 20px 0 #cba653}
.p400m--finance-and-administration.p400x-v3321 .p400x-admin-hero .p400x-title{font-size:clamp(2.3rem,4vw,4.2rem)}
.p400m--finance-and-administration.p400x-v3321 .p400x-admin-intro{background:#fff}
.p400m--finance-and-administration.p400x-v3321 .p400x-admin-responsibility{background:#f5f0e6}
.p400m--finance-and-administration.p400x-v3321 .p400x-admin-responsibility .p400x-card{border:0;border-bottom:1px solid #987c55;border-radius:0;background:transparent;padding-inline:3px;box-shadow:none}
.p400m--finance-and-administration.p400x-v3321 .p400x-admin-governance{background:#fff}
.p400m--finance-and-administration.p400x-v3321 .p400x22-album{background:#eae3d9;padding-block:42px}
.p400m--finance-and-administration.p400x-v3321 .p400x22-gallery-cell{flex-basis:clamp(260px,38%,400px);height:270px}
.p400m--finance-and-administration.p400x-v3321 .p400x22-gallery-cell .p400m-photo-frame{border-radius:2px;box-shadow:11px 11px 0 #c5a86e}
/* Photos remain beautiful but never distort, even with original portrait/square/wide uploads. */
.p400m-page.p400x-v3321 .p400x22-real img{object-position:center!important}
@media(max-width:900px){
 .p400m-page.p400x-v3321 .p400x22-gallery-cell{flex-basis:44%;height:250px}
 .p400m--caritas-ngong.p400x-v3321 .p400x-photo-mosaic{grid-template-rows:190px 190px}
 .p400m--caritas-ngong.p400x-v3321 .p400x-caritas-open{gap:25px!important}
 .p400m--catechesis-office.p400x-v3321 .p400x-cate-open{gap:20px!important}
}
@media(max-width:680px){
 .p400m-page.p400x-v3321 .p400x22-album{padding:36px 20px}
 .p400m-page.p400x-v3321 .p400x22-gallery-cell,.p400m-page.p400x-v3321 .p400x22-gallery-cell:first-child,.p400m-page.p400x-v3321 .p400x22-gallery-cell:nth-child(even),.p400m-page.p400x-v3321 .p400x22-gallery-cell:nth-child(3){flex-basis:83%!important;height:260px!important;margin-top:0!important;transform:none!important}
 .p400m--pontifical-missionary-children.p400x-v3321 .p400x22-gallery-cell .p400m-photo-frame{height:240px!important;width:240px}
 .p400m--caritas-ngong.p400x-v3321 .p400x-photo-mosaic{grid-template-columns:1.12fr .88fr;grid-template-rows:120px 120px}
 .p400m--caritas-ngong.p400x-v3321 .p400x-photo-mosaic>.p400x-media:first-child{grid-row:1/3}
 .p400m--catechesis-office.p400x-v3321 .p400x-cate-open .p400x-col:first-child{order:1}
 .p400m--catechesis-office.p400x-v3321 .p400x-cate-open .p400x-col:last-child{order:2}
 .p400m--education-office.p400x-v3321 .p400x-edu-hero .p400x-col:first-child{padding:30px 0}
 .p400m--education-office.p400x-v3321 .p400x-edu-hero .p400m-photo-frame{height:280px}
 .p400m--justice-and-peace.p400x-v3321 .p400x-peace-hero .p400m-photo-frame{height:300px}
 .p400m--health-services.p400x-v3321 .p400x-health-hero .p400m-photo-frame{height:300px}
 .p400m--finance-and-administration.p400x-v3321 .p400x-admin-hero .p400m-photo-frame{height:260px}
 .p400m--pastoral-and-retreat-centres.p400x-v3321 .p400x-centres-hero .p400m-photo-frame{height:300px}
 .p400m-page.p400x-v3321 .p400x-title{font-size:clamp(2.05rem,7vw,2.8rem)!important}
}
@media(prefers-reduced-motion:reduce){.p400m-page.p400x-v3321 .p400m-photo-frame img{transition:none!important;transform:none!important}.p400m-page.p400x-v3321 .p400x22-gallery-viewport{scroll-behavior:auto!important}}
/* Explicit air gap between existing Darcis headline and any dark photographic chapter. */
.p400m--justice-and-peace.p400x-v3321 .p400x-peace-hero,
.p400m--pastoral-and-retreat-centres.p400x-v3321 .p400x-centres-hero{border-top:20px solid #faf7f2}
.p400m-page.p400x-v3321 .p400m-content::after{content:'';display:block;height:18px;background:#fff}
/* The CJPD hero uses the original shared grid; no dependence on an invented class. */
.p400m--justice-and-peace.p400x-v3321 .p400x-peace-hero .p400x-grid{grid-template-columns:1.07fr .93fr;gap:50px!important}
/* Catechesis genuinely opens like a book: teaching photograph left, written introduction right. */
@media(min-width:681px){
 .p400m--catechesis-office.p400x-v3321 .p400x-cate-open>.p400x-col:first-child{order:1;grid-column:1;grid-row:1;align-self:stretch}
 .p400m--catechesis-office.p400x-v3321 .p400x-cate-open>.p400x-col:last-child{order:2;grid-column:2;grid-row:1;align-self:center}
}
