body {
  font-family: sans-serif;
  max-width: 900px;
  margin: auto;
  padding: 20px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 10px;
}

.grid img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.navbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.navbar-brand a {
  font-size: 32px;
  font-weight: bold;
  text-decoration: none;
  margin-bottom: 10px;
}

.navbar-links a {
  font-size: 18px;
  margin: 0 10px;
  text-decoration: none;
}

.navbar a.active {
  font-weight: 700;
  color: #000;
}

.photo-post {
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid #ddd;
}

.photo-post img {
  width: 100%;
  max-width: 600px;
  display: block;
  margin: 0 auto 10px auto;
  border-radius: 6px;
}

.photo-post .date {
  text-align: center;
  color: #666;
  font-size: 14px;
}

.photo-wrapper {
  position: relative;
  display: inline-block;
}

.photo-wrapper img {
  width: 100%;
  max-width: 600px;
  display: block;
  margin: 0 auto;
  border-radius: 6px;
}

/* Hidden by default */
.photo-date {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Show on hover */
.photo-wrapper:hover .photo-date,
.photo-wrapper:hover .photo-caption {
  opacity: 1;
}

.photo-post {
  text-align: center;
}

.photo-caption {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.3s ease;
  max-width: 80%;
}


