#missalboxOverlay {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1050;
  background-color: #c3c3c3;
  filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=85);
  opacity: 0.85;
  display: none;
}

#missalbox {
  position: absolute;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1060;
  text-align: center;
  /*line-height: 0;*/
  font-weight: normal;
}
#missalbox img {
  width: auto;
  height: auto;
  -webkit-border-radius: 2px;
  -moz-border-radius: 2px;
  -ms-border-radius: 2px;
  -o-border-radius: 2px;
  border-radius: 2px;
}
#missalbox a img {
  border: none;
}
#missalbox h4 {
  margin-top: 0;
  line-height: 1em;
}
#missalbox button.close {
  font-size: 2em;
  outline: none;
  position: absolute;
  top: -20px;
  right: -20px;
  opacity: 0.6;
  color: white;
}
#missalbox button.close:hover {
  color: #eeaaaa;
  opacity: 1;
}

#missalboxThumbs {
  text-align: center;
  height: 100%;
  padding-left: 5px;
  padding-right: 8px;
  margin-bottom: 5px;
}
#missalboxThumbs .audio-player-div {
  display: table;
  vertical-align: middle;
  width: 100%;
}

#productPreviewPlayButtonThumb {
  display: none;
  visibility: none;
}

.mb-outerContainer {
  position: relative;
  background-color: white;
  *zoom: 1;
  width: 90%;
  max-width: 90%;
  max-height: 90%;
  height: 90%;
  margin: 0 auto;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  -ms-border-radius: 4px;
  -o-border-radius: 4px;
  border-radius: 4px;
}
.mb-outerContainer:after {
  content: "";
  display: table;
  clear: both;
}

.mb-container {
  height: 95%;
  min-height: 90%;
  padding: 10px;
  position: relative;
}
.mb-container > .nav {
  left: 0;
}

.mb-loader {
  position: absolute;
  top: 40%;
  left: 0%;
  height: 25%;
  width: 100%;
  text-align: center;
  line-height: 0;
}

.mb-nav {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: 10;
}
.mb-nav a {
  outline: none;
}

.mb-prev, .mb-next {
  width: 20%;
  height: 100%;
  background-image: url("data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7");
  background-repeat: no-repeat;
  cursor: pointer;
  /* Trick IE into showing hover */
  display: block;
}
.mb-prev {
  left: 0;
  float: left;
  background: url("/img/prev.png") left 48% no-repeat;
  opacity: 0.2;
}
.mb-prev:hover {
  opacity: 1.0;
}
.mb-next {
  right: 0;
  float: right;
  background: url("/img/next.png") right 48% no-repeat;
  opacity: 0.2;
}
.mb-next:hover {
  opacity: 1.0;
}
.mb-next-small {
  display: inline;
  background: none;
  width: auto;
  float:none;
  color: #000000;
  opacity: 0.75;
}
.mb-next-small:hover {
  text-decoration: none;
  color: #000000;
}
.mb-prev-small {
  display: inline;
  background: none;
  width: auto;
  float:none;
  color: #000000;
  opacity: 0.75;
}
.mb-prev-small:hover {
  text-decoration: none;
  color: #000000;
}

.mb-dataContainerContainer {
  min-height: 36px;
  height: 5%;
}
.mb-dataContainer {
  color: #222222;
  height: 100%;
  -moz-border-radius-bottomleft: 4px;
  -webkit-border-bottom-left-radius: 4px;
  border-bottom-left-radius: 4px;
  -moz-border-radius-bottomright: 4px;
  -webkit-border-bottom-right-radius: 4px;
  border-bottom-right-radius: 4px;
}
.mb-dataContainer:after {
  content: "";
  display: table;
  clear: both;
}

.mb-data {
  padding: 0px;
  margin-top: 0px;
  text-align: left;
  vertical-align: bottom;
  height: 100%;
}
.mb-data .mb-number {
  height: 100%;
  font-size: 18px;
  line-height: 18px;
  text-align: center;
  text-align: right;
  padding-right: 10px;
}
.mb-data .close {
  position: relative;
  text-align: right;
  font-size: 11px;
  font-weight: bold;
  outline: none;
  opacity: 1.0;
}
.mb-data .close:hover {
  opacity: 1;
}
.mb-data .mb-player {
  height: 100%;
}
.mb-number-true {
}

.missalThumbnailDiv {
  text-align: center;
  vertical-align: middle;
  width: 100%;
  margin-bottom: 15px;
}

.missalThumbnail {
  width: 95%;
  display:block;
  margin: auto;
}

.audio-player-div .audio-player-div-internal {
  display: table-cell;
  vertical-align: middle;
  width: 100%;
}

.productPreviewWidgetLarge {
  width: 120px;
  display: inline-block;
}

.productPreviewWidgetSmall {
  width: 23%;
  margin: 5px 0 0 0;
  display: inline;
}

.productPreviewWidgetDiv {
  max-width: 100%;
  text-align: center;
  vertical-align: center;
}

/* Add in different behavior for mobile only */
@media (max-width: 767px) {
    #missalbox p.close {
      display: none;
      visibility: hidden;
    }
    #missalbox button.close {
      top: -25px;
      right: 0px;
    }

    #missalboxThumbs {
      display: block;
      min-height: 60px;
      height: 60px;
      max-height: 60px;
      padding-left: 5px;
      padding-right: 5px;
      margin-top:5px;
    }

    .mb-outerContainer {
      width: 100%;
      max-width: 320px;
      height: 100%;
      max-height: 470px;
    }

    .mb-container {
      min-height: 80%;
      height: 85%;
      max-height: 440px;
      max-width: 320px;
    }

    .mb-image {
      max-width: 300px;
      height: 100%;
      max-height: 390px;
    }

    .mb-dataContainerContainer {
      display: none;
    }

    .mb-data .mb-number {
      display: none;
      visibility: hidden;
    }

    .mb-nav {
      position: absolute;
      top: 102%;
      left: 0%;
      max-height: 60px;
      width: 100%;
    }

    .mb-prev, .mb-next {
      height: 100%;
      cursor: pointer;
      width: 19%;
      position: relative;
      /* Trick IE into showing hover */
      display: block;
    }

    .mb-next {
      left: 0px;
      z-index: 1080;
    }

    .mb-prev {
      z-index: 1080;
      right: 81%;
    }

    .missalThumbnailDiv {
      min-height: 60px;
      height: 60px;
      min-width: 19%;
      max-width: 19%;
      display:inline;
      position: absolute;
      top: 0px;
      margin: auto;
      vertical-align: top;
      z-index: 1081;
    }

    .missalThumbnail {
      max-height: 60px;
      display:inline;
      margin: auto;
    }
    div.missalThumbnail.link {
      display: none;
    }
}
