.customer-rides {
  padding: 96px 24px;
  padding-inline: var(--pad-x, 24px);
  background: var(--cream, #F2F5F5);
}

.customer-rides__inner {
  width: 100%;
}

.customer-rides__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
  margin-bottom: 48px;
}

.customer-rides__header h2 {
  max-width: 20ch;
  margin: 0 0 16px;
  font-family: "Barlow Condensed", "Barlow Condensed Fallback", "Barlow Condensed Fallback 2", sans-serif;
  font-size: 39px;
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
}

.customer-rides__header p {
  max-width: 65ch;
  margin: 0;
  color: var(--muted, #4B5654);
  font-size: 16px;
  line-height: 1.55;
}

.customer-rides__grid {
  columns: 4;
  column-gap: 16px;
}

.customer-rides__photo {
  display: inline-block;
  width: 100%;
  margin: 0 0 16px;
  overflow: hidden;
  break-inside: avoid;
  background: var(--paper, #FFFFFF);
  border: 1px solid var(--line, #D6DEDD);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.customer-rides__photo img {
  display: block;
  width: 100%;
  height: auto;
}

.customer-rides__photo figcaption {
  padding: 12px 16px 16px;
  color: var(--muted, #4B5654);
  font-size: 13px;
  line-height: 1.55;
}

@media (max-width: 959px) {
  .customer-rides__grid {
    columns: 2;
  }
}

@media (max-width: 639px) {
  .customer-rides {
    padding: 64px 16px;
    padding-inline: var(--pad-x, 16px);
  }

  .customer-rides__header {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 32px;
  }

  .customer-rides__header h2 {
    font-size: 31px;
  }

  .customer-rides__header .btn {
    width: 100%;
    min-height: 48px;
  }

  .customer-rides__grid {
    columns: 1;
  }
}
