/* Project 400 v3.3.24 — editorially clean, orderly photo galleries.
 * Gallery titles are always ABOVE images and aligned with the page grid.
 * Finance has NO gallery. Keep each remaining ministry's distinct visual treatment. */
.p400m-page.p400x-v3321 .p400x22-gallery-module{width:100%!important;max-width:none!important;margin:0!important}
.p400m-page.p400x-v3321 .p400x22-album{isolation:isolate}
.p400m-page.p400x-v3321 .p400x22-album-inner{display:block!important;max-width:1120px!important;width:100%!important;margin-inline:auto!important}
.p400m-page.p400x-v3321 .p400x22-album-heading{
 position:static!important;display:block!important;clear:both!important;
 width:100%!important;max-width:850px!important;min-width:0!important;
 text-align:left!important;margin:0 0 28px!important;padding:0 0 0 18px!important;
 border-left:3px solid #cba653!important;transform:none!important;
}
.p400m-page.p400x-v3321 .p400x22-album-heading :is(.p400x-eyebrow,h2,p){
 text-align:left!important;position:static!important;float:none!important;
 max-width:100%!important;margin-left:0!important;margin-right:0!important;
 transform:none!important;clear:none!important;
}
.p400m-page.p400x-v3321 .p400x22-album-heading .p400x-eyebrow{
 margin:0 0 8px!important;font-size:10px!important;letter-spacing:.15em;
}
.p400m-page.p400x-v3321 .p400x22-album-heading h2{line-height:1.14!important;margin:0 0 9px!important}
.p400m-page.p400x-v3321 .p400x22-album-heading>p:last-child{margin:0!important;max-width:690px!important;line-height:1.55!important}
.p400m-page.p400x-v3321 .p400x22-gallery-viewport{
 position:relative!important;display:flex!important;align-items:stretch!important;
 clear:both!important;gap:16px!important;margin:0!important;padding:3px 2px 16px!important;
 overflow-x:auto!important;overflow-y:hidden!important;
}
.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){
 transform:none!important;align-self:stretch!important;margin-top:0!important;
 margin-bottom:0!important;box-sizing:border-box!important;min-width:0!important;
 height:clamp(220px,27vw,310px)!important;
}
.p400m-page.p400x-v3321 .p400x22-gallery-cell .p400m-photo-frame{
 position:relative!important;width:100%!important;height:100%!important;
 min-height:0!important;margin:0!important;box-sizing:border-box!important;
}
.p400m-page.p400x-v3321 .p400x22-gallery-cell img{display:block!important;height:100%!important;width:100%!important;object-fit:cover!important}
.p400m-page.p400x-v3321 .p400x22-album-controls{position:static!important;clear:both!important;display:flex!important;justify-content:flex-end!important;margin:12px 0 0!important;gap:10px!important}
.p400m--finance-and-administration.p400x-v3321 .p400x22-gallery-module,
.p400m--finance-and-administration.p400x-v3321 .p400x22-album{display:none!important}
/* Preserve category motifs without slanted or staggered photo rows. */
.p400m--catechesis-office.p400x-v3321 .p400x22-gallery-cell{box-shadow:none!important}
.p400m--caritas-ngong.p400x-v3321 .p400x22-gallery-cell{flex-basis:clamp(240px,32%,355px)!important}
.p400m--pastoral-and-retreat-centres.p400x-v3321 .p400x22-gallery-cell{flex-basis:clamp(270px,43%,480px)!important}
@media(max-width:700px){
 .p400m-page.p400x-v3321 .p400x22-album{padding:30px 18px!important}
 .p400m-page.p400x-v3321 .p400x22-album-heading{padding-left:12px!important;margin-bottom:20px!important}
 .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:min(82vw,350px)!important;height:240px!important}
}
