* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f8f8f8;
  color: #333;
}

.gallery-hero {
  text-align: center;
  padding: 80px 20px 40px;
  background-color: #fff;
}

.gallery-hero h1 {
  font-size: 3rem;
  margin-bottom: 10px;
  color: #1e1e1e;
}

.gallery-hero p {
  font-size: 1.2rem;
  color: #666;
}

.gallery-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-container img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  cursor: pointer;
  border-radius: 6px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-container img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 30px auto;
  gap: 20px;
}

.pagination button {
  padding: 10px 20px;
  font-size: 1rem;
  border: none;
  background-color: #1e1e1e;
  color: #fff;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.pagination button:hover {
  background-color: #444;
}

#page-number {
  font-size: 1.1rem;
  font-weight: bold;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
  display: block;
  margin: auto;
  max-width: 90%;
  max-height: 80vh;
  border-radius: 8px;
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
}

.nav-arrows {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 30px;
  color: #fff;
  font-size: 3rem;
  cursor: pointer;
  user-select: none;
}

@media (max-width: 768px) {
  .gallery-container {
    grid-template-columns: repeat(1, 1fr);
    gap: 5px;
  }
.modal-content {
  display: block;
  margin: auto;
  max-width: 90%;
  max-height: 80vh;
  border-radius: 8px;
  top: 30%;
}
#hero{
  height: 100vh;
}


  .gallery-hero h1 {
    font-size: 2.4rem;
  }

  .gallery-hero p {
    font-size: 1rem;
  }
}
