*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #111;
  color: #eee;
  font-family: system-ui, sans-serif;
}

header {
  position: relative;
  width: 100%;
  height: 40vh;
  min-height: 220px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

h1 {
  position: relative;
  margin: 0;
  font-size: 2.4rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.7);
}

#gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 24px;
  margin: 0 auto;
}

#gallery::after {
  content: '';
  flex: 9999 1 0;
  height: 0;
}

#gallery a {
  height: 130px;
  overflow: hidden;
  background: #222;
  cursor: pointer;
}

@media (min-width: 900px) {
  #gallery a {
    height: 220px;
  }
}

#gallery img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
}

#gallery a:hover img {
  transform: scale(1.04);
}
