#page-header {
  margin-bottom: .5em;
}

#who-we-are-description {
  width: 50%;
  text-align: left;
  margin: auto;
  font-family: 'Poppins';
  font-size: 30px;
  font-weight: 400;
}

#sub-heading {
  padding-top: 15px;
  font-family: 'Poppins';
  font-size: 30px;
  font-weight: 400;
}

#full-team-photo {
  width: 50%;
  max-width: 1000px;
  display: block;
  margin: auto;
  text-align: center;
  margin-top: 1em;
  border: 1px solid black;
}

.subteam-header {
  margin-top: 3em;
}

.subteam-description {
  width: 50%;
  margin: auto;
  margin-bottom: 1em;
}


p {
  font-family: 'Open Sans';
  font-size: 15px;
}

h4 {
  font-family: 'Open Sans';
  font-weight: 700;
  font-size: 20px;
  margin: 0em;
}

.headshot {
  width: 100%;
  height: 285px;
  object-fit: cover;
}

.logo-container {
  text-align: right;
  width: 100%;
  height: 10px;
}

.linkedin-logo {
  width: 8%;
  margin-right: .5em;
  margin-bottom: .5em;
}



.hidden {
  visibility: visible;
}

@media (max-width: 620px) {

  main {
    margin-bottom: 8em;
  }

  .subteam-description {
    width: 75%;
    padding-top: 10px;
  }

  #who-we-are-description {
    width: 80%;
  }

  #full-team-photo {
    width: 80%;
  }

  .subteam-box {
    width: 85%;
    padding: 1.5em;
  }

  .subteam-title {
    font-size: 1.5em;
  }

  .subteam-box .subteam-description {
    font-size: 1em;
  }

  #subteams-header {
    font-size: 2em;
  }

  .subteam-images-section {
    margin: 0.5em auto 2em auto;
  }

  .subteam-images {
    gap: 1em;
    margin-top: 0.5em;
    max-width: 100%;
  }

  .image-container {
    flex: 0 0 calc(50% - 0.5em);
    width: 100%;
    max-width: 300px;
    min-width: unset;
    padding: 1em;
  }

  .subteam-image {
    border-radius: 10px;
  }

}

#subteams-section {
  width: 100%;
  margin: 3em auto;
  text-align: center;
}

#subteams-header {
  font-size: 2.5em;
  margin-bottom: 2em;
  color: #0d4d66;
}

.subteam-box {
  width: 60%;
  max-width: 800px;
  margin: 2em auto;
  background: rgba(255, 255, 255, 0.5);
  padding: 2em;
  border-radius: 50px;
  border: 2px solid #0d4d66;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

.subteam-title {
  text-align: center;
  font-size: 2em;
  margin-top: 0;
  margin-bottom: 1em;
  color: #0d4d66;
  font-weight: 700;
}

.subteam-box .subteam-description {
  text-align: center;
  font-size: 1.2em;
  line-height: 1.6;
  color: #0d4d66;
  margin: 0;
  width: 100%;
}

.subteam-images-section {
  width: 100%;
  margin: 1em auto 3em auto;
  text-align: center;
}

.subteam-images {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5em;
  margin-top: 1em;
  max-width: 1700px;
  margin-left: auto;
  margin-right: auto;
}

.image-container {
  flex: 0 0 calc(33.333% - 1em);
  max-width: 350px;
  min-width: 250px;
  background: rgba(255, 255, 255, 0.5);
  padding: 1.5em;
  border-radius: 25px;
  border: 2px solid #0d4d66;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-container:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.subteam-image {
  width: 100%;
  height: auto;
  border-radius: 15px;
  object-fit: cover;
}

/* Modal styles for expanded images */
.image-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 90%;
  max-height: 90%;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.modal-image {
  width: 100%;
  height: auto;
  border-radius: 15px;
  display: block;
}

.close-modal {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.close-modal:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.close-modal:focus {
  outline: none;
}
