/* =============================================================
   exec-team.css
   Styles for the Leadership Team page
   ============================================================= */


/* ── Page wrapper ── */
.leadership-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px 60px;
  font-family: inherit; /* inherits from your Pacific theme */
}


/* ── Page title ── */
.leadership-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: #2d2d2d;
  margin-bottom: 40px;
}


/* ── Section ── */
.leadership-section {
  margin-bottom: 60px;
}

.section-title {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: #2d2d2d;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}


/* ── Person grid ── */
.person-grid {
  display: grid;
  gap: 24px;
}

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

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


/* ── Individual person card ── */
.person {
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.person:hover .person-img-wrap img {
  transform: scale(1.04);
}


/* ── Photo wrapper — forces square crop ── */
.person-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: #ddd; /* fallback while image loads */
}

.person-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top; /* keeps faces in frame */
  display: block;
  transition: transform 0.3s ease;
}


/* ── Name plate — overlays the bottom of the photo ── */
.person-nameplate {
  background-color: #e51937;
  padding: 6px 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

.person-name {
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.2;
  display: block;
}

.person-title {
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.3;
  display: block;
}


/* =============================================================
   MODAL
   ============================================================= */

/* ── Overlay ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0; /* shorthand for top/right/bottom/left: 0 */
  background-color: rgba(0, 0, 0, 0.65);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.is-open {
  display: flex;
}


/* ── Modal box ── */
.modal-box {
  background-color: #1a1a1a;
  color: #ffffff;
  max-width: 680px;
  width: 100%;
  padding: 36px 40px 40px;
  position: relative;
  border-radius: 2px;
  max-height: 80vh;
  overflow-y: auto;
}


/* ── Close button ── */
.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.modal-close:hover {
  opacity: 1;
}


/* ── Modal content ── */
.modal-name {
  color: #e51937;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 4px;
}

.modal-title-text {
  color: #cccccc;
  font-size: 0.9rem;
  margin: 0 0 20px;
  font-style: italic;
}

.modal-bio {
  color: #e0e0e0;
  font-size: 0.92rem;
  line-height: 1.7;
}


/* =============================================================
   RESPONSIVE
   ============================================================= */

@media (max-width: 900px) {
  .person-grid.cols-3,
  .person-grid.cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .person-grid.cols-3,
  .person-grid.cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 420px) {
  .person-grid.cols-3,
  .person-grid.cols-4 {
    grid-template-columns: 1fr;
  }

  .modal-box {
    padding: 28px 24px 32px;
  }
}
