.lb-overlay { position: fixed; inset: 0; z-index: 9999; background: rgba(0, 0, 0, .92);
  display: flex; align-items: center; justify-content: center; overflow: hidden; touch-action: none; }
.lb-overlay[hidden] { display: none; }
.lb-img { max-width: 96vw; max-height: 96vh; transform-origin: center center; user-select: none;
  -webkit-user-select: none; touch-action: none; }
.lb-btn { position: absolute; background: rgba(0, 0, 0, .5); color: #fff; border: 0; cursor: pointer;
  font-size: 2.2rem; line-height: 1; width: 3rem; height: 3rem; border-radius: 50%; }
.lb-btn:hover, .lb-btn:focus { background: rgba(255, 255, 255, .3); }
.lb-btn[hidden] { display: none; }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
