﻿.staff-container {
  width: 100%;
  max-width: 1000px;
  height: auto; /* adjust as needed */
  overflow-y: auto;
  padding: 12px;

  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;

  /* optional snap */
  scroll-snap-type: y proximity;

  scrollbar-width: none;
}
.staff-container::-webkit-scrollbar {
  display: none;
}

/* Grid layout */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* Card */
.staff-card {
    display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);

  scroll-snap-align: start;

  transition: transform 0.2s, box-shadow 0.2s;
}

.staff-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* Image */
.staff-card img {
  width: 100%;
  aspect-ratio: 3 / 4;   /* portrait-friendly */
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.3s;
}

.staff-card:hover img {
  transform: scale(1.05);
}

/* Name (NOT clamped) */
.staff-card h3 {
  font-size: 16px;
  margin: 12px 12px 6px;
  font-weight: 600;
}

/* Title (2-line clamp) */
.staff-card p {
  font-size: 13px;
  color: #666;
  margin: 0 12px 12px;
  line-height: 1.4;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 📱 Tablet */
@media (max-width: 900px) {
  .staff-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 📱 Mobile */
@media (max-width: 500px) {
  .staff-grid {
    grid-template-columns: 1fr;
  }

  .staff-container {
    height: 600px;
  }
}