#hp-modal {
    position: fixed;
    top: 0;
     left: 0;
    width: 100%;
     height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
background-color: rgba(0, 0, 0, 0.5);
  border-radius: none !important;
  /* display: none; */

   opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}


/* When shown */
#hp-modal.hp-show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
#hp-modal img {
     
  width: 100%;
  height: 336px;
  object-fit: cover;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.hp-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.hp-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    z-index: 10000;
    text-align: center;

  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  position: relative;
  text-align: center;
  width: 512px !important;
  animation: hpFadeIn 0.4s ease-in forwards;
}
.hp-content .hp-popup-title{
font-size: 1.5rem;
font-size: clamp(1.5rem, 1.4rem + 0.5vw, 2rem);
line-height: 100%;
}
.hp-content .hp-popup-description {
    font-size: 1rem;
    line-height: 100%;
}

.hp-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    font-weight: semibold;
}


@keyframes hpFadeIn {
  0% {
    opacity: 0;
    transform: translateY(-75px);
  }
  100% {
    opacity: 1;
    transform: translateY(0px);
  }
}


.hp-cta-button-wrapper {
    margin-block: 15px;
    text-align: center;
}

.hp-cta-button {
    padding: 12px 24px;
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.hp-cta-button:hover {
    filter: brightness(0.9);
}



@media only screen and (max-width: 576px) {
  
 .hp-content{
    max-width: 330px !important;
    /* height: 85%; */
  }
 
.hp-close  {
    top: 0px;
  }

#hp-modal img{
  width: 100%;
  height: 240px;
  object-fit: cover;
}

}

@media only screen and (max-width: 362px){
  .hp-content {
    width: 320px !important;
  }
  
}

