* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

body {
  background-color: #f0f0f0;
  color: #333;
}

header {
  text-align: center;
  padding: 2rem;
  background-color: #282c34;
  color: white;
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

header p {
  font-size: 1.1rem;
  color: #ccc;
}

.collage-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  grid-auto-rows: 200px;
  gap: 12px;
  padding: 2rem;
}

.collage-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

/* Extra styling for dynamic sizes */
.collage-gallery img.wide {
  grid-column: span 2;
}

.collage-gallery img.tall {
  grid-row: span 2;
}

.collage-gallery img.tall.wide {
  grid-column: span 2;
  grid-row: span 2;
}

.collage-gallery img:hover {
  transform: scale(1.03);
}

/* Optional media queries for small screens */
@media (max-width: 600px) {
  .collage-gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .collage-gallery img,
  .collage-gallery img.wide,
  .collage-gallery img.tall,
  .collage-gallery img.tall.wide {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
    height: auto;
    aspect-ratio: 4 / 3;
  }
}
