body {
  font-family: sans-serif;
  margin: 0;
  background: #fff;
  color: black;
  text-align: center;
}

header {
  padding: 20px;
}

.logo {
  width: 100%;
  max-width: 300px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/*
@media (min-width: 768px) {
  .logo {
    max-width: 300px;
  }
}

@media (min-width: 1024px) {
  .logo {
    max-width: 400px;
  }
}
*/

h4 {
  font-family: sans-serif;
  margin: 70px,0px,0px,0px;
  background: #fff;
  color: black;
  text-align: center;
  font-size: 1em;
  font-weight: normal;
}
  

nav {
  margin-top: 50px;
}

nav a {
  color: black;
  margin: 0 10px;
  text-decoration: none;
}

a:hover {
  color: #999; /* Darker blue on hover */
}

.gallery {
  display: grid;
  /* Use auto-fill to fill the row with fixed size items */
  grid-template-columns: repeat(auto-fill, 300px);
  /* Remove the gaps for tight tiling */
  gap: 10px;
  padding: 0;
  justify-content: center; /* Align tiles from left */
}

.gallery img {
  width: 300px;  /* fixed width */
  height: 400px; /* fixed height for uniform tiles */
  object-fit: cover; /* Crop and cover the tile area */
  cursor: pointer;
  border-radius: 0; /* remove rounded corners for true tile effect */
  transition: transform 0.2s;
}

.gallery img:hover {
  transform: scale(1.05);
  z-index: 1; /* stay on top on hover */
}

#lightbox {
  display: none;
  position: fixed;
  z-index: 999;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  flex-direction: row;
}

#lightbox img {
  max-height: 80%;
  max-width: 80%;
}

#lightbox-close, #lightbox-prev, #lightbox-next {
  position: absolute;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
}

#lightbox-close { top: 20px; right: 30px; }
#lightbox-prev { left: 10px; }
#lightbox-next { right: 10px; }
