.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: none; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
   z-index:9999;
  background-color: rgba(0,0,0,0.5); /* Black w/ opacity */
  bottom:calc(50% - 200px);
}
 

/* Modal Content/Box */
.modal-content {
  background-color: #fefefe;
  margin: 1% auto; /* 15% from the top and centered */
  padding: 20px;
  border: 2px solid #0285A1;
  width: 40%; /* Could be more or less, depending on screen size */
 
  top:calc(30% - 200px);
  bottom:calc(50% - 200px);
}

/* The Modal (background) */
.modal2 {
  display: none; /* Hidden by default */
  position: absolute; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: none; /* Enable scroll if needed */
   
  top:calc(10% - 200px);
  bottom:calc(50% - 200px);
 
 
}

/* Modal Content/Box */
.modal-content2 {
  background-color: #fefefe;
  margin: 1% auto; /* 15% from the top and centered */
 
  border: 1px solid #888;
  width: 40%; /* Could be more or less, depending on screen size */
  
  position:absolute;
  top:calc(10% - 150px);
  left:calc(50% - 250px);
 bottom:calc(50% - 200px);
   
}


/* The Close Button */
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}


/* Mobile rules */
@media (max-width:767px) {
    .modal {
	  
	}
	
	/* Modal Content/Box */
	.modal-content {
	  background-color: #fefefe;
	  margin-top: 1%; /* 15% from the top and centered */
	   margin-left: 1px;
	   margin-right: 1px;
	  border: 1px solid #888;
	  width: 100%; /* Could be more or less, depending on screen size */
	}

    .hero-desktop {
        visibility: hidden;
        display: none;
    }
}