.center-row {
  grid-template-columns: 96px 170px minmax(220px, 1fr) 168px auto;
  grid-template-areas: "photo name location services actions";
  gap: 14px;
  padding-block: 16px;
}

.center-row-photo {
  position: relative;
  grid-area: photo;
  display: block;
  width: 96px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  align-self: center;
  background: #0f1113;
  border: 1px solid #3d4349;
  border-radius: 4px;
}

.center-row-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.center-row-photo:hover img {
  transform: scale(1.04);
}

.center-row-photo .center-index {
  position: absolute;
  top: 6px;
  left: 6px;
  min-width: 28px;
  padding: 3px 5px;
  color: #090a0b;
  background: var(--yellow);
  border-radius: 3px;
  text-align: center;
  line-height: 1.2;
}

.center-name {
  grid-area: name;
}

.center-location {
  grid-area: location;
}

.center-services {
  grid-area: services;
}

.center-actions {
  grid-area: actions;
}

@media (max-width: 1080px) {
  .center-row {
    grid-template-columns: 96px minmax(170px, .8fr) minmax(230px, 1.3fr) auto;
    grid-template-areas:
      "photo name location actions"
      "photo services services actions";
  }
}

@media (max-width: 760px) {
  .center-row {
    grid-template-columns: 96px minmax(0, 1fr);
    grid-template-areas:
      "photo name"
      "photo services"
      "location location"
      "actions actions";
    gap: 10px 14px;
    padding-block: 18px;
  }

  .center-row-photo {
    align-self: start;
  }

  .center-actions {
    margin-top: 4px;
  }
}
