/* ==========================================
   GALLERY
   ========================================== */

.gallery-section {
  background: var(--theme-bg-main);
  color: var(--theme-secondary);
  padding: 60px 20px;
  border: 5px solid var(--theme-border);
  transition: all 0.5s ease;
}

.gallery-section h2 {
  color: var(--theme-secondary);
  text-align: center;
  margin-bottom: 40px;
  transition: color 0.5s ease;
}

.cinema-gallery {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  height: 500px;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
  border: 5px solid var(--theme-border);
  transition: all 0.5s ease;
}

.gallery-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  pointer-events: none;
}

.gallery-slide.active {
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(0,0,0,0.3);
  z-index: 2;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: var(--theme-primary);
  animation: progressAnimation 3s linear infinite;
  box-shadow: 0 0 10px var(--theme-primary);
  transition: background 0.5s ease;
}

/* Desktop Gallery */
@media (min-width: 768px) {
  .cinema-gallery {
    height: 600px;
  }
}

@media (max-width: 767px) {
  .cinema-gallery {
    height: 350px;
  }
}