/* Reuse the sponsor card aesthetic, add portrait/overlay tweaks */
.mhr-staff__grid .sponsor-card {
    text-decoration: none;
}

.mhr-staff__grid .staff-portrait {
    aspect-ratio: 3/4;
    overflow: hidden;
}

.mhr-staff__grid .staff-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Optional responsive column helpers */
.mhr-staff__grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.mhr-staff__grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.mhr-staff__grid.cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 900px) {

    .mhr-staff__grid.cols-4,
    .mhr-staff__grid.cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .mhr-staff__grid[class*="cols-"] {
        grid-template-columns: 1fr;
    }
}

/* Modal */
.mref-staff-overlay {
    position: fixed;
    inset: 0;
    background: rgba(6, 20, 33, .85);
    backdrop-filter: blur(2px);
    display: none;
    z-index: 10060;
}

.mref-staff-overlay.is-open {
    display: block;
}

.mref-staff-overlay__inner {
    position: relative;
    width: min(980px, 92vw);
    margin: 8vh auto 0;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
    padding: 28px;
}

.mref-staff-overlay__close {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: #0c2235;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
}

.mref-staff-modal__content {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    align-items: start;
}

.mref-staff-modal__portrait {
    aspect-ratio: 3/4;
    overflow: hidden;
    border-radius: 14px;
}

.mref-staff-modal__portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mref-staff-modal__name {
    margin: 0 0 6px;
}

.mref-staff-modal__title {
    margin: 0 0 14px;
    color: #476b86;
    font-weight: 600;
}

.mref-staff-modal__bio p {
    margin: 0 0 1em;
}

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

.mhr-staff__grid .staff-portrait img {
    height: 320px;
}

.mhr-staff__grid .staff-portrait {
    height: 320px;
}

.mref-staff-overlay__close {
    width: 44px;
    height: 44px;
    border: 0;
    font-size: 20px;
    padding: 10px;
}

.mref-staff-modal__copy {
    max-height: 80vh;
    /* viewport height */
    overflow-y: auto;
    /* vertical scrollbar */
    padding-right: 12px;
    /* avoid text hitting scrollbar */
}

/* Sponsor/Staff grid base (copied from hero.css) */
.mhr-sponsors__grid,
.mhr-staff__grid{
  display:grid;
  gap:24px;
  grid-template-columns:repeat(3,1fr);
}

.mref-staff-card.sponsor-card{
  position:relative;
  display:flex;
  flex-direction:column;
  text-decoration:none;
  background:#fff;
  color:#0b1324;
  border-radius:28px 28px 120px 28px;
  overflow:hidden;
  box-shadow:0 10px 28px rgba(0,0,0,.18);
  transition:transform .18s ease, box-shadow .18s ease;
}
.mref-staff-card.sponsor-card::before{
  content:""; position:absolute; left:0; right:0; top:0; height:6px; background:#49d12a; z-index:1;
}
.mref-staff-card .sponsor-logo-wrap{
  display:flex; align-items:center; justify-content:center;
  padding:22px 22px 0; min-height:170px;
}
.mref-staff-card .sponsor-logo-wrap img{
  width:auto; height:auto; object-fit:cover; border-radius:10px;
}
.mref-staff-card .sponsor-caption{
  padding:14px 16px; text-align:center;
}
.mref-staff-card:hover{
  transform:translateY(-2px);
  box-shadow:0 14px 36px rgba(0,0,0,.22);
}

@media (max-width: 992px){
  .mhr-sponsors__grid,
  .mhr-staff__grid{ grid-template-columns:1fr; }
}