/* gallery.css */
body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background-color: #fefefe;
  color: #222;
}

.gallery-header {
  /* margin-top: 100px; */
  position: relative;
  background: url("/Noble\ friends\ 9.jpg");
  background-size: cover;
  background-position: center;

  /* background: linear-gradient(to right, #240046, #5f0f40); */
  color: white;
  padding: 4rem 1.5rem 2rem;
  text-align: center;
  z-index: 1;
}
.gallery-dark {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.7);
}

.gallery-header h1 {
  position: relative;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.gallery-header p {
  position: relative;
  font-size: 1.1rem;
  color: #ddd;
}

.gallery-container {
  padding: 2rem 1rem 4rem;
  max-width: 1200px;
  margin: auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.gallery-img {
  width: 100%;
  height: 250px;
  border-radius: 10px;
  cursor: pointer;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 2;
}

.gallery-img:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

/* Modal Styling */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  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;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from {
    transform: scale(0.7);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.closeBtn {
  position: absolute;
  top: 30px;
  right: 40px;
  color: white;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  z-index: 1000;
}

.closeBtn:hover {
  color: #ff69b4;
}

.gallery-footer {
  background: #1a1a2e;
  color: #bbb;
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.95rem;
  margin-top: 4rem;
}

@media (max-width: 600px) {
  .gallery-header h1 {
    font-size: 2rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .closeBtn {
    font-size: 1.5rem;
    top: 20px;
    right: 25px;
  }
}
