/* gallery.css */
.hero {
  height: 60vh;
  background-image: url("../images//background.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
}

.hero-overlay h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.hero-overlay p {
  font-size: 1.5rem;
  margin: 0;
}

.gallery-section {
  padding: 1rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-filters {
  text-align: center;
  margin-bottom: 1rem;
}

.filter-btn {
  padding: 0.5rem 1.5rem;
  margin: 0 0.5rem;
  border: none;
  background: #f8f9fa;
  cursor: pointer;
  transition: all 0.3s;
}

.filter-btn.active {
  background: #343a40;
  color: white;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.gallery-item {
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  cursor: pointer;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
}

.modal img {
  max-width: 90%;
  max-height: 90vh;
  margin: auto;
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: white;
  font-size: 40px;
  cursor: pointer;
}

.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 16px;
  color: white;
  font-size: 30px;
  cursor: pointer;
  background: none;
  border: none;
}

.prev {
  left: 15px;
}
.next {
  right: 15px;
}

#back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #343a40;
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  display: none;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

#back-to-top:hover {
  background: #495057;
}

@media (max-width: 768px) {
  .hero-overlay h1 {
    font-size: 2.5rem;
  }

  .hero-overlay p {
    font-size: 1.2rem;
  }
  .gallery-filters {
    display: none;
  }
}
