/* Hero Text Section */
.hero-text-section {
  padding: var(--spacing-7xl) var(--container-padding) var(--spacing-5xl) var(--container-padding);
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-text-center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  text-align: center;
  gap: var(--spacing-lg);
}

.hero-text-center h2 {
  max-width: calc(66.666666% + 2*var(--spacing-xl)/3);
  font-size: var(--font-size-large);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-normal);
  margin: 0;
}

.hero-text-center a {
  max-width: calc(66.666666% + 2*var(--spacing-xl)/3);
  font-size: var(--font-size-medium);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-normal);
  margin: 0;
}

/* .section-divider {
  width: calc(100% - 2 * var(--container-padding));
  height: 1px;
  background-color: var(--color-gray-medium);
  margin: var(--spacing-2xl) var(--container-padding);
} */

.projects-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--spacing-xl);
  width: 100%;
}

.project-card {
  flex: 0 0 calc(33.333% - 2*var(--spacing-xl)/3);
  max-width: calc(33.333% - 2*var(--spacing-xl)/3);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.project-card a {
  position: relative;
  display: block;
  overflow: hidden;
}

.project-image {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.project-card:hover .project-image {
  transform: scale(1.05);
}

.projects-intro {
  display: flex;
  flex-direction: row;
  gap: var(--spacing-xl);
  align-items: flex-start;
}

.projects-title {
  flex: 0 auto;
  /* width: calc(33.333% - 2/3*var(--spacing-xl)); */
  font-size: var(--font-size-large);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-normal);
  text-align: left;
  margin: 0; 
  display: flex;
  align-items: flex-start;
  /* justify-content: flex-end;  */
}

.projects-description {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  text-align: center;
  padding: 0 var(--container-padding);
  margin-bottom: var(--spacing-2xl);
}

.projects-description p {
  max-width: calc(66.666666% + 2*var(--spacing-xl)/3);
  font-size: var(--font-size-medium);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-normal);
  margin: 0;
}

.credits-tag {
  position: absolute;
  bottom: var(--spacing-lg);
  left: var(--spacing-lg);
  background-color: rgba(189, 189, 189, 0.2);
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: 3.125rem; /* 50px - pill shape */
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-regular);
  white-space: nowrap;
  z-index: 1;
  pointer-events: none;
}

.project-info {
  display: flex;
  flex-direction: row;
  width: 100%;
  gap: var(--spacing-2xl);
}

.project-info > * {
  opacity: 1 !important;
  animation: none !important;
}

.project-date {
  flex: 0 0 auto;
  font-family: var(--font-family-mono);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-normal);
}

.project-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 0;
}

.project-title {
  font-size: var(--font-size-medium);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-normal);
  margin: 0;
}

.project-category {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-tight);
  color: var(--color-gray-dark);
  text-transform: uppercase;
  margin: 0;
}
