/* html,
body {
    height: 100%;
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
} */


/* body.popup-open {
    overflow: hidden;
}


.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
}


.popup-overlay.active {
    display: flex;
}


.popup-dialog {
    position: relative;
    max-width: 720px;
    width: 92vw;
    max-height: 92vh;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    background: #000;
}


.popup-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}


.popup-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
}


.popup-close:hover {
    background: rgba(0, 0, 0, 0.7);
}


.demo-trigger {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
} */


html, body {
  height: 100%;
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
}

body.popup-open {
  overflow: hidden;
}

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  z-index: 19999999; /* 蓋過 Omnichat z-index: 10000000; */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.popup-dialog {
  position: relative;
  max-width: 720px;
  width: 92vw;
  max-height: 92vh;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  background: #000;
  transform: scale(0.95);
  opacity: 0;
  transition: all 0.3s ease;
}

.popup-overlay.active .popup-dialog {
  transform: scale(1);
  opacity: 1;
}

.popup-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.popup-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease;
}

.popup-close:hover {
  background: rgba(0, 0, 0, 0.7);
}

/* =======================
   範例觸發按鈕
   ======================= */
/* .demo-trigger {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
} */

.ins-pos-bottom-left{
  z-index: 9999 !important;
}