/* Gallery Page Styles */

/* Hero Section */
.subpage-hero-section {
  height: 60vh;
  background-color: #000;
  overflow: hidden;
  position: relative;
}

.subpage-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.7;
  z-index: 1;
  animation: zoomInOut 20s infinite alternate;
}

/* Gallery Section Content */
.gallery-section-content {
  padding: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.gallery-section-content .section-badge {
  display: inline-block;
  background: rgba(212, 167, 98, 0.2);
  border: 2px solid var(--primary);
  border-radius: 50px;
  padding: 8px 20px;
  margin-bottom: 20px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.gallery-section-content h1 {
  margin-bottom: 20px;
  font-family: var(--font-display);
  font-weight: 700;
}

.gallery-section-content p {
  margin-bottom: 30px;
  font-size: 1.1rem;
  line-height: 1.8;
}

/* Video Section */
.video-container {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  position: relative;
}

.video-play {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.video-play .btn-play {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: all 0.5s ease;
  border: none;
  cursor: pointer;
}

.video-play .btn-play i {
  color: var(--primary);
  font-size: 24px;
  margin-left: 5px;
}

.video-play .btn-play:hover {
  background: var(--primary);
}

.video-play .btn-play:hover i {
  color: #fff;
}

/* Carousel Sections - Fixed to avoid conflicts */
.gallery-carousel {
  margin-bottom: 30px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  height: 500px;
  width: 100% !important; /* Force full width */
}

/* Override any circular carousel styling from main CSS */
.gallery-carousel .carousel,
.gallery-carousel .carousel.carousel-circle {
  position: relative !important;
  margin: 0 !important;
  width: 100% !important;
  aspect-ratio: auto !important;
  border-radius: 15px !important;
  border: none !important;
  overflow: hidden !important;
  perspective: none !important;
  height: 100% !important;
}

/* Override the coin flip animation from style.css */
.gallery-carousel .carousel-item {
  position: relative !important;
  opacity: 1 !important;
  transition: transform .6s ease-in-out !important;
  animation: none !important;
  height: 500px;
  width: 100% !important;
  border-radius: 0 !important;
}

.gallery-carousel .carousel-inner {
  height: 100% !important;
  position: relative !important;
  width: 100% !important;
  border-radius: 0 !important;
}

.gallery-carousel .carousel-item img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  border-radius: 0 !important;
}

.gallery-carousel .carousel-caption {
  background: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  padding: 15px;
  bottom: 20px;
  transition: opacity 0.3s ease;
}

/* Enhanced carousel controls */
.gallery-carousel .carousel-control-prev,
.gallery-carousel .carousel-control-next {
  width: 50px !important;
  height: 50px !important;
  background-color: var(--primary) !important;
  border-radius: 50% !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  opacity: 0.8 !important;
  margin: 0 20px !important;
  z-index: 10 !important;
}

.gallery-carousel .carousel-control-prev {
  left: 20px !important;
}

.gallery-carousel .carousel-control-next {
  right: 20px !important;
}

.gallery-carousel .carousel-control-prev-icon,
.gallery-carousel .carousel-control-next-icon {
  width: 24px !important;
  height: 24px !important;
  filter: none !important;
}

.gallery-carousel .carousel-control-prev:hover,
.gallery-carousel .carousel-control-next:hover {
  opacity: 1 !important;
  background-color: var(--dark) !important;
}

/* Fix for carousel indicators */
.gallery-carousel .carousel-indicators {
  bottom: 20px !important;
  z-index: 9 !important;
}

.gallery-carousel .carousel-indicators button {
  width: 12px !important;
  height: 12px !important;
  border-radius: 50% !important;
  background-color: var(--primary) !important;
  margin: 0 5px !important;
  opacity: 0.8 !important;
}

.gallery-carousel .carousel-indicators button.active {
  opacity: 1 !important;
  background-color: #fff !important;
}

/* Interactive image styles */
.gallery-carousel .carousel-item a {
  display: block;
  overflow: hidden;
  height: 100%;
  width: 100%;
}

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

.gallery-carousel .carousel-item:hover .carousel-caption {
  opacity: 1;
}

/* Gallery CTA Section */
.gallery-cta {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url("../img/folders/cta.jpg");
  background-size: cover;
  background-position: center;
  padding: 80px 0;
  margin-top: 50px;
  position: relative;
}

.gallery-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--primary) 0%, transparent 70%);
  opacity: 0.3;
}

.gallery-cta .container {
  position: relative;
  z-index: 1;
}

.gallery-cta h2 {
  color: #fff;
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.gallery-cta p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 700px;
}

/* Video Modal Styling */
#videoModal .modal-content {
  background-color: rgba(0, 0, 0, 0.8);
  border: none;
}

#videoModal .modal-header {
  border-bottom: none;
  padding: 1rem;
}

#videoModal .modal-title {
  color: #fff;
  font-family: var(--font-display);
}

#videoModal .btn-close {
  color: #fff;
  background: var(--primary);
  opacity: 1;
  padding: 0.5rem;
  border-radius: 50%;
}

#videoModal .modal-body {
  padding: 0 1rem 1rem;
}

#videoModal .ratio {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

/* Responsive Adjustments */
@media (max-width: 991px) {
  .gallery-carousel {
    height: 400px;
    margin-top: 30px;
  }

  .gallery-carousel .carousel-item {
    height: 400px;
  }

  .order-md-1 {
    order: 1;
  }

  .order-md-2 {
    order: 2;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .gallery-carousel {
    height: 300px;
  }

  .gallery-carousel .carousel-item {
    height: 300px;
  }

  .gallery-carousel .carousel-caption {
    padding: 10px;
  }

  .gallery-carousel .carousel-caption h5 {
    font-size: 1.2rem;
  }

  .gallery-carousel .carousel-control-prev,
  .gallery-carousel .carousel-control-next {
    width: 40px !important;
    height: 40px !important;
    margin: 0 10px !important;
  }

  .gallery-section-content {
    text-align: center;
    padding: 20px 0;
  }
}

@media (max-width: 576px) {
  .gallery-carousel {
    height: 250px;
  }

  .gallery-carousel .carousel-item {
    height: 250px;
  }

  .gallery-section-content h1 {
    font-size: 2rem;
  }
}

