.banner {
  position: relative;
  overflow: hidden;
  text-align: center;
  max-height: 250px;
  color: white;
}

.banner img {
  width: 100%;
  max-height: 200px;
  opacity: 0.8;
  object-fit: cover;
}

.banner h1 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2.2em;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 10px 20px;
  border-radius: 10px;
}

@media screen and (max-width: 400px) {
  .banner h1 {
    font-size: 1.5em;
    padding: 5px 10px;
  }
}