/* Wood background image — boost visibility, parallax on desktop, no repeat */
.opacity-30.bg-cover {
    opacity: 60% !important;
    background-attachment: fixed !important;
    background-repeat: no-repeat !important;
}

@media (max-width: 767px) {
    .opacity-30.bg-cover {
        background-attachment: scroll !important;
    }
}

/* Add the same background to the "Why Our Patients Love Us" testimonials block */
#block-homepagetestimonialsslider {
    position: relative;
    overflow: hidden;
}
#block-homepagetestimonialsslider::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: url('/sites/default/files/theme/MathesonBackground-2-2.jpg');
    background-size: cover;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-attachment: fixed;
    opacity: 0.6;
    z-index: 0;
    pointer-events: none;
}
#block-homepagetestimonialsslider > * {
    position: relative;
    z-index: 1;
}
@media (max-width: 767px) {
    #block-homepagetestimonialsslider::before {
        background-attachment: scroll;
    }
}

/* Implant Survey block — match GVA reference styling.
   Background only on the home page; service pages (All-on-4, Dental Implants)
   inherit the same layout without the colored background. */
#block-implantsurvey {
    position: relative;
    padding: 2rem 1rem;
}
@media (min-width: 992px) {
    #block-implantsurvey {
        padding: 50px 0 0;
    }
}
body.path-frontpage #block-implantsurvey {
    background: var(--btn_hover);
}
#block-implantsurvey .heading h2 {
    color: var(--h2);
}
.implant-survey-block .heading {
    z-index: 1;
}
.implant-survey-block .survey-wrap {
    display: flex;
    column-gap: 2rem;
}
.implant-survey-block .survey-wrap > div {
    flex: 1;
    z-index: 1;
}
.implant-survey-block .survey-wrap .survey {
    text-align: center;
}
.implant-survey-block .survey-wrap .survey iframe {
    display: block;
    margin: -40px auto 0;
    width: 525px;
    max-width: 525px;
}
.implant-survey-block .survey-wrap .survey-img {
    height: fit-content;
    text-align: center;
    margin-bottom: 3rem;
}
.implant-survey-block .survey-wrap .survey-img img {
    height: 265px;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
    outline: 2px solid #fff;
    outline-offset: -10px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
@media (max-width: 520px) {
    .implant-survey-block .survey-wrap .survey-img img {
        height: auto;
    }
}
@media (max-width: 992px) {
    .implant-survey-block .survey-wrap .survey-img {
        margin-bottom: 0;
    }
}
@media (max-width: 1050px) {
    .implant-survey-block .survey-wrap {
        flex-direction: column;
    }
    .implant-survey-block .survey-wrap .survey-img,
    .implant-survey-block .survey-wrap .survey {
        text-align: center;
    }
    .implant-survey-block .survey-wrap .survey-img {
        margin-top: -40px;
        margin-bottom: 2rem;
    }
}

/* White photo frame across featured images — matches the polaroid-style
   frame used on the implant-survey block. Outline-inset sits INSIDE the
   image edges so no layout shift and it works with the rounded containers. */
.welcome-section picture img,
.full-services .col-md-5 img,
.gallery-slider .glide__slide img,
#block-content img[src*="/inline-images/"] {
    outline: 2px solid #fff;
    outline-offset: -10px;
    box-shadow:
        rgba(50, 50, 93, 0.25) 0px 13px 27px -5px,
        rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
    border-radius: 8px;
}

/* Remove full-image darkening on staff cards; keep a bottom gradient
   so name/position/see-more text stays readable. */
.img-hover-overlay .bg-black.bg-opacity-25 {
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.6) 0%,
        transparent 60%
    ) !important;
}

@media (max-width: 767px) {
    .hero-slider .slider-title {
        font-size: 1.75rem;
        line-height: 1.2;
    }
    .hero-slider .slider-sub-title {
        font-size: 1rem;
    }
    .hero-slider .glide__slide > div.aspect-sm-sq {
        aspect-ratio: auto;
        min-height: 500px;
    }
    .hero-slider .glide__slide > div.d-flex {
        align-items: flex-end !important;
    }
    .hero-slider .glide__slide .container > .w-md-50 {
        padding-bottom: 3rem !important;
    }
}


#block-content .no-frame-page img[src*="/inline-images/"] {
  outline: none;
  outline-offset: 0;
  box-shadow: none;
  border-radius: 0;
}
h1 {
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "dlig" 0, "clig" 0, "hlig" 0;
}
