
/*!
 * weoverlayimg 4.0.20
 *
 * @license GPLv3 for open source use only
 * or weoverlayimg Commercial License for commercial use
*/
.we-overlayimg-image-container img {
  width: 100%;
  max-width: 400px;
  margin: 10px;
  cursor: pointer;
  border-radius: 6px;
  border: 2px solid #ccc;
  transition: transform 0.3s ease;
}

.we-overlayimg-image-container img:hover {
  transform: scale(1.02);
}

/* Modal */
.we-overlayimg-modal {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--webcustomize-theme-background-5);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.we-overlayimg-modal-content {
  position: relative;
  max-width: 75%;
  max-height: 75%;
  border-radius: 10px;
}

.we-overlayimg-modal-content img {
  width: auto !important;
  height: auto !important;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255,255,255,0.3);
}

.we-overlayimg-close-btn {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #fff;
  color: #000;
  font-size: 22px;
  font-weight: bold;
  padding: 5px 12px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.we-overlayimg-close-btn:hover {
  background: #f00;
  color: #fff;
}

.we-overlayimg-modal.show .we-overlayimg-modal-content {
  animation: slideInUp 1.5s ease forwards;
}
