/* Overlay stays the same */
.promo-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);

  display: none;
  justify-content: center;
  align-items: center;

  z-index: 9999;
}

/* Bigger container */
.promo-box {
  display: flex;
  flex-direction: column;

  width: 95%;
  max-width: 700px;
  height: 90vh;

  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;

  text-align: center;

  position: relative;
  overflow: hidden;
}

.promo-box p {
  margin: 0.5rem 0;
}

.promo-button {
  margin-top: 0.5rem;
}

.promo-flyer {
  flex-grow: 1;        /* 👈 take available space */
  min-height: 0;       /* 👈 critical for flexbox */
  width: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.promo-close {
  position: absolute;
  top: 12px;
  right: 12px;

  width: 40px;
  height: 40px;

  border: none;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  color: white;

  font-size: 1.5rem;
  line-height: 1;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
}

@media (max-width: 600px) {
  .promo-box {
    height: auto;
    padding: 1rem;
  }

  .promo-flyer {
    object-fit: cover;        /* 👈 fills space instead of leaving gaps */
    object-position: top;     /* 👈 keep top of flyer visible */
  }
}

@media (min-width: 768px) {
  .promo-box {
    max-width: 500px;   /* 👈 reduce width on desktop */
  }
}