/* Approved Rain Day Irrigation project photo sections. */
.rd-project {
  background: var(--ice, #f5f9fb);
  scroll-margin-top: 110px;
}
.rd-project-intro {
  max-width: 820px;
  margin-bottom: 32px;
}
.rd-project h2 {
  margin-bottom: 22px;
}
.rd-project p {
  color: var(--text, #516373);
}
.rd-project-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}
.rd-project-photo {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line, #dde8ee);
  border-radius: 16px;
  background: #fff;
}
.rd-project-image {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3 / 4;
  background: #edf2f4;
}
.rd-project-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.rd-project-photo figcaption {
  padding: 18px 20px 20px;
  color: var(--ink, #14344a);
  font-size: .95rem;
  line-height: 1.55;
}
.rd-project-cta {
  margin-top: 30px;
  max-width: 760px;
}
.rd-project-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.rd-project-collage {
  margin: 0;
}
.rd-project-collage img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--line, #dde8ee);
}
@media (max-width: 760px) {
  .rd-project-gallery,
  .rd-project-split {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .rd-project-gallery {
    max-width: 480px;
    margin-inline: auto;
  }
  .rd-project-cta .button,
  .rd-project-copy .button {
    white-space: normal;
    text-align: center;
  }
}
/* Katy sprinkler and sod project: landscape photo comparison. */
.rd-sod-project .rd-project-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); }
.rd-sod-project .rd-project-image { aspect-ratio: 4 / 3; }
.rd-sod-detail { max-width: 760px; margin: 28px auto 0; }
@media(max-width:760px){.rd-sod-project .rd-project-gallery {grid-template-columns:minmax(0,1fr);max-width:none;}}

/* Backflow service before and after. */
.rd-service-project .rd-project-gallery {grid-template-columns:repeat(2,minmax(0,1fr));max-width:1000px;margin-inline:auto;}
@media(max-width:760px){.rd-service-project .rd-project-gallery{grid-template-columns:minmax(0,1fr);max-width:480px;}}
