/* [MODULE:LIGHTBOX] @1.2.0
 * Δ Clean lightbox UI + counter + conditional caption
 * Rollback label: [RB:LIGHTBOX_1.2.0]
 */

html.mdp-lb-open,
html.mdp-lb-open body {
  overflow: hidden;
}

.mdp-lb {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
}

.mdp-lb.is-open {
  display: block;
}

.mdp-lb__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
}

.mdp-lb__dialog {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.mdp-lb__figure {
  margin: 0;
  max-width: min(1100px, 100%);
  width: 100%;
  text-align: center;
}

.mdp-lb__meta {
  display: flex;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.mdp-lb__counter {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.10);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

.mdp-lb__img {
  max-width: 100%;
  max-height: 82vh;
  width: auto;
  height: auto;
  border-radius: 0.75rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  background: rgba(255, 255, 255, 0.02);
}

.mdp-lb__caption {
  margin-top: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}

.mdp-lb__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.mdp-lb__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.mdp-lb__prev { left: 1rem; }
.mdp-lb__next { right: 1rem; }
