/* Gallery Page Styles */
.gallery-page {
  min-height: 100vh;
}

.gallery-hero {
  position: relative;
  height: 60vh;
  min-height: 400px;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.gallery-hero .hero-title {
  font-size: 48px;
  margin-bottom: 20px;
}

.gallery-hero .hero-subtitle {
  font-size: 24px;
  margin-bottom: 20px;
}

.gallery-hero .hero-description {
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
}

/* Filter Section */
.filter-section {
  background: var(--bg-light);
  padding: 40px 0;
}

.filter-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 12px 24px;
  background: var(--white);
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(45, 80, 22, 0.3);
}

/* Gallery Section */
.gallery-section {
  background: var(--white);
  padding: 60px 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  background: var(--white);
}

.gallery-item:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.gallery-image-container {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  cursor: pointer;
}

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

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

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
  display: flex;
  align-items: flex-end;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.gallery-info {
  padding: 20px;
  color: var(--white);
}

.gallery-info h4 {
  font-size: 18px;
  margin-bottom: 5px;
  font-weight: 600;
}

.gallery-info p {
  font-size: 14px;
  opacity: 0.9;
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox[style*="flex"] {
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: 1200px;
  width: 100%;
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 50%;
  color: var(--white);
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
}

.lightbox-image-container {
  width: 100%;
  max-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.lightbox-image-container img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
}

.lightbox-info {
  padding: 30px;
  background: var(--white);
}

.lightbox-info h3 {
  font-size: 24px;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.lightbox-info p {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.6;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  pointer-events: none;
}

.lightbox-prev,
.lightbox-next {
  width: 50px;
  height: 50px;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 50%;
  color: var(--white);
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
}

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

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

  .gallery-image-container {
    height: 200px;
  }
}

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

  .gallery-hero .hero-title {
    font-size: 36px;
  }

  .gallery-hero .hero-subtitle {
    font-size: 20px;
  }

  .gallery-hero .hero-description {
    font-size: 16px;
  }

  .filter-buttons {
    gap: 10px;
  }

  .filter-btn {
    padding: 10px 20px;
    font-size: 13px;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
  }

  .gallery-image-container {
    height: 180px;
  }

  .gallery-info {
    padding: 15px;
  }

  .gallery-info h4 {
    font-size: 16px;
  }

  .gallery-info p {
    font-size: 13px;
  }

  .lightbox-content {
    margin: 10px;
  }

  .lightbox-info {
    padding: 20px;
  }

  .lightbox-info h3 {
    font-size: 20px;
  }

  .lightbox-info p {
    font-size: 14px;
  }

  .lightbox-nav {
    padding: 0 10px;
  }

  .lightbox-prev,
  .lightbox-next {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-image-container {
    height: 250px;
  }

  .lightbox-close {
    width: 35px;
    height: 35px;
    font-size: 20px;
    top: 15px;
    right: 15px;
  }

  .lightbox-prev,
  .lightbox-next {
    width: 35px;
    height: 35px;
    font-size: 18px;
  }
}
