/* Urban Foot Therapy — uncropped image presentation & client-preview branding, v21.
   Preserve the entire original image at every breakpoint; never enlarge on hover. */
#hb-badge,
a#hb-badge[href*="hatchable.com"] {
  display:none!important;
  visibility:hidden!important;
  opacity:0!important;
  pointer-events:none!important;
}
/* Hero keeps its existing editorial panel but fits the full landscape photograph. */
.hero-image-wrap{display:flex;align-items:center;justify-content:center;background:#d6dccf}
.hero-image-wrap>img{display:block;width:100%;height:100%;object-fit:contain!important;object-position:center!important;transform:none!important}
.hero-media:hover .hero-image-wrap>img{transform:none!important}
/* Story portrait: natural aspect ratio, caption below (not over) the image. */
.story-image{height:auto!important;min-height:0!important;display:flex;flex-direction:column;overflow:visible}
.story-image>img{width:100%;height:auto!important;max-height:none!important;object-fit:contain!important;object-position:center!important}
.story-image .image-caption{position:relative;inset:auto;flex-shrink:0}
/* All service photos fit inside a unified responsive frame with no cropping. */
.five-services .service-card .service-image,
.service-card .service-image{height:auto!important;min-height:0!important;aspect-ratio:4/3;display:flex;align-items:center;justify-content:center;background:#1b3025;overflow:hidden}
.five-services .service-card .service-image>img,
.service-card .service-image>img{width:100%;height:100%!important;max-width:100%;max-height:100%;object-fit:contain!important;object-position:center!important;transform:none!important}
.service-card:hover .service-image>img{transform:none!important}
/* Split-layout editorial photograph respects the original photo aspect ratio. */
.interlude-image{height:auto!important;max-height:none!important;min-height:0!important;display:flex;align-items:center;justify-content:center;overflow:hidden;background:#879385}
.interlude-image>img{width:100%;height:auto!important;max-height:none!important;object-fit:contain!important}
/* Gallery: equal-sized previews, original photo fully visible and larger lightbox unchanged. */
.gallery-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:auto!important;gap:18px}
.gallery-grid>.gallery-img{grid-column:auto!important;grid-row:auto!important;width:100%;aspect-ratio:4/3;min-height:0;display:flex;align-items:center;justify-content:center;background:#d7dccd}
.gallery-grid>.gallery-img>img{display:block;width:100%;height:100%;max-width:100%;object-fit:contain!important;object-position:center!important;transform:none!important}
.gallery-grid>.gallery-img:hover>img{transform:none!important}
/* Contact photo never has its edges cut off. */
.contact-visual-photo{height:auto!important;min-height:0!important;overflow:visible}
.contact-visual-photo>img{display:block;width:100%;height:auto!important;max-height:none!important;object-fit:contain!important;object-position:center!important}
/* Maternity image already has a 4:5 source: keep every pixel. */
.prenatal-single-visual .prenatal-photo-single>img{object-fit:contain!important;object-position:center!important;transform:none!important}
@media(max-width:850px){
  .five-services .service-card:last-child .service-image{height:auto!important;min-height:0!important;aspect-ratio:4/3}
  .interlude-image{height:auto!important;min-height:0!important}
}
@media(max-width:630px){
  .hero-media{height:min(410px,105vw)!important;min-height:0!important}
  .hero-image-wrap>img{object-fit:contain!important}
  .story-image>img{height:auto!important}
  .five-services .service-card:last-child .service-image{height:auto!important;min-height:0!important;aspect-ratio:4/3}
  .gallery-grid{grid-template-columns:1fr!important;gap:14px}
  .gallery-grid>.gallery-img{aspect-ratio:4/3}
  .contact-visual-photo{height:auto!important}
  .interlude-image{height:auto!important}
  /* Mobile treatment cards need full-width photographs, not 120px thumbnail columns. */
  .five-services .service-card,
  .five-services .service-card:last-child,
  .five-services .service-card:nth-child(4){
    display:flex!important;flex-direction:column!important;min-height:0!important;
    grid-template-columns:none!important;grid-template-rows:none!important;
  }
  .five-services .service-card .service-image,
  .five-services .service-card:last-child .service-image{
    width:100%!important;height:auto!important;min-height:0!important;
    aspect-ratio:4/3;grid-column:auto!important;grid-row:auto!important;
  }
  .five-services .service-card .service-meta,
  .five-services .service-card:last-child .service-meta{
    padding:15px 18px 0!important;align-self:stretch;
  }
  .five-services .service-card h3,
  .five-services .service-card:last-child h3{
    font:clamp(27px,8vw,37px)/1.08 var(--head)!important;
    margin:12px 18px 8px!important;
  }
  .five-services .service-card p,
  .five-services .service-card:last-child p{
    font-size:13px!important;line-height:1.6!important;margin:0 18px 10px!important;
  }
  .five-services .treatment-price,
  .five-services .service-card:last-child .treatment-price{
    padding:7px 18px 17px!important;
  }
  /* Make the contact photograph visible and responsive on mobile too. */
  .contact-visual{display:block!important;width:100%;margin:22px 0 30px}
  .contact-stamp{left:12px;bottom:-15px}
}
/* Lazy-loaded contact photo retains an explicit frame before the image arrives. */
.contact-visual-photo{aspect-ratio:3/4}
.contact-visual-photo>img{height:100%!important;object-fit:contain!important}