/**
* Building lightbox
**/

.building-lightbox .modal {
  width: 70%;
  top: 7%;
  height: 80%;
  left: 15%;
  position: absolute;
  max-height: 72%;
}

@media(max-width: 900px) {
  .building-lightbox .modal {
    width: 70%;
    top: 60px;
    height: 50%;
    left: 15%;
    position: absolute;
    max-height: 550px;
  }
}

.building-lightbox .modal .brand {
  /* calc fallback */
  width: 100%;
  width: calc(100% - 114px);
}

/**
* Body content
**/

.building-lightbox .modal .body {
  height: 100%;
  padding: 0;
  background: rgba(0, 0, 0, 0.9);
  position: relative;
}

.building-lightbox .modal .body-contribution {
  height: 170%;
  margin-top: 55px;
  background: #fff;
  opacity: 90%;
  position: relative;
}

.building-lightbox .modal .body-discussion {
  height: 180%;
  margin-top: 55px;
  background: #fff;
  opacity: 90%;
  position: relative;
}

.building-lightbox .modal .recaptcha {
  padding: 8px 0 8px 380px;
}

.building-lightbox .lightbox-image {
  max-height: 100%;
  max-width: 100%;
  position: relative;
  top: 50%;
  left: 50%;
  transform: translateY(-50%) translateX(-50%);
  margin: 0 auto;
}

/**
* Image pagination buttons
**/

.building-lightbox .image-pagination-button {
  position: absolute;
  top: 50%;
  height: 30px;
  width: 30px;
  margin-top: -15px;
  cursor: pointer;
}

.building-lightbox .image-pagination-button.previous-image {
  left: -50px;
  transform: rotate(180deg);
}

.building-lightbox .image-pagination-button.next-image {
  right: -50px;
}

@media(max-width: 600px) {
  .building-lightbox .image-pagination-button.previous-image {
    left: -40px;
  }
  .building-lightbox .image-pagination-button.next-image {
    right: -40px;
  }
}

/**
* Lightbox caption
**/

.building-lightbox .lightbox-caption {
  position: absolute;
  bottom: -48px;
  color: #fff;
  padding: 15px 30px;
  text-align: center;
  box-sizing: border-box;
  width: 100%;
  background: inherit;
}

@media(max-width: 900px) {
  .building-lightbox .lightbox-caption {
    position: absolute;
    bottom: -55px;
    color: #fff;
    padding: 10px;
    text-align: center;
    box-sizing: border-box;
    width: 100%;
    background: inherit;
    height: 55px;
    overflow: scroll;
    left: 0;
    font-size: 0.9em;
  }
}