/* Lab Members Article */
article.center.cf.pv5.ph3.ph4-ns {
  max-width: none !important;
}

.member-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.member-card {
  background: #ffffff;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.member-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.member-image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f8f9fa;
}

.member-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.member-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgb(148, 127, 50) 0%, #ffd84ce0 100%);
  color: white;
  font-size: 3rem;
  font-weight: bold;
}

.member-info {
  padding: 1.5rem;
}

.member-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  color: #1a1a1a;
}

.member-title {
  font-size: 1rem;
  font-weight: 500;
  color: #555;
  margin: 0 0 1rem 0;
}

.member-description {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #4a5568;
  margin: 0 0 1rem 0;
}

.member-email a {
  color: #3182ce;
  text-decoration: none;
  font-size: 0.9rem;
}

.member-email a:hover {
  text-decoration: underline;
}

.member-interests {
  margin-top: 1rem;
}

.member-interests strong {
  font-size: 0.9rem;
  color: #2d3748;
}

.member-interests ul {
  margin: 0.5rem 0 0 0;
  padding-left: 1rem;
  list-style-type: disc;
}

.member-interests li {
  font-size: 0.85rem;
  color: #4a5568;
  margin-bottom: 0.25rem;
}

/* Alumni Section */

.alumni-list {
  margin-top: 2rem;
}

.alumni-list p {
  margin-bottom: 1rem;
  padding-left: 1rem;
  border-left: 3px solid rgba(234, 191, 36, 0.50);
  background: rgba(255, 255, 247, 0.918);
  padding: 0.75rem 1rem;
  border-radius: 0 4px 4px 0;
  font-size: 1rem;

}

.alumni-list strong {
  color: #1a1a1a;
}

.alumni-list em {
  font-style: italic;
}

.alumni-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.alumni-filter-btn {
  background: rgb(41, 33, 4);
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 0.375rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
  width: auto;
  display: inline-block;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.alumni-filter-btn:hover {
  background: #eac024ff;
  border: none;
}

.alumni-filter-btn:focus {
  outline: none;
  border: none;
}

.alumni-filter-btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(234, 191, 36, 0.5);
}

.alumni-filter-btn--active {
  background: #eac024ff;
}

.alumni-entry {
  margin: 0.75rem 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #2d3748;
  transition: opacity 0.2s ease, max-height 0.2s ease;
}

.alumni-entry p {
  margin: 0;
}

.alumni-entry--hidden {
  display: none;
}

.alumni-separator {
  margin: 2rem 0 1.5rem 0;
  border: 0;
  border-top: 1px solid #e2e8f0;
}

.alumni-other-group {
  margin-top: 2rem;
}

.alumni-filter-dropdown {
  display: none;
  width: 100%;
  max-width: 300px;
  padding: 0.75rem 2rem;
  background: rgb(41, 33, 4);
  color: white;
  border: none;
  border-radius: 0.375rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  margin-bottom: 1rem;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='white' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 0.75rem center;
  padding-left: 2rem;
}

.alumni-filter-dropdown:hover {
  background-color: rgb(48, 45, 36);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='white' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 0.75rem center;
}

.alumni-filter-label {
  display: none;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Responsive adjustments */

/* Large laptop/desktop - force 3 columns */
@media screen and (min-width: 64em) {
  .member-gallery {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Tablet - 2 columns max */
@media screen and (max-width: 64em) and (min-width: 48em) {
  .member-gallery {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Small tablet and mobile - 2 columns */
@media screen and (max-width: 48em) {
  .member-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: none;
  }


  h3.member-name  {
    font-size: 1.1rem !important;
  }

  .member-info {
    padding: 1rem;
  }

  .alumni-filters {
    display: none;
  }

  .alumni-filter-label {
    display: block;
  }

  .alumni-filter-dropdown {
    display: block;
  }
}

/* Very small mobile */
@media screen and (max-width: 30em) {
  .member-gallery {
    margin: 1rem 0;
    gap: 0.75rem;
    grid-template-columns: repeat(2, 1fr);
  }
  
  .member-info {
    padding: 0.75rem;
  }
  
  .member-name {
    font-size: 1.1rem;
  }
  
  .member-title {
    font-size: 0.9rem;
  }
}



/* Card Enhancements */
.member-gallery .member-card {
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
}

.member-gallery .member-card:nth-child(1) { animation-delay: 0.1s; }
.member-gallery .member-card:nth-child(2) { animation-delay: 0.2s; }
.member-gallery .member-card:nth-child(3) { animation-delay: 0.3s; }
.member-gallery .member-card:nth-child(4) { animation-delay: 0.4s; }
.member-gallery .member-card:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}