/* Image gallery overlay and navigation */
@scope ([data-public-lightbox]) {
  .lightboxOverlay {
    position: absolute;
    inset: 0;
    z-index: 9999;
    background: #000;
    opacity: .8;
  }

  .lightbox {
    position: absolute;
    width: 100%;
    z-index: 10000;
    text-align: center;
    line-height: 0;
    font-weight: 400;
    outline: 0;
  }

  .lightbox .lb-image {
    display: block;
    height: auto;
    max-width: inherit;
    max-height: none;
    border: 4px solid #fff;
    border-radius: 3px;
  }

  .lb-outerContainer {
    position: relative;
    width: 250px;
    height: 250px;
    margin: 0 auto;
    border-radius: 4px;
    background: #fff;
  }

  .lb-loader {
    position: absolute;
    top: 43%;
    left: 0;
    width: 100%;
    height: 25%;
  }

  .lb-cancel {
    display: block;
    width: 32px;
    height: 32px;
    margin: 0 auto;
    background: url("/site-assets/gallery/loading.gif") no-repeat;
  }

  .lb-nav {
    position: absolute;
    inset: 0;
    z-index: 10;
  }

  .lb-nav :is(.lb-prev, .lb-next) {
    display: block;
    height: 100%;
    cursor: pointer;
    outline: 0;
    opacity: 0;
    transition: opacity .6s;
  }

  .lb-nav .lb-prev {
    width: 34%;
    float: left;
    background: url("/site-assets/gallery/prev.png") left 48% no-repeat;
  }

  .lb-nav .lb-next {
    width: 64%;
    float: right;
    background: url("/site-assets/gallery/next.png") right 48% no-repeat;
  }

  .lb-nav :is(.lb-prev, .lb-next):hover { opacity: 1; }

  .lb-dataContainer {
    width: 100%;
    margin: 0 auto;
    padding-top: 5px;
    border-radius: 0 0 4px 4px;
  }

  .lb-dataContainer::after {
    content: "";
    display: table;
    clear: both;
  }

  .lb-data {
    padding: 0 4px;
    color: #ccc;
  }

  .lb-data .lb-details {
    width: 85%;
    float: left;
    text-align: left;
    line-height: 1.1em;
  }

  .lb-data .lb-caption {
    font-size: 13px;
    font-weight: 700;
    line-height: 1em;
  }

  .lb-data .lb-number {
    display: block;
    clear: left;
    padding-bottom: 1em;
    font-size: 12px;
    color: #999;
  }

  .lb-data .lb-close {
    display: block;
    float: right;
    width: 30px;
    height: 30px;
    background: url("/site-assets/gallery/close.png") top right no-repeat;
    text-align: right;
    outline: 0;
    opacity: .7;
    transition: opacity .2s;
  }

  .lb-data .lb-close:hover {
    cursor: pointer;
    opacity: 1;
  }
}
