.promo-banner-outer {
  position: relative;
  margin: 0 40px 30px;

  .banner-dismiss {
    color: var(--ee-text-secondary);
    position: absolute;
    right: 30px;
    text-decoration: none;
    top: 20px;

    &:hover {
      color: var(--ee-text-tertiary);
    }

    &::before {
      font-family: 'Font Awesome 6 Pro';
      font-weight: 900;
      content: "\f00d";
      font-size: 24px;
      line-height: 1;
    }
  }
}

.ee-main-header.entries + .promo-banner-outer {
  margin-top: 30px;
  margin-bottom: 5px;
}

.promo-banner-wrapper {
  // Set background-image URL and background-color inline
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  text-align: center;
  position: relative;
  cursor: pointer;
  display: block;
  border-radius: 6px;
  border: 1px solid #dfe0ef;
  overflow: hidden;

  img {
    // Set max-height inline to natural height of image
    max-width: 100%;
    display: block;
    margin: auto;
  }
}

@media (max-width: 900px) {
  .promo-banner-outer .banner-dismiss {
    right: 20px;
    top: 15px;

    &::before {
      font-size: 18px;
    }
  }
}

@media (max-width: 700px) {
  .promo-banner-outer .banner-dismiss {
    right: 10px;
    top: 5px;
  }
}
