/* MAIN MODAL */
.adv-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 99999;
}


/* BOX */
.adv-box {
  width: 90%;
  max-width: 420px;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  position: relative;
  text-align: center;
  animation: adv-slideUp 0.4s ease;
}

/* Slide animation */
@keyframes adv-slideUp {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Flyer */
.adv-flyer {
  width: 100%;
  max-height: 77vh; /* 60% of screen height */
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}


/* Buttons container */
.adv-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

/* Shared button style */
.adv-actions button,
.adv-actions a {
  flex: 1;
  padding: 10px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  text-align: center;
}

/* Video */
.adv-video-btn {
  background: #222;
  color: #fff;
}

/* Donate */
.adv-donate-btn {
  background: #d62828;
  color: #fff;
}

/* Story */
.adv-story-link {
  background: #09F;
  border: 1px solid #000;
  color: #fff;
}

/* Close */
.adv-close,
.adv-video-close {
  position: absolute;
  top: 5px;
  right: 10px;
  font-size: 22px;
  cursor: pointer;
}

/* VIDEO MODAL */
.adv-video-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999999;
}

/* Make video container relative */
.adv-video-box {
  position: relative;
  width: 95%;
  max-width: 1100px;
}

/* Improved Close Button */
.adv-video-close {
  position: absolute;
  top: -40px; /* moves it above video */
  right: 0;
  font-size: 28px;
  font-weight: bold;
  color: #fff;
  background: #d62828;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
}
