.projects-lead {
  margin: 0;
  font-size: 32px;
  font-style: normal;
  font-weight: 600;
  line-height: 44.8px;
}

@media (max-width: 560px) {
  .projects-lead {
    font-size: 20px;
    line-height: 27.8px;
  }
}

.projects-lead span {
  color: var(--accent-color);
}

.projects-gallery {
  display: flex;
  flex-direction: column;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  justify-content: center;
  justify-items: center;
  margin: 0 auto;
  max-width: calc(2 * 477px + 28px);
  width: 100%;

  @media (max-width: 560px) {
    grid-template-columns: repeat(1, auto);
  }
}

.project-card-link {
  display: block;
  width: 100%;
  max-width: 477px;
  text-decoration: none;

  @media (max-width: 560px) {
    max-width: 100%;
  }
}

.project-card {
  position: relative;
  margin: 0;
  width: 100%;
  max-width: 477px;
  aspect-ratio: 477 / 321;
  border-radius: 8px;
  overflow: hidden;
  background-color: #e9ebef;
  transition: transform 0.2s ease;

  @media (max-width: 560px) {
    max-width: 100%;
  }
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(var(--accent-color-rgb), 0.8);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.project-card-link:hover .project-card::after,
.project-card-link:focus-visible .project-card::after {
  opacity: 1;
}

.project-card-link:focus-visible {
  outline: none;
}

.clients-section {
  display: flex;
  flex-direction: column;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  justify-content: center;
  justify-items: center;
  margin: 0 auto;
  max-width: calc(3 * 309px + 2 * 26px);
  width: 100%;

  @media (max-width: 560px) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

.client-card {
  width: 100%;
  margin: 0;
  max-width: 309px;
  aspect-ratio: 309 / 209;
  border-radius: 8px;
  background-color: #171717;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  transition: background-color 0.25s ease, transform 0.2s ease;
}

.client-card img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.slider-container {
  width: 100%;
  margin-top: 150px;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  -webkit-mask-image: linear-gradient(
          to right,
          rgba(0, 0, 0, 0) 0%,
          rgba(0, 0, 0, 1) 15%,
          rgba(0, 0, 0, 1) 85%,
          rgba(0, 0, 0, 0) 100%
  );
  mask-image: linear-gradient(
          to right,
          rgba(0, 0, 0, 0) 0%,
          rgba(0, 0, 0, 1) 20%,
          rgba(0, 0, 0, 1) 80%,
          rgba(0, 0, 0, 0) 100%
  );

  @media (max-width: 1026px) {
    margin-left: -16px;
    margin-right: -16px;
    width: calc(100% + 16px * 2);
  }

  @media (max-width: 560px) {
    margin-top: 46px;
  }
}

.slider-track {
  display: inline-flex;
  align-items: center;
  animation: scroll 20s linear infinite;
}

.slider-item {
  font-family: "Big Shoulders", sans-serif;
  font-optical-sizing: auto;
  font-size: 128px;
  font-style: normal;
  font-weight: 900;
  line-height: 166px;
  color: var(--accent-color);
  display: flex;
  align-items: center;
  text-transform: uppercase;

  @media (max-width: 560px) {
    font-size: 75px;
    line-height: 97px;
  }
}

.star {
  margin: 0 20px;
  display: flex;
  justify-content: center;
  align-items: center;

  @media (max-width: 560px) {
    width: 19px;
    height: 19px;
  }
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.slider-container:hover .slider-track {
  animation-play-state: paused;
}