.portfolio-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.portfolio-project {
  min-height: 410px;
  background: #fffffe;
  color: #160b22;
  border: 1px solid rgba(43, 5, 87, 0.12);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(43, 5, 87, 0.04);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.portfolio-project:nth-child(3n) {
  grid-column: auto;
  min-height: 410px;
  background: #fffffe;
  color: #160b22;
}

.portfolio-project:hover {
  transform: translateY(-5px);
  border-color: rgba(110, 45, 187, .48);
  box-shadow: 0 18px 50px rgba(43, 5, 87, .09);
}

.project-meta,
.project-visit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.project-meta {
  color: #6e2dbb;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.portfolio-project h2 {
  color: #160b22;
  margin-top: 60px;
  margin-bottom: 12px;
}

.portfolio-project p {
  color: #5f5668;
}

.project-visit {
  padding-top: 18px;
  border-top: 1px solid rgba(43, 5, 87, .13);
  color: #6d6576;
  font-size: 13px;
}

.project-visit strong {
  color: #2b0557;
  transition: color .2s ease, transform .2s ease;
}

.portfolio-project:hover .project-visit strong {
  color: #6e2dbb;
}

.portfolio-project:focus-visible {
  outline: 3px solid #6e2dbb;
  outline-offset: 4px;
}

@media (max-width: 800px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-project,
  .portfolio-project:nth-child(3n) {
    min-height: 350px;
  }
}
