body {
  font-family: system-ui, -apple-system, sans-serif;
  background: #fafafa;
  padding: 2rem;
  row-gap: 5px;
}

header {
  max-width: 1200px;
  margin: 0 auto 2rem;
}

header:after {
  content: '';
  display: block;
  width: 100%;
  height: 1px;
  background: #333;
  margin-top: 1rem;
}

h1 {
  font-size: 2rem;
  font-weight: 300;
  color: #333;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/2;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.02);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  padding: 2rem;
}

.lightbox.active {
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}

.close-lightbox {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  body {
      padding: 1rem;
  }

  .gallery {
      gap: 1rem;
  }
}