.bm-banner {
  transition: max-height 1s ease-out;
  overflow: hidden;
  max-height: 500px;
  margin-bottom: 25px;
}

.bm-banner:empty {
  margin-bottom: 0;
  margin-top: 0;
  max-height: 0;
}

@media (max-width:767.8px),
(min-width:768px) and (max-width:991.8px) {
  .bm-banner {
    max-width: 100% !important;
  }

  .bm-banner img.bm-banner-image {
    position: relative !important;
    display: inline-block;
  }

  .bm-banner div.bm-banner-image {
    padding-top: 0 !important;
    text-align: center;
  }
}

.bm-banner .ui.dimmer {
  transition: none !important;
}

.bm-banner.hidden {
  width: 1px !important;
  height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
}

.bm-banner-placeholder {
  width: 100%;
  padding-top: 0 !important;
}

.bm-banner-placeholder img.bm-banner-image {
  position: relative !important;
  display: inline-block;
}

@media (max-width:767.8px) {
  .bm-banner-placeholder {
    text-align: center !important;
  }
}

@media (min-width:992px) {
  .right-aligned .bm-banner {
    margin-left: auto;
  }

  .right-aligned .bm-banner img.bm-banner-image {
    left: auto !important;
    right: 0 !important;
  }
}

.right-aligned .bm-banner-placeholder {
  text-align: right;
}

@media (max-width:767.8px) {
  .right-aligned .bm-banner-placeholder img.bm-banner-image {
    margin: 0 auto !important;
  }
}