/* PhotoSwipe Custom Glassmorphism Theme */

/* Blur background instead of black */
.pswp__bg {
  background: rgba(17, 45, 78, 0.85) !important;
  backdrop-filter: blur(25px) !important;
  -webkit-backdrop-filter: blur(25px) !important;
}

/* Glassmorphism effect on buttons */
.pswp__button {
  background: rgba(249, 247, 247, 0.3) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.pswp__button:hover {
  background: rgba(249, 247, 247, 0.5) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
}

/* Top bar with glassmorphism */
.pswp__top-bar {
  background: rgba(249, 247, 247, 0.1) !important;
  backdrop-filter: blur(15px) !important;
  -webkit-backdrop-filter: blur(15px) !important;
}

/* Counter styling */
.pswp__counter {
  color: #f9f7f7 !important;
  font-family: "Work Sans", sans-serif !important;
  font-weight: 500 !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

/* Icon colors */
.pswp__icn {
  fill: #f9f7f7 !important;
}

.pswp__button:hover .pswp__icn {
  fill: #3f72af !important;
}

/* Caption/title styling */
.pswp__caption {
  background: rgba(249, 247, 247, 0.95) !important;
  backdrop-filter: blur(15px) !important;
  -webkit-backdrop-filter: blur(15px) !important;
}

.pswp__caption__center {
  color: #1a2332 !important;
  font-family: "Work Sans", sans-serif !important;
  text-align: center !important;
}

/* Thumbnails strip at bottom */
.pswp__thumbnails {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: rgba(249, 247, 247, 0.15) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  z-index: 10;
}

.pswp__thumbnail {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  flex-shrink: 0;
}

.pswp__thumbnail:hover {
  opacity: 1;
  transform: scale(1.05);
}

.pswp__thumbnail--active {
  opacity: 1;
  border: 2px solid #3f72af;
  box-shadow: 0 2px 8px rgba(63, 114, 175, 0.4);
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .pswp__button {
    background: rgba(249, 247, 247, 0.5) !important;
  }

  .pswp__thumbnails {
    height: 60px;
  }

  .pswp__thumbnail {
    width: 50px;
    height: 50px;
  }
}
