/* PhotoSwipe Lightbox Component Styles */
/* Custom lightbox gallery styles */
.lightbox-gallery {
  /* Styles will be applied to elements that trigger the lightbox */
}
.lightbox-gallery a {
  display: inline-block;
  text-decoration: none;
  transition: transform 0.2s ease;
  cursor: pointer;
}
.lightbox-gallery a:hover {
  transform: scale(1.05);
}
.lightbox-gallery img {
  width: 100%;
  height: auto;
  display: block;
}

/* Custom PhotoSwipe overrides */
.pswp {
  --pswp-bg: rgba(0, 0, 0, 0.9);
}

.pswp__icn {
  left: 0px !important;
  width: 50px !important;
  height: 50px !important;
}

/* Custom Caption Styles */
.pswp__custom-caption {
  background: rgba(0, 0, 0, 0.75);
  font-size: 16px;
  color: #fff;
  max-width: 70%;
  padding: 8px 12px;
  border-radius: 1px;
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  text-align: center;
  line-height: 1.4;
  box-sizing: border-box;
}
.pswp__custom-caption a {
  color: #fff;
  text-decoration: underline;
}

/* Custom Author Styles */
.pswp__custom-author {
  position: absolute;
  max-width: 20%;
  bottom: 16px;
  right: 16px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  background: rgba(0, 0, 0, 0.75);
  padding: 4px 8px;
  border-radius: 1px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  z-index: 100;
  pointer-events: none;
  line-height: 1.2;
}

/* Hide caption content that should not be visible on the page */
.hidden-caption-content {
  display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .lightbox-gallery {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.5rem;
  }

  /* Custom Caption Styles Mobile */
  .pswp__custom-caption {
    max-width: 90%;
    width: 400px;
    bottom: 80px;
  }

  /* Custom Author Styles */
  .pswp__custom-author {
    width: 400px;
    max-width: 90%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    right: auto;
    bottom: 16px;
  }
}
@media (max-width: 480px) {
  .lightbox-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}