.project-list-custom {
  padding: 16px 0;
}

.project-list-custom__panel {
  padding: 28px 46px 18px;
  border-radius: 18px;
  background: #fff;
}

.project-list-custom__heading {
  display: flex;
  flex-wrap: wrap;
  gap: 0 7px;
  padding-top: 30px;
  margin: 0 0 26px;
  font-weight: 800;
  font-size: 32px;
  line-height: 131%;
  letter-spacing: 0.02em;
  color: #2d2d2d;
}

.project-list-custom__heading .color-theme {
  color: #768a71;
}

.project-list-custom__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px 16px;
}

.project-list-custom__card {
  min-width: 0;
  height: auto;
  max-height: 457px;
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid #dfdfdc;
  border-radius: 20px;
  background: #fff;
  transition: box-shadow .2s ease, transform .2s ease;
}

.project-list-custom__card:hover {
  box-shadow: 0 7px 18px rgba(45, 45, 45, .1);
  transform: translateY(-2px);
}

.project-list-custom__link {
  display: flex;
  height: 100%;
  flex-direction: column;
  color: #2d2d2d;
  text-decoration: none;
}

.project-list-custom__image-wrap {
  display: block;
  flex: 0 0 228px;
  height: 228px;
  overflow: hidden;
  background: #f2f2ef;
}

.project-list-custom__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.project-list-custom__card:hover .project-list-custom__image {
  transform: scale(1.035);
}

.project-list-custom__content {
  display: flex;
  max-height: 229px;
  min-height: 65px;
  box-sizing: border-box;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
  padding: 19px 25px;
}

.project-list-custom__section {
  display: block;
  max-width: 100%;
  overflow: hidden;
  font-size: 12px;
  color: #737577;
  font-weight: 400;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-list-custom__name {
  display: -webkit-box;
  max-width: 100%;
  margin-top: 4px;
  overflow: hidden;
  font-size: 20px;
  color: #222;
  font-weight: 500;
  line-height: 1.15;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.project-list-custom__more {
  display: block;
  width: fit-content;
  min-width: 89px;
  margin: 13px auto 0;
  padding: 11px 40px;
  border: 1px solid #a9b6a5;
  border-radius: 8px;
  color: #2d2d2d;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}

.project-list-custom__more:hover,
.project-list-custom__more:focus-visible {
  background: #768a71;
  color: #fff;
}

@media (max-width: 991px) {
  .project-list-custom__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .project-list-custom {
    padding: 10px 0;
  }

  .project-list-custom__panel {
    padding: 22px 14px 16px;
    border-radius: 14px;
  }

  .project-list-custom__heading {
    margin-bottom: 12px;
    font-size: 24px;
    padding-top: 0;
  }

  .project-list-custom__grid {
    display: flex;
    gap: 10px;
    margin-right: -14px;
    margin-left: -14px;
    padding: 0 14px 8px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .project-list-custom__grid::-webkit-scrollbar {
    display: none;
  }

  .project-list-custom__card {
    flex: 0 0 260px;
  }

  .project-list-custom__content {
    min-height: 60px;
    padding-right: 9px;
    padding-left: 9px;
  }

  .project-list-custom__name {
    font-size: 16px;
  }
  .project-list-custom__section{
    font-size: 14px;
  }
}