.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  background-color: #333;
}

.nav-menu li {
  margin: 0;
}

.nav-menu a {
  display: block;
  padding: 14px 20px;
  text-decoration: none;
  color: white;
}

.nav-menu a:hover {
  background-color: #575757;
}

.hover-image:hover {
  border: 3px solid red;
  transition: border 0.3s ease;
}
form input, form textarea, form button {
  width: 100%;
  max-width: 400px;
  padding: 10px;
  margin: 8px auto;
  display: block;
  border: 1px solid #ccc;
  border-radius: 6px;
}

form button {
  background-color: #333;
  color: white;
  border: none;
  cursor: pointer;
}

form button:hover {
  background-color: #575757;
}
/* Gallery images: fixed square size */
.gallery-item img {
  width: 128px;   /* 8×8 wallet size (approx) */
  height: 128px;  /* force square shape */
  object-fit: cover; /* crops/centers image to fit square */
  border-radius: 6px;
  transition: transform 0.3s ease, border 0.3s ease;
}

/* Hover effect: enlarge + red border */
.gallery-item img:hover {
  transform: scale(1.5); /* enlarges image smoothly */
  border: 3px solid red;
  z-index: 10; /* ensures hovered image sits above others */
  position: relative;
}
/* Gallery grid */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 items per row */
  gap: 20px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.gallery-item {
  text-align: center;
}

.gallery-item img {
  width: 128px;   /* wallet size */
  height: 128px;
  object-fit: cover;
  border-radius: 6px;
  transition: transform 0.3s ease, border 0.3s ease;
}

.gallery-item img:hover {
  transform: scale(1.5);
  border: 3px solid red;
  z-index: 10;
  position: relative;
}