* {
  box-sizing: border-box;
}

body {
  background: #f3f3f1;
  color: #171717;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  margin: 0;
}

.page {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px 44px;
}

.page-header {
  margin: 48px 0 38px;
  padding-bottom: 0;
  text-align: center;
}

.page-header h1 {
  font-size: 42px;
  font-weight: 650;
  line-height: 1;
  margin: 0;
}

.people-grid {
  display: grid;
  gap: 34px 28px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.thumbnail {
  background: transparent;
}

.thumbnail .image-link {
  display: block;
}

.thumbnail img {
  background: #ddd8cf;
  border-radius: 10px;
  display: block;
  width: 100%;
  height: 320px;
  object-fit: cover;
  transition:
    filter 0.2s ease,
    transform 0.2s ease;
}

.thumbnail img.position-top {
  object-position: top;
}

.thumbnail .caption {
  color: #171717;
  padding: 14px 0 0;
  text-align: center;
}

.thumbnail h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 10px;
}

.thumbnail p {
  font-size: 14px;
  line-height: 1.35;
  margin: 0 0 5px;
}

.thumbnail a {
  color: inherit;
  text-decoration: none;
}

.thumbnail a:hover,
.thumbnail a:focus {
  text-decoration: underline;
}

.thumbnail:hover img {
  filter: contrast(1.04) saturate(0.95);
}

@media (max-width: 767px) {
  .page {
    padding: 0 18px 34px;
  }

  .page-header {
    margin-top: 28px;
  }

  .page-header h1 {
    font-size: 34px;
  }

  .people-grid {
    grid-template-columns: 1fr;
  }

  .thumbnail img {
    height: 360px;
  }
}

@media (min-width: 768px) and (max-width: 1040px) {
  .people-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
