/* SECTION-1 (Leadership Gallery) TEXT AND PHOTO - START - DEFAULT */
.gallery-wrapper {
  margin: 0 0 60px 0;
}

.gallery {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 60px;
}

.row {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.card {
  background: white;
  border-radius: 1rem;
  padding: 1rem;
  width: 250px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
  z-index: 1;
}

.card:hover {
  transform: translateY(-5px);
  background: linear-gradient(to right, #f0f4ff, #d7e9fc);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.card img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.name {
  font-size: 1.1rem;
  font-weight: bold;
}

.title {
  color: #666;
  font-size: 0.9rem;
}

/* BIO TOOLTIP - START - DEFAULT */
.tooltip {
  position: relative;
  display: inline-block;
  border-bottom: 0px dotted black;
  font-family: helvetica;
  font-weight: bold;
  font-size: 1.5rem;
}

.tooltiptext {
  visibility: hidden;
  width: 450px;
  background-color: #002060;
  background: linear-gradient(45deg, #2d5d9f, #0d1a2f); /* Slate to Navy */
  font-family: helvetica;
  color: #fff;
  text-align: left;
  font-size: 0.813rem;
  font-weight: normal;
  line-height: 1.313em;
  border: 0px solid gray;
  border-radius: 8px;
  text-shadow: rgba(0, 0, 0, 0.0980392) 1px 1px 1px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.6);
  padding: 15px;
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -240px;
  z-index: 1000;
}

.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent black transparent;
  z-index: 1000;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  z-index: 1000;
}

@media (max-width: 1130px) {
  .tooltip-card {
    position: relative;
    display: inline-block;
  }

  .tooltiptext {
    display: none;
    visibility: visible;
    width: 350px;
    font-size: 0.813rem;
    top: 100%;
    left: 50%;
    margin-left: -190px;
  }

  /* Show tooltip when associated input is checked */
  input[type="radio"]:checked + label + .tooltiptext {
    display: block;
  }

  /* Invisible overlay to detect outside tap */
  .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    display: block;
    content: "";
    cursor: default;
  }
}

@media (max-width: 600px) {
  .tooltiptext {
    width: 350px;
    font-size: 0.813rem;
    top: 100%;
    left: 50%;
    margin-left: -190px;
  }
}

@media (max-width: 450px) {
  .tooltiptext {
    width: 323px;
    font-size: 0.813rem;
    top: 100%;
    left: 50%;
    margin-left: -177px;
  }
}
