/* MGK Staff Directory - frontend styles */
.mgk-staff-grid {
  --mgk-columns: 4;
  display: grid;
  grid-template-columns: repeat(var(--mgk-columns), 1fr);
  gap: clamp(1rem, 2vw, 1.75rem);
  margin: 2rem 0;
}

@media (max-width: 1024px) {
  .mgk-staff-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .mgk-staff-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .mgk-staff-grid { grid-template-columns: 1fr; }
}

.mgk-staff-card {
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(20,20,20,0.06), 0 8px 24px rgba(20,20,20,0.05);
  transition: transform 220ms cubic-bezier(0.16,1,0.3,1), box-shadow 220ms cubic-bezier(0.16,1,0.3,1);
  border: 1px solid rgba(0,0,0,0.06);
}

.mgk-staff-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 8px rgba(20,20,20,0.08), 0 16px 32px rgba(20,20,20,0.10);
}

.mgk-staff-photo-btn {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: #eceae6;
  cursor: pointer;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.mgk-staff-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 320ms cubic-bezier(0.16,1,0.3,1);
}

.mgk-staff-photo-btn:hover .mgk-staff-photo,
.mgk-staff-photo-btn:focus-visible .mgk-staff-photo {
  transform: scale(1.06);
}

.mgk-staff-zoom-icon {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  color: #01696f;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 200ms ease, transform 200ms ease;
}

.mgk-staff-photo-btn:hover .mgk-staff-zoom-icon,
.mgk-staff-photo-btn:focus-visible .mgk-staff-zoom-icon {
  opacity: 1;
  transform: translateY(0);
}

.mgk-staff-info {
  padding: 1rem 1.1rem 1.25rem;
}

.mgk-staff-name {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  color: #201f1d;
  line-height: 1.3;
}

.mgk-staff-role {
  font-size: 0.9rem;
  color: #7a7974;
  margin: 0;
}

.mgk-staff-empty {
  color: #7a7974;
  font-style: italic;
}

/* Lightbox */
.mgk-staff-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15,14,13,0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 250ms ease;
  padding: 2rem;
}

.mgk-staff-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.mgk-staff-lightbox-content {
  max-width: min(90vw, 720px);
  max-height: 90vh;
  margin: 0;
  text-align: center;
  transform: scale(0.94);
  transition: transform 280ms cubic-bezier(0.16,1,0.3,1);
}

.mgk-staff-lightbox.is-open .mgk-staff-lightbox-content {
  transform: scale(1);
}

.mgk-staff-lightbox-content img {
  max-width: 100%;
  max-height: 75vh;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}

.mgk-staff-lightbox-content figcaption {
  margin-top: 1rem;
  color: #f7f6f2;
}

.mgk-staff-lightbox-content figcaption span {
  display: block;
}

#mgk-staff-lightbox-name {
  font-size: 1.15rem;
  font-weight: 700;
}

#mgk-staff-lightbox-role {
  font-size: 0.95rem;
  opacity: 0.75;
}

.mgk-staff-lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 180ms ease;
}

.mgk-staff-lightbox-close:hover,
.mgk-staff-lightbox-close:focus-visible {
  background: rgba(255,255,255,0.22);
}

@media (prefers-reduced-motion: reduce) {
  .mgk-staff-card, .mgk-staff-photo, .mgk-staff-zoom-icon, .mgk-staff-lightbox, .mgk-staff-lightbox-content {
    transition: none !important;
  }
}
