body {
  font-family: Arial, sans-serif;
  background: #f9f9f9;
  margin: 0;
  padding: 0;
  text-align: center;
}
main {
  width: 100vw;

}

header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1em;
  font-weight: bold;
  margin-bottom: 70px;
}
header h1 {
  margin-top: auto;
}
header img {
  width: 150px;
}

/* On large screens, move header to bottom-left and fix it */
@media screen and (min-width: 1024px) {
  header {
    position: fixed;
    bottom: 0px;
    margin: 0;          /* remove bottom spacing */
    border-radius: 10px;
    margin-bottom: none;
  }
  header h1 {
    visibility: hidden;
  }
}

.gallery {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 20px;
}
.gallery img {
  width: 100%; /* default responsive */
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  transition: transform 0.2s;
  margin-bottom: 10px;
}


@media screen and (min-width: 1024px) {
  .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    bottom: 0px;
    margin: 0;          /* remove bottom spacing */
    border-radius: 10px;
    margin-bottom: none;
  }
  .gallery img {
    margin-bottom: 100px;
  }
}

.gallery img:hover {
  transform: scale(1.05);
}

/* On larger screens, show images at their natural resolution */
@media screen and (min-width: 1024px) {
  .gallery {
    grid-template-columns: 1fr; /* one image per row */
    justify-items: center; /* center the image */
  }

  .gallery img {
    width: auto;  /* use natural width */
    max-width: 100%; /* but don’t overflow screen */
  }
.gallery img:hover {
  transform: none;
}
}


footer {
  background: #333;
  color: white;
  padding: 10px;
  margin-top: 20px;
}
