/* Reset + base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Raleway', sans-serif;
  background: #fff;
}

/* Header nav */
header {
  background: #4b4a4a;
  color: #fff;
  padding: 2rem;
  text-align: center;
}

header h1 {
  margin: 0;
  font-size: 2.5rem;
}

/* Gallery grid */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3vw;
  width: 100vw;
  padding: 3vw;
}

/* Square wrapper for images and captions */
.square {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  width: 100%;
  position: relative;
}

/* Image styling */
.square img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
  border-radius: 4px;
}

.square img:hover {
  transform: scale(1.03);
}

/* Caption overlay */
.caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 0.5rem;
  font-size: 0.95rem;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Show caption on hover */
.square:hover .caption {
  opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 1000px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 700px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .gallery {
    grid-template-columns: 1fr;
  }
}

footer {
  text-align: center;
  padding: 2rem 0;
  background: #f3f4f6;
  font-size: 0.9rem;
  color: #6b7280;
}
