/* ==========================================================================
   GALLERY PAGE STYLES (Music + Gallery)
   ========================================================================== */

/* Hero Section */
.hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  box-shadow: 0 0px 40px rgba(0, 0, 255, 0.1);
}

.hero-bg {
  position: absolute;
  top: -10px;
  left: -10px;
  width: calc(100% + 20px);
  height: calc(100% + 20px);
  background-image: url('/images/media-bg.jpg');
  background-size: cover;
  background-position: center top;
  filter: brightness(0.5) blur(2px);
  z-index: -1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
  z-index: -1;
}

.hero-content {
  text-align: center;
  padding: 0;
  max-width: 900px;
  margin-top: 9rem;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  text-transform: uppercase;
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.1;
  margin-bottom: 1rem;
  text-shadow: 2px 4px 20px rgba(0,0,0,0.5);
}

.page-subtitle {
  font-size: 1.3rem;
  color: rgba(255,255,255,0.9);
  max-width: 700px;
  margin: 0 auto;
  text-shadow: 1px 2px 10px rgba(0,0,0,0.5);
  font-style: italic;
}

/* ==========================================================================
   MUSIC SECTION WITH PARALLAX
   ========================================================================== */
.music-section {
  position: relative;
  padding: 14rem 2rem 5rem;
  overflow: hidden;
}

.music-parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('/images/media-bg.jpg');
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  z-index: -2;
}

.music-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: -1;
}

.music-content {
  max-width: 1200px;
  margin: 0 auto;
}

/* Section Title */
.section-title {
  font-family: var(--font-display);
  font-size: 2rem;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--color-primary-light);
  margin-bottom: 2.5rem;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 8px;
  text-decoration-thickness: 1px;
}

/* Video Grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border: 1px solid var(--color-primary-darker);
  box-shadow: 0 0px 40px rgba(0, 0, 255, 0.15);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================================================
   GALLERY SECTION
   ========================================================================== */
.gallery-section {
  padding: 4rem 2rem;
  background: var(--color-bg);
}

.gallery-content {
  max-width: 1400px;
  margin: 0 auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  border: 1px solid var(--color-primary-darker);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: 0 0px 40px rgba(0, 0, 255, 0.3);
  z-index: 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

/* ==========================================================================
   LIGHTBOX
   ========================================================================== */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-content img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: var(--color-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.2s;
}

.lightbox-close:hover {
  color: var(--color-primary-light);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: var(--color-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 1rem;
  transition: background 0.2s, color 0.2s;
}

.lightbox-nav:hover {
  background: rgba(0, 0, 0, 0.8);
  color: var(--color-primary-light);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

/* ==========================================================================
   RESPONSIVE - Smaller Screen
   ========================================================================== */
@media (max-width: 1125px) {
  .music-section {
    padding: 10rem 1rem;
  }
}

/* Responsive - Tablet */
@media (max-width: 950px) {
  .music-section {
    padding: 6rem 1rem;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
  .hero {
    min-height: 50vh;
  }

  .hero-content {
    margin-top: 3rem;
  }

  .music-section,
  .gallery-section {
    padding: 5rem 1rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .video-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .music-parallax-bg {
    background-attachment: scroll;
  }

  .lightbox-nav {
    padding: 0.5rem;
    font-size: 1.5rem;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }
}
