/* SWG overlay — new homepage sections only. Do not rewrite Landy vendor CSS. */

/*
 * Landy body/heading metrics (theme.min.css) must win over any leftover WP chrome.
 * Primary fix is dequeueing global-styles on the front end; this is a safety net.
 * Colors match live (#8d959d etc.) — not forced to WCAG AA.
 */
body {
  color: #8d959d;
  font-size: 16px;
  line-height: 24px;
  font-weight: 300;
  font-family: "Quattrocento Sans", Helvetica, Arial, sans-serif;
}

.splash-container-type-chiro {
  /* Photo is .swg-hero-photo. A CSS background would be a second download and keep LCP on the div. */
  background-image: none !important;
  /* Keep skip-lazy for Rocket exclusions — do not use content-visibility (caused CLS). */
  content-visibility: visible;
}

.swg-hero-photo,
.swg-hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% 50%;
  z-index: 0;
}

@media (min-width: 768px) {
  .splash-container-type-chiro {
    background-image: none !important;
  }

  .sidebar .recent-posts img,
  .sidebar .recent-posts-widget-with-thumbnails img,
  .sidebar .rpwwt-widget ul li img {
    float: none !important;
  }
}

/* Align with Landy custom.css final desktop height (avoids 100vh → 900px shift). */
@media (min-width: 992px) {
  .splash-container-type-chiro {
    height: 900px;
    min-height: 900px;
  }

  .sidebar .recent-posts img,
  .sidebar .recent-posts-widget-with-thumbnails img,
  .sidebar .rpwwt-widget ul li img {
    float: left !important;
  }
}

/*
 * custom.css sets transform: translateX(-50%) on a full-width .down-arrow.
 * That only works with left:50%; with static layout it shifts the cue off-center.
 * Keep text-align center + pulse scale only (matches live when animation runs).
 */
.down-arrow {
  -webkit-transform: none;
  -ms-transform: none;
  transform: none;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

@keyframes swg-down-arrow-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.down-arrow {
  -webkit-animation: swg-down-arrow-pulse 2s infinite;
  animation: swg-down-arrow-pulse 2s infinite;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.visually-hidden.focusable:focus,
.visually-hidden.focusable:focus-visible {
  position: static !important;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  color: inherit;
  text-decoration: underline;
}

/* WCAG 2.4.7 — restore focus visibility (Landy vendor CSS sets outline:0). */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:not([tabindex="-1"]):focus-visible,
.fancybox:focus-visible,
.question-section-wrap a:focus-visible,
.swg-faces__item:focus-visible,
.swg-faces__more:focus-visible,
.swg-reviews-featured__photo:focus-visible,
.header a:focus-visible,
.footer a:focus-visible {
  outline: 3px solid var(--swg-color-1, #3f99d9);
  outline-offset: 3px;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline-offset: 1px;
}

/* Sticky header clearance for native / JS hash jumps into sections. */
[id^="section-"] {
  scroll-margin-top: 115px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Header logo: Landy floats (do not flex). Skip-lazy + fixed height so Smush
 * cannot collapse the 12k-px source to a 1×1 placeholder. */
.header .menu .logo {
  float: left;
  margin: 0;
  line-height: 0;
}

.header .menu .logo img {
  display: block;
  width: auto;
  height: 50px;
  max-height: 50px;
  max-width: 180px;
  object-fit: contain;
}

/* Section 4: 9-Point Patient Promise — visible 3-col grid, no click-to-reveal */
.swg-promise-grid {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.swg-promise-grid__item {
  width: 33.333%;
  padding: 0 15px 30px;
}

.swg-promise-card {
  background: #fff;
  border: 1px solid #e6e6e6;
  padding: 24px 20px;
  height: 100%;
  text-align: center;
}

.swg-promise-card h3 {
  color: var(--swg-color-1, #3f99d9);
  font-size: 20px;
  margin: 0 0 12px;
}

.swg-promise-card.patient-promise-block,
.swg-promise-card.patient-promise-block:hover {
  background: #fff;
  min-height: 0;
  margin-bottom: 0;
  padding: 24px 20px;
}

.swg-promise-card.patient-promise-block h3 {
  color: var(--swg-color-1, #3f99d9);
  display: block;
  padding: 0;
  margin: 0 0 12px;
  vertical-align: baseline;
  text-transform: none;
}

.swg-promise-laurel {
  display: block;
  margin: 0 auto 28px;
  max-width: 160px;
  width: 100%;
  height: auto;
}

@media (max-width: 991px) {
  .swg-promise-grid__item {
    width: 50%;
  }
}

@media (max-width: 767px) {
  .swg-promise-grid__item {
    width: 100%;
  }
}

/* Section 5: Testimonials mockup */
#section-extraordinary-results {
  background-image: none !important;
  background-color: #fff;
}

#section-extraordinary-results .container-image-grid {
  padding-bottom: 40px;
}

#section-extraordinary-results blockquote:before {
  content: none;
  display: none;
}

.swg-reviews {
  margin-top: 8px;
}

.swg-stars {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 0;
  line-height: 1;
}

.swg-stars > span {
  width: 18px;
  height: 18px;
  background: #f5b301;
  clip-path: polygon(
    50% 0%,
    61% 35%,
    98% 35%,
    68% 57%,
    79% 91%,
    50% 70%,
    21% 91%,
    32% 57%,
    2% 35%,
    39% 35%
  );
}

.swg-stars > span.is-empty {
  background: #d7dbe0;
}

.swg-stars > span.is-half {
  background: linear-gradient(90deg, #f5b301 50%, #d7dbe0 50%);
}

.swg-reviews-volume {
  text-align: center;
  max-width: 640px;
  margin: 8px auto 48px;
  padding: 0;
  border: 0;
  background: transparent;
}

.swg-reviews-volume .swg-stars {
  display: inline-flex;
  justify-content: center;
  gap: 4px;
  margin: 0 0 10px;
}

.swg-reviews-volume .swg-stars > span {
  width: 28px;
  height: 28px;
}

.swg-reviews-volume__count {
  font-family: Ubuntu, sans-serif;
  font-size: 42px;
  font-weight: 700;
  color: var(--swg-color-dark, #0b3744);
  margin: 0 0 14px;
  line-height: 1.15;
}

.swg-reviews-volume__verified {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 10px 22px 10px 16px;
  border: 1px solid #dadce0;
  border-radius: 999px;
  background: #fff;
  color: #3c4043;
  font-family: Ubuntu, Helvetica, Arial, sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.08);
  vertical-align: middle;
}

a.swg-reviews-volume__verified:hover,
a.swg-reviews-volume__verified:focus {
  border-color: #c0c4c8;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.14);
  color: #202124;
  text-decoration: none;
}

.swg-reviews-volume__g {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  overflow: hidden;
  background: none;
  clip-path: none;
  border-radius: 50%;
}

.swg-reviews-volume__g img,
.swg-reviews-volume__g svg {
  display: block;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  clip-path: none;
  border-radius: 50%;
}

.swg-reviews-featured {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 24px;
  margin: 0 0 40px;
}

.swg-reviews-featured__item {
  display: flex;
  flex-direction: column;
  flex: 1 1 calc(33.333% - 16px);
  width: calc(33.333% - 16px);
  max-width: calc(33.333% - 16px);
  margin: 0;
  padding: 0 0 22px;
  text-align: center;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(11, 55, 68, 0.12);
  overflow: hidden;
  box-sizing: border-box;
}

.swg-reviews-featured__photo,
.swg-reviews-featured__item > img {
  display: block;
  margin: 0 0 16px;
  background: #f4f6f7;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
}

.swg-reviews-featured__item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center top;
  border-radius: 16px 16px 0 0;
}

.swg-reviews-featured__item .swg-stars {
  margin: 0 16px 10px;
}

.swg-reviews-featured__item .swg-stars > span {
  width: 16px;
  height: 16px;
}

.swg-reviews-featured__name {
  font-family: Ubuntu, sans-serif;
  font-weight: 700;
  font-size: 18px;
  margin: 0 16px 4px;
  color: var(--swg-color-dark, #0b3744);
}

.swg-reviews-featured__town {
  color: #929292;
  margin: 0 16px 12px;
  font-size: 13px;
}

.swg-reviews-featured__item blockquote {
  flex: 1 1 auto;
  width: 100%;
  margin: 0 auto;
  max-width: 280px;
  padding: 0 16px;
  font-size: 15px;
  line-height: 1.55;
  color: #5a6166;
  font-style: italic;
}

.swg-reviews-featured__item blockquote p {
  margin: 0;
}

.swg-reviews-featured__toggle {
  display: inline;
  margin: 0 0 0 0.3em;
  padding: 0;
  border: 0;
  background: none;
  color: #3f99d9;
  font-family: Ubuntu, Helvetica, Arial, sans-serif;
  font-size: inherit;
  font-style: normal;
  font-weight: 600;
  line-height: inherit;
  cursor: pointer;
}

.swg-reviews-featured__toggle:hover,
.swg-reviews-featured__toggle:focus {
  color: #135e90;
  text-decoration: underline;
}

.swg-faces {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0 auto 48px;
  max-width: 960px;
  min-height: 72px;
}

.swg-faces__item,
.swg-faces__more {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: #e7eef4;
  color: var(--swg-color-1, #3f99d9);
  text-align: center;
  cursor: pointer;
  flex: 0 0 64px;
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px rgba(63, 153, 217, 0.18);
  margin-left: -22px;
}

.swg-faces__more {
  color: #888;
}

.swg-faces__item:first-child {
  margin-left: 0;
}

.swg-faces__item:hover,
.swg-faces__more:hover {
  z-index: 12;
}

.swg-faces__item.is-overflow {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  flex: none;
}

.swg-faces__more {
  font-family: Ubuntu, Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  /* Match face-item placeholder chrome (beat UA/button defaults). */
  background: #e7eef4 !important;
  background-color: #e7eef4 !important;
  color: #888 !important;
  -webkit-appearance: none;
  appearance: none;
}

.swg-faces__more:hover,
.swg-faces__more:focus {
  background: #d7e6f3 !important;
  background-color: #d7e6f3 !important;
  color: #888 !important;
}

.swg-faces__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.swg-reviews-feed {
  display: block;
  width: 100%;
  margin: 0 0 8px;
  min-height: 0;
}

/* Reserve height only after TrustIndex has painted (avoids empty gap above disclaimer). */
.swg-reviews-feed:has(.ti-widget-container) {
  min-height: 220px;
}

.swg-reviews-feed .ti-widget,
.swg-reviews-feed iframe {
  max-width: 100%;
}

/* C · live Google reviews — match specs/SWG-Homepage-Testimonial-Mockup.pdf */
.swg-reviews-feed .ti-widget.ti-goog {
  font-family: "Quattrocento Sans", sans-serif;
  margin: 0 !important;
  padding: 0 !important;
}

.swg-reviews-feed .ti-widget.ti-goog .ti-widget-container,
.swg-reviews-feed .ti-widget.ti-goog .ti-widget-container * {
  font-family: inherit !important;
}

.swg-reviews-feed .ti-widget.ti-goog .ti-widget-container {
  margin: 0 0 0 !important;
  padding-bottom: 0 !important;
  color: #42474c;
}

.swg-reviews-feed .ti-widget.ti-goog .ti-reviews-container {
  position: relative;
  padding: 0 52px;
  /* Keep visible so side arrows in the padding gutter stay clickable */
  overflow: visible;
}

.swg-reviews-feed .ti-widget.ti-goog .ti-reviews-container-wrapper {
  margin: 0 !important;
  padding-top: 15px;
  align-items: stretch;
  /* Clip off-screen slides only — not the arrow controls */
  overflow: hidden !important;
}

.swg-reviews-feed .ti-widget.ti-goog .ti-review-item {
  text-align: left;
}

/* Desktop: keep three review cards visible (mockup section C). */
@media (min-width: 992px) {
  .swg-reviews-feed
    .ti-widget.ti-goog
    .ti-widget-container.ti-col-3
    .ti-review-item,
  .swg-reviews-feed
    .ti-widget.ti-goog
    .ti-reviews-container-wrapper
    > .ti-review-item {
    width: 33.333% !important;
    max-width: 33.333% !important;
    flex: 0 0 33.333% !important;
  }
}

.swg-reviews-feed .ti-widget.ti-goog .ti-review-item > .ti-inner {
  border: 1px solid #e6e6e6 !important;
  border-color: #e6e6e6 !important;
  border-radius: 10px !important;
  padding: 18px 16px 16px !important;
  min-height: 200px;
  box-shadow: 0 2px 8px rgba(11, 55, 68, 0.06);
  text-align: left;
  background: #fff !important;
  overflow: hidden;
}

.swg-reviews-feed .ti-widget.ti-goog .ti-platform-icon,
.swg-reviews-feed .ti-widget.ti-goog .ti-verified-review,
.swg-reviews-feed .ti-widget.ti-goog .ti-footer,
.swg-reviews-feed .ti-widget.ti-goog .ti-header,
.swg-reviews-feed .ti-widget.ti-goog .ti-site-data,
.swg-reviews-feed .ti-widget.ti-goog .ti-controls-line {
  display: none !important;
}

.swg-reviews-feed .ti-widget.ti-goog .ti-review-header {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px;
  margin: 0 0 10px;
  text-align: left !important;
}

.swg-reviews-feed .ti-widget.ti-goog .ti-review-header .ti-profile-img {
  display: block !important;
  position: static !important;
  align-self: center !important;
  flex: 0 0 40px;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  max-width: 40px !important;
  max-height: 40px !important;
  margin: 0 10px 0 0 !important;
  border-radius: 50% !important;
  overflow: hidden !important;
}

/* Beat TrustIndex .ti-review-header .ti-profile-img img { 64px / center top } */
.swg-reviews-feed .ti-widget.ti-goog .ti-review-header .ti-profile-img img {
  width: 40px !important;
  height: 40px !important;
  max-width: 40px !important;
  max-height: 40px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
}

.swg-reviews-feed .ti-widget.ti-goog .ti-profile-details {
  display: block;
  text-align: left !important;
  flex: 1;
  min-width: 0;
}

.swg-reviews-feed .ti-widget.ti-goog .ti-widget-container .ti-name {
  font-family: Ubuntu, sans-serif !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  color: var(--swg-color-dark, #0b3744) !important;
  padding: 0 !important;
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.swg-reviews-feed .ti-widget.ti-goog .ti-widget-container .ti-date {
  color: #929292 !important;
  font-size: 13px !important;
  margin: 0;
}

.swg-reviews-feed
  .ti-widget.ti-goog
  .ti-reviews-container-wrapper
  .ti-inner
  > .ti-stars {
  margin: 0 0 10px !important;
  text-align: left !important;
  justify-content: flex-start !important;
  display: flex !important;
}

.swg-reviews-feed .ti-widget.ti-goog.ti-content-align-center .ti-review-content,
.swg-reviews-feed .ti-widget.ti-goog .ti-review-content {
  text-align: left !important;
  color: #42474c;
  font-size: 14px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

.swg-reviews-feed .ti-widget.ti-goog .ti-read-more {
  display: none !important;
}

.swg-reviews-feed .ti-widget.ti-goog .ti-controls {
  /* Match TrustIndex slider chrome: full-width zero-height rail, abspos arrows */
  display: block !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  top: 50% !important;
  bottom: auto !important;
  width: 100% !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  transform: none;
  z-index: 5;
  pointer-events: none;
  /* Prevent TI default layout from leaving a blank band under the cards */
  float: none !important;
  clear: none !important;
}

.swg-reviews-feed .ti-widget.ti-goog .ti-controls .ti-prev,
.swg-reviews-feed .ti-widget.ti-goog .ti-controls .ti-next {
  position: absolute !important;
  top: 0 !important;
  margin-top: -18px !important;
  width: 36px !important;
  height: 36px !important;
  background: #fff !important;
  border: 1px solid #d0d5d9 !important;
  border-radius: 50% !important;
  box-shadow: 0 1px 3px rgba(11, 55, 68, 0.08) !important;
  opacity: 1 !important;
  display: block !important;
  pointer-events: auto !important;
  cursor: pointer !important;
  z-index: 6;
  outline: none;
}

.swg-reviews-feed .ti-widget.ti-goog .ti-controls .ti-prev {
  left: 0 !important;
  right: auto !important;
}

.swg-reviews-feed .ti-widget.ti-goog .ti-controls .ti-next {
  right: 0 !important;
  left: auto !important;
}

.swg-reviews-feed .ti-widget.ti-goog .ti-controls .ti-prev:before,
.swg-reviews-feed .ti-widget.ti-goog .ti-controls .ti-next:before {
  border-color: #9aa3aa !important;
  width: 8px !important;
  height: 8px !important;
  border-bottom-width: 2px !important;
  border-left-width: 2px !important;
  margin: 0;
}

.swg-reviews-feed .ti-widget.ti-goog .ti-controls .ti-prev:hover,
.swg-reviews-feed .ti-widget.ti-goog .ti-controls .ti-next:hover,
.swg-reviews-feed .ti-widget.ti-goog .ti-controls .ti-prev:focus,
.swg-reviews-feed .ti-widget.ti-goog .ti-controls .ti-next:focus {
  background: #fff !important;
  border-color: var(--swg-color-1, #3f99d9) !important;
}

.swg-reviews-feed .ti-widget.ti-goog .ti-controls .ti-prev:focus-visible,
.swg-reviews-feed .ti-widget.ti-goog .ti-controls .ti-next:focus-visible {
  outline: 3px solid var(--swg-color-1, #3f99d9) !important;
  outline-offset: 2px;
}

.swg-reviews-feed .ti-widget.ti-goog .ti-controls .ti-prev:hover:before,
.swg-reviews-feed .ti-widget.ti-goog .ti-controls .ti-next:hover:before,
.swg-reviews-feed .ti-widget.ti-goog .ti-controls .ti-prev:focus:before,
.swg-reviews-feed .ti-widget.ti-goog .ti-controls .ti-next:focus:before {
  border-color: var(--swg-color-1, #3f99d9) !important;
}

.swg-reviews-feed__track {
  display: flex;
  flex: 1;
  gap: 16px;
  min-width: 0;
}

.swg-reviews-feed__card {
  flex: 1;
  background: #fff;
  border: 1px solid #e6e6e6;
  padding: 20px 18px;
  text-align: left;
}

.swg-reviews-feed__name {
  font-weight: 700;
  margin: 0;
  color: var(--swg-color-dark, #0b3744);
}

.swg-reviews-feed__when {
  color: #929292;
  font-size: 13px;
  margin: 0 0 8px;
}

.swg-reviews-feed__stars {
  font-size: 16px;
  margin-bottom: 8px;
}

.swg-reviews-feed__card blockquote {
  margin: 0;
  color: #42474c;
  font-size: 14px;
  line-height: 1.5;
}

.swg-reviews-feed__card blockquote p {
  margin: 0;
}

.swg-reviews-feed__arrow {
  flex: 0 0 36px;
  border: 0;
  background: transparent;
  color: var(--swg-color-1, #3f99d9);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.swg-reviews-disclaimer {
  text-align: center;
  font-size: 13px;
  color: #8a9096;
  margin: 4px auto 0;
  padding: 0;
  max-width: 640px;
  border: 0;
  font-style: italic;
  line-height: 1.4;
}

@media (max-width: 991px) {
  .swg-reviews-featured__item {
    flex: 1 1 calc(50% - 12px);
    width: calc(50% - 12px);
    max-width: calc(50% - 12px);
  }

  .swg-reviews-volume__count {
    font-size: 32px;
  }

  /* Contain horizontal face strip so it scrolls inside the band, not the page. */
  #section-extraordinary-results .container,
  #section-extraordinary-results .feature-wrap,
  .swg-reviews-faces,
  .swg-faces {
    min-width: 0;
    max-width: 100%;
  }

  .swg-faces {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: 100%;
    padding: 4px 8px;
    box-sizing: border-box;
  }

  .swg-faces__item,
  .swg-faces__more {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    margin-left: -18px;
  }

  .swg-faces__item:first-child {
    margin-left: 0;
  }

  .swg-reviews-feed__track {
    flex: 1 1 100%;
  }

  .swg-reviews-feed .ti-widget.ti-goog .ti-reviews-container {
    padding: 0 36px;
  }

  .swg-reviews-feed .ti-widget.ti-goog .ti-review-item > .ti-inner {
    min-height: 0;
  }
}

@media (max-width: 767px) {
  .swg-reviews-featured__item {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
  }

  .swg-reviews-feed__track {
    flex-direction: column;
  }

  /* Footer NAP — allow email wrap on narrow phones (Landy used nowrap). */
  .footer-wrapper .address__contact {
    white-space: normal;
    word-break: break-word;
  }

  .splash-container-type-chiro .main-txt h1,
  .splash-container-type-chiro .main-txt > h2,
  .splash-container-type-chiro .main-txt > .swg-hero-headline,
  .splash-container-type-chiro .main-txt > .swg-hero-lede {
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: anywhere;
    word-wrap: break-word;
  }

  .right-side-blurb,
  .left-side-blurb,
  .section-builder h2.title,
  .section-builder h2.title .blue {
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: anywhere;
    word-wrap: break-word;
  }

  /* Numbered Landy titles: 115px left pad + long word overflows ~320px. */
  .section-builder h2.title,
  .question-section-wrap .title,
  .doctor-section-wrap .title {
    padding-left: 72px;
    font-size: 24px;
    line-height: 28px;
  }

  .section-builder .blueNumber,
  .question-section-wrap .blueNumber,
  .doctor-section-wrap .blueNumber {
    font-size: 48px;
    margin-top: -16px;
  }

  .header .menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 10px;
  }

  .header .menu .call-now,
  .header .menu .button {
    float: none;
    margin: 0;
  }

  .header.stick {
    height: auto !important;
    min-height: 55px;
    padding-bottom: 8px;
  }
}

@media (min-width: 360px) and (max-width: 767px) {
  .section-builder h2.title,
  .question-section-wrap .title,
  .doctor-section-wrap .title {
    padding-left: 115px;
    font-size: 28px;
    line-height: 32px;
  }

  .section-builder .blueNumber,
  .question-section-wrap .blueNumber,
  .doctor-section-wrap .blueNumber {
    font-size: 60px;
    margin-top: -20px;
  }
}

/* Reveal Landy inview images immediately so ACF previews and the static snapshot are not blank. */
.Zoomi,
.FadeLeft2,
.FadeRight2,
.FadeIno,
.FadeIno2,
.FadeIno3,
.FadeIno4 {
  opacity: 1;
}
.full-width-page .acf-full-block,
.block-preview.acf-full-block {
  max-width: none;
  width: 100%;
}

/* Valid wrapper for Landy about copy (live PHP nested <p class="normal"><p>) */
div.normal {
  color: #8d959d;
  font-size: 16px;
  line-height: 24px;
  padding: 27px 0 0;
  font-weight: 300;
  /* .blueNumber is float:left and taller than the h2; clear so body copy
	   always starts on its own full-width line under the title, not beside 01/. */
  clear: both;
}

.feature-txt > h2.title + p.normal,
.feature-txt > h2.title + .normal > p:first-child {
  clear: both;
}

/* Sidebar categories — Landy colors (beat .sidebar .categories li a gray). */
.sidebar .categories .cat-life-by-design a {
  color: #fcb533;
}
.sidebar .categories .cat-life-by-design a:hover {
  background: #fcb533;
  color: #fff;
}
.sidebar .categories .cat-eat-by-design a {
  color: #3bb54a;
}
.sidebar .categories .cat-eat-by-design a:hover {
  background: #3bb54a;
  color: #fff;
}
.sidebar .categories .cat-move-by-design a {
  color: #d92133;
}
.sidebar .categories .cat-move-by-design a:hover {
  background: #d92133;
  color: #fff;
}
.sidebar .categories .cat-think-by-design a {
  color: #943895;
}
.sidebar .categories .cat-think-by-design a:hover {
  background: #943895;
  color: #fff;
}
.sidebar .categories .cat-power-by-design a {
  color: #23a9e1;
}
.sidebar .categories .cat-power-by-design a:hover {
  background: #23a9e1;
  color: #fff;
}

.sidebar .widget_question_box img,
.sidebar .widget_free_download img {
  display: block;
  margin: 10px auto 0;
  width: 100%;
  max-width: 220px;
  height: auto;
}

.sidebar .widget_free_download img {
  max-width: 245px;
}

/* Theme Options Media images — kill Landy CSS sprite hardcodes. */
.widget_question_box .img-member,
.widget_question_box .img-question,
.widget_free_download .book {
  background: none !important;
  width: auto;
  height: auto;
  min-height: 0;
}

/* Match live Recent Posts Widget With Thumbnails markup/classes. */
.sidebar .recent-posts,
.sidebar .recent-posts-widget-with-thumbnails {
  text-align: left;
  background: #fff;
  border: 1px solid #dfdfdf;
  padding: 20px 0 0;
}

.sidebar .recent-posts h3,
.sidebar .recent-posts-widget-with-thumbnails h3 {
  color: #3f99d9;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0;
  text-align: center;
}

.sidebar .recent-posts h3:before,
.sidebar .recent-posts-widget-with-thumbnails h3:before,
.sidebar .categories h3:before {
  display: none;
}

.sidebar .recent-posts ul,
.sidebar .recent-posts-widget-with-thumbnails ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar .recent-posts li,
.sidebar .recent-posts-widget-with-thumbnails li {
  margin: 0 !important;
  padding: 0 !important;
}

.sidebar .recent-posts li a,
.sidebar .recent-posts-widget-with-thumbnails li a {
  display: block;
  overflow: hidden;
  padding: 10px 20px;
  min-height: 73px;
  border-top: 1px solid #dfdfdf;
  color: #929292;
}

.sidebar .recent-posts li a:hover,
.sidebar .recent-posts-widget-with-thumbnails li a:hover {
  background: #ececec;
  color: #929292;
}

.sidebar .recent-posts img,
.sidebar .recent-posts-widget-with-thumbnails img,
.sidebar .rpwwt-widget ul li img {
  display: inline;
  float: left;
  width: 64px !important;
  height: 48px !important;
  object-fit: cover;
  margin: 0 10px 0 0;
}

.sidebar .recent-posts .recent-posts-title,
.sidebar .recent-posts-widget-with-thumbnails .rpwwt-post-title,
.sidebar .recent-posts-widget-with-thumbnails .recent-posts-title {
  display: block;
  overflow: hidden;
}

.sidebar .categories {
  text-align: left;
  background: #fff;
  border: 1px solid #dfdfdf;
  padding: 20px 0 0;
}

.sidebar .categories h3 {
  color: #3f99d9;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0;
  text-align: center;
}

.sidebar .categories ul {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
}

.sidebar .categories li {
  margin: 0;
  padding: 0;
}

.sidebar .categories li a {
  display: block;
  padding: 10px 0;
  border-top: 1px solid #dfdfdf;
  color: #929292;
  font-size: 16px;
  font-weight: 600;
}

.sidebar .categories li a:hover {
  background: #ececec;
  color: #929292;
}

/* Semantic heading levels keep Landy post-title metrics */
.post-title h1,
.post-title h2 {
  font-size: 42px;
  line-height: 46px;
  font-weight: 300;
  color: #3e3e3e;
}

.post .post-title h2 a {
  color: #3e3e3e;
}

.post .post-title h2 a:hover {
  text-decoration: none;
}

span.continue_button.button {
  display: block;
}

a.read-more-link {
  display: inline-block;
  overflow: hidden;
  text-decoration: none;
}

.blog-post .post-body a.read-more-link,
.blog-post .post-body a.read-more-link:hover {
  color: inherit;
}

.blog-post.post.post-single .continue_button.button {
  background-color: #3f99d9;
  color: #fff;
  border: 1px solid #3f99d9;
}

.blog-post.post.post-single .continue_button.button:hover,
.blog-post.post.post-single a.read-more-link:hover .continue_button.button {
  background-color: #fff;
  color: #3f99d9;
  border: 1px solid #3f99d9;
}

.blog-list .blog-post .read-more-link {
  float: left;
  overflow: visible;
  margin-right: 12px;
}

.addtoany_share_save_container {
  padding-top: 10px !important;
}

.blog-list .blog-post .addtoany_share_save_container {
  clear: none;
  margin: 0;
  padding-top: 10px !important;
  overflow: hidden;
}

.blog-list .blog-post .post-body::after {
  content: "";
  display: table;
  clear: both;
}

.post-body-category {
  margin-bottom: 10px;
}

.blog-post-more {
  margin-top: 10px;
}

@media only screen and (max-width: 767px) {
  .blog-list .blog-post .read-more-link {
    float: none;
    margin-right: 0;
    margin-bottom: 12px;
  }

  .blog-list .blog-post .addtoany_share_save_container {
    clear: both;
    overflow: visible;
  }
}

.seminars {
  text-align: center;
}

.seminars a {
  display: inline-block;
  vertical-align: top;
}

/*
 * Footer map — far right of the full-bleed .footer (not the centered container).
 * .map_anchor is the click hotspot over that right edge.
 */
.footer {
  position: relative;
  background-color: #3f99d9;
  background-image: url("../img/footer_bg.png");
  background-repeat: no-repeat;
  background-position: right top;
  background-size: contain;
}

.footer .container {
  position: static;
  background: transparent !important;
}

.footer .map_anchor {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  height: auto;
  width: 40%;
  max-width: 731px;
  background: none;
  z-index: 0;
}

@media (max-width: 1200px) {
  /* Match Landy: no map graphic below desktop. */
  .footer {
    background-image: none;
  }
}

/*
 * Footer chrome — HTML5 .footer-wrapper (flex) matching live Landy table metrics.
 * Default logo is CSS background (white mark on blue). Optional Theme Options
 * footer_logo replaces it with an <img>; do not fall back to the header logo.
 */
.footer-wrapper {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  box-sizing: border-box;
  width: max-content;
  max-width: calc(
    100% - 90px - 42%
  ); /* leave right ~40% clear for map (Landy hotspot) */
  margin-top: 20px;
  margin-left: 90px;
  margin-bottom: 20px;
  border: 0;
  position: relative;
  z-index: 1;
}

.footer-wrapper .logo,
.footer-wrapper .address,
.footer-wrapper .explore {
  display: block;
  box-sizing: border-box;
  float: none;
}

.footer-wrapper .logo {
  flex: 0 0 auto;
  background: url("../img/footer-logo2.webp") no-repeat;
  background-size: contain;
  width: 91px;
  height: 55px;
  padding-right: 100px;
  margin: 5px 20px 0 0;
  vertical-align: top;
  line-height: 0;
}

.footer-wrapper .logo:has(img),
.footer-wrapper .logo:has(a) {
  background: none;
  width: auto;
  height: auto;
  min-height: 55px;
  padding-right: 20px;
}

.footer-wrapper .logo a {
  display: inline-block;
  line-height: 0;
}

.footer-wrapper .logo img,
.footer-wrapper .logo .swg-logo--footer {
  display: block;
  width: auto;
  height: 55px;
  max-height: 55px;
  max-width: 91px;
  object-fit: contain;
}

.footer-wrapper .address,
.footer-wrapper .explore {
  flex: 0 1 auto;
  color: #fff;
  font-family: "Quattrocento Sans", Helvetica, Arial, sans-serif;
  font-size: 12px;
  font-weight: 300;
  line-height: 18px;
  letter-spacing: normal;
  word-spacing: normal;
  margin: 0;
  padding: 10px 20px;
  vertical-align: top;
}

/* Equal-height dividers: stretch columns share one continuous border height. */
.footer-wrapper .address {
  border-left: 1px solid #fff;
  border-right: 1px solid #fff;
}

.footer-wrapper .explore {
  border-left: 0;
  padding-left: 20px;
  padding-right: 10px;
}

.footer-wrapper .address p,
.footer-wrapper .address address,
.footer-wrapper .address__contact {
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  font-style: normal;
  line-height: inherit;
  letter-spacing: inherit;
  margin: 0;
  padding: 0;
}

.footer-wrapper .address__contact {
  margin-top: 0;
}

.footer-wrapper .address a,
.footer-wrapper .explore a {
  color: #fff;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: normal;
  text-decoration: none;
}

.footer-wrapper .address .label,
.footer-wrapper .address .black {
  color: #fff;
  font-weight: 300;
  margin-right: 4px;
}

.footer-wrapper .explore__title {
  margin: 0 0 4px;
  padding: 0;
  color: #fff;
  font-family: Ubuntu, Helvetica, Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.footer-wrapper .explore__list {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
}

.footer-wrapper .explore__list li {
  margin: 0;
  padding: 0;
  line-height: 16px;
}

.footer-wrapper .explore__list a:hover,
.footer-wrapper .explore__list a:focus,
.footer-wrapper .address a:hover,
.footer-wrapper .address a:focus {
  text-decoration: underline;
  color: #fff;
}

.footer-wrapper .explore__book {
  display: inline-block;
  margin: 0;
  padding: 6px 14px;
  border: 0;
  border-radius: 4px;
  background: #fff;
  color: #3f99d9 !important;
  font-family: Ubuntu, Helvetica, Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none !important;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.footer-wrapper .explore__book:hover,
.footer-wrapper .explore__book:focus {
  background: #f0f7fc;
  color: #245f89 !important;
  text-decoration: none !important;
}

@media (max-width: 1200px) {
  .footer-wrapper {
    margin-left: 40px;
    max-width: calc(100% - 40px);
    width: auto;
  }
}

@media (max-width: 767px) {
  .footer-wrapper {
    flex-wrap: wrap;
    margin-left: 0;
    max-width: 100%;
  }

  .footer-wrapper .logo {
    display: none;
  }

  .footer-wrapper .address,
  .footer-wrapper .explore {
    flex: 1 1 100%;
    border-left: 0;
    border-right: 0;
    padding: 0 10px 16px 30px;
  }
}

.doctor-block h4,
.doctor-block h4.doctor-name,
.doctor-block h3.doctor-name,
.doctor-section-wrap .doctor-loop-wrapper a h4,
.doctor-section-wrap .doctor-loop-wrapper a h4.doctor-name,
.doctor-section-wrap .doctor-loop-wrapper a h3.doctor-name {
  font-family: Ubuntu, Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: normal;
  word-spacing: normal;
  padding-top: 20px;
  margin: 0 0 10px;
  color: #929292;
  text-transform: none;
}

/* Who Are We — blue duotone via grayscale + mix-blend multiply (not a flat overlay) */
.doctor-block .doctor-photo {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background-color: transparent;
}

.doctor-block .doctor-photo img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  transition: filter 0.35s ease;
}

.doctor-loop-wrapper a:hover .doctor-photo,
.doctor-block:hover .doctor-photo {
  background-color: #3f99d9;
}

.doctor-loop-wrapper a:hover .doctor-photo img,
.doctor-block:hover .doctor-photo img {
  filter: grayscale(1) contrast(1.15);
  mix-blend-mode: multiply;
}

.doctor-loop-wrapper a:hover h4,
.doctor-loop-wrapper a:hover h4.doctor-name,
.doctor-loop-wrapper a:hover h3.doctor-name,
.doctor-section-wrap .doctor-loop-wrapper a:hover h4.doctor-name,
.doctor-section-wrap .doctor-loop-wrapper a:hover h3.doctor-name {
  color: #3f99d9;
}

@media (max-width: 991px) {
  .doctor-block h4,
  .doctor-block h4.doctor-name,
  .doctor-block h3.doctor-name {
    width: 90%;
    margin-bottom: 40px;
  }
}

/* Inner pages / embeds */
.page-body iframe,
.pe-wp-default iframe,
.swg-reviewwave-inline iframe {
  max-width: 100%;
}

.page-body .wp-block-embed,
.page-body iframe[src*="vimeo"],
.page-body iframe[src*="youtube"] {
  width: 100%;
}

.swg-reviewwave-inline {
  margin: 24px 0;
  min-height: 120px;
}

.search .row-header-title h1 {
  font-size: 32px;
  margin: 0 0 24px;
}

.home .wp-block-acf-home-hero,
.home .wp-block-acf-numbered-content,
.home .wp-block-acf-patient-promise,
.home .wp-block-acf-testimonials,
.home .wp-block-acf-faq,
.home .wp-block-acf-doctors,
.home .wp-block-acf-cta,
.home .wp-block-acf-members-button {
  max-width: none;
  margin: 0;
}

/*
 * FAQ cards — Landy responsive.css sets .featuri-respo { height:190px } (992–1200)
 * and custom.css sets .question-block { min-height:190px } below 1200px, so short
 * questions look like oversized empty buttons while resizing / on tablets.
 */
.question-section-wrap .featuri-respo {
  height: auto !important;
}

.question-section-wrap .question-block {
  min-height: 0 !important;
  height: auto;
  box-sizing: border-box;
}

.question-section-wrap .question-block h3 {
  width: auto !important;
  max-width: calc(100% - 80px);
}

@media (max-width: 767px) {
  .question-section-wrap .question-block h3 {
    max-width: none;
    width: 100% !important;
    float: none;
    display: block;
    padding-left: 0;
  }
}

/* Patient resources tab — Landy #section-button (light text, dark HERE link) */
#section-button.section-builder {
  color: #ebebeb;
  background: #fff;
  margin: 0;
  padding: 0;
}

#section-button .members_button_styles,
#section-button .members_button_styles p {
  color: #ebebeb;
  font-size: 12px;
  font-weight: 300;
  line-height: 1.4;
  margin: 0;
  text-align: center;
}

#section-button .members_button_styles {
  border-radius: 7px 7px 0 0;
  width: 320px;
  min-width: 320px;
  max-width: 100%;
  box-sizing: border-box;
  padding: 15px 20px;
  white-space: nowrap;
}

/* Fixed 320px + container gutters overflow iPhone SE / 320px viewports. */
@media (max-width: 359px) {
  #section-button .members_button_styles,
  .members_button_styles {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    white-space: normal !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}

#section-button .members_button_styles a {
  color: #053644;
}

#section-button .members_button_styles a:hover {
  color: #032530;
}

.full-width-page .acf-full-block {
  margin-block-start: 0;
  margin-block-end: 0;
}

/* AJAX blog loading */
.swg-blog-ajax.is-loading {
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.blog-post .blog_doctor_wrapper img.alignleft {
  float: left;
  width: 150px;
  max-width: 150px;
  height: auto;
  margin: 0 20px 10px 0;
  padding-bottom: 0;
}

.blog-single
  .blog-post.post.post-single
  .post-body
  > .addtoany_share_save_container {
  clear: both;
}

/* Blog / single — Landy .post-title h4 metrics on semantic headings. */
.post-title h1,
.post-title h2,
.post-title h2 a {
  font-size: 42px;
  line-height: 46px;
  font-weight: 300;
  color: #3e3e3e;
  margin: 0 0 5px;
  text-align: left;
}

.post-title h2 a {
  color: #3e3e3e;
}

.post-title h2 a:hover {
  text-decoration: none;
  color: #3f99d9;
}

.blog-list .pager-container {
  text-align: center;
  margin: 20px 0 60px;
}

.blog-list .pagination {
  display: inline-block;
  padding: 0;
  margin: 0;
  list-style: none;
}

.blog-list .pagination > li {
  display: inline-block;
}

.blog-list .pagination > li > a {
  display: inline-block;
  min-width: 36px;
  height: 36px;
  line-height: 34px;
  margin: 0 2px;
  padding: 0 10px;
  border: 1px solid #ddd;
  color: #3f99d9;
  text-align: center;
  font-size: 14px;
  text-decoration: none;
  background: #fff;
}

.blog-list .pagination > li.active > a,
.blog-list .pagination > li > a:hover {
  background: #3f99d9;
  border-color: #3f99d9;
  color: #fff;
}

.blog-list .navigation.pagination {
  text-align: center;
  margin: 20px 0 60px;
}

.blog-list .nav-links {
  display: inline-block;
}

.blog-list .page-numbers {
  display: inline-block;
  min-width: 36px;
  height: 36px;
  line-height: 34px;
  margin: 0 4px;
  padding: 0 10px;
  border: 1px solid #ddd;
  color: #3f99d9;
  text-align: center;
  font-size: 14px;
  text-decoration: none;
}

.blog-list .page-numbers.current,
.blog-list .page-numbers:hover {
  background: #3f99d9;
  border-color: #3f99d9;
  color: #fff;
}

#content-region {
  padding-top: 30px;
  padding-bottom: 40px;
}

/* Single-post prev/next — match live Landy pager buttons (theme.min + custom.css). */
.post ul.pager {
  text-align: center;
  margin-top: 30px;
  clear: both;
  overflow: hidden;
  padding: 0;
  list-style: none;
}

.post .pager .previous,
.post .pager .next {
  display: inline-block;
  float: none;
}

.post .pager .previous {
  margin-right: 10px;
}

.post .pager .next {
  margin-left: 10px;
}

.post .pager li a {
  display: inline-block;
  font-weight: 700;
  font-size: 12px;
  line-height: 15px;
  text-transform: uppercase;
  color: #929292;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 8px 12px;
}

.post .pager li a:hover {
  color: #656565;
  background-color: #fff;
  border-color: #656565;
  text-decoration: none;
}

.post .pager .disabled a,
.post .pager .disabled a:hover {
  color: #ddd;
  cursor: default;
  text-decoration: none;
  background-color: transparent;
}

/* Fancybox 5 inline dialog width */
.fancybox__content #form_popup,
.fancybox__content #form_question_popup,
.fancybox__content .doctor_box_inner,
.fancybox__content .question_box_inner {
  display: block !important;
}

/*
 * Fancybox 5 skin ≈ live Landy Fancybox 2 (.fancybox-skin).
 * Vendor custom.css still targets .fancybox-skin; map the look onto FB5.
 *
 * fancybox.css is injected on open (after theme CSS) and resets --fancybox-bg
 * to ~0.98 — set the backdrop directly so 0.6 always wins.
 */
.fancybox__container {
  --fancybox-bg: rgba(0, 0, 0, 0.6);
  --fancybox-opacity: 1;
}

.fancybox__container .fancybox__backdrop {
  background: rgba(0, 0, 0, 0.6) !important;
  opacity: 1 !important;
}

.fancybox__content:has(.question_box_inner),
.fancybox__content:has(.doctor_box_inner),
.fancybox__content:has(#form_popup),
.fancybox__content:has(#form_question_popup),
.fancybox__content.question_box_inner,
.fancybox__content.doctor_box_inner {
  background: #f9f9f9;
  padding: 15px;
  border-radius: 0;
  border-top: 9px solid #3f99d9;
  color: #444;
  box-shadow: none;
}

.fancybox__content .question_box_inner,
.fancybox__content .doctor_box_inner {
  color: #444;
}

.question-box-popup,
.question-box-popup td,
.question-box-popup p {
  color: #929292;
  font-family: "Quattrocento Sans", Helvetica, Arial, sans-serif;
  font-weight: 300;
  line-height: 24px;
}

.question-box-popup .q,
.question-box-popup .a {
  display: block;
  font-size: 56px;
  font-weight: 300;
  line-height: 1;
  font-family: "Quattrocento Sans", Helvetica, Arial, sans-serif;
}

.question-box-popup .q {
  color: #3f99d9;
}

.question-box-popup .a {
  color: #929292;
}

.question-box-popup strong {
  color: #444;
  font-weight: 700;
}

/* Sit above the WP admin bar (z-index 99999) so the top Toolbar is visible. */
.fancybox__container {
  --fancybox-zIndex: 100100;
}

.fancybox__container .fancybox__toolbar,
.fancybox__container.is-idle .fancybox__toolbar {
  animation: none;
  opacity: 1;
  pointer-events: auto;
}

html.with-fancybox {
  scroll-behavior: auto !important;
}

/* Leadpages click popup — subscribe banner in post bodies */
.post-body img[data-leadbox-popup],
.post-body img[alt="Click here to subscribe"] {
  cursor: pointer;
}

/*
 * 404: no blog/search header-place margin, so sticky header covers the title.
 * Match Landy inner offsets (blog header-place margin / #single-page padding).
 */
.error404 .swg-404 {
  padding-top: 60px;
  padding-bottom: 40px;
}

@media (max-width: 991px) {
  .error404 .swg-404 {
    padding-top: 90px;
  }
}

@media (max-width: 767px) {
  .error404 .swg-404 {
    padding-top: 110px;
  }

  .blog-post .blog_doctor_wrapper img.alignleft {
    width: 150px;
    max-width: 40%;
    height: auto;
  }
}

.container {
  width: 100% !important;
  max-width: 1170px !important;
}

/*
 * Landy-style faces gallery (inline grid in Fancybox, not image slider).
 * Fancybox 5 adds .fancybox__content to the #inline target itself — not a parent.
 * Scroll the slide (not the content) so the close button can sit above the box
 * without covering images or being clipped by overflow.
 */
.fancybox__slide:has(.inline-image),
.fancybox__slide:has([id^="swg-faces-gallery"]) {
  overflow: auto !important;
  align-items: flex-start;
  padding-top: 48px;
  box-sizing: border-box;
}

.fancybox__content.inline-image,
.inline-image.fancybox__content,
[id^="swg-faces-gallery"].fancybox__content {
  width: 620px;
  max-width: calc(100vw - 32px);
  max-height: none;
  overflow: visible;
  padding: 15px;
  border-top: 9px solid #3f99d9;
  box-sizing: border-box;
  /* Beat Fancybox flex + [hidden] UA display so the 4-col grid can layout. */
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  align-content: start;
}

.fancybox__content.inline-image .inline-image-wrapper,
.inline-image.fancybox__content .inline-image-wrapper,
[id^="swg-faces-gallery"].fancybox__content .inline-image-wrapper {
  float: none;
  width: auto;
  max-width: none;
  padding: 0;
  margin: 0;
}

.fancybox__content.inline-image .inline-image-wrapper img,
.inline-image.fancybox__content .inline-image-wrapper img,
[id^="swg-faces-gallery"].fancybox__content .inline-image-wrapper img {
  display: block;
  width: 100%;
  height: auto;
}

/* Keep Fancybox default placement above the gallery (not over the thumbnails). */
.fancybox__content.inline-image > .f-button.is-close-btn,
.inline-image.fancybox__content > .f-button.is-close-btn,
[id^="swg-faces-gallery"].fancybox__content > .f-button.is-close-btn {
  top: -40px;
  right: 0;
  z-index: 50;
  visibility: visible !important;
  opacity: 1;
  --f-button-width: 34px;
  --f-button-height: 34px;
  --f-button-svg-width: 22px;
  --f-button-svg-height: 22px;
  --f-button-color: #fff;
  --f-button-hover-color: #fff;
  --f-button-bg: transparent;
  --f-button-hover-bg: transparent;
  --f-button-active-bg: transparent;
}

@media (max-width: 767px) {
  .fancybox__content.inline-image,
  .inline-image.fancybox__content,
  [id^="swg-faces-gallery"].fancybox__content {
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
  }
}

.rw-sched-form .rw-privacy-agree {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

/* Desktop left offset is margin-left: 90px (Landy) — do not also pad. */
