/* نمایشگر عکس بزرگ — Lightbox.module.css (پیشوند lb-) */

.lb-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(6, 6, 8, .94);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 20px;
  direction: rtl;
  animation: fadeIn .18s ease;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.lb-stage {
  max-width: min(1200px, 100%);
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-image {
  max-width: 100%;
  max-height: calc(100vh - 130px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  display: block;
}

.lb-close, .lb-nav {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .07);
  color: #f4f4f6;
  cursor: pointer;
  font-family: inherit;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease;
}
.lb-close:hover, .lb-nav:hover { background: rgba(255, 255, 255, .16); }

.lb-close {
  top: 16px;
  inset-inline-end: 16px;
  width: 40px;
  height: 40px;
  font-size: 17px;
}

/* Large enough to hit with a thumb without looking at it. */
.lb-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  font-size: 26px;
  line-height: 1;
  padding-bottom: 3px;
}
.lb-prev { inset-inline-start: 16px; }
.lb-next { inset-inline-end: 16px; }

.lb-counter {
  position: absolute;
  top: 22px;
  inset-inline-start: 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, .6);
}

.lb-caption {
  position: absolute;
  bottom: 18px;
  inset-inline: 20px;
  text-align: center;
  font-size: 13px;
  line-height: 1.85;
  color: rgba(255, 255, 255, .72);
  margin: 0;
}

@media (max-width: 620px) {
  .lb-backdrop { padding: 52px 8px; }
  .lb-nav { width: 40px; height: 40px; font-size: 22px; }
  .lb-prev { inset-inline-start: 8px; }
  .lb-next { inset-inline-end: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .lb-backdrop { animation: none; }
}
