* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}
.snsfeed_gallery {
  position: relative;
}
.snsfeed_gallery .item {
  margin-bottom: 30px;
}
.snsfeed_gallery a {
  position: relative;
  display: block;
}
.snsfeed_gallery a .item-icon {
  z-index: 11;
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 16px;
  color: #fff;
}
.snsfeed_gallery a .item-caption {
  font-size: 12px;
  z-index: 9;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px;
  max-height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  color: #fff;
}
.snsfeed_gallery .item-img {
  position: relative;
  height: 300px;
  background-color: #08327c;
}
.snsfeed_gallery .item-img::after, 
.snsfeed_gallery .item-img::before {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  z-index:1
}
.snsfeed_gallery .item-img::after {
  height: 50%;
  bottom: 0;
  background: -webkit-gradient(linear, left top, left bottom, from(rgba(28, 26, 64, 0)), to(#000));
  background:linear-gradient(rgba(28, 26, 64, 0), #000)
}
.snsfeed_gallery .item-img::before {
  height: 40%;
  top: 0;
  background: -webkit-gradient(linear, left top, left bottom, from(#000), to(rgba(28, 26, 64, 0)));
  background:linear-gradient(#000, rgba(28, 26, 64, 0))
}
.snsfeed_gallery .item-img img {
  display: block;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  transition: opacity 0.2s ease-in-out;
  -webkit-transition: opacity 0.2s ease-in-out;
  -moz-transition: opacity 0.2s ease-in-out;
  -ms-transition: opacity 0.2s ease-in-out;
  -o-transition: opacity 0.2s ease-in-out;
}
.snsfeed_gallery .item-img>figure {
  display: block;
  margin: 0;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
}


.snsfeed_gallery a:hover .item-img img {
  opacity: 0.6;
}