@charset "utf-8";

/*==================================================
ギャラリーのためのcss
===================================*/
.gallery{
  display: flex;
  flex-wrap: wrap;
}

.gallery li {
    margin-bottom: 20px;/*各画像下に余白をつける*/
    width:200px;
}

/*ギャラリー内のイメージは横幅100%にする*/
.gallery img{
  width:96%;
  height:auto;
  vertical-align: bottom;/*画像の下にできる余白を削除*/}


@media only screen and (max-width: 768px) {
  .gallery li {
    width: 48%;
    margin: 0 auto 1%;
}
}


/*========= レイアウトのためのCSS ===============*/

ul.gallery{
  margin:0;
  padding: 0;
  list-style: none;
}


/*画像を出現させるアニメーションCSS*/

.flipLeft{
animation-name: flipLeft;
animation-duration:0.5s;
animation-fill-mode:forwards;
perspective-origin: left center;
opacity: 0;
}

@keyframes flipLeft{
  from {
   transform: perspective(600px) translate3d(0, 0, 0) rotateY(30deg);
  opacity: 0;
  }

  to {
  transform: perspective(600px) translate3d(0, 0, 0) rotateY(0deg);
  opacity: 1;
  }
}




