/* FILM GALLERY PAGE */

/* Film gallery section */
.film-gallery {
  padding: 60px 20px;
  min-height: calc(100vh - 200px);
}

/* Content container */
.content-container {
  max-width: 1140px;
  margin: 0 auto;
}

/* Gallery grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  padding: 0;
}

/* Gallery items */
.gallery-item {
  position: relative;
  overflow: hidden;
  background: #111;
  border-radius: 4px;
  transition: transform 0.3s ease;
}

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

/* Gallery images */
.gallery-image {
  width: 100%;
  height: 250px;
  display: block;
  object-fit: cover;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.gallery-image:hover {
  opacity: 0.8;
}

/* Lightbox styles */
.lightbox {
  display: none;
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  cursor: pointer;
}

.lightbox-content {
  display: block;
  margin: auto;
  max-width: 90%;
  max-height: 80%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  object-fit: contain;
  cursor: default;
}

.close-lightbox {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1000;
  transition: color 0.3s ease;
}

.close-lightbox:hover {
  color: #ccc;
}

/* Lightbox navigation buttons */
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  font-size: 30px;
  padding: 15px 20px;
  cursor: pointer;
  z-index: 1000;
  transition: background-color 0.3s ease;
  border-radius: 4px;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.lightbox-caption {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 1rem;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 10px 20px;
  border-radius: 4px;
  max-width: 80%;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 767px) {
  .film-gallery {
    padding: 40px 15px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
  }
}

@media (max-width: 575px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .gallery-image {
    height: 200px;
  }
  
  /* Adjust lightbox navigation for mobile */
  .lightbox-prev,
  .lightbox-next {
    font-size: 24px;
    padding: 10px 15px;
  }
  
  .lightbox-prev {
    left: 10px;
  }
  
  .lightbox-next {
    right: 10px;
  }
  
  .close-lightbox {
    font-size: 30px;
    right: 15px;
    top: 10px;
  }
  
  .lightbox-content {
    max-width: 95%;
    max-height: 70%;
  }
}