/* ============================================================
   style-org-banner.css
   Styles สำหรับ static banner และ popup overlay ของ Org Banner
   ============================================================ */

/* --- Popup Overlay (backdrop) --- */
.org-banner-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: orgBannerFadeIn 0.25s ease;
}

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

/* --- Popup Container --- */
.org-banner-popup-container {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  animation: orgBannerSlideUp 0.25s ease;
}

@keyframes orgBannerSlideUp {
  from { transform: translateY(24px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* --- รูปภาพใน Popup --- */
.org-banner-popup-img {
  display: block;
  width: 100%;
  max-width: 860px;
  height: auto;
  object-fit: contain;
}

/* --- ปุ่ม ✕ --- */
.org-banner-close-btn {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 1;
}

.org-banner-close-btn:hover {
  background: rgba(0, 0, 0, 0.85);
}
