/* Compact project photos for the homepage service cards. */
#services .card-link {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
#services .service-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 20px;
  min-height: 110px;
}
#services .service-card-bottom .arrow {
  color: var(--blue, #1769d2);
  font-weight: 800;
  white-space: nowrap;
}
#services .service-thumbnail {
  position: relative;
  display: block;
  flex: 0 0 44%;
  width: 44%;
  max-width: 144px;
  aspect-ratio: 8 / 5;
  overflow: hidden;
  border: 1px solid var(--line, #dbe4ef);
  border-radius: 11px;
  background: var(--soft, #f5f8fc);
}
#services .service-thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#services .service-comparison-labels {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 12px 5px 3px;
  color: white;
  background: linear-gradient(transparent, rgba(7, 29, 51, .86));
  font-size: 10px;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
}
#services .card-link:focus-visible {
  outline: 3px solid var(--blue, #1769d2);
  outline-offset: 4px;
}
@media (max-width: 360px) {
  #services .card { padding: 22px; }
  #services .service-card-bottom { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  #services .card-link { transition: none; }
  #services .card-link:hover { transform: none; }
}

/* Compact comparison images and a short caption on edited previews. */
#services .service-image-block {
  flex: 0 0 44%;
  width: 44%;
  max-width: 144px;
  min-width: 0;
}
#services .service-image-block .service-thumbnail {
  width: 100%;
  max-width: none;
}
#services .service-thumbnail--contain { background: white; }
#services .service-thumbnail--contain img { object-fit: contain; }
#services .service-thumb-note {
  display: block;
  margin-top: 5px;
  color: var(--muted, #5f6d7c);
  font-size: 10px;
  line-height: 1.3;
  text-align: center;
}
.service-project-photo { margin: 28px 0 0; }
.service-project-photo img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line, #dbe4ef);
  border-radius: 16px;
}
.service-project-photo figcaption {
  margin: 12px 0 0;
  color: var(--muted, #5f6d7c);
  font-size: .9rem;
}
