/* ==========================================================================
   Projects Section
   ========================================================================== */

.projects {
  padding: 16px 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

.project-span-full {
  grid-column: 1 / -1;
}

.project-card {
  display: block;
  background-color: var(--card-color);
  border-radius: 0;
  position: relative;
  overflow: hidden;
}

.project-card-small {
  aspect-ratio: 1.6 / 1;
}

.project-card-large {
  aspect-ratio: 2.2 / 1;
  position: relative;
}

.project-card-content {
  position: absolute;
  bottom: 20px;
  left: 20px;
}

.project-title {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-primary);
}

.project-large-wrapper {
  position: relative;
}

.rings-wrapper {
  position: relative;
  height: 0;
  z-index: 0;
}

.rings-decoration {
  position: absolute;
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  top: -100px;
  height: 800px;
  pointer-events: none;
  overflow: visible;
  color: var(--ring-color);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 1) 120px);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 1) 120px);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.rings-decoration svg {
  width: 100%;
  height: 100%;
}

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

  .project-card-small {
    aspect-ratio: 2 / 1;
  }
}