.prep-photo--image { display:block !important; width:100%; height:auto; min-height:0 !important; aspect-ratio:4 / 3; object-fit:cover; padding:0 !important; border:0 !important; }
/* Commercial Wallcoverings — consistent with existing installation/removal/skim coating pages */
.page-commercial .commercial-hero {
  min-height: 69vh;
  background:
    linear-gradient(180deg, rgba(10, 18, 19, .66), rgba(10, 18, 19, .47)),
    url("/images/commercial-wallcovering-installation-san-diego.webp") center center / cover no-repeat;
}
.page-commercial .commercial-hero .wr-hero__title { max-width: 940px; }
.page-commercial .commercial-hero .wr-hero__subheading { max-width: 815px; }
.page-commercial .prep-hero__kicker { color: #e4cba4; }
.page-commercial .prep-photo { background:linear-gradient(140deg,#e9e8e4,#f4f2ec 50%,#e0ded7); }
.page-commercial .prep-compare { background: #f5f4f1; }
.page-commercial .prep-condition-list article { min-width: 0; }
.page-commercial .prep-card-grid { align-items: stretch; }
.page-commercial .prep-card a { color:#75572f;text-decoration:underline;text-underline-offset:3px; }
.page-commercial .v-step__p a { color:#75572f; }
.page-commercial .prep-note em { font-style: italic; }
@media (max-width: 640px) {
 .page-commercial .commercial-hero { min-height: 72vh; }
 .page-commercial .prep-photo-row .prep-photo { min-height: 230px; }
}

/* Commercial wallcovering gallery: preserve the six original 250px placeholder boxes. */
.page-commercial .prep-photo-row {
  align-items: start;
}
.page-commercial .prep-photo-row .commercial-photo-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 250px;
  min-height: 250px;
  max-height: 250px;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(17, 24, 39, .10);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(0, 0, 0, .07);
}
.page-commercial .prep-photo-row .commercial-photo-card img {
  display: block;
  flex: 1 1 auto;
  width: 100%;
  height: 0;
  min-height: 0;
  max-height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
}
.page-commercial .prep-photo-row .commercial-photo-card figcaption {
  flex: 0 0 44px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  padding: 8px 12px;
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 600;
  color: #4b4540;
  background: #fff;
}

/* Main commercial-spaces photograph is PORTRAIT, not a small gallery tile.
   Give it a proper large column and keep its natural 2:3 proportions. */
.page-commercial #commercial-spaces .wr-split__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  align-items: center;
  gap: clamp(22px, 3vw, 48px);
  max-width: 1420px;
}
.page-commercial #commercial-spaces .wr-split__media {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}
.page-commercial #commercial-spaces .wr-split__media .commercial-space-photo {
  display: block;
  width: 100%;
  max-width: 540px;
  height: auto;
  min-height: 0 !important;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  padding: 0 !important;
  border: 0;
  border-radius: 14px;
}
@media (max-width: 900px) {
  .page-commercial #commercial-spaces .wr-split__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .page-commercial #commercial-spaces .wr-split__media .commercial-space-photo {
    max-width: 520px;
  }
}
@media (max-width: 640px) {
  .page-commercial .prep-photo-row .commercial-photo-card {
    height: 230px;
    min-height: 230px;
    max-height: 230px;
  }
  .page-commercial .prep-photo-row .commercial-photo-card figcaption {
    flex-basis: 42px;
    padding: 7px 12px;
  }
  .page-commercial #commercial-spaces .wr-split__grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 22px;
  }
  .page-commercial #commercial-spaces .wr-split__media .commercial-space-photo {
    max-width: 460px;
    margin-inline: auto;
  }
}
