/* ==================================================
   Portfolio Section
   ==================================================
   Project grid and hover interactions
*/

/* ==================================================
   Section wrapper
   ================================================== */
#portfolio {
  background: #ffffff;
  padding: 12rem 0;
}

/* ==================================================
   Portfolio grid
   ================================================== */
#portfolioGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
}

/* ==================================================
   Portfolio card
   ================================================== */
.portfolio-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* ==================================================
   Image wrapper
   ================================================== */
.portfolio-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 12px;
}

/* ==================================================
   Image
   ================================================== */
.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;

  transition: transform 0.4s ease;
}

/* ==================================================
   Hover interaction
   ================================================== */
.portfolio-card:hover .portfolio-image img {
  transform: scale(1.05);
}

/* ==================================================
   Card title
   ================================================== */
.portfolio-card h4 {
  margin-top: 1.2rem;
  text-align: center;

  font-family: var(--font-heading);
  font-weight: 600;
}