#fullimage{
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.8);
  cursor: -webkit-zoom-out;
  display: -webkit-flex;
  display: flex;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-align-items: center;
  align-items: center;
}

#fullimage img{
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
}
.flex-gallery{
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
   -ms-flex-line-pack: start;
       align-content: flex-start;
}
.image-rate{
  position: relative;
  overflow: hidden;
  margin: 2.5px;
  flex-grow: 1;
  width: 33%;
  height: 360px;
}
.image-rate img{
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  height: 100%;
  min-height: 100%;
  max-height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  cursor: pointer;
}
.image-rate:after{
  content: '⤢';
  cursor: pointer;
  font-weight: bold;
  font-size: 28px;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: rgba(0,0,0,0.8);
  display: -webkit-flex;
  display: flex;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-align-items: center;
  align-items: center;
  color: #fff;
  opacity: 0;
  transition: all 300ms ease-in;
}
.image-rate:hover:after{opacity: 1}
.image-rate .fg-caption {
	position: absolute;
	display: inline-block;
	width: 100%;
	padding: 0.5em 1em;
	box-sizing: border-box;
	bottom: 0px;
	left: 0px;
	color: #ccc;
	background: #000;
	text-align: center;
	vertical-align: middle;
	opacity: 0.5;
	font-family: "Helvetica Neue", "Helvetica", "Meiryo", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Arial", "Yu Gothic", sans-serif;
	font-size: 80%;
    }
@media (min-width: 481px){
.image-rate-s{
  width: 17%;
  height: 180px !important;
}
}
@media (max-width: 480px){
.piece-1 {
  max-height: 400px !important;
}
.image-rate{
	width: calc(50% - 5px);
	height: calc(180px - 25px);
}
}
