/* Responsive overrides for inline styles that block Vortala CSS media queries */
/* These use !important to override React inline styles at mobile breakpoints */

.latest-post-label {
  display: inline-block;
  margin-bottom: 18px;
  padding: 10px 18px;
  background: #f2f2f2;
  border: 1px solid #ddd;
  color: #555;
  font-family: Mulish, sans-serif;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.family-focus-intro {
  display: flex;
  align-items: center;
  gap: 50px;
}

.family-focus-copy {
  flex: 0 0 430px;
}

.family-focus-hero-image {
  flex: 0 0 629px;
  max-width: 629px !important;
  min-width: 0;
  width: 629px !important;
  height: auto;
}

.family-focus-divider {
  clear: both;
  margin: 34px 0;
  border: 0;
  border-top: 1px dotted #bbb;
}

.family-focus-member {
  display: grid;
  grid-template-columns: 300px 1fr;
  align-items: center;
  gap: 70px;
}

.family-focus-member img {
  display: block;
  width: 300px;
  height: 300px;
  object-fit: cover;
}

.home div#containing_wrap #wrap::after {
  pointer-events: none;
}

.event-promo-banner {
  position: relative;
  z-index: 8000;
  padding: 10px 40px 10px 20px;
  background: #fff;
  color: #d81468;
  font-family: Mulish, muli, sans-serif;
  font-size: 20px;
  line-height: 1.2;
  text-align: center;
}

body.banner-active .nav-utility.sticky-top {
  position: relative;
}

body.banner-active #containing_wrap {
  margin-top: 0;
}

.event-promo-message {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: calc(100% - 44px);
  min-width: 0;
}

.event-promo-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.event-promo-primary svg {
  flex: 0 0 auto;
}

.event-promo-primary strong {
  min-width: 0;
}

.event-promo-message a,
.event-promo-message a:visited {
  color: #d81468 !important;
  text-decoration: none;
}

.event-promo-link {
  display: inline-block;
  padding: 0 15px;
  font-weight: 700;
  white-space: nowrap;
}

.event-promo-close {
  position: absolute;
  top: 6px;
  right: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #d81468;
  font: 700 28px/1 Mulish, sans-serif;
  cursor: pointer;
}

.community-talks-check-heading,
.partner-check-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.community-talks-check-heading svg,
.partner-check-heading svg {
  flex: 0 0 auto;
  margin-top: 0.1em;
  color: #d81368;
}

.community-talks-check-heading span,
.partner-check-heading span {
  min-width: 0;
}

.page-partner-with-us .partner-with-us-image {
  float: right;
  width: 425px !important;
  height: 425px !important;
  max-width: 46% !important;
  margin: 0 0 32px 52px !important;
  border-radius: 50%;
  object-fit: cover;
  box-sizing: border-box;
}

.page-partner-with-us .co21 {
  max-width: 560px;
  margin: 28px 0 42px;
}

.page-partner-with-us .partner-check-heading {
  clear: none;
}

.page-partner-with-us .nb51 {
  clear: both;
  margin-top: 36px;
  padding: 34px 42px;
}

.page-partner-with-us .nb51 .bldr_cta {
  margin-top: 20px;
}

.page-bring-a-friend-day .bring-friend-image {
  width: 350px !important;
  height: 350px !important;
  max-width: 40% !important;
  border-radius: 50%;
  object-fit: cover;
  box-sizing: border-box;
}

/* Gallery containers: inline maxWidth: 425px overflows on phones */
@media screen and (max-width: 600px) {
  .event-promo-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px 38px 9px 10px;
    font-size: 16px;
    text-align: left;
  }

  .event-promo-message {
    flex: 1 1 auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 8px;
    max-width: none;
    width: 100%;
  }

  .event-promo-primary {
    flex: 1 1 auto;
    gap: 8px;
  }

  .event-promo-primary strong {
    line-height: 1.25;
  }

  .event-promo-link {
    flex: 0 0 auto;
    margin-left: auto;
    padding: 0;
  }

  .community-talks-check-heading,
  .partner-check-heading {
    gap: 9px;
  }

  .community-talks-check-heading svg,
  .partner-check-heading svg {
    width: 32px;
    height: 32px;
  }

  .page-partner-with-us .partner-with-us-image,
  .page-bring-a-friend-day .bring-friend-image {
    float: none !important;
    display: block !important;
    width: min(100%, 350px) !important;
    height: auto !important;
    max-width: 100% !important;
    margin: 0 auto 24px !important;
  }

  .page-partner-with-us .co21 {
    max-width: none;
  }

  .page-partner-with-us .nb51 {
    padding: 24px 20px;
  }

  .wp_flex_gallery {
    max-width: 100% !important;
    max-height: none !important;
    float: none !important;
    margin: 0 auto 20px !important;
  }

  /* Float wrappers around galleries */
  .entry-content > div[style*="float"] {
    float: none !important;
    width: 100% !important;
  }

  /* Doctor images on bio pages */
  .entry-content img[style*="float"] {
    float: none !important;
    display: block !important;
    margin: 0 auto 20px !important;
    max-width: 80% !important;
    width: auto !important;
  }

  /* Footer Google Maps: 730px height is excessive on mobile */
  #map {
    height: 350px !important;
  }

  /* Techniques comparison table: 500px wide overflows 375px viewport */
  .tech-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
  }

  /* Footer schema div: overflows 10px on every page */
  .footer_schema,
  .footer_schema > div {
    max-width: 100% !important;
    overflow: hidden;
    box-sizing: border-box;
  }

  /* Blog first post overflow fix */
  .blogposts .post {
    overflow: hidden;
    max-width: 100%;
  }
  .blogposts .blog-entry-photo,
  .blogposts .blog-post-info {
    max-width: 100%;
    overflow: hidden;
  }
  .blogposts .more-link,
  .blogposts .entry-date {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Tab labels overflow: meet-the-doctors and new-patient-center */
  .nav-tabs:not(.service-nav-tabs) {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 2px;
    max-width: 100%;
  }
  .nav-tabs:not(.service-nav-tabs) label {
    font-size: 12px !important;
    padding: 8px 6px !important;
    white-space: nowrap;
    flex: 1 1 auto;
    text-align: center;
    min-width: 0;
  }

  .family-focus-intro {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  .family-focus-hero-image {
    order: -1;
    flex: 0 1 auto;
    max-width: 100% !important;
    width: 100% !important;
  }

  .family-focus-member {
    display: block;
  }

  .family-focus-member img {
    margin: 0 auto 20px !important;
    max-width: 300px !important;
    width: 100% !important;
    height: auto;
  }
}

/* Tablet adjustments */
@media screen and (max-width: 768px) {
  #map {
    height: 450px !important;
  }

  .tech-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
