/* Gallery Hero/Banner Section */
.gallery-hero {
  background-image: url('../images/gallery-hero.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-top: 0;
  position: relative;
  height: 70vh;
  min-height: 450px;
  max-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.gallery-hero .container {
  position: relative;
  z-index: 2;
}

.gallery-hero .hero-content {
  text-align: center;
  color: #fff;
  padding-top: 80px;
}

.gallery-hero .hero-title {
  font-size: 4rem;
  font-weight: 700;
  font-family: var(--fontFamily-forum);
  letter-spacing: 3px;
  margin-bottom: 20px;
  color: #fff;
  text-transform: uppercase;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.gallery-hero .breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1rem;
  letter-spacing: 2px;
  margin-top: 15px;
}

.gallery-hero .breadcrumb a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
}

.gallery-hero .breadcrumb a:hover {
  color: var(--gold-crayola);
}

.gallery-hero .breadcrumb span:last-child {
  color: var(--gold-crayola);
  font-weight: 600;
}

.gallery-hero .breadcrumb span:not(:last-child) {
  color: rgba(255, 255, 255, 0.5);
}

/* Gallery Section */
.gallery-section {
  padding: 100px 0;
  background-color: #f5f0e8;
}

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

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 1 / 1;
}

.gallery-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

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

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-overlay i {
  font-size: 2.5rem;
  color: #fff;
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

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

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item:hover .gallery-overlay i {
  transform: scale(1);
}

/* Lightbox Styles */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
}

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

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.3s ease;
  z-index: 10000;
}

.lightbox-close:hover {
  color: var(--gold-crayola);
  transform: rotate(90deg);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-nav:hover {
  background: var(--gold-crayola);
  color: #1a1a1a;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .gallery-hero .hero-title {
    font-size: 3.5rem;
  }
}

@media (max-width: 992px) {
  .gallery-hero {
    height: 60vh;
    min-height: 400px;
    max-height: 500px;
  }

  .gallery-hero .hero-title {
    font-size: 3rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-section {
    padding: 80px 0;
  }
}

@media (max-width: 768px) {
  .gallery-hero {
    height: 50vh;
    min-height: 350px;
    max-height: 450px;
  }

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

  .gallery-hero .breadcrumb {
    font-size: 0.9rem;
  }

  .gallery-section {
    padding: 60px 0;
  }

  .gallery-grid {
    gap: 15px;
  }

  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }
}

@media (max-width: 576px) {
  .gallery-hero {
    height: 45vh;
    min-height: 300px;
    max-height: 400px;
  }

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

  .gallery-hero .breadcrumb {
    font-size: 0.8rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .gallery-section {
    padding: 50px 0;
  }

  .gallery-overlay i {
    font-size: 1.8rem;
  }

  .lightbox-close {
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
  }
}