/* Team + Gallery pages — extends the main site styles. */

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 30px;
}
.team-card {
  background: #fff;
  border: 1px solid #ece9e3;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,.05), 0 10px 30px rgba(0,0,0,.04);
  transition: transform .25s ease, box-shadow .25s ease;
  text-align: center;
}
.team-card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(0,0,0,.1); }
.team-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--bg-soft);
  display: block;
}
.team-photo.placeholder {
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-size: 3rem; color: #fff;
  background: linear-gradient(135deg, #2f3e49, #1f2a33);
}
.team-body { padding: 22px 22px 24px; }
.team-body h3 { margin: 0 0 4px; font-size: 1.25rem; }
.team-role { color: var(--accent); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }
.team-bio { color: var(--text-light); font-size: .92rem; margin: 14px 0 0; }
.team-socials { display: flex; gap: 10px; justify-content: center; margin-top: 16px; }
.team-socials a {
  width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-soft); color: var(--primary); font-weight: 700; font-size: .85rem;
  transition: background .2s, color .2s;
}
.team-socials a:hover { background: var(--primary); color: #fff; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}
.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-soft);
  box-shadow: 0 6px 20px rgba(0,0,0,.06);
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .35s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 14px 12px;
  color: #fff; font-size: .9rem; font-weight: 500;
  background: linear-gradient(transparent, rgba(0,0,0,.72));
  opacity: 0; transform: translateY(8px);
  transition: opacity .3s ease, transform .3s ease;
}
.gallery-item:hover .gallery-caption { opacity: 1; transform: translateY(0); }

.empty-note { text-align: center; color: var(--text-light); padding: 40px 0; }

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
}
