/* Keep theme page titles inside the viewport on phones. */
@media (max-width: 767px) {
  .mkd-title.mkd-standard-type .mkd-title-holder .mkd-container-inner {
    box-sizing: border-box;
    width: 100%;
    padding-inline: 16px;
  }

  .mkd-title.mkd-standard-type .mkd-title-subtitle-holder-inner h1 {
    animation: none;
    transform: none;
    white-space: normal;
    overflow-wrap: break-word;
    max-width: 100%;
    font-size: clamp(25px, 7vw, 44px);
    line-height: 1.15;
    letter-spacing: normal;
  }

  .mkd-title.mkd-standard-type .mkd-title-subtitle-holder-inner h1 span {
    font: inherit;
    letter-spacing: inherit;
    white-space: inherit;
  }
}

/* Keep the live Home slider captions grouped at phone and tablet widths. */
@media (max-width: 900px) {
  .home #SR7_17_1 sr7-slide > sr7-txt[id$="-10"],
  .home #SR7_17_1 sr7-slide > sr7-txt[id$="-17"] {
    left: 7% !important;
    width: 86% !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }
  .home #SR7_17_1 sr7-slide > sr7-txt[id$="-10"] {
    top: auto !important;
    bottom: calc(52% + 14px);
    font-size: clamp(28px, 5.35vw, 46px) !important;
    line-height: 1.1 !important;
    letter-spacing: -.035em !important;
  }
  .home #SR7_17_1 sr7-slide > sr7-txt[id$="-17"] {
    top: 48% !important;
    font-size: clamp(16px, 2.55vw, 20px) !important;
    line-height: 1.3 !important;
  }
  .home #SR7_17_1 sr7-slide > a[id$="-2"] {
    top: calc(48% + 63px) !important;
    left: 50% !important;
    transform: none !important;
    translate: -50% 0 !important;
    box-sizing: border-box;
    width: max-content !important;
    max-width: 90%;
    min-height: 44px;
    padding: 10px 16px !important;
    font-size: 16px !important;
    line-height: 24px !important;
    white-space: normal !important;
    text-align: center;
  }
  .home #SR7_17_1 #SR7_17_1-37-2 {
    top: calc(48% + 83px) !important;
  }
  .home #SR7_17_1 #SR7_17_1-38-2 {
    top: calc(48% + 122px) !important;
  }
}
@media (max-width: 767px) {
  .home .mkd-mobile-header .mkd-mobile-logo-wrapper > a {
    height: clamp(44px, 12vw, 50px) !important;
  }
  .home .mkd-mobile-header .mkd-mobile-logo-wrapper img {
    height: 100% !important;
    width: auto;
  }
  .home .vc_custom_1780583297226 {
    padding-top: 28px !important;
  }
  .home .vc_custom_1780583297226 > .mkd-section-inner {
    width: calc(100% - 66px);
    max-width: 640px;
  }
  .home .vc_custom_1780583297226 .mkd-elements-holder-item-content {
    padding: 0 !important;
  }
}
@media (max-width: 480px) {
  .home #SR7_17_1 sr7-slide > sr7-txt[id$="-10"],
  .home #SR7_17_1 sr7-slide > sr7-txt[id$="-17"] {
    left: 5% !important;
    width: 90% !important;
  }
  .home #SR7_17_1 sr7-slide > sr7-txt[id$="-10"] {
    bottom: calc(56% + 12px);
  }
  .home #SR7_17_1 sr7-slide > sr7-txt[id$="-17"] {
    top: 44% !important;
    line-height: 1.25 !important;
  }
  .home #SR7_17_1 sr7-slide > a[id$="-2"] {
    top: calc(44% + clamp(75px, 151px - 17vw, 94px)) !important;
  }
  .home #SR7_17_1 #SR7_17_1-37-2 {
    top: calc(44% + clamp(86px, 194px - 24vw, 113px)) !important;
  }
  .home #SR7_17_1 #SR7_17_1-38-2 {
    top: calc(44% + clamp(114px, 343px - 51vw, 171px)) !important;
  }
}

/* Bring Contact content closer to its title banner on phones. */
@media (max-width: 767px) {
  .page-id-16582 .vc_custom_1780676972510 {
    margin-top: 0 !important;
    padding-top: 22px !important;
    padding-bottom: 28px !important;
  }
}

/* Give Real Estate FAQ questions and answers room on phones. */
@media (max-width: 767px) {
  :is(.page-id-16551, .page-id-16554, .page-id-16557, .page-id-16561) .vc_custom_1780585279887 > .mkd-section-inner {
    width: calc(100% - 66px);
    max-width: 640px;
  }
  :is(.page-id-16551, .page-id-16554, .page-id-16557, .page-id-16561) .vc_custom_1780585279887 .mkd-elements-holder-item-content {
    padding: 0 !important;
  }
  :is(.page-id-16551, .page-id-16554, .page-id-16557, .page-id-16561) .vc_custom_1780585279887 .mkd-accordion-content {
    padding-left: 0;
    padding-right: 0;
  }
}

/* Use the phone screen for gallery photos and keep navigation accessible. */
@media (max-width: 767px) {
  .pp_pic_holder.pp_default {
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100dvh;
    margin: 0 !important;
    box-sizing: border-box;
    padding: 12px !important;
    background: #151515;
    overflow: auto;
  }
  .pp_default .pp_top, .pp_default .pp_bottom,
  .pp_default .ppt, .pp_default .pp_gallery { display: none !important; }
  .pp_default .pp_content_container,
  .pp_default .pp_content_container > .pp_left,
  .pp_default .pp_content_container > .pp_left > .pp_right {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    background: none !important;
  }
  .pp_default .pp_content {
    width: 100% !important;
    height: auto !important;
    background: transparent !important;
  }
  .pp_default .pp_fade { position: relative; }
  .pp_default #pp_full_res {
    width: 100%;
    height: calc(100dvh - 86px);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .pp_default #fullResImage {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
  }
  .pp_default .pp_hoverContainer {
    inset: 0 0 auto !important;
    width: 100% !important;
    height: calc(100dvh - 86px) !important;
  }
  .pp_default .pp_details {
    width: 100% !important;
    min-height: 48px;
    margin: 8px 0 0;
    color: #fff;
  }
  .pp_default .pp_close { min-width: 44px; min-height: 44px; }
  .pp_default .pp_description { max-width: calc(100% - 150px); }
}