/* Scss Document */
.gallery-block {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
}
.gallery-block figure {
  margin-bottom: 2%;
  width: 23.636363%;
  position: relative;
}
.gallery-block figure a {
  padding-top: 100%;
  display: block;
  height: 100%;
  overflow: hidden;
}
.gallery-block figure:first-child {
  width: 100%;
}
.gallery-block figure:first-child a {
  padding-top: 0;
  height: auto;
}
.gallery-block figure:first-child a img {
  position: static;
}
.gallery-block figure img {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}
.gallery-block figure::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  background: url(../img/common/icon_zoom.svg) no-repeat center center;
  background-size: 100% auto;
  z-index: 1;
}
.gallery-block:after {
  content: "";
  display: block;
  width: 23.636363%;
  height: 0;
}
.gallery-block:before {
  content: "";
  display: block;
  width: 23.636363%;
  height: 0;
  -webkit-box-ordinal-group: 2;
      -ms-flex-order: 1;
          order: 1;
}

@media only screen and (min-width: 601px) {
  .gallery-block {
    width: 38%;
  }
  .gallery-block figure {
    position: relative;
  }
  .gallery-block figure:first-child {
    margin-bottom: 3%;
  }
  .gallery-block figure::after {
    width: 30px;
    height: 30px;
  }
}
@media only screen and (max-width: 600px) {
  .gallery-block {
    width: 100%;
  }
  .gallery-block figure::after {
    width: 8vw;
    height: 8vw;
  }
}