/* Common Overlay Style */
.esp-overlay{
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  /*justify-content: center;*/
  /*align-items: center;*/
  z-index: 99999;
  backdrop-filter: blur(4px);
}
.img-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 99999;
  backdrop-filter: blur(4px);
}

/* ===== Site Popup ===== */
.esp-popup {
  position: relative;
  width: 90%;
 top:20;
 margin:auto;
  max-width: 900px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  animation: fadeIn 0.3s ease;

}

.esp-popup iframe {
  width: 100%;
  height: 80vh;
  border: none;
  justify-content: center;
  align-items: center;
}

.esp-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #000;
  color: #fff;
  border: none;
  font-size: 20px;
  cursor: pointer;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.3s ease;
}
.esp-close:hover { background: #ff3b3b; }

/* ===== Image Popup (9:16) ===== */
/*#img-popup-content {*/
/*  position: relative;*/
/*  width: 90vw;*/
/*  max-width: 400px;*/
/*  aspect-ratio: 9 / 16;*/
/*  background: #000;*/
/*  border-radius: 12px;*/
/*  overflow: hidden;*/
/*  box-shadow: 0 0 25px rgba(0,0,0,0.6);*/
/*}*/

/*#img-popup-content img {*/
/*  width: 100%;*/
/*  height: 100%;*/
  /*object-fit: cover;*/
/*}*/

/*#img-popup-close {*/
/*  position: absolute;*/
/*  top: 10px;*/
/*  right: 14px;*/
/*  font-size: 30px;*/
/*  color: white;*/
/*  cursor: pointer;*/
/*  z-index: 10000;*/
/*  background: rgba(0,0,0,0.4);*/
/*  border-radius: 50%;*/
/*  padding: 2px 10px;*/
/*}*/

/*@media (max-width: 500px) {*/
/*  #img-popup-content {*/
/*    width: 90vw;*/
/*    max-width: 90vw;*/
/*  }*/
/*}*/

#img-popup-content {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: 90vw;
  max-width: 400px;
  aspect-ratio: 9 / 16;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 25px rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Image inside popup */
#img-popup-content img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Close button */
#img-popup-close {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 30px;
  color: white;
  cursor: pointer;
  z-index: 10000;
  background: rgba(0,0,0,0.4);
  border-radius: 50%;
  padding: 2px 10px;
}

/* === Responsive Adjustments === */
@media (max-width: 768px) {
  #img-popup-content {
    width: 85vw;
    max-width: 85vw;
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 480px) {
  #img-popup-content {
    width: 90vw;
    max-width: 90vw;
    left: 50%;
    transform: translateX(-50%);
  }
}


@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
