.lightbox-dialog {
  border: none;
  background: transparent;
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  padding: 0;
  margin: 0;
  overflow: hidden;
}

.lightbox-dialog::backdrop {
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(8px);
}

.lightbox-content {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.lightbox-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 92vw;
  max-height: 90vh;
}

.lightbox-img-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: 82vh;
}

#lightbox-img {
  max-width: 100%;
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  user-select: none;
}

.lightbox-caption {
  color: #ccc;
  font-size: 0.9rem;
  margin-top: 0.75rem;
  text-align: center;
}

.lightbox-btn {
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 10;
}

.lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

.close-btn {
  top: 1.5rem;
  right: 1.5rem;
}

.prev-btn {
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}

.next-btn {
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 768px) {
  .prev-btn, .next-btn {
    display: none;
  }
}
