/* HostingMadd page photos v1.0 */
.hm-photo{margin:0;position:relative}
.hm-photo img{display:block;width:100%;height:auto;object-fit:cover;border-radius:16px;background:#e9eef5;box-shadow:0 22px 48px -26px rgba(16,24,40,.45)}

/* Hero: text left, photo right */
.hm-business .page-hero .wrap:has(>.hm-photo-hero){display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);column-gap:56px;align-items:center}
.hm-business .page-hero .wrap:has(>.hm-photo-hero)>*:not(.hm-photo-hero){grid-column:1;max-width:none}
.hm-business .page-hero .hm-photo-hero{grid-column:2;grid-row:1/span 4;align-self:center}
.hm-business .page-hero .wrap:has(>.hm-photo-hero)>.stats{grid-column:1/-1!important;margin-top:36px}
.hm-business .page-hero .hm-photo-hero img{aspect-ratio:4/3.1}
.hm-business .page-hero .hm-photo-hero::after{content:"";position:absolute;inset:auto -14px -14px auto;width:42%;height:46%;border-radius:18px;background:linear-gradient(135deg,rgba(196,34,59,.16),rgba(65,72,174,.12));z-index:-1}

/* Banner at the top of plain pages */
.hm-photo-banner{margin:4px 0 30px}
.hm-photo-banner img{aspect-ratio:21/8;max-height:380px}

/* Photo on top of a service card */
.hm-business .svc>.hm-photo-svc{grid-column:1/-1;margin:-28px -28px 2px}
.hm-business .svc>.hm-photo-svc img{aspect-ratio:auto!important;height:260px!important;object-position:50% 40%;border-radius:14px 14px 0 0;box-shadow:none}

/* Photo band in the middle of long pages */
.hm-photo-band{padding:8px 0 36px!important;background:none!important}
.hm-photo-band .hm-photo-wide img{aspect-ratio:21/8;max-height:420px}

@media (max-width:1024px){
 .hm-business .page-hero .wrap:has(>.hm-photo-hero){column-gap:32px}
}
@media (max-width:767px){
 .hm-business .page-hero .wrap:has(>.hm-photo-hero){display:block}
 .hm-business .page-hero .hm-photo-hero{margin-top:26px}
 .hm-business .page-hero .hm-photo-hero img{aspect-ratio:16/10}
 .hm-business .page-hero .hm-photo-hero::after{display:none}
 .hm-business .svc>.hm-photo-svc{margin:-22px -22px 2px}
 .hm-business .svc>.hm-photo-svc img{height:190px!important}
 .hm-photo-banner{margin-bottom:22px}
 .hm-photo-banner img,.hm-photo-band .hm-photo-wide img{aspect-ratio:16/10;max-height:none}
 .hm-photo-band{padding-bottom:24px!important}
}

/* Contact page: photo beside the address */
.hm-location:has(>.hm-photo-contact){display:grid!important;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:48px;align-items:center}
.hm-photo-contact img{aspect-ratio:4/3}
.hm-photo-band-inline{margin:0 0 34px}
@media (max-width:767px){
 .hm-location:has(>.hm-photo-contact){display:block!important}
 .hm-photo-contact{margin-top:22px}
 .hm-photo-contact img{aspect-ratio:16/10}
}