/* Simple overlay + modal */
#hmhip-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999999;
}

#hmhip-overlay[aria-hidden="false"] {
  display: flex;
}

.hmhip-modal {
  position: relative;
  max-width: 92vw;
  max-height: 92vh;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.hmhip-modal img {
  display: block;
  max-width: 800px;
  height: 90vh;
}

.hmhip-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  user-select: none;
}

.hmhip-close:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
