/* ===== ANNOUNCEMENT POPUP LIGHTBOX ===== */

.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
  animation: popupFadeIn 0.35s ease;
}

.popup-overlay.closing {
  animation: popupFadeOut 0.25s ease forwards;
}

@keyframes popupFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes popupFadeOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}

.popup-box {
  position: relative;
  max-width: 520px;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  animation: popupSlideUp 0.35s ease;
}

@keyframes popupSlideUp {
  from { transform: translateY(32px) scale(0.96); opacity: 0; }
  to   { transform: translateY(0) scale(1);       opacity: 1; }
}

.popup-box img {
  display: block;
  width: 100%;
  height: auto;
}

.popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.55);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, transform 0.15s;
  z-index: 10;
}

.popup-close:hover {
  background: rgba(0, 0, 0, 0.85);
  transform: scale(1.1);
}

.popup-close-bar {
  background: rgba(0, 0, 0, 0.55);
  text-align: center;
  padding: 12px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.popup-close-bar button {
  background: none;
  border: 1.5px solid rgba(255,255,255,0.45);
  color: rgba(255,255,255,0.85);
  font-family: var(--font-th, 'Kanit', sans-serif);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 24px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.15s;
}

.popup-close-bar button:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

@media (max-width: 560px) {
  .popup-box { max-width: 100%; border-radius: 12px; }
}
