/* Custom skin: dark overlay, white frame around the image, caption visible at the bottom */

.pswp { --pswp-bg: #1c1c1c; }
.pswp__bg { background: #1c1c1c; opacity: 0.92 !important; }

/* White frame around image (PhotoSwipe handles fit via the JS padding option) */
.pswp__img {
  background: #fff;
  box-shadow: 0 0 0 8px #fff;
}

/* Caption pinned to bottom in its own white pill so it's always legible */
.pswp__custom-caption {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: #fff;
  color: #333;
  font-family: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  font-size: 13px;
  line-height: 1.4;
  padding: 8px 16px;
  border-radius: 4px;
  pointer-events: none;
  z-index: 1500;
  max-width: calc(100vw - 80px);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.pswp__custom-caption .pswp__caption-count {
  color: #888;
  font-style: italic;
  margin-left: 8px;
  font-size: 12px;
}

.pswp__button { color: #fff !important; }
.pswp__button--arrow .pswp__icn { fill: #fff; }

@media (max-width: 600px) {
  .pswp__custom-caption {
    font-size: 12px;
    padding: 6px 12px;
    max-width: calc(100vw - 32px);
    bottom: 16px;
  }
}
