.resident-archive__list,
.resident-single__article {
  max-width: 960px;
  margin: 0 auto;
}

.resident-archive__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px;
  justify-content: center;
}

.resident-card {
  height: 100%;
}

.resident-card__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  background-color: var(--bg);
  padding: 40px 24px 32px;
  text-align: center;
  transition: opacity 0.3s ease;
}

.resident-card__link:hover {
  opacity: 0.85;
}

.resident-card__photo {
  width: 160px;
  height: 160px;
  margin: 0 auto 24px;
  border-radius: 50%;
  overflow: hidden;
  background-color: #d9d9d9;
  flex-shrink: 0;
}

.resident-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.resident-card__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  width: 100%;
}

.resident-card__industry {
  display: inline-block;
  max-width: 100%;
  background-color: #4e4e4e;
  color: var(--white);
  font-size: 13px;
  line-height: 1.4;
  padding: 6px 10px;
  margin-bottom: 12px;
}

.resident-card__name {
  font-size: 20px;
  font-weight: var(--bold);
  line-height: 1.5;
  margin-bottom: 24px;
  word-break: auto-phrase;
}

.resident-card__btn {
  margin: auto 0 0;
  min-width: 180px;
  font-size: 13px;
  padding: 10px 24px;
}

.resident-archive .resident-card__comment {
  display: none;
}

.resident-archive__empty {
  text-align: center;
}

.resident-archive__pagination {
  margin-top: 60px;
}

.resident-archive__pagination .nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.resident-archive__pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  border: 1px solid var(--main);
  padding: 8px 12px;
}

.resident-archive__pagination .page-numbers.current {
  background-color: var(--main);
  color: var(--white);
}

.resident-single__profile {
  display: flex;
  align-items: flex-start;
  gap: 48px;
  margin-bottom: 56px;
}

.resident-single__photo {
  width: 280px;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background-color: #d9d9d9;
}

.resident-single__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.resident-single__industry {
  display: inline-block;
  max-width: max-content;
  background-color: #4e4e4e;
  color: var(--white);
  font-size: 14px;
  line-height: 1;
  padding: 4px 8px;
  margin-bottom: 16px;
}

.resident-single__name {
  font-family: var(--font-maru);
  font-size: 36px;
  line-height: 1.4;
  margin-bottom: 24px;
}

.resident-single__comment {
  font-size: 18px;
  font-weight: var(--bold);
  line-height: 1.8;
}

.resident-single__content {
  max-width: 760px;
  margin: 0 auto;
}

.resident-single__back {
  margin-top: 60px;
}

@media (max-width: 959px) {
  .resident-archive__list {
    grid-template-columns: 1fr;
    max-width: 320px;
  }

  .resident-single__profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .resident-single__photo {
    width: 220px;
  }

  .resident-single__name {
    font-size: 28px;
  }

  .resident-single__comment {
    width: 100%;
    text-align: left;
    align-self: stretch;
  }
}
