/**
 * Custom overrides to guarantee seamless offline lightbox modal and responsive behavior
 */

#elementor-popup-modal-656 {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 999999 !important;
  background-color: rgba(0, 0, 0, 0.75) !important;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

#elementor-popup-modal-656.is-visible {
  display: flex !important;
}

#elementor-popup-modal-656 [data-elementor-type="popup"] {
  display: block !important;
}

#elementor-popup-modal-656 .dialog-widget-content {
  position: relative !important;
  background: transparent !important;
  max-width: 900px !important;
  width: 100% !important;
  max-height: 90vh !important;
  overflow-y: auto !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3) !important;
  border-radius: 12px;
}

#elementor-popup-modal-656 .dialog-close-button {
  position: absolute !important;
  top: 15px !important;
  right: 15px !important;
  cursor: pointer !important;
  z-index: 10001 !important;
  background: #ffffff !important;
  border-radius: 50% !important;
  width: 34px !important;
  height: 34px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid #ddd !important;
  outline: none !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
  transition: transform 0.2s, background-color 0.2s;
}

#elementor-popup-modal-656 .dialog-close-button:hover {
  background-color: #f3f3f3 !important;
  transform: scale(1.08);
}

/* Ensure mobile menu container toggles smoothly */
@media (max-width: 1024px) {
  .elementor-nav-menu--dropdown.elementor-nav-menu__container {
    transition: max-height 0.35s ease-in-out !important;
  }
}
