/* Custom CSS for responsive gallery page */
:root {
  --primary-color: #0d6efd;
  --secondary-color: #6c757d;
  --success-color: #198754;
  --light-bg: #f8f9fa;
  --dark-bg: #212529;
  --bg-primary: #f8f9fa;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
}

/* Gallery Hero Section */
.gallery-hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
}

/* Gallery Filter */
.gallery-filter {
  margin-bottom: 2rem;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  padding: 0.5rem 1.5rem;
  margin: 0.25rem;
  border-radius: 25px;
  transition: all 0.3s ease;
  font-weight: 500;
  cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-color);
  color: white;
}

/* Gallery Grid */
.gallery-item {
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
  display: block; /* Ensure items are displayed by default */
}

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

.gallery-img-container {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

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

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-img-container:hover .gallery-overlay {
  opacity: 1;
}

.gallery-icon {
  color: white;
  font-size: 2rem;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.gallery-icon:hover {
  transform: scale(1.2);
  color: white;
}

.gallery-info {
  padding: 1rem 0;
}

.gallery-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
  font-size: 1.1rem;
}

.gallery-category {
  color: var(--secondary-color);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Video Gallery */
.video-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 3rem;
  z-index: 2;
}

/* Video Modal */
.video-modal .modal-content {
  background: transparent;
  border: none;
}

.video-modal .btn-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: white;
  opacity: 1;
  z-index: 10;
}

/* Section Titles */
.section-title {
  position: relative;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.section-title:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
}

/* Load More Button */
.load-more-container {
  text-align: center;
  margin-top: 2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .gallery-hero {
    min-height: 50vh;
  }
  
  .gallery-hero h1 {
    font-size: 2.5rem;
  }
  
  .filter-btn {
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
    margin: 0.15rem;
  }
  
  .gallery-img {
    height: 200px;
  }
  
  .gallery-title {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .gallery-hero h1 {
    font-size: 2rem;
  }
  
  .gallery-hero .lead {
    font-size: 1rem;
  }
  
  .filter-btn {
    display: inline-block;
    width: auto;
    margin: 0.25rem;
  }
  
  .gallery-img {
    height: 180px;
  }
}

/* Utility classes */
.section-padding {
  padding: 80px 0;
}