/*
 * Responsive fixes layered on top of the Webflow export.
 * Loaded after afterhoursdoctor-net-com.css on every page. Keep this file (and its <link> tags)
 * when re-exporting from Webflow, or move these rules into the Webflow designer.
 */

/* ---------- General safety nets ---------- */
img,
video,
iframe {
  max-width: 100%;
}

body {
  /* `clip` (not `hidden`) so it doesn't break sticky positioning. */
  overflow-x: clip;
}

h1,
h2,
h3 {
  overflow-wrap: break-word;
}

/* Footer social links wrap instead of spilling off narrow screens. */
.footer-socials {
  flex-wrap: wrap;
  row-gap: 10px;
}

/* City/state pages: the fixed heading bar's centred flex column stopped the H1 and state links from wrapping. */
.container-25 {
  max-width: 100%;
  padding-left: 12px;
  padding-right: 12px;
}

.container-25 > *,
.aus-wide-state-heading .heading-13 {
  max-width: 100%;
}

/* City/state pages: full-width container + Webflow row's -10px margins caused a 10px sideways scroll on desktop. */
.container-26 > .w-row {
  margin-left: 0;
  margin-right: 0;
}

.div-block-34 {
  flex-wrap: wrap;
  row-gap: 6px;
}

@media screen and (max-width: 479px) {
  .heading-13 {
    font-size: clamp(19px, 6vw, 25px);
    line-height: 1.2;
  }
}

/* Hero: .div-block-53 ("View our services") has margin-top: -20px above 480px wide, which laid it over the
   "View our explainer video" link and swallowed its clicks on tablet/desktop. Keep the explainer link on top. */
.div-block-57 {
  position: relative;
  z-index: 2;
}

/* ---------- Explainer video modal ---------- */
.video-modal-open,
.video-modal-open body {
  overflow: hidden;
}

.fs_modal-2_popup {
  padding: 1rem;
}

.fs_modal-2_wrapper {
  /* Webflow sets justify-items: start, which current browsers apply to block layout too,
     shrinking the video container to 0px wide. Stretch it to the full modal width. */
  justify-items: stretch;
  width: 100%;
  /* Fit a 16:9 video inside the viewport, leaving room for the CTA bar below it. */
  max-width: min(60rem, calc((100vh - 9rem) * 16 / 9));
  max-height: calc(100vh - 2rem);
  overflow: auto;
}

.fs_modal-2_wrapper > div:first-child {
  width: 100%;
}

.pm-explainer-video-embed,
.pm-explainer-video-embed.w-embed {
  width: 100%;
  height: auto !important;
  max-height: none;
  aspect-ratio: 16 / 9;
}

.fs_modal-2_close {
  z-index: 2;
}

.video-cta-text {
  color: #fff;
  padding: 16px 12px;
}

.video-cta-text a {
  color: #eb8037;
}

/* ---------- Small phones ---------- */
@media screen and (max-width: 479px) {
  /* Hero and in-page "Book now / Call" button pairs share the width instead of a fixed 2 x 175px. */
  .container-2 {
    max-width: 100%;
    padding-left: 12px;
    padding-right: 12px;
  }

  .container-2 > * {
    max-width: 100%;
  }

  .div-block-31,
  .div-block-32,
  .div-block-58 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 100%;
    padding-left: 0;
  }

  /* w-clearfix pseudo-elements become flex items and throw off the centring once a gap is set. */
  .div-block-31::before,
  .div-block-31::after,
  .div-block-32::before,
  .div-block-32::after,
  .div-block-58::before,
  .div-block-58::after {
    content: none;
  }

  .div-block-31 .w-button,
  .div-block-32 .w-button,
  .div-block-58 .w-button {
    float: none;
    flex: 1 1 140px;
    width: auto;
    max-width: 200px;
    margin-left: 0;
    margin-right: 0;
    padding-left: 8px;
    padding-right: 8px;
    letter-spacing: 1px;
    white-space: nowrap;
  }

  .heading-23 {
    font-size: clamp(28px, 9vw, 38px);
    line-height: 1.15;
  }
}

@media screen and (max-width: 359px) {
  .div-block-31 .w-button,
  .div-block-32 .w-button,
  .div-block-58 .w-button {
    font-size: 12px;
  }
}
