/* ============================================================
   Team card redesign — rounded rectangular cards + member modal
   Backend Ops · 2026-07-16
   Overrides the theme's bare-photo render. Loaded AFTER theme CSS
   on /our-team/ so these rules win.
   Source headshots are 313x303px — cards are capped so they never
   upscale (= stay crisp). Layout: 4 per row on desktop.
   ============================================================ */

.our-team .page-section.team-row .professionals-wrap{
  gap: 28px 24px;
  align-items: stretch;
  justify-content: center;
  max-width: 1180px;          /* keeps 4-up cards at ~277px = under native 313px */
  margin-left: auto;
  margin-right: auto;
}

/* the card — 4 per row, small enough that the 313px photo never upscales */
.our-team .page-section.team-row .professionals-wrap .professional-item,
.our-team .page-section.team-row .professionals-wrap .professional-item.active{
  flex: 0 1 calc(25% - 18px);
  max-width: calc(25% - 18px);
  background: #0f1a16;                       /* deep green-black card surface */
  border: 1px solid rgba(197,160,80,.20);   /* subtle gold hairline */
  border-radius: 16px;
  overflow: hidden;                          /* clips the photo's top corners */
  padding: 0 0 18px;
  justify-content: flex-start;
  align-items: stretch;
  text-align: center;
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}

.our-team .page-section.team-row .professionals-wrap .professional-item:hover{
  transform: translateY(-6px);
  border-color: rgba(197,160,80,.55);
  box-shadow: 0 18px 40px rgba(0,0,0,.5);
}

/* native ratio, never upscaled → stays crisp */
.our-team .page-section.team-row .professionals-wrap .professional-item img{
  width: 100%;
  height: auto;
  margin: 0 0 16px;
  border-radius: 0;
  display: block;
}

.our-team .page-section.team-row .professionals-wrap .professional-item .title{
  font-size: 16px;
  margin: 0 14px 5px;
  line-height: 1.3;
}

.our-team .page-section.team-row .professionals-wrap .professional-item .role{
  font-size: 13.5px;
  color: #b7b0a6;
  margin: 0 14px;
  line-height: 1.4;
}

/* ---- photo in hand, bio still owed — real card, not clickable yet ---- */
.our-team .page-section.team-row .professionals-wrap .professional-item.no-bio{
  pointer-events: none;
}

/* ---- placeholder cards (people we're still awaiting headshots for) ---- */
.our-team .page-section.team-row .professionals-wrap .professional-item.placeholder-card{
  pointer-events: none;                      /* not clickable until real */
  border-style: dashed;
  border-color: rgba(197,160,80,.28);
}
.our-team .page-section.team-row .professionals-wrap .professional-item .placeholder-photo{
  width: 100%;
  aspect-ratio: 313 / 303;                   /* match the real photo footprint */
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 16px;
  background: radial-gradient(circle at 50% 34%, #16241d, #0b120e);
  border-bottom: 1px solid rgba(197,160,80,.12);
}
.our-team .page-section.team-row .professionals-wrap .professional-item .placeholder-photo span{
  font-family: "Obviously Medium", Georgia, serif;
  font-size: 54px;
  color: rgba(197,160,80,.45);
  letter-spacing: 1px;
}
.our-team .page-section.team-row .professionals-wrap .professional-item.placeholder-card .role{
  color: #8f8a80;
  font-style: italic;
}

/* ---- responsive: 4 → 3 → 2 → 1 ---- */
@media (max-width: 1100px){
  .our-team .page-section.team-row .professionals-wrap .professional-item,
  .our-team .page-section.team-row .professionals-wrap .professional-item.active{
    flex: 0 1 calc(33.333% - 18px);
    max-width: calc(33.333% - 18px);
  }
}
@media (max-width: 760px){
  .our-team .page-section.team-row .professionals-wrap .professional-item,
  .our-team .page-section.team-row .professionals-wrap .professional-item.active{
    flex: 0 1 calc(50% - 18px);
    max-width: calc(50% - 18px);
  }
}
@media (max-width: 480px){
  .our-team .page-section.team-row .professionals-wrap .professional-item,
  .our-team .page-section.team-row .professionals-wrap .professional-item.active{
    flex: 0 1 100%;
    max-width: 300px;
  }
}

/* ============================================================
   Member modal — large centered card (was modal-fullscreen)
   ============================================================ */
.our-team-modal .modal-dialog{
  max-width: min(1040px, 92vw);
  margin: 4vh auto;
}
.our-team-modal .modal-content{
  background: #0f1a16;
  border: 1px solid rgba(197,160,80,.28);
  border-radius: 20px;
  overflow: hidden;
  color: #f3efe8;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.our-team-modal .modal-header{
  border: 0;
  padding: 16px 18px 0;
}
.our-team-modal .modal-body{
  padding: 8px 40px 44px;
  scrollbar-width: none;        /* Firefox: hide the scrollbar, keep scroll */
  -ms-overflow-style: none;     /* legacy Edge */
}
.our-team-modal .modal-body::-webkit-scrollbar{   /* WebKit: hide scrollbar */
  width: 0;
  height: 0;
  display: none;
}
.our-team-modal .btn-close{
  filter: invert(1) grayscale(1) brightness(1.8);
  opacity: .75;
}
.our-team-modal .btn-close:hover{ opacity: 1; }

/* modal photo stays at native size so it never blurs.
   Full theme selector required: style.css:21166 forces a 250x250
   circle (border-radius:50%) at this specificity — this file loads
   after style.css, so matching the selector lets square-fit win. */
.our-team-modal .modal-img,
.our-team-modal .modal-body img,
.our-team-modal .modal-content .modal-body .container .header-wrap .modal-img{
  max-width: 313px;
  width: 100%;
  height: auto;
  border-radius: 14px;
  display: block;
}

/* ---- Sept 2026: three headed groups (Tina 9/18) ---- */
.our-team .page-section.team-row .team-group-head{ margin-top: 56px; }
.our-team .page-section.team-row .team-group-head:first-of-type{ margin-top: 0; }
.our-team .page-section.team-row .professionals-wrap{ margin-bottom: 8px; }
.our-team .page-section.team-row .professionals-wrap .professional-item.placeholder-card,.our-team .page-section.team-row .professionals-wrap .professional-item.placeholder-card *{cursor:default;}

/* QA 2026-11-04: initials-only cards do not open a bio, so they should not look clickable */
.our-team .page-section.team-row .professionals-wrap .professional-item.placeholder-card,.our-team .page-section.team-row .professionals-wrap .professional-item.placeholder-card *{cursor:default;}
