body {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  font-family: "Rock Salt", "Brush Script MT", "Comic Sans MS", "Apple Chancery", "Segoe Script", Arial, sans-serif;

  /* Background image + dark overlay (fixed) */
  background:
    linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url('bg1.jpg') no-repeat center center / cover;
  background-attachment: fixed; /* keeps bg in place while scrolling */
}


/* Heading */
h1 {
  color: whitesmoke;
  margin-bottom: 20px;
}

/* Gallery grid */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  width: 100%;
  max-width: 800px;
  justify-content: center; /* center items in rows with fewer images */
}

/* Gallery images wrapped in links */
.gallery a img {
  width: 100%;          /* fill width of grid cell */
  height: 270px;        /* increased height to show more of the image */
  object-fit: cover;    /* crop/fit images nicely without distortion */
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

/* Hover effect on images */
.gallery a img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Back button container */
.back-container {
  text-align: center;  /* center the button */
  margin-top: 30px;
}


    .back-link {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  text-decoration: none;

  background: rgba(255, 255, 255, 0.25); /* translucent glassy background */
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 30px;

  border: 1px solid rgba(255, 255, 255, 0.2); /* subtle glass border */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  transition: all 0.3s ease;
  cursor: pointer;
}

.back-link:hover {
  background: rgba(255, 255, 255, 0.4); /* slightly stronger on hover */
  color: #ffffff;
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

