/* Gallery Section Styles */
.gallery-section {
  padding: 60px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 32px;
  margin-bottom: 15px;
  color: #333;
}

.gallery-filter {
  margin-bottom: 30px;
  text-align: center;
}

.filter-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}

.filter-nav li {
  margin: 5px;
}

.filter-nav li a {
  display: inline-block;
  padding: 8px 15px;
  background-color: #f5f5f5;
  color: #333;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.filter-nav li a:hover,
.filter-nav li.active a {
  background-color: #007bff;
  color: #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  position: relative;
}

.gallery-item:hover {
  transform: translateY(-5px);
}

.gallery-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.gallery-image {
  position: relative;
  overflow: hidden;
  height: 200px;
}

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

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

.gallery-caption {
  padding: 15px;
  background-color: #fff;
  /* Hide captions by default */
  display: none;
}

.gallery-caption h3 {
  font-size: 18px;
  margin: 0 0 5px;
  color: #333;
}

.gallery-caption .category {
  display: inline-block;
  font-size: 14px;
  color: #666;
}

.no-items {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  background-color: #f9f9f9;
  border-radius: 8px;
}

.pagination {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.pagination ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pagination li {
  margin: 0 5px;
}

.pagination a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #f5f5f5;
  color: #333;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.pagination li.active a,
.pagination a:hover {
  background-color: #007bff;
  color: #fff;
}

/* Gallery Item Page */
.gallery-item-section {
  padding: 60px 0;
}

.gallery-item-container {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin-bottom: 40px;
}

.gallery-item-image img {
  width: 100%;
  height: auto;
  display: block;
}

.gallery-item-info {
  padding: 30px;
}

.gallery-item-info h2 {
  margin-top: 0;
  margin-bottom: 20px;
  font-weight: 700;
}

.gallery-meta {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.gallery-description {
  margin-bottom: 30px;
}

.gallery-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

/* Related Gallery */
.related-gallery {
  padding: 40px 0 60px;
}

.related-gallery h3 {
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 15px;
}

.related-gallery h3:after {
  content: "";
  position: absolute;
  display: block;
  width: 40px;
  height: 3px;
  background: #0d6efd;
  bottom: 0;
  left: 0;
}

/* Lightbox customization */
.lb-data .lb-caption {
  font-size: 16px;
  font-weight: bold;
  line-height: 1.5;
  padding-top: 10px;
}

.lb-data .lb-number {
  font-size: 14px;
  padding-top: 5px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

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

@media (max-width: 576px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .gallery-image {
    height: 150px;
  }

  /* Ensure captions are hidden on mobile */
  .gallery-caption {
    display: none;
  }
}
