/* gallery.css */
:root{
  --gap: 1rem;
  --max-width: 1200px;
}

*{box-sizing:border-box}
body{
  font-family: "Comic Relief", system-ui, sans-serif;
  text-align: center;
  color: blue;
  margin:0;
  padding:2rem;
  background:black;
  color:#111;
}
main{max-width:var(--max-width);margin:0 auto}

.top {
  padding: 1% 0 2% 0%;
  border-radius: 50px;
  margin: 0 10% 5% 10%;
  color: blue;
  background: white;
  border: solid blue 5px;
  }

.gallery{
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr); /* two per row on desktop */
  align-items: center; /* vertical centers each item (middle line alignment) */
}

/* stack to 1 column on small screens */
@media (max-width: 700px) {
  .gallery{
    grid-template-columns: 1fr; /* one per row on mobile */
  }
}

/* thumbnail styling */
.item{
  background: white;
  border-radius:8px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  border: solid blue 4px;
}

.item img {
  width: 100%;   /* keeps original ratio if known */
  height: auto;
  display: block;
}

/* hover/focus effect for keyboard users */
.item:focus-within,
.item:hover{
  transform: translateY(-4px);
  transition: transform 200ms ease;
}

#bottom_button {
  background: white;
  border: solid blue 5px;
  border-radius: 60px;
  margin-top: 50px;
  padding: 2% 2% 2% 2%;
  font-size: 130%;
  color: blue;
}