main#main-content {
  display: block;
}

img {
  max-width: 100%;
  height: auto;
}

#hero {
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

#hero h1 {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.18;
  overflow-wrap: break-word;
  text-wrap: balance;
}

#hero p {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* Contact page hero: dark overlay behind heading for readable contrast over photo background */
.page-template-template-contact-php #hero {
  position: relative;
}

.page-template-template-contact-php #hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.page-template-template-contact-php #hero #border-top,
.page-template-template-contact-php #hero #border-bottom,
.page-template-template-contact-php #hero h1 {
  position: relative;
  z-index: 2;
}

.local-seo-content,
.gallery-intro,
.seo-service-content,
.html-sitemap {
  max-width: 68em;
  margin: 0 auto;
  padding: 2.5em 2em;
}

.local-seo-content h2,
.seo-service-content h2,
.gallery-intro h2,
.html-sitemap h2 {
  color: #ba1111;
  line-height: 1.25;
  text-align: center;
}

.local-seo-content p,
.seo-service-content p,
.gallery-intro p,
.html-sitemap p {
  color: #515151;
  font-size: 1.05em;
  line-height: 1.7;
}

.service-link-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75em;
  margin: 1.5em 0 0;
  padding: 0;
  list-style: none;
}

.service-link-list a {
  display: block;
  min-height: 3.25em;
  padding: 0.85em 1em;
  color: #fff;
  background: #ba1111;
  text-align: center;
  text-decoration: none;
}

.service-link-list a:hover,
.service-link-list a:focus {
  background: #8fd1d8;
  color: #fff;
}

.faq-list {
  margin-top: 1.5em;
}

.faq-list h3 {
  color: #ba1111;
  text-align: center;
}

.faq-list details {
  margin-bottom: 0.75em;
  border: 1px solid #ddd;
  background: #fff;
}

.faq-list summary {
  cursor: pointer;
  padding: 0.9em 1em;
  color: #515151;
  font-weight: 600;
}

.faq-list details p {
  margin: 0;
  padding: 0 1em 1em;
}

#gallery #container {
  min-height: 20em;
}

#gallery .frame {
  overflow: hidden;
  background: #f7f7f7;
}

#gallery .frame img {
  display: block;
  width: 100%;
  height: auto;
}

#body-parts,
#man,
#woman {
  background: #fff;
}

#body-parts img[src*="/img/body/"],
#man img,
#woman img {
  background: #fff;
}

#quick-info {
  clear: both;
  float: left;
  width: 100%;
}

#quick-info::after,
#quick-info > ul::after {
  clear: both;
  content: "";
  display: table;
}

#quick-info li address.address {
  display: block;
  width: 100%;
  margin: 0;
  color: #777;
  font-size: 1.2em;
  font-style: normal;
  line-height: 1.25;
  text-align: center;
}

#quick-info li address.address strong {
  color: #777;
  font-weight: 600;
}

#quick-info li.middle {
  min-height: 17em;
}

.home .local-seo-content {
  clear: both;
  margin-top: 3em;
}

.profile-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  margin: 0 1em 1em 0;
  float: left;
  overflow: hidden;
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prevControl,
.nextControl {
  border: 0;
  background: transparent;
}

/* Before/after slider: show one image at a time inside #slideshow instead of
   stacking every image full-width (which also disconnects the prev/next
   arrows from the visible slide). JS (Cycle2 or the fallback in master.js)
   takes over from here once it runs. */
#slideshow .cycle-slideshow > img:not(:first-child) {
  display: none;
}

.contact-map-wrap iframe {
  display: block;
  width: 100%;
  min-height: 420px;
}

footer address,
footer a,
footer .footer-service-area {
  color: #fff;
}

footer address {
  margin-bottom: 1.5em;
  font-style: normal;
  line-height: 1.5;
  text-align: center;
}

.footer-service-area {
  max-width: 22em;
  margin: 1.5em auto 0;
  line-height: 1.5;
}

.nav-toggle {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: #ba1111;
}

.nav-toggle:before {
  content: "\f0c9";
  font-family: FontAwesome;
  font-size: 1.6em;
}

.nav-toggle.active:before {
  content: "\f00d";
}

.sitemap-jump-links,
ul.sitemap {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

/* ---------------------------------------------------------------------
   Progressive gallery loading
   Reuses the existing #loadmore appearance (#8fd1d8 pill) so the control
   looks native to the site rather than newly designed.
   --------------------------------------------------------------------- */
.rt-gallery-more {
  clear: both;
  width: 100%;
  padding: 2em 0 1em;
}
.rt-gallery-more__link {
  display: block;
  max-width: 20em;
  margin: 0 auto;
  background: #8fd1d8;
  text-align: center;
  padding: 1em 2em;
  text-decoration: none;
  color: #fff;
  font-weight: bold;
  border-radius: 0.5em;
  line-height: 1.2;
}
.rt-gallery-more__link:hover,
.rt-gallery-more__link:focus {
  background: #7bc3cb;
}
.rt-gallery-more__link:focus-visible {
  outline: 3px solid #ba1111;
  outline-offset: 2px;
}
.rt-gallery-more.is-loading .rt-gallery-more__link {
  opacity: 0.6;
  pointer-events: none;
}
.rt-gallery-prev {
  clear: both;
  width: 100%;
  text-align: center;
  padding: 0 0 2em;
}
.rt-gallery-prev a {
  color: #fff;
  text-decoration: underline;
}
/* Announced to screen readers, not shown visually. */
.rt-gallery-status {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
/* Reserve space while a lazy image decodes, so appended rows do not shift. */
#gallery .frame img {
  background: #f7f7f7;
}

/* WhatsApp button styles now live inline in inc/whatsapp.php so they cannot
   be broken by a stale stylesheet. Do not re-add them here. */
