html,body{max-width:100%;overflow-x:hidden}.sw-media-full-image{display:block;max-width:100%;height:auto;margin:0 auto}.sw-media-pdf{width:100%;max-width:1100px;margin:0 auto 18px}.sw-media-pdf iframe{display:block;width:100%;height:80vh;min-height:600px;border:0;background:#fff}.sw-media-fallback,.sw-media-card{text-align:center;font:15px/1.4 Arial,sans-serif;margin:10px auto;padding:12px}.sw-media-card{max-width:680px;border:1px solid #ccc;background:#fff}.sw-media-card a,.sw-media-fallback a{color:#0645ad;text-decoration:underline}@media(max-width:768px){.sw-media-pdf iframe{height:70vh;min-height:420px}.sw-media-card{margin:8px 10px;padding:14px 10px}}

.sw-media-fallback a,.sw-media-card a{display:inline-block;padding:9px 16px;border:1px solid #777;border-radius:4px;background:#f7f7f7;color:#0645ad;text-decoration:none;font-weight:600}.sw-media-fallback{margin:0 auto 10px}.sw-media-pdf iframe{margin-top:0}

/* Admin inventory PDF previews: direct action first, compact first-page preview below. */
.sw-media-pdf-inventory{max-width:750px;margin:8px auto}.sw-media-pdf-inventory iframe{height:860px;min-height:0;border:1px solid #bbb}.sw-media-pdf-inventory .sw-media-fallback{margin:0 auto 8px;padding:6px}.sw-media-pdf-inventory .sw-media-fallback a{max-width:90%;overflow-wrap:anywhere}@media(max-width:768px){.sw-media-pdf-inventory{max-width:100%}.sw-media-pdf-inventory iframe{height:720px;min-height:0}}

/* Public dog-profile media galleries were historically placed inside very tall outer
   iframes. Remove the old internal 500px gallery cap so desktop images use natural
   proportional height and the page, rather than a nested box, handles scrolling. */
html.sw-public-gallery .container,
html.sw-public-gallery .gallery {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
}
html.sw-public-gallery .sw-media-full-image {
  width: auto;
  max-width: 95% !important;
  height: auto !important;
}
