/* Basic lightbox styles for Teach Haiti Popup */
.th-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 99999;
}

.th-popup-overlay.is-open {
  display: flex;
}

.th-popup-dialog {
  position: relative;
  max-width: 920px;
  width: 100%;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  overflow: hidden;
}

.th-popup-content {
  padding: 24px;
}

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

.th-popup-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: 0;
  width: 36px;
  height: 36px;
  border-radius: 18px;
  font-size: 22px;
  line-height: 36px;
  text-align: center;
  cursor: pointer;
  z-index: 2;
}

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

.th-popup-content h2 {
  margin-top: 0;
}

.th-popup-mode-campaign .th-popup-content {
  padding: 0;
}

.th-popup-campaign {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1.1fr);
  min-height: 470px;
  background: linear-gradient(135deg, #003349, #005e93);
  color: #fff;
}

.th-popup-campaign--no-image {
  grid-template-columns: 1fr;
  min-height: 0;
}

.th-popup-campaign__media {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  background: #003349;
}

.th-popup-campaign__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 62%, rgba(0, 51, 73, 0.36));
  pointer-events: none;
}

.th-popup-campaign__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.th-popup-campaign__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(38px, 5vw, 62px);
}

.th-popup-campaign__eyebrow {
  margin: 0 0 12px;
  color: #68bfd0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.25;
  text-transform: uppercase;
}

.th-popup-content .th-popup-campaign h2 {
  margin: 0;
  color: #fff;
  font-family: "Mr Eaves Mod OT", "Avenir Next", sans-serif;
  font-size: clamp(38px, 4.4vw, 54px);
  font-weight: 500;
  line-height: 0.98;
}

.th-popup-campaign__copy {
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 17px;
  line-height: 1.55;
  white-space: pre-line;
}

.th-popup-campaign__note {
  margin: 16px 0 0;
  padding-left: 14px;
  border-left: 4px solid #68bfd0;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.th-popup-campaign__button {
  align-self: flex-start;
  margin-top: 24px;
  padding: 13px 24px;
  border-radius: 999px;
  background: #f18721;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.th-popup-campaign__button:hover,
.th-popup-campaign__button:focus {
  color: #fff;
  outline: 3px solid rgba(255, 255, 255, 0.75);
  outline-offset: 3px;
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
}

@media (max-width: 760px) {
  .th-popup-overlay {
    padding: 14px;
  }

  .th-popup-dialog {
    max-height: calc(100vh - 28px);
    overflow-y: auto;
  }

  .th-popup-campaign {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .th-popup-campaign__media {
    min-height: 0;
    aspect-ratio: 16 / 8;
  }

  .th-popup-campaign__media::after {
    background: linear-gradient(180deg, transparent 65%, rgba(0, 51, 73, 0.32));
  }

  .th-popup-campaign__body {
    padding: 30px 26px 34px;
  }

  .th-popup-content .th-popup-campaign h2 {
    font-size: clamp(34px, 10vw, 44px);
  }
}

@media (max-width: 480px) {
  .th-popup-content { padding: 16px; }
  .th-popup-mode-campaign .th-popup-content { padding: 0; }
  .th-popup-campaign__copy { font-size: 15px; }
  .th-popup-campaign__button { width: 100%; text-align: center; }
}
