/* Targeted corrections. Keep the existing desktop typography and section styling. */
.about-grid > *, .about-copy > *, .mortgage-cta-inner > * { min-width: 0; }
.about-copy h2 { max-width: 100%; }
#visit { scroll-margin-top: 110px; }
/* Static phones show the complete real photograph; desktop 3D is unchanged. */
@media (max-width: 700px), (pointer: coarse) and (hover: none) {
  .house-3d-viewer { min-height: 0; aspect-ratio: 4 / 3; }
}
@media (min-width: 701px) and (max-width: 980px) {
  .about-copy h2 { font-size: clamp(40px, 5.4vw, 52px); line-height: 1.04; }
}
@media (max-width: 700px) {
  .about-copy h2 {
    font-size: clamp(40px, 11.2vw, 58px);
    line-height: 1.04;
    overflow-wrap: anywhere;
  }
  .mortgage-cta .mortgage-title {
    width: 100%;
    max-width: 13em;
    font-size: clamp(30px, 8.7vw, 43px) !important;
    line-height: 1.1 !important;
    letter-spacing: -.045em;
    overflow-wrap: anywhere;
  }
  #visit { scroll-margin-top: 84px; }
}

.photo-section { padding: clamp(48px, 6vw, 88px) 0; color: #23473d; background: #faf8f3; }
.construction-gallery { background: #f2f5f0; }
.photo-eyebrow { margin: 0 0 12px; color: #996b2c; font-size: 12px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.photo-title { margin: 0 0 18px; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(32px, 4vw, 58px); font-weight: 400; letter-spacing: -.045em; line-height: 1.08; }
.photo-lead { max-width: 660px; margin: 0 0 30px; color: #536563; font-size: 17px; line-height: 1.5; }
.photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.photo-card { min-width: 0; margin: 0; }
.photo-link { position: relative; display: block; overflow: hidden; border-radius: 16px; background: #e3e7df; }
.photo-link img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s ease; }
.photo-expand { position: absolute; right: 14px; bottom: 14px; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #d5b97d; border-radius: 50%; background: #23473de6; color: #fff9e9; pointer-events: none; }
.photo-expand svg, .real-gallery-nav svg, .photo-dialog button svg { display: block; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.photo-card figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 5px 12px; padding: 14px 2px 0; font-size: 17px; font-weight: 600; }
.photo-card figcaption > :last-child { color: #69776b; font-size: 13px; font-weight: 400; align-self: center; }
@media (hover: hover) { .photo-link:hover img { transform: scale(1.025); } }
@media (max-width: 980px) { .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 18px; } }
@media (max-width: 600px) {
  .photo-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .photo-lead { font-size: 16px; }
  .photo-card figcaption { font-size: 16px; }
}

.photo-dialog { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: #10251ff7; color: #fff9e9; }
.photo-dialog[open] { display: flex; flex-direction: column; }
.photo-dialog::backdrop { background: #10251f; }
body:has(.photo-dialog[open]) { overflow: hidden; }
.photo-dialog-bar { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: max(12px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 12px max(16px, env(safe-area-inset-left)); }
.photo-dialog-bar p { margin: 0; font-size: 17px; }
.photo-dialog button { flex: none; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 1px solid #d5b97d80; border-radius: 50%; background: #23473d; color: #fff9e9; font-size: 26px; }
.photo-dialog button:hover { background: #365b4f; }
.photo-dialog-stage { position: relative; display: flex; align-items: center; justify-content: center; gap: 16px; flex: 1; min-height: 0; padding: 0 20px; }
.photo-dialog-image { display: block; min-width: 0; width: calc(100% - 128px); height: 100%; object-fit: contain; }
.photo-dialog-status { flex: none; min-height: 24px; margin: 12px 16px max(16px, env(safe-area-inset-bottom)); text-align: center; font-size: 14px; }
@media (max-width: 600px) {
  .photo-dialog-stage { padding: 0 10px 64px; }
  .photo-dialog-image { width: 100%; }
  .photo-dialog-stage button { position: absolute; bottom: 0; }
  [data-photo-previous] { left: calc(50% - 60px); }
  [data-photo-next] { right: calc(50% - 60px); }
  .photo-dialog-bar p { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .photo-link img { transition: none; } }

/* The photographs continue the existing about/3D card instead of starting a new section. */
.about-gallery { grid-column: 1 / -1; min-width: 0; padding: 24px 28px 28px; border-top: 1px solid rgba(181,137,64,.24); background: linear-gradient(180deg,#f3f3ec,#faf8f3); }
.about-gallery-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.about-gallery-heading h3 { margin: 0; color: #23473d; font-size: 17px; font-weight: 600; }
.about-gallery-heading > span { color: #7c806e; font-size: 13px; }
.about-gallery .reality-grid { gap: 18px; }
.about-gallery .photo-link { border-radius: 12px; }
.about-gallery .photo-card figcaption { padding-top: 9px; color: #536563; font-size: 14px; font-weight: 500; }
.about-gallery .photo-card figcaption > :last-child { display: none; }
.about-gallery .photo-expand { width: 36px; height: 36px; right: 10px; bottom: 10px; }
.real-gallery-controls { display: none; }
@media (max-width: 700px), (pointer: coarse) and (hover: none) {
  .about .about-grid { grid-template-columns: minmax(0,1fr); border: 0; }
  .about .house-3d-viewer { display: none !important; }
  .about-gallery { padding: 0; border-top: 0; }
  .about-gallery-heading { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .about-gallery .reality-grid { position: relative; display: flex; gap: 0; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .about-gallery .reality-grid::-webkit-scrollbar { display: none; }
  .about-gallery .photo-card { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; }
  .about-gallery .photo-link { border-radius: 0; }
  .about-gallery .photo-link img { aspect-ratio: 5 / 4; object-fit: cover; }
  .photo-expand, .about-gallery .photo-expand { width: 30px; height: 30px; right: 12px; bottom: 12px; border-color: rgba(255,249,233,.65); }
  .photo-expand svg { width: 15px; height: 15px; }
  .about-gallery .photo-card figcaption { display: none; }
  .real-gallery-controls { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 4px 8px; padding: 12px; background: #f8f7f0; color: #23473d; }
  .real-gallery-caption { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; grid-column: 1 / -1; padding: 0 4px; color: #536563; font-size: 14px; }
  [data-real-count] { flex: none; color: #8e7547; font-size: 12px; letter-spacing: .08em; }
  .real-gallery-controls button { display: grid; place-items: center; min-width: 44px; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: #23473d; }
  .real-gallery-nav { border-radius: 50%; touch-action: manipulation; }
  .real-gallery-nav:active { background: #23473d10; }
  .real-gallery-dots { display: flex; justify-content: center; }
  .real-gallery-dots span { width: 7px; height: 7px; border: 1px solid #a99162; border-radius: 50%; background: transparent; }
  .real-gallery-dots [aria-current="true"] span { background: #23473d; border-color: #23473d; }
}
