.modal {
  display: none; /* Hidden by default */
  position: fixed; 
  z-index: 999999 !important;
  left: 0;
  top: 0;
  width: 100%; 
  height: 100vh;
  overflow: scroll; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: #fefefe;
  margin: auto;
  padding: 12px;
  border: 1px solid #888;
  font-family: 'Roboto', sans-serif;
  min-width: 400px;
}
.modal-content.longModal {
  margin-top: 4em;
}
.profilesContainer {
  display: flex;
  justify-content: center;
  gap: 1em;
}
.profilesContainer ul li {
  text-align: left;
}
.maps {
position: relative;    
}


.usmap {
  border: none;
  height: auto;
  max-width: 800px;
	}
    
.mdmap {
  background-color: #fefefe;
  margin: auto;
  padding: 20px;
  border: 1px solid #888;
  width: 600px;
  height: auto;
  position: absolute;
  float: left;
  left: 50%;
  top: 55%;
  transform: translate(-50%, -50%);
}    
    
/* The Close Button */
.close {
  color: black;
  float: right;
  font-size: 28px;
  font-weight: bold;
  margin: auto;
  width: 15px;
}

.closeMD {
  display: inline-block;
  color: #000000;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  top: 5px;
  right: 10px;

}
    
.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}
    
.closeMD:hover,
.closeMD:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}
    
.portrait img {
  height: auto;
  margin-bottom: 0.5rem !important; 
  max-height: 350px;
}
    
@media only screen and (min-width: 600px) {    
.center{
  display: block;
  margin-left: auto;
  margin-right: auto;
    }    
}
    
.state {
    text-align: center;
    padding: 10px 10px 10px 10px;
    margin-left:15%;
    margin-right:15%;
    color: #fff;  
    background-color: #00205c;
    margin-bottom: 0.5rem !important; 
}
    
.county {
  text-align: center;
  color: black;  
  font-weight: 600;
  margin: 0;
  font-size: 1.5em;
  padding-left: 15px;
}
    
.name > a {
  text-align: center; 
  max-width: 100% !important;
  margin-bottom: 0.5rem !important; 
  text-decoration: none;
  font-weight: 600;
  color: #00205c
}
.profilesContainer a {
  text-decoration: underline;
  color: black
}
.name {
  margin: 0 !important;
  text-align: center;
}
.job_title {
    text-align: center;     
    margin-bottom: 0.5rem !important; 
}  
    
.contact_email {
    text-align: center;
    margin-bottom: 0.5rem !important; 
}
    
.contact_phone {
    text-align: center;
    margin-bottom: 0.5rem !important; 
}
#listOfPeople {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1em;
}
#listOfPeople .counselor-profile {
  background-color: #fafafa;
  width: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 2em;
}
#listOfPeople .counselor-profile .portrait img {
  max-height: 200px;
}
@media only screen and (max-width: 600px) {
  .portrait img {
    max-height: 200px !important;
  }
} 

@media only screen and (max-height: 680px) {
  .modal-content{
    width: 100%;
    max-height: 100%;
    overflow-y: auto; /* Enable scroll if needed */
  }
}


@media only screen and (max-height: 680px) and (min-width:475px)  {
  .modal {
    padding-top: 0%;
  }
}



@media only screen and (max-height: 810px) and (min-height:300px) and (max-width: 610px) and (min-width: 560px){
  .mdmap {
    left: 20% !important;
  }
}



@media only screen and (max-width: 600px) {
.mdmap {
    width: 400px;
  }
} 

