@charset "UTF-8";

.lugrasimo-regular {
  font-family: "Lugrasimo", cursive;
  font-weight: 400;
  font-style: normal;
}


* {
  margin: 0;
  padding: 0;
  vertical-align: bottom;
}

body {
  display: grid;
  justify-content: center;
  background: linear-gradient(180deg, #b3e9f4, #b8f5fb);
  font-family: "Lugrasimo", cursive;
  color: #2d68ff;
}


img {
  width: 100%;
  height: auto;

}

h1 {
  text-align: center;
  padding: 10px 0;
  color: #5473fc;
  font-size: 2.2rem;
  text-shadow: 2px 2px #fff;
  letter-spacing: 2px;

}

/* フッター */
footer {
  text-align: center;
}

.gallery {
  max-width: 800px;
  padding: 10px;
}

ul {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding-top: 10px;
  gap: 10px;
}

ul li img {
  transition: opacity .5s;
}

ul li img:hover {
  cursor: pointer;
  opacity: .7;
}

.gallery div {
  position: relative;
}

#caption {
  position: absolute;
  bottom: 0;
  background: rgba(255, 255, 255, 0.5);
  padding: 10px;
  width: 100%;
  box-sizing: border-box;
  color: #3b3ee2;
}

@media screen and (max-width: 640px) {
  ul {
    grid-template-columns: 1fr 1fr;
  }
}