/* Body lock when lightbox is open */
body.stump-lightbox-open {
  overflow: hidden;
}

/* Overlay */
.stump-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;              /* default; toggled by JS */
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.9);
}

.stump-lightbox.is-active {
  display: flex;
}

/* Inner content */
.stump-lightbox__content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  margin: 0 auto;
}

/* Image */
.stump-lightbox__image {
  max-width: 100%;
  max-height: 80vh;
  display: block;
  margin: 0 auto;
  border-radius: 6px;
}

/* Caption */
.stump-lightbox__caption {
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.95rem;
  color: #f5f5f5;
}

/* Close button */
.stump-lightbox__close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 2rem;
  cursor: pointer;
  padding: 0;
}

/* Arrows */
.stump-lightbox__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.stump-lightbox__arrow--prev {
  left: -4rem;
}

.stump-lightbox__arrow--next {
  right: -4rem;
}

/* On small screens, keep arrows inside */
@media (max-width: 768px) {
  .stump-lightbox__arrow--prev {
    left: 0.5rem;
  }
  .stump-lightbox__arrow--next {
    right: 0.5rem;
  }
  .stump-lightbox__close {
    top: 0.25rem;
    right: 0.25rem;
  }
}

/* Make carousel areas obviously clickable */
.bda-carousel-noblack {
  cursor: pointer;
}
