.main-container {
    display: flex;
    gap: 2rem;
    margin: 0 auto;
    padding: 2rem 5% 5% 5%;
}

.content-container {
    flex: 1;
    display:block;
    gap: 2rem;
    padding: 0 5% 5% 5%;
}

/* Project Grid */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px; 
  padding-top: 15%;
}

/* Image container with 4:3 aspect ratio */
.project-image-wrapper {
  aspect-ratio: 14 / 9;
  overflow: hidden;
  background: #f0f0f0;
  border-radius: 2px;
  position:relative;
  cursor: pointer;
}

/* Image fills container and crops from center */
.project-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;        /* crops to fill */
  object-position: center;  /* crops from center */
  transition: filter 0.5s smooth; /* smooth blur transition */
}

.project-image-wrapper:hover img {
  filter: blur(5px);

}


/* Overlay hidden by default */
/* adding a black background for the overlay */
.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);  /* 50% dim */
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 15px;
  box-sizing: border-box;
}


/* Show overlay on hover */
.project-image-wrapper:hover .project-overlay {
  opacity: 1;
}

.project-subtitle {
  color: white;
  text-align: center;
  font-size: 14px;
  line-height: 1.4;
  margin: 0;
  text-align: left;   
}

/* Fade in effects for cards*/
@keyframes enter {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Card styling */
.project-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.project-card {
  transition: all 0.3s ease;
  display: block;
}

.project-card.card-enter {
  animation: enter 0.2s both;
}

.project-card h3 {
  margin-top: 12px;
  font-size: 20px;
  font-weight: 600;
}

.project-card a:hover {
  opacity: 1; 
}
#project-grid-container {
    flex: 1;
}
