.close {
  float: right;
  font-size: 28px;
  font-weight: bold;
  line-height: 30px;
  color: #090909;
  position: absolute;
  right: 20px;
  top: 0;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

#sombrapopup {
  display: none;
  position: fixed;
  z-index: 999999999;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background:#00000080;
}

#popup img {
  max-width: 100%;
}

#popup{
  display: flex;
  justify-content: center;
  align-content: center;
  align-items: center;
  flex-direction: column;
  flex-wrap: nowrap;
  padding: 2em;
  width: 100%;
  max-width: 500px;
  /* height: auto; */
  min-height: 300px;
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 99999999;
  max-height: 100vh;
  transform: translate(-50%, -50%);
  overflow: hidden;
  background: #fff;
}

#popup .h1{
  font-size: 40px;
  font-weight: bold;
  margin-bottom: 0.8em;
  line-height: 1.5em;
  text-align: center;
}

#popup .h2{
  font-size: 30px;
  font-weight: bold;
  margin-bottom: 0.8em;
  line-height: 1.5em;
  text-align: center;
}

#popup .h3{
  font-size: 20px;
  font-weight: normal;
  margin-bottom: 0.8em;
  line-height: 1.5em;
  text-align: center;
}

#popup img.aligncenter{
  clear: none;
  margin-top: 0;
  margin-bottom:0;
}

#popup .aligncenter{
  margin-right: none;
  margin-left: none;
}

@media only screen and (max-width: 550px) {
  #popup {
    max-width: 450px;
  }
  #popup img.aligncenter {
    height: 300px !important;
  }
}

@media only screen and (max-width: 490px) {
  #popup {
    max-width: 350px;
    min-height: auto;
  }
  #popup img.aligncenter{
    height: auto !important;
  }
}

@media only screen and (max-width: 350px) {
  #popup{
    max-width: 300px;
  }
  #popup img.aligncenter{
    height: auto !important;
  }
}
