:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --accent-color: #e74c3c;
  --light-color: #f8f9fa;
  --dark-color: #333;
}

/* Gallery Hero Section */
.gallery-hero {
  padding: 50px 0;
  background-color: var(--light-color);
}

.gallery-hero .hero-content {
  padding: 30px 0;
}

.gallery-hero .hero-content h1 {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.gallery-hero .hero-content p {
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 2rem;
}

.gallery-hero .hero-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.gallery-hero .hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Breadcrumb Styles */
.breadcrumb {
  background: transparent;
  padding: 0;
  margin-bottom: 1.5rem;
}

.breadcrumb-item a {
  color: var(--secondary-color);
  text-decoration: none;
}

.breadcrumb-item.active {
  color: var(--primary-color);
  font-weight: 500;
}

/* Gallery Section */
.gallery-section {
  padding: 80px 0;
}

.section-main-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 40px;
  text-align: center;
  position: relative;
  padding-bottom: 20px;
}

.section-main-title:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--accent-color);
}

.section-main-title span {
  color: var(--accent-color);
}

.section-subtitle {
  font-size: 1.1rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

/* Gallery Filter */
.gallery-filter {
  margin-bottom: 40px;
  overflow-x: auto;
  white-space: nowrap;
  padding-bottom: 15px;
  scrollbar-width: none; /* For Firefox */
  -ms-overflow-style: none; /* For IE and Edge */
}

.gallery-filter::-webkit-scrollbar {
  display: none; /* For Chrome, Safari, and Opera */
}

.filter-btn {
  background: transparent;
  border: 2px solid var(--secondary-color);
  color: var(--secondary-color);
  padding: 8px 20px;
  margin: 0 5px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  display: inline-block;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--secondary-color);
  color: white;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  aspect-ratio: 1 / 1;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(44, 62, 80, 0.8);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.overlay-content {
  text-align: center;
  padding: 20px;
  color: white;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.gallery-item:hover .overlay-content {
  transform: translateY(0);
}

.overlay-content h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.overlay-content p {
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--accent-color);
  color: white;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.view-btn:hover {
  background: white;
  color: var(--accent-color);
  transform: scale(1.1);
}

/* Load More Button */
.load-more {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  padding: 12px 30px;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
  margin-top: 30px;
}

.load-more:hover {
  background-color: #2980b9;
  border-color: #2980b9;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive Adjustments */
@media (max-width: 1199.98px) {
  .gallery-section {
    padding: 70px 0;
  }
}

@media (max-width: 991.98px) {
  .gallery-hero .hero-content h1 {
    font-size: 2.2rem;
  }

  .section-main-title {
    font-size: 2rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 10px;
  }

  .gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    width: 100%;
  }
}

@media (max-width: 767.98px) {
  .gallery-hero {
    padding: 40px 0;
  }

  .gallery-hero .row {
    flex-direction: column-reverse;
  }

  .gallery-hero .hero-content {
    text-align: center;
    margin-top: 2rem;
    padding: 0 15px;
  }

  .gallery-hero .hero-content h1 {
    font-size: 2rem;
  }

  .gallery-hero .hero-content p {
    font-size: 1rem;
  }

  .section-main-title {
    font-size: 1.8rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .gallery-filter {
    justify-content: flex-start;
    margin-bottom: 30px;
  }

  .filter-btn {
    padding: 6px 13px;
    font-size: 0.7rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0;
  }

  .gallery-item {
    aspect-ratio: 12/9;
    margin: 0 auto;
    width: 100%;
  }

  .overlay-content h3 {
    font-size: 1.5rem;
  }

  .overlay-content p {
    font-size: 1rem;
  }
}

@media (max-width: 575.98px) {
  .gallery-hero .hero-content h1 {
    font-size: 1.8rem;
  }

  .section-main-title {
    font-size: 1.6rem;
  }

  .gallery-section {
    padding: 50px 0;
  }

  .overlay-content h3 {
    font-size: 1.3rem;
  }

  .overlay-content p {
    font-size: 0.9rem;
  }

  .view-btn {
    width: 35px;
    height: 35px;
  }
}

@media (max-width: 400px) {
  .gallery-hero .hero-content h1 {
    font-size: 1.6rem;
  }

  .section-main-title {
    font-size: 1.4rem;
  }

  .filter-btn {
    padding: 5px 8px;
    font-size: 0.7rem;
  }
}
