/*
 * NCGB staff grid + bio lightbox. Enqueued by the [ncgb_staff_grid] shortcode.
 * Relies on the --gb-* design tokens defined in style.css.
 */

.ncgb-staff-grid {
  display: grid;
  grid-template-columns: repeat(var(--ncgb-staff-cols, 4), 1fr);
  gap: 24px;
}
@media (max-width: 1024px) {
  .ncgb-staff-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .ncgb-staff-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 460px) {
  .ncgb-staff-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

/* Card (button) */
/* Scoped under .ncgb-staff-grid so these outrank the Elementor Kit's global
   `.elementor-kit-12 button` theme style (the card is a <button>). */
.ncgb-staff-grid .ncgb-staff-card {
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: center;
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 1px solid var(--gb-border);
  border-radius: var(--gb-radius);
  background: #0a0f15;
  overflow: hidden;
  cursor: pointer;
  font: inherit;
  color: var(--gb-body);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.ncgb-staff-grid .ncgb-staff-card:hover,
.ncgb-staff-grid .ncgb-staff-card:focus-visible {
  background: #0a0f15;
  border-color: var(--gb-border-strong);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.4), var(--gb-glow-green);
  transform: translateY(-4px);
  outline: none;
}
.ncgb-staff-card__photo {
  display: block;
  aspect-ratio: 4 / 5;
  background: var(--gb-panel-2);
  overflow: hidden;
}
.ncgb-staff-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
  transition: transform 0.3s ease;
}
.ncgb-staff-card:hover .ncgb-staff-card__photo img {
  transform: scale(1.05);
}
.ncgb-staff-card__name {
  display: block;
  margin: 18px 16px 0;
  font-family: "Spectral SC", Georgia, serif;
  font-size: 1.4rem;
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: var(--gb-green);
}
.ncgb-staff-card__role {
  display: block;
  margin: 6px 16px 20px;
  font-family: "Open Sans", sans-serif;
  font-size: 0.8rem;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gb-muted);
  white-space: normal;
  overflow-wrap: break-word;
}

/* Lightbox dialog */
.ncgb-staff-dialog {
  width: min(920px, calc(100vw - 32px));
  max-height: min(760px, calc(100vh - 32px));
  padding: 0;
  border: 1px solid var(--gb-border-strong);
  border-radius: var(--gb-radius);
  background: var(--gb-panel);
  color: var(--gb-body);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65), var(--gb-glow-green);
}
.ncgb-staff-dialog::backdrop {
  background: rgba(7, 11, 14, 0.74);
  backdrop-filter: blur(5px);
}
.ncgb-staff-dialog__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(240px, 40%) 1fr;
  max-height: inherit;
  overflow: auto;
}
@media (max-width: 720px) {
  .ncgb-staff-dialog__inner { grid-template-columns: 1fr; }
}
.ncgb-staff-dialog__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--gb-border-strong);
  background: rgba(7, 11, 14, 0.6);
  color: var(--gb-text);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.ncgb-staff-dialog__close:hover {
  background: var(--gb-green);
  color: #07120b;
  border-color: var(--gb-green);
}
.ncgb-staff-dialog__photo {
  background: var(--gb-panel-2);
}
.ncgb-staff-dialog__photo img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  display: block;
}
.ncgb-staff-dialog__body {
  padding: clamp(28px, 4vw, 48px);
}
.ncgb-staff-dialog__name {
  margin: 0 0 6px;
  font-family: "Spectral SC", Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.05;
  color: var(--gb-green);
}
.ncgb-staff-dialog__role {
  margin: 0 0 20px;
  font-family: "Open Sans", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gb-pink-soft);
}
.ncgb-staff-dialog__specialties {
  margin: 0 0 16px;
  color: var(--gb-body);
  font-size: 0.95rem;
  line-height: 1.6;
}
.ncgb-staff-dialog__specialties strong,
.ncgb-staff-dialog__note strong {
  color: var(--gb-green);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.78rem;
}
.ncgb-staff-dialog__note {
  margin: 0 0 22px;
  padding: 16px 18px;
  border-left: 4px solid var(--gb-pink);
  border-radius: 0 12px 12px 0;
  background: var(--gb-panel-2);
}
.ncgb-staff-dialog__note p {
  margin: 8px 0 0;
  font-family: "Volkhov", Georgia, serif;
  font-style: italic;
  color: var(--gb-text);
  line-height: 1.6;
}
.ncgb-staff-dialog__bio {
  color: var(--gb-body);
  font-size: 1rem;
  line-height: 1.75;
}
.ncgb-staff-dialog__bio p:last-child {
  margin-bottom: 0;
}
