/* Janmashtami Gallery Page Styles */

.janmashtami-gallery-page {
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Video Background */
.video-background-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.background-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
  filter: brightness(0.5) contrast(1.1);
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(13, 26, 23, 0.7) 0%,
    rgba(13, 26, 23, 0.5) 50%,
    rgba(13, 26, 23, 0.7) 100%
  );
  z-index: 1;
}

/* Main Gallery Content */
.gallery-main {
  position: relative;
  z-index: 1;
  padding-top: calc(var(--nav-height) + 2rem);
  padding-bottom: 4rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Gallery Header */
.gallery-header {
  text-align: center;
  margin-bottom: 3rem;
  animation: fadeInUp 1s ease-out;
}

.gallery-header h1 {
  font-size: clamp(3.5rem, 8vw, 6rem);
  margin-bottom: 0.5rem;
  text-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  letter-spacing: 2px;
}

.gallery-subtitle {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: var(--sunlit);
  font-weight: 300;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  letter-spacing: 1px;
}

/* Slideshow Container */
.slideshow-container {
  position: relative;
  max-width: 1200px;
  width: 95%;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(243, 229, 168, 0.15),
    inset 0 0 30px rgba(47, 110, 106, 0.1);
  background: rgba(13, 26, 23, 0.4);
  /* backdrop-filter: blur(10px); Removed for performance */
  border: 2px solid rgba(255, 255, 255, 0.1);
  animation: slideInScale 0.6s ease-out 0.1s both;
}

.slide-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 75%; /* 4:3 aspect ratio */
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(1.1);
  pointer-events: none;
}

.slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  z-index: 2;
}

.slide img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.9) contrast(1.1) saturate(1.1);
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(47, 110, 106, 0.1) 0%,
    rgba(149, 88, 106, 0.1) 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* Navigation Arrows */
.slideshow-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255, 255, 255, 0.1);
  /* backdrop-filter: blur(12px) saturate(180%); Removed for performance */
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--foreground);
  font-size: 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4),
    inset 0 0 20px rgba(255, 255, 255, 0.1);
}

.slideshow-nav:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(243, 229, 168, 0.4);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5),
    inset 0 0 30px rgba(243, 229, 168, 0.2),
    0 0 20px rgba(243, 229, 168, 0.3);
}

.slideshow-nav:active {
  transform: translateY(-50%) scale(0.95);
}

.prev-btn {
  left: 1.5rem;
}

.next-btn {
  right: 1.5rem;
}

/* Slide Indicators */
.slide-indicators {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.75rem;
  z-index: 10;
  padding: 0.75rem 1.25rem;
  background: rgba(13, 26, 23, 0.6);
  /* backdrop-filter: blur(10px); Removed for performance */
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.indicator:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: scale(1.2);
}

.indicator.active {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 0 12px rgba(243, 229, 168, 0.6),
    0 0 20px rgba(47, 110, 106, 0.4);
  transform: scale(1.3);
  border-color: rgba(243, 229, 168, 0.5);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInScale {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 1s ease-out;
}

/* Active Nav Link */
.nav-links a.active,
.mobile-nav a.active {
  color: var(--sunlit);
  background: rgba(243, 229, 168, 0.1);
  border-radius: 6px;
}

/* Responsive Design */
@media (max-width: 860px) {
  .gallery-main {
    padding-top: calc(var(--nav-height) + 1rem);
    padding-bottom: 2rem;
  }

  .slideshow-container {
    border-radius: 16px;
    max-width: 95%;
  }

  .slide-wrapper {
    padding-bottom: 66.67%; /* 3:2 aspect ratio on mobile */
  }

  .slideshow-nav {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
  }

  .prev-btn {
    left: 0.75rem;
  }

  .next-btn {
    right: 0.75rem;
  }

  .slide-indicators {
    bottom: 1rem;
    padding: 0.5rem 1rem;
    gap: 0.5rem;
  }

  .indicator {
    width: 10px;
    height: 10px;
  }

  .gallery-header {
    margin-bottom: 2rem;
  }
}

@media (max-width: 480px) {
  .gallery-header h1 {
    font-size: 2.5rem;
  }

  .gallery-subtitle {
    font-size: 1rem;
  }

  .slideshow-nav {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .prev-btn {
    left: 0.5rem;
  }

  .next-btn {
    right: 0.5rem;
  }
}

/* Loading State */
.slide img {
  background: linear-gradient(
    135deg,
    rgba(47, 110, 106, 0.2),
    rgba(149, 88, 106, 0.2)
  );
}

/* Smooth transitions for all interactive elements */
* {
  -webkit-tap-highlight-color: transparent;
}

