/* Reset browser defaults */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Helvetica Neue', sans-serif;
  background-color: #f9f9f9;
  color: #222;
  padding: 20px;
}

/* Header style */
header {
  text-align: center;
  margin-bottom: 40px;
}

/* Gallery layout */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px 10px;   /* Add top/bottom space */
  margin: 0 auto;
  max-width: 1200px;
}

/* Optional: container around each image */
.image-container {
  background: white;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Image styling */
.gallery img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  
  opacity: 0;
  animation: fadeIn 0.5s ease-in forwards;
}

/* Hover effect */
.gallery img:hover {
  transform: scale(1.03) rotate(0.2deg);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

/* Fade-in animation */
@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Footer */
footer {
  text-align: center;
  margin-top: 40px;
  font-size: 0.9em;
  color: #888;
}
