/* Who We Are V28 — same-page archive photo lightbox + four homepage metrics */

/* Keep the existing archive cards visually identical while making their images clickable. */
.who-v14 .w14-about-image-trigger {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: inherit;
  background: transparent;
  cursor: zoom-in;
}

.who-v14 .w14-about-image-trigger:focus-visible {
  outline: 3px solid #18a9bd;
  outline-offset: -4px;
}

.who-v14 .w14-about-gallery-card figcaption {
  z-index: 2;
  pointer-events: none;
}

/* The overlay is created by the page-specific script and never navigates away. */
.w14-lightbox[hidden] {
  display: none !important;
}

.w14-lightbox {
  position: fixed;
  z-index: 100000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(18px, 4vw, 56px);
  background: rgba(4, 16, 29, .90);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  cursor: zoom-out;
  animation: w14LightboxFadeIn .18s ease-out both;
}

.w14-lightbox-dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: min(1200px, 94vw);
  max-height: 92vh;
  cursor: default;
}

.w14-lightbox-image {
  display: block;
  max-width: 100%;
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .38);
}

.w14-lightbox-caption {
  max-width: 90vw;
  margin: 0;
  color: rgba(255, 255, 255, .94);
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
}

.w14-lightbox-close {
  position: absolute;
  z-index: 2;
  top: -17px;
  right: -17px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(8, 28, 51, .12);
  border-radius: 50%;
  background: #fff;
  color: #082746;
  font: 500 28px/1 "DM Sans", sans-serif;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .24);
  cursor: pointer;
}

.w14-lightbox-close:hover {
  background: #eef7fa;
  transform: translateY(-1px);
}

@keyframes w14LightboxFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Four cards use the existing white surface, border, shadow and typography. */
.who-v14 .w14-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

.who-v14 .w14-stat {
  min-width: 0;
}

.who-v14 .w14-stat span {
  line-height: 1.55;
  letter-spacing: .075em;
}

@media (max-width: 900px) {
  .who-v14 .w14-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .who-v14 .w14-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .who-v14 .w14-stat {
    min-height: 78px;
    padding: 13px 11px;
  }

  .who-v14 .w14-stat strong {
    font-size: 23px;
  }

  .who-v14 .w14-stat span {
    font-size: 8px;
    letter-spacing: .045em;
    line-height: 1.45;
  }

  .w14-lightbox {
    padding: 16px;
  }

  .w14-lightbox-image {
    max-height: 78vh;
    border-radius: 9px;
  }

  .w14-lightbox-close {
    top: -13px;
    right: -7px;
    width: 38px;
    height: 38px;
  }

  .w14-lightbox-caption {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .w14-lightbox {
    animation: none;
  }
}
