header{
position: fixed; /* Fix the navbar at the top of the page */
 top: 0; /* Ensure it stays at the top */
 width: 100%; /* Make it span the entire width */
 padding: 1;
}
/* Navbar container */
.navbar {
  overflow: hidden;
  background-color: #333;
  font-family: Arial;
  margin: 0;
  padding: 0;
  top: 0; /* Ensure it stays at the top */
  width: 100%; /* Make it span the entire width */
  z-index: 1000; /* Ensures it appears on top of other elements */
}

/* Links inside the navbar */
.navbar a {
  float: left;
  font-size: 16px;
  color: white;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
}

/* The dropdown container */
.dropdown {
  float: left;
  overflow: hidden;
}

/* Dropdown button */
.dropdown .dropbtn {
  font-size: 16px;
  border: none;
  outline: none;
  color: white;
  padding: 14px 16px;
  background-color: inherit;
  font-family: inherit; /* Important for vertical align on mobile phones */
  margin: 0; /* Important for vertical align on mobile phones */
}

/* Add a red background color to navbar links on hover */
.navbar a:hover, .dropdown:hover .dropbtn {
  background-color: red;
}

/* Dropdown content */
.dropdown-content {
  display: none;
  position: absolute; /* Required for proper placement under the button */
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1001; /* Higher than the navbar to prevent clipping */
}

/* Links inside the dropdown */
.dropdown-content a {
  float: none;
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

/* Add a grey background color to dropdown links on hover */
.dropdown-content a:hover {
  background-color: #ddd;
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
  display: block;
} 


/* Main body */
body {
  margin: 0; /* Remove default margins to prevent layout issues */
  padding-top: 50px; /* Add padding equal to the nav bar's height to avoid content overlap */
}

/* Gallery Section */
#gallery {
  column-count: 5; /* Set default to 5 columns */
  column-gap: 5px; /* Gap between columns */
  -webkit-column-count: 5;
  -webkit-column-gap: 5px;
  -moz-column-count: 5;
  -moz-column-gap: 5px;
}

#gallery img {
  width: 100%;
  height: auto;
  margin-bottom: 5px;
  transition: box-shadow 0.3s ease; /* Smooth transition for the shadow effect */
}

/* Hover effect: subtle shadow */
#gallery img:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.8); /* Adds a soft shadow on hover */
}

/* Media Queries for responsiveness */
@media (max-width: 1200px) {
  #gallery {
    -moz-column-count: 4;
    -webkit-column-count: 4;
    column-count: 4;
  }
}

@media (max-width: 1000px) {
  #gallery {
    -moz-column-count: 3;
    -webkit-column-count: 3;
    column-count: 3;
  }
}

@media (max-width: 800px) {
  #gallery {
    -moz-column-count: 2;
    -webkit-column-count: 2;
    column-count: 2;
  }
}

@media (max-width: 400px) {
  #gallery {
    -moz-column-count: 1;
    -webkit-column-count: 1;
    column-count: 1;
  }
}
