
.projects-layout {
  max-width: 1024px;
  margin: 0 auto;

  img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 15px 10px 15px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    animation: pulse 4s ease-in-out infinite;
  }
}

.projects-list {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 10px;
  figcaption {
    text-align: center;
    font-family: var(--text-subtitle);
    font-size: 1.2em;
    margin-top: 0.5em;
  }
}

.projects-list li {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

.projects-list li:nth-child(1) {
  animation-delay: 0.5s;
}

.projects-list li:nth-child(2) {
  animation-delay: 1s;
}

.projects-list li:nth-child(3) {
  animation-delay: 1.5s;
}

.projects-list li:nth-child(4) {
  animation-delay: 2s;
}

.projects-list li:nth-child(5) {
  animation-delay: 2.5s;
}

.projects-list li:nth-child(6) {
  animation-delay: 3s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.projects-list li {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.03);
  }
}