/* Match the content width used on General Landscaping. */
.compact-service {
  --service-width: 1400px;
  --service-gutter: clamp(14px, 3vw, 32px);
  --service-frame: #f5f3ee;
}

.compact-service .service-hero {
  width: min(var(--service-width), calc(100% - 2 * var(--service-gutter)));
  margin: 24px auto;
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center;
}

.compact-service .service-hero .hero-content {
  min-width: 0;
  padding: clamp(24px, 4vw, 46px);
}

.compact-service .service-hero > img {
  display: block;
  width: 100%;
  height: clamp(290px, 37vw, 510px);
  max-height: none;
  object-fit: contain;
  object-position: center;
  background: var(--service-frame);
}

.compact-service main > :is(.section, .contact) {
  width: min(var(--service-width), calc(100% - 2 * var(--service-gutter)));
  margin-inline: auto;
  padding: clamp(32px, 4.5vw, 60px) clamp(18px, 3vw, 40px);
}

.compact-service .service-overview,
.compact-service .contact {
  gap: clamp(24px, 4vw, 60px);
}

.compact-service .service-overview h2,
.compact-service .service-projects h2,
.compact-service .contact h2 {
  font-size: clamp(1.8rem, 2.7vw, 2.65rem);
}

.compact-service .service-detail-grid article {
  min-height: 0;
  padding: clamp(18px, 2.5vw, 28px);
}

.compact-service .service-project-gallery {
  gap: 16px;
}

.compact-service .service-project-gallery figure {
  height: auto;
  border: 1px solid #e1e6e1;
  border-radius: 10px;
  background: var(--service-frame);
}

.compact-service .service-project-gallery img {
  display: block;
  width: 100%;
  height: clamp(190px, 28vw, 350px);
  object-fit: contain;
  object-position: center;
}

.compact-service .service-project-gallery figure:hover img {
  transform: none;
}

.compact-service .service-project-gallery figcaption {
  position: static;
  padding: 12px 14px;
  background: #fff;
  color: var(--ink);
}

/* Keep the General Landscaping photo caption below the image. */
.general-landing .hero-photo img,
.general-landing .svc img,
.general-landing .proj .ph img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.general-landing .hero-cap {
  position: static;
  margin: 0;
  padding: 10px 14px;
  border-radius: 0;
  box-shadow: none;
}

@media (max-width: 850px) {
  .compact-service .service-hero {
    grid-template-columns: minmax(0, 1fr);
    margin-block: 14px;
  }

  .compact-service .service-hero > img {
    grid-column: 1;
    grid-row: 1;
  }

  .compact-service .service-hero .hero-content {
    grid-column: 1;
    grid-row: 2;
  }
}

@media (max-width: 760px) {
  .compact-service .service-hero > img {
    height: auto !important;
    max-height: 65vw;
  }
}

.compact-service .service-project-gallery figcaption strong {
  display: block;
  font-weight: 650;
}

.compact-service .service-project-gallery .photo-detail {
  display: block;
  margin-top: 4px;
  color: #506057;
  font-weight: 400;
  line-height: 1.4;
}
