/* Gallery Page Styles */
.main-header {
  position: absolute;
  top: -80px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 3rem 0 0;
  background: transparent;
  z-index: 100;
}

/* Gallery Hero Banner */
.gallery-hero-banner {
  position: relative;
  width: 100%;
  height: 500px;
  background-image: url('images/compressedGallery.webp');
  background-size: cover;
  background-position: center;
  background-color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-hero-banner + .section-title {
  margin-top: 4rem;
}

.gallery-intro-text {
  text-align: center;
  font-size: 2rem;
  line-height: 1.7;
  color: #ffffff;
  margin: 3rem auto 5rem;
  font-family: 'Roboto', sans-serif;
  font-weight: 300;
  max-width: 1000px;
  padding: 2.5rem 3rem;
  background-color: rgba(0, 160, 224, 0.08);
  border-radius: 8px;
  border: 2px solid #00a0e0;
  box-shadow: 0 2px 8px rgba(0, 160, 224, 0.15);
}

.about-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 20%, rgba(0, 0, 0, 0) 40%);
  z-index: 1;
}

.gallery-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.gallery-hero-content h1 {
  font-size: 5rem;
  color: white;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  margin: 0;
  text-shadow: 
    0 0 20px rgba(0, 0, 0, 0.8),
    0 0 40px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(0, 0, 0, 0.4),
    0 0 80px rgba(0, 0, 0, 0.2);
}

/* Gallery Section */
.gallery-section {
  padding: 0 2rem 6rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* Gallery Category */
.gallery-category {
  margin-bottom: 5rem;
}

.gallery-category:last-child {
  margin-bottom: 0;
}

.gallery-category-title {
  font-size: 2.5rem;
  color: #ffffff;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 1rem;
}

.gallery-category-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #00a0e0, transparent);
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 1 / 1;
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 160, 224, 0.4);
}

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

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

/* Mobile Responsive */
@media (max-width: 993px) {
  .gallery-hero-banner {
    height: 350px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .gallery-hero-content h1 {
    font-size: 3.5rem;
  }
}

@media (max-width: 768px) {
  .gallery-hero-banner {
    height: 300px;
  }
  
  .gallery-intro-text {
    margin: 2rem 1.5rem 3rem;
    font-size: 1.4rem;
    padding: 1.5rem;
    background-color: transparent;
    border: none;
    box-shadow: none;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .gallery-section {
    padding: 0 1rem 4rem 1rem;
  }

  .gallery-hero-content h1 {
    font-size: 2.5rem;
  }

  .gallery-category-title {
    font-size: 2rem;
  }

  .gallery-category {
    margin-bottom: 3.5rem;
  }
}

/* Gallery Bottom Message Section */
.gallery-bottom-message {
  padding: 3rem 2rem 6rem 2rem;
  text-align: center;
  background: transparent;
}

.gallery-bottom-message p {
  font-size: 1.5rem;
  color: #ffffff;
  margin-bottom: 2rem;
  font-family: 'Roboto', sans-serif;
  font-weight: 300;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.gallery-bottom-buttons {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.gallery-bottom-message .about-text-btn {
  background-color: #00a0e0;
  color: white;
  border: none;
  padding: 15px 40px;
  font-size: 1.1rem;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s;
  backdrop-filter: blur(10px);
  min-height: 45px;
}

.gallery-bottom-message .about-text-btn:hover {
  background-color: #08acf2;
}

.gallery-bottom-message .about-text-btn.secondary-btn {
  background-color: transparent;
  color: white;
  border: 2px solid white;
}

.gallery-bottom-message .about-text-btn.secondary-btn:hover {
  background-color: white;
  color: #00a0e0;
}

/* Lightbox Styles */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: 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: 90%;
  max-height: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 40px;
  color: #ffffff;
  cursor: pointer;
  background: none;
  border: none;
  transition: color 0.3s;
  z-index: 1001;
}

.lightbox-close:hover {
  color: #00a0e0;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 40px;
  color: #ffffff;
  cursor: pointer;
  background-color: rgba(0, 160, 224, 0.3);
  border: none;
  padding: 20px 25px;
  border-radius: 5px;
  transition: all 0.3s;
  z-index: 1001;
}

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

.lightbox-prev {
  left: 40px;
}

.lightbox-next {
  right: 40px;
}

.lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #ffffff;
  font-size: 1.1rem;
  font-family: 'Roboto', sans-serif;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 10px 20px;
  border-radius: 20px;
}

@media (max-width: 768px) {
  .lightbox-prev,
  .lightbox-next {
    font-size: 30px;
    padding: 15px 20px;
  }
  
  .lightbox-prev {
    left: 10px;
  }
  
  .lightbox-next {
    right: 10px;
  }
  
  .lightbox-close {
    top: 10px;
    right: 10px;
    font-size: 35px;
  }
}