/* Gallery Page Styles */

/* Gallery Hero */
.gallery-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("../images/GalleryBack.jpg") no-repeat center center;
  background-size: cover;
  color: white;
  text-align: center;
  padding: 8rem 0 6rem;
  position: relative;
}

.gallery-hero h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.gallery-hero h1 span {
  color: #009688;
}

.gallery-hero p {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.9;
}

/* Gallery Filter */
.gallery-filter {
  padding: 2rem 0;
  background: #f5f5f5;
  position: sticky;
  top: 80px;
  z-index: 90;
}

.filter-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
}

.filter-btn {
  padding: 0.6rem 1.2rem;
  border: none;
  background: #e0e0e0;
  color: #333;
  border-radius: 30px;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  background: #009688;
  color: white;
}

.filter-btn.active {
  background: #009688;
  color: white;
}

/* Gallery Grid */
.gallery-grid {
  padding: 4rem 0;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 150, 136, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.overlay-content {
  text-align: center;
  padding: 1.5rem;
  color: white;
}

.overlay-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.overlay-content p {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.gallery-expand {
  display: inline-flex;
  width: 50px;
  height: 50px;
  background: white;
  color: #009688;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.gallery-expand:hover {
  background: #00796b;
  color: white;
  transform: scale(1.1);
}

.gallery-cta {
  text-align: center;
  margin-top: 4rem;
}

.gallery-cta p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: #333;
}

/* Testimonials Section */
.gallery-testimonials {
  padding: 5rem 0;
  background: #f9f9f9;
}

.testimonial-slider {
  max-width: 800px;
  margin: 3rem auto 0;
  position: relative;
}

.testimonial-slide {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.testimonial-content p {
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  position: relative;
}

.testimonial-content p::before,
.testimonial-content p::after {
  content: '"';
  color: #009688;
  font-size: 1.5rem;
  font-family: serif;
}

.client-info h4 {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 0.3rem;
}

.client-info p {
  font-size: 0.9rem;
  color: #666;
}

/* Lightbox Modal */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  overflow: auto;
}

.lightbox-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  padding: 2rem;
}

#lightbox-image {
  max-height: 80vh;
  max-width: 90vw;
  object-fit: contain;
}

.lightbox-caption {
  color: white;
  text-align: center;
  margin-top: 1rem;
  max-width: 800px;
}

.lightbox-caption h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 30px;
  cursor: pointer;
  user-select: none;
}

.lightbox-prev {
  left: 30px;
}

.lightbox-next {
  right: 30px;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .gallery-hero h1 {
    font-size: 2.5rem;
  }

  .grid-container {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .gallery-hero {
    padding: 6rem 0 4rem;
  }

  .filter-controls {
    gap: 0.5rem;
  }

  .filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .lightbox-caption h3 {
    font-size: 1.2rem;
  }
}

@media (max-width: 576px) {
  .gallery-hero h1 {
    font-size: 2rem;
  }

  .gallery-hero p {
    font-size: 1rem;
  }

  .grid-container {
    grid-template-columns: 1fr;
  }

  .lightbox-prev,
  .lightbox-next {
    font-size: 20px;
    padding: 10px;
  }

  .lightbox-close {
    font-size: 30px;
    top: 15px;
    right: 20px;
  }
}
