.gallery {
  padding: 80px 0;
}

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

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 250px;
  cursor: pointer;
}

.gallery-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

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

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

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(47, 79, 79, 0.9));
  color: white;
  padding: 20px 15px 15px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

.gallery-overlay h3 {
  font-family: "Garamond", serif;
  margin-bottom: 5px;
  font-size: 1.1rem;
}

.gallery-overlay p {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Gallery Filter Buttons */
.gallery-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
  gap: 10px;
}

.filter-btn {
  background-color: transparent;
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  font-family: "Garamond", serif;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--accent-color);
  color: white;
  transform: translateY(-2px);
}

/* Gallery Load More Button */
.gallery-load-more {
  text-align: center;
  margin-top: 40px;
}

.load-more-btn {
  background-color: var(--primary-color);
  color: white;
  padding: 12px 30px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-family: "Garamond", serif;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.load-more-btn:hover {
  background-color: var(--accent-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Lightbox Modal */
.lightbox {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  animation: fadeIn 0.3s ease;
}

.lightbox-content {
  position: relative;
  margin: auto;
  padding: 20px;
  width: 90%;
  max-width: 1200px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox img {
  max-width: 100%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 2001;
  transition: all 0.3s ease;
}

.lightbox-close:hover {
  color: var(--accent-color);
  transform: scale(1.1);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 30px;
  cursor: pointer;
  background-color: rgba(47, 79, 79, 0.7);
  padding: 15px 20px;
  border-radius: 50%;
  transition: all 0.3s ease;
  user-select: none;
}

.lightbox-nav:hover {
  background-color: var(--accent-color);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-caption {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  text-align: center;
  background-color: rgba(47, 79, 79, 0.8);
  padding: 15px 25px;
  border-radius: 25px;
  font-family: "Garamond", serif;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Responsive Design for Gallery */
@media (max-width: 1200px) {
  .gallery-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .gallery-container {
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 15px;
  }

  .gallery-item {
    height: 200px;
  }

  .gallery-filters {
    flex-direction: column;
    align-items: center;
  }

  .filter-btn {
    margin: 5px 0;
    width: 200px;
  }

  .lightbox-nav {
    font-size: 20px;
    padding: 10px 15px;
  }

  .lightbox-close {
    font-size: 30px;
    top: 10px;
    right: 20px;
  }
}

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

  .gallery-item {
    height: 250px;
  }
}
.hidden {
  display: none !important;
}
