/* Lab member grid layout */
.lab-grid {
  display: grid;
  gap: 30px;
  margin-bottom: 40px;
}

/* Member card style */
.lab-member {
  background: #fff;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  transition: transform 0.2s;
}

.lab-member:hover {
  transform: translateY(-5px);
}

/* Member name style */
.lab-member h3 {
  margin: 10px 0 0 0;
  font-size: 1rem;
  font-weight: 600;
}

/* Student image style */
.lab-member img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #f0f0f0;
  display: block;
  margin: 0 auto;
}

/* PI section */
.pi-container {
  text-align: center;
  margin-bottom: 40px;
}

.pi-container img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #f0f0f0;
  display: inline-block;
}

.pi-container h3 {
  margin-top: 10px;
}

/* NSTC Undergraduate Projects */
.project-list {
  font-size: 0.88rem;
  line-height: 1.45;
  margin-top: 0.5em;
}

.project-list li {
  margin-bottom: 0.6em;
}

.project-id {
  color: #666;
  font-size: 0.9em;
  white-space: nowrap;
}

/* Responsive Design */
/* Desktop: 4 columns */
@media (min-width: 1024px) {
  .lab-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Tablet: 2 columns */
@media (max-width: 1023px) and (min-width: 600px) {
  .lab-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile: 1 column */
@media (max-width: 599px) {
  .lab-grid {
    grid-template-columns: 1fr;
  }
}
