/* Lihtne, sõltumatu pildigalerii (lightbox) - teadusaparaadid.ee */
.tp-lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.92);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .15s ease;
}
.tp-lightbox-overlay.tp-open {
  opacity: 1;
  visibility: visible;
}
.tp-lightbox-figure {
  position: relative;
  max-width: 94vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.tp-lightbox-img {
  max-width: 94vw;
  max-height: 84vh;
  width: auto;
  height: auto;
  box-shadow: 0 4px 40px rgba(0,0,0,.6);
  background: #111;
  user-select: none;
}
.tp-lightbox-counter {
  color: #eee;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.85rem;
  margin-top: 10px;
  opacity: 0.8;
}
.tp-lightbox-btn {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 15%;
  min-width: 56px;
  max-width: 120px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.55;
  transition: opacity .12s ease, background .12s ease;
}
.tp-lightbox-btn:hover {
  opacity: 1;
  background: rgba(255,255,255,0.06);
}
.tp-lightbox-prev { left: 0; }
.tp-lightbox-next { right: 0; }
.tp-lightbox-close {
  position: fixed;
  top: 14px;
  right: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: none;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
}
.tp-lightbox-close:hover { opacity: 1; background: rgba(255,255,255,0.16); }
@media (max-width: 600px) {
  .tp-lightbox-btn { font-size: 1.8rem; width: 20%; }
  .tp-lightbox-img { max-height: 78vh; }
}
