/* Keep media dimensions independent of lazy images and the embedded player.
   The existing poster aspect ratio/fixed height reserves the space. */
.familydog-design .video-poster{position:relative;isolation:isolate}
.familydog-design .video-poster>.video-launch,
.familydog-design .video-poster>iframe{
 position:absolute;inset:0;width:100%;height:100%;min-width:0;min-height:0;
 margin:0;aspect-ratio:auto;
}
.familydog-design .video-launch>img{
 position:absolute;inset:0;width:100%;height:100%;transform:none;transition:none;
}

@media(max-width:600px){
 /* Keep browser text autosizing predictable; pinch zoom remains available. */
 html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
 body.familydog-design main :is(h1,h2,h3){overflow-wrap:break-word}
 body.familydog-design :is(.focus-hero-copy,.depth-hero,.page-hero,.collection-head,.reviews-intro,.reading-article,.contact-page) h1,
 body.familydog-design .gallery-title{
  font-size:clamp(36px,10.5vw,44px);line-height:1.2;letter-spacing:-.4px;
 }
 body.familydog-design :is(.focus-trust,.focus-faq,.focus-contact,.fd-depth,.editorial,.prose,.page-faq,.about-reviews,.site-cta,.case-study,.contact-panel) h2{
  font-size:clamp(30px,8.6vw,34px);line-height:1.24;letter-spacing:-.3px;
 }
 .familydog-design :is(.depth-intro,.depth-process,.depth-practice-inner,.depth-return-heading,.depth-faq){gap:28px}
 .familydog-design :is(.depth-video p,.video-copy p,.editorial p,.about-reviews p,.route-grid p,.prose>p){font-size:16px;line-height:1.85}
 .familydog-design .case-study>div>p:not(.overline):not(.case-context){font-size:16px;line-height:1.85}
 .familydog-design .depth-jumps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px;padding:14px 22px}
 .familydog-design .depth-jumps a{font-size:14px;line-height:1.5;min-height:44px;padding:8px 4px;justify-content:center;text-align:center}
 .familydog-design .depth-jumps a:last-child:nth-child(odd){grid-column:1/-1}
 .familydog-design .depth-video-grid{gap:36px}
 .familydog-design .depth-video .video-poster{aspect-ratio:4/3;height:auto}
 .familydog-design .depth-video .video-launch>img{object-fit:contain}
 .familydog-design .depth-video h3{font-size:18px;line-height:1.6;margin-top:18px}
 .familydog-design .depth-video .watch-label{font-size:13px;line-height:1.5;padding:9px 12px;bottom:12px;left:12px;right:12px}
 .familydog-design .depth-video .youtube-source{font-size:14px;line-height:1.6;min-height:44px;margin-top:8px}
 .familydog-design .depth-proof-heading{margin-bottom:26px}
 .familydog-design .depth-proof-note{font-size:14px;line-height:1.8;margin-top:26px}
 .familydog-design .button{white-space:normal;text-align:center;line-height:1.5;max-width:100%}
 .familydog-design .contact-panel{padding:28px 22px}
 .familydog-design .focus-route-copy{min-width:0}
 /* Keep the existing live call/WhatsApp controls in the dock, off the content.
    The rule activates only when both existing channel widgets are present. */
 body.familydog-design:has(#callnowbutton):has(#ht-ctc-chat):not(.menu-open):has(.mobile-contact-dock:not([hidden])):not(:has(.focus-inquiry[open])) .mobile-contact-dock{padding-left:142px}
 body.familydog-design:has(#callnowbutton):has(#ht-ctc-chat):not(.menu-open):has(.mobile-contact-dock:not([hidden])):not(:has(.focus-inquiry[open])) #ht-ctc-chat{bottom:calc(10px + env(safe-area-inset-bottom))!important;left:16px!important;right:auto!important}
 body.familydog-design:has(#callnowbutton):has(#ht-ctc-chat):not(.menu-open):has(.mobile-contact-dock:not([hidden])):not(:has(.focus-inquiry[open])) #callnowbutton{bottom:calc(9px + env(safe-area-inset-bottom))!important;left:78px!important;right:auto!important}
}
@media(max-width:360px){
 .familydog-design .contact-panel{padding:26px 18px}
 .familydog-design .depth-final{padding-inline:20px}
}

/* Match review posters to their source images and leave clear touch spacing. */
@media(max-width:600px){
 .familydog-design .reviews-intro{padding-bottom:28px}
 .familydog-design .reviews-videos .testimonial-grid{gap:28px}
 .familydog-design .reviews-videos .video-story:not(:last-child){padding-bottom:16px;border-bottom:1px solid var(--line)}
 .familydog-design .reviews-videos .portrait-video{width:100%;aspect-ratio:4/3;height:auto;max-height:none}
 .familydog-design .reviews-videos .video-launch>img{object-fit:contain}
 .familydog-design .reviews-videos .video-copy{padding:18px 0 0}
 .familydog-design .reviews-videos .video-copy h3{font-size:24px;line-height:1.35;margin-bottom:8px}
 .familydog-design .reviews-videos .video-copy p{font-size:16px;line-height:1.85;margin-bottom:6px}
 .familydog-design .reviews-videos .youtube-source{display:inline-flex;align-items:center;min-height:44px;font-size:14px;line-height:1.6;text-decoration:underline;text-underline-offset:4px}
 .familydog-design .reviews-videos .watch-label{font-size:13px;line-height:1.5;padding:9px 12px;bottom:12px;left:12px;right:12px}
 .familydog-design .reviews-videos .video-note{font-size:14px;line-height:1.8;margin-top:28px}
}
