/* Theme-friendly defaults: inherits fonts/colors. Minimal styling. */
:root{
  --npc-staff-name-font: 18px;
  --npc-staff-title-font: 14px;
}

.npc-staff-grid{
  display: grid;
  gap: 18px;
  align-items: start;
}

.npc-cols-1{ grid-template-columns: 1fr; }
.npc-cols-2{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
.npc-cols-3{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
.npc-cols-4{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
.npc-cols-5{ grid-template-columns: repeat(5, minmax(0, 1fr)); }
.npc-cols-6{ grid-template-columns: repeat(6, minmax(0, 1fr)); }

@media (max-width: 900px){
  .npc-cols-4,.npc-cols-5,.npc-cols-6{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px){
  .npc-cols-2,.npc-cols-3,.npc-cols-4,.npc-cols-5,.npc-cols-6{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px){
  .npc-staff-grid{ grid-template-columns: 1fr !important; }
}

.npc-staff-card{
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,.75);
  cursor: pointer;
}
.npc-staff-card:focus{
  outline: 2px solid rgba(0,0,0,.25);
  outline-offset: 2px;
}

.npc-staff-photo-wrap{
  overflow: hidden;
  background: rgba(0,0,0,.04);
}

.npc-aspect-4-3 .npc-staff-photo-wrap{ aspect-ratio: 4 / 3; }
.npc-aspect-1-1 .npc-staff-photo-wrap{ aspect-ratio: 1 / 1; }

.npc-shape-round .npc-staff-photo-wrap{
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  margin: 14px auto 0;
  border: 1px solid rgba(0,0,0,.08);
}

.npc-shape-round.npc-size-small .npc-staff-photo-wrap{ width: 110px; }
.npc-shape-round.npc-size-medium .npc-staff-photo-wrap{ width: 150px; }
.npc-shape-round.npc-size-large .npc-staff-photo-wrap{ width: 200px; }

.npc-staff-photo{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.npc-staff-photo--placeholder{
  width: 100%;
  height: 100%;
}

.npc-staff-body{
  padding: 14px 14px 16px;
}

.npc-shape-round .npc-staff-body{
  padding-top: 10px;
}

.npc-staff-name{
  margin: 0 0 6px;
  font-size: var(--npc-staff-name-font);
  line-height: 1.2;
  text-align: center;
}

.npc-staff-title{
  margin: 0;
  opacity: .85;
  font-weight: 600;
  text-align: center;
  font-size: var(--npc-staff-title-font);
}

/* Modal */
body.npc-staff-modal-open{ overflow: hidden; }

.npc-staff-modal{
  position: fixed;
  inset: 0;
  z-index: 99999;
}

.npc-staff-modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
}

.npc-staff-modal__dialog{
  position: relative;
  max-width: 860px;
  width: calc(100% - 28px);
  margin: 40px auto;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}

.npc-staff-modal__close{
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border: 0;
  background: rgba(0,0,0,.06);
  border-radius: 999px;
  cursor: pointer;
  font-size: 24px;
  line-height: 40px;
}

.npc-staff-modal__content{
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 16px;
  padding: 18px;
}

@media (max-width: 720px){
  .npc-staff-modal__content{ grid-template-columns: 1fr; }
}

.npc-staff-modal__photo-wrap{
  background: rgba(0,0,0,.04);
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.npc-staff-modal__photo{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.npc-staff-modal__name{
  margin: 0 0 6px;
  font-size: calc(var(--npc-staff-name-font) + 4px);
}

.npc-staff-modal__title{
  margin: 0 0 12px;
  opacity: .85;
  font-weight: 600;
  font-size: calc(var(--npc-staff-title-font) + 2px);
}

.npc-staff-modal__bio p:last-child{ margin-bottom: 0; }
