/* Each service has its own illustration; the existing page palette stays intact. */
.service-detail {
  position: relative;
  top: 0;
  min-height: 0;
}

.service-photo {
  position: relative;
  width: calc(100% + 72px);
  aspect-ratio: 16 / 9;
  margin: -34px -36px 28px;
  overflow: hidden;
  border-radius: 0 80px 0 0;
  background: #34395e;
}

.service-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-photo::after {
  position: absolute;
  inset: 52% 0 0;
  content: "";
  background: linear-gradient(transparent, #11162ed9);
  pointer-events: none;
}

.service-photo figcaption {
  position: absolute;
  z-index: 2;
  right: 22px;
  bottom: 19px;
  left: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 15px;
  color: #fff;
  font-size: 11px;
  line-height: 1.4;
}

.service-city {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  background: var(--lime);
  color: var(--ink);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

#service-scene {
  padding: 6px 8px;
  background: #24285be8;
}

.service-photo.is-loading img,
.service-photo.has-image-error img {
  visibility: hidden;
}

.service-photo-status {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 25px 30px 65px;
  color: var(--paper);
  text-align: center;
  font-size: 13px;
  line-height: 1.6;
}

.service-photo-status[hidden] {
  display: none;
}

@media (max-width: 1200px) {
  .service-photo {
    width: calc(100% + 60px);
    margin: -30px -30px 26px;
  }
}

@media (max-width: 1000px) {
  .service-photo {
    width: calc(100% + 50px);
    margin: -28px -25px 25px;
    border-top-right-radius: 60px;
  }
  .service-photo figcaption {
    right: 17px;
    left: 17px;
    bottom: 16px;
    font-size: 10px;
  }
}

@media (max-width: 760px) {
  .service-photo {
    aspect-ratio: 3 / 2;
    margin-top: -27px;
  }
  .service-photo figcaption {
    right: 14px;
    left: 14px;
    bottom: 14px;
  }
  .service-city {
    font-size: 9px;
    padding: 6px 8px;
  }
  #service-scene {
    font-size: 10px;
  }
}

@media (max-width: 360px) {
  .service-photo {
    width: calc(100% + 42px);
    margin: -26px -21px 25px;
  }
}
