/* PB Content: dialog styles. */

.lbx {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0,0,0,.94);
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s;
}

.lbx.open {
  opacity: 1;
  visibility: visible;
}

.lbx-stage {
  max-width: 92vw;
  max-height: 86vh;
  display: grid;
  place-items: center;
}

.lbx-stage img,
.lbx-stage video {
  max-width: 92vw;
  max-height: 86vh;
  display: block;
  border-radius: 4px;
}

.lbx button {
  position: absolute;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.lbx button[hidden] {
  display: none;
}

.lbx button:hover {
  background: #fff;
  color: #000;
}

.lbx svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.lbx-close {
  top: 20px;
  right: 20px;
}

.lbx-prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lbx-next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lbx-count {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  text-align: center;
  color: #aaa;
  font: 600 13px/1 var(--font-head);
  letter-spacing: .14em;
}

@media screen and (max-width: 760px) {
  .lbx-prev,
  .lbx-next {
    top: auto;
    bottom: 16px;
    transform: none;
  }
}
