/* Override PhotoSwipe opacity rule */
.pswp.pswp--open .pswp__custom-caption.pswp__hide-on-close {
  opacity: 1 !important;
  pointer-events: none !important;
  z-index: 9999 !important;
}

.pswp__custom-caption {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.65);
  color: white;
  padding: 0.95rem 1.5rem;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.3;
  text-align: center;
  max-width: 90%;
  opacity: 0;
  transition: opacity 0.25s ease-in-out;
  pointer-events: none;
}

.pswp.pswp--open .pswp__custom-caption {
  opacity: 1;
}

.pswp__custom-caption:empty {
  display: none !important;
}

