/* Gallery Slider Styles */
.lightbox .lb-image {
    border: none!important;
}
.gallery-slider-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0;
  background: #000000;
  box-shadow: none;
  min-height: 475px;
}

.gallery-slider-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.gallery-slider-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  min-height: 475px;
}

.gallery-slide {
  flex: 0 0 auto;
  height: 100%;
  min-height: 475px;
  position: relative;
  cursor: pointer;
  margin-right: 8px;
}

.gallery-slide:last-child {
  margin-right: 0;
}

.gallery-slide a {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 475px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  border-radius: 0;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  min-height: 475px;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}

.gallery-slide:hover img {
  transform: scale(1.05);
}

.gallery-slide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    rgba(83, 36, 255, 0.1),
    rgba(83, 36, 255, 0.05)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
  pointer-events: none;
}

.gallery-slide:hover::before {
  opacity: 1;
}

.gallery-slide::after {
  display: none;
}

/* Gallery slide info overlay */
.gallery-slide-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  color: white;
  padding: 1.5rem 1rem 1rem 1rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  z-index: 10;
  pointer-events: none;
  max-height: 50%;
  overflow: hidden;
}

.gallery-slide:hover .gallery-slide-info {
  transform: translateY(0);
}

.gallery-slide-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
  color: white;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  letter-spacing: -0.01em;
}

.gallery-slide-caption {
  font-size: 0.875rem;
  margin: 0;
  opacity: 0.9;
  line-height: 1.5;
  color: white;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  display: block;
  margin-top: 0.5rem;
  font-weight: 400;
  letter-spacing: 0.01em;
}

/* Controls */
.gallery-slider-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 1rem;
  pointer-events: none;
  z-index: 3;
}

.gallery-slider-prev,
.gallery-slider-next {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  pointer-events: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  color: #333;
}

.gallery-slider-prev:hover,
.gallery-slider-next:hover {
  background: #5324ff;
  color: white;
  transform: scale(1.1);
}

.gallery-slider-prev:disabled,
.gallery-slider-next:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.gallery-slider-prev:disabled:hover,
.gallery-slider-next:disabled:hover {
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  transform: none;
}

/* Dots */
.gallery-slider-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 3;
}

.gallery-slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-slider-dot:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
}

.gallery-slider-dot.active {
  background: #5324ff;
  transform: scale(1.3);
}

/* Overlay */
.gallery-slider-overlay {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 3;
}

.gallery-slider-info {
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  backdrop-filter: blur(10px);
}

.gallery-slider-counter {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Loading State */
.gallery-slider-container.loading .gallery-slider-track {
  opacity: 0.5;
}

.gallery-slider-container.loading::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #5324ff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 4;
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Gallery Layout Improvements */
.gallery-slider-container {
  background: #000000;
  border-radius: 0;
  box-shadow: none;
}

.gallery-slider-track {
  gap: 8px;
  padding: 0 8px;
}

.gallery-slide {
  flex-shrink: 0;
  width: auto;
  min-width: 200px;
  max-width: none;
  flex-grow: 1;
}

.gallery-slide img {
  border-radius: 0;
  box-shadow: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hide controls and dots for cleaner look */
.gallery-slider-controls {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-slider-container:hover .gallery-slider-controls {
  opacity: 1;
}

.gallery-slider-dots {
  display: none;
}

.gallery-slider-overlay {
  display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .gallery-slider-container {
    min-height: 300px;
    touch-action: pan-y; /* Allow vertical scrolling but handle horizontal swipes */
  }

  .gallery-slider-track {
    min-height: 300px;
    gap: 6px; /* Smaller gap on mobile */
    padding: 0 6px;
  }

  .gallery-slide {
    min-height: 300px;
    margin-right: 6px; /* Smaller margin on mobile */
  }

  .gallery-slide a {
    min-height: 300px;
  }

  .gallery-slide img {
    min-height: 300px;
  }

  .gallery-slider-controls {
    padding: 0 0.5rem;
    opacity: 0.8; /* More visible on mobile */
  }

  .gallery-slider-prev,
  .gallery-slider-next {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.95); /* More opaque on mobile */
  }

  /* Mobile hover info adjustments */
  .gallery-slide-info {
    padding: 1rem 0.75rem 0.75rem 0.75rem;
    max-height: 40%;
  }

  .gallery-slide-title {
    font-size: 0.9rem;
    line-height: 1.2;
  }

  .gallery-slide-caption {
    font-size: 0.8rem;
    margin-top: 0.25rem;
    line-height: 1.4;
  }

  /* Touch feedback */
  .gallery-slider-container.touching .gallery-slider-track {
    transition: none; /* Disable transitions during touch */
  }
}

@media (max-width: 480px) {
  .gallery-slider-container {
    min-height: 250px;
  }

  .gallery-slider-track {
    min-height: 250px;
    gap: 4px; /* Even smaller gap on small mobile */
    padding: 0 4px;
  }

  .gallery-slide {
    min-height: 250px;
    margin-right: 4px; /* Even smaller margin on small mobile */
  }

  .gallery-slide a {
    min-height: 250px;
  }

  .gallery-slide img {
    min-height: 250px;
  }

  .gallery-slider-prev,
  .gallery-slider-next {
    width: 36px;
    height: 36px;
    background: rgba(
      255,
      255,
      255,
      0.98
    ); /* Even more opaque on small mobile */
  }

  .gallery-slider-prev svg,
  .gallery-slider-next svg {
    width: 20px;
    height: 20px;
  }

  /* Make controls more accessible on small screens */
  .gallery-slider-controls {
    padding: 0 0.25rem;
    opacity: 1; /* Always visible on small mobile */
  }
}

/* Touch/Swipe Support */
.gallery-slider-container.touch-device .gallery-slider-track {
  cursor: grab;
}

.gallery-slider-container.touch-device .gallery-slider-track:active {
  cursor: grabbing;
}

/* Accessibility */
.gallery-slider-prev:focus,
.gallery-slider-next:focus,
.gallery-slider-dot:focus {
  outline: 2px solid #5324ff;
  outline-offset: 2px;
}

/* Animation for slide transitions */
.gallery-slider-track.sliding {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Auto-play indicator */
.gallery-slider-container.auto-playing .gallery-slider-overlay::after {
  content: "▶";
  position: absolute;
  top: -2rem;
  right: 0;
  color: #5324ff;
  font-size: 0.75rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Pause on hover */
.gallery-slider-container:hover .gallery-slider-overlay::after {
  animation-play-state: paused;
}

/* Lightbox Caption Styles */
.lightbox-caption {
  text-align: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  border-radius: 8px;
  margin: 1rem;
}

.lightbox-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
}

.lightbox-caption-text {
  font-size: 1rem;
  margin: 0;
  opacity: 0.9;
  line-height: 1.5;
}

/* Ensure hover effects work properly */
.gallery-slide {
  position: relative;
  overflow: hidden;
}

.gallery-slide a {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}

/* Make sure text is always white and visible */
.gallery-slide-info * {
  color: white !important;
}

.lightboxOverlay {
  z-index: 9999999 !important;
}
.lightbox {
  z-index: 99999999 !important;
}

/* ========================================
   ENHANCED LIGHTBOX2 STYLING
   ======================================== */

/* Full screen overlay */
.lb-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(0, 0, 0, 0.95) !important;
  backdrop-filter: blur(10px) !important;
  z-index: 9999999 !important;
  opacity: 0 !important;
  transition: opacity 0.3s ease !important;
}

.lb-overlay.show {
  opacity: 1 !important;
}

/* Lightbox container - full screen */
.lb-container {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 10000000 !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
}

/* Image container - centered and responsive */
.lb-image {
  max-width: 90vw !important;
  max-height: 90vh !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  border-radius: 8px !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5) !important;
  transition: opacity 0.3s ease-in-out !important;
  background: transparent !important;
  display: block !important;
  opacity: 1 !important;
}

/* Smooth image transitions */
.lb-dataContainer {
  transition: opacity 0.3s ease-in-out !important;
}

/* Lightbox data container */
.lb-dataContainer {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* Lightbox outer container */
.lb-outerContainer {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* Navigation arrows container */
.lb-nav {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  pointer-events: none !important;
  z-index: 10000001 !important;
}

/* Individual arrow buttons */
.lb-nav a {
  position: fixed !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 60px !important;
  height: 60px !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border: 2px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  backdrop-filter: blur(10px) !important;
  pointer-events: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  text-decoration: none !important;
  opacity: 0.7 !important;
}

.lb-nav a:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  transform: translateY(-50%) scale(1.1) !important;
  opacity: 1 !important;
}

/* Previous arrow positioning */
.lb-nav a.lb-prev {
  left: 30px !important;
  right: auto !important;
}

/* Next arrow positioning */
.lb-nav a.lb-next {
  right: 30px !important;
  left: auto !important;
}

/* Arrow icons */
.lb-nav a {
  color: white !important;
  font-size: 24px !important;
  font-weight: bold !important;
}

/* Previous arrow icon */
.lb-nav a.lb-prev::before {
  content: "‹" !important;
  font-size: 32px !important;
  font-weight: bold !important;
  line-height: 1 !important;
}

/* Next arrow icon */
.lb-nav a.lb-next::before {
  content: "›" !important;
  font-size: 32px !important;
  font-weight: bold !important;
  line-height: 1 !important;
}

/* Close button */
.lb-close {
  position: fixed !important;
  top: 30px !important;
  right: 30px !important;
  width: 50px !important;
  height: 50px !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border: 2px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  backdrop-filter: blur(10px) !important;
  z-index: 10000001 !important;
  text-decoration: none !important;
  color: white !important;
}

.lb-close:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  transform: scale(1.1) !important;
}

/* Close button icon */
.lb-close::before {
  content: "×" !important;
  font-size: 28px !important;
  font-weight: bold !important;
  line-height: 1 !important;
  color: white !important;
}

/* Caption styling */
.lb-caption {
  position: fixed !important;
  bottom: 30px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  background: rgba(0, 0, 0, 0.8) !important;
  color: white !important;
  padding: 15px 25px !important;
  border-radius: 25px !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  max-width: 80vw !important;
  text-align: center !important;
  backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
  z-index: 10000001 !important;
}

/* Image counter */
.lb-number {
  position: fixed !important;
  top: 30px !important;
  left: 30px !important;
  background: rgba(255, 255, 255, 0.1) !important;
  color: white !important;
  padding: 10px 20px !important;
  border-radius: 20px !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  z-index: 10000001 !important;
}

/* Loading spinner - hide default and create custom */
.lb-loader {
  display: none !important;
}

/* Custom loading spinner */
.lb-custom-loader {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 50px !important;
  height: 50px !important;
  border: 3px solid rgba(255, 255, 255, 0.3) !important;
  border-top: 3px solid white !important;
  border-radius: 50% !important;
  animation: spin 1s linear infinite !important;
  z-index: 10000001 !important;
}

/* Additional Lightbox2 overrides to ensure proper stacking */
.lb-wrapper {
  z-index: 10000000 !important;
}

.lb-data {
  background: transparent !important;
  border: none !important;
}

/* Ensure all lightbox elements are above everything */
.lb-overlay,
.lb-container,
.lb-wrapper,
.lb-dataContainer,
.lb-outerContainer,
.lb-data,
.lb-nav,
.lb-close,
.lb-caption,
.lb-number,
.lb-loader {
  position: fixed !important;
}

/* Hide any default lightbox backgrounds */
.lb-dataContainer,
.lb-outerContainer,
.lb-data {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .lb-nav {
    width: 50px !important;
    height: 50px !important;
  }

  .lb-prev {
    left: 20px !important;
  }

  .lb-next {
    right: 20px !important;
  }

  .lb-close {
    top: 20px !important;
    right: 20px !important;
    width: 45px !important;
    height: 45px !important;
  }

  .lb-number {
    top: 20px !important;
    left: 20px !important;
    font-size: 12px !important;
    padding: 8px 16px !important;
  }

  .lb-caption {
    bottom: 20px !important;
    font-size: 12px !important;
    padding: 12px 20px !important;
    max-width: 90vw !important;
  }

  .lb-image {
    max-width: 95vw !important;
    max-height: 85vh !important;
  }
}

@media (max-width: 480px) {
  .lb-nav {
    width: 45px !important;
    height: 45px !important;
  }

  .lb-nav a {
    font-size: 20px !important;
  }

  .lb-prev {
    left: 15px !important;
  }

  .lb-next {
    right: 15px !important;
  }

  .lb-close {
    top: 15px !important;
    right: 15px !important;
    width: 40px !important;
    height: 40px !important;
  }

  .lb-close a {
    font-size: 18px !important;
  }

  .lb-number {
    top: 15px !important;
    left: 15px !important;
    font-size: 11px !important;
    padding: 6px 12px !important;
  }

  .lb-caption {
    bottom: 15px !important;
    font-size: 12px !important;
    padding: 10px 16px !important;
  }
}