/* Consistent curved editorial photography — church content only.
   Brand: black / white / logo blue. Does not affect logos, icons or lightboxes. */
:root{--photo-blue:#087cb8;--photo-curve:clamp(34px,8vw,105px);--photo-shadow:0 20px 45px rgba(0,0,0,.11)}
/* Large feature images: curved top-left and bottom-right, as in original hero. */
:is(.academy-hero-photo,.academy-about-photo,.about-image,.intro-image,.welcome-image,.vision-image,.pw-about-image,.chapter-image) {
  position:relative;
  isolation:isolate;
}
:is(.academy-hero-photo,.about-image,.intro-image,.welcome-image,.vision-image,.pw-about-image,.chapter-image){
  overflow:hidden!important;
  border-radius:var(--photo-curve) 22px calc(var(--photo-curve) * .75) 22px!important;
  box-shadow:var(--photo-shadow)!important;
}
:is(.academy-hero-photo,.about-image,.intro-image,.welcome-image,.vision-image,.pw-about-image,.chapter-image) img{
  display:block;
  width:100%!important;
  max-width:100%!important;
  height:100%!important;
  object-fit:cover!important;
}
.academy-hero-photo{
  border-radius:34% 30px 32px 30px!important;
  box-shadow:var(--photo-shadow)!important;
}
.academy-about-photo img{
  border-radius:var(--photo-curve) 22px calc(var(--photo-curve) * .75) 22px!important;
  box-shadow:var(--photo-shadow)!important;
  object-fit:cover!important;
}
/* Repeat a softer, smaller version of the same silhouette on content cards. */
:is(.event-card-image,.department-image,.ministry-image-sm,.sermon-thumbnail,.gallery-item,.home-gallery-item,.photos-grid-item,.photo-img-wrapper,.photo-card){
  overflow:hidden!important;
  border-radius:36px 13px 28px 13px!important;
  isolation:isolate;
}
:is(.event-card-image,.department-image,.ministry-image-sm,.sermon-thumbnail,.gallery-item,.home-gallery-item,.photos-grid-item,.photo-img-wrapper,.photo-card) img{
  display:block;
  max-width:100%;
  width:100%;
  object-fit:cover;
  transition:transform .35s ease;
}
@media(hover:hover){
 :is(.event-card-image,.department-image,.ministry-image-sm,.sermon-thumbnail,.gallery-item,.home-gallery-item,.photos-grid-item,.photo-img-wrapper,.photo-card):hover img{
    transform:scale(1.035);
  }
}
/* Portrait photos retain useful headroom while sharing the silhouette. */
:is(.leader-photo,.vicar-photo,.worker-photo){
  overflow:hidden;
  border-radius:38px 13px 30px 13px!important;
  object-fit:cover;
  object-position:center top;
}
/* Decorative blue photo backing is limited to designated feature images. */
.academy-about-photo::before{background:rgba(8,124,184,.11)!important}
.academy-hero-visual::before{background:rgba(8,124,184,.14)!important}
/* Small screens: curves scale down without cropping the subject excessively. */
@media(max-width:767px){
 :root{--photo-curve:clamp(34px,12vw,75px)}
 .academy-hero-photo{border-radius:100px 20px 70px 20px!important}
 :is(.event-card-image,.department-image,.ministry-image-sm,.sermon-thumbnail,.gallery-item,.home-gallery-item,.photos-grid-item,.photo-img-wrapper,.photo-card){border-radius:26px 12px 20px 12px!important}
}
@media(prefers-reduced-motion:reduce){
 :is(.event-card-image,.department-image,.ministry-image-sm,.sermon-thumbnail,.gallery-item,.home-gallery-item,.photos-grid-item,.photo-img-wrapper,.photo-card) img{transition:none}
}
