/*ギャラリー部分レイアウト*/
.bl_galleryImgBlock_wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin-bottom: 0px;
}
  @media screen and (max-width: 840px) {
    .bl_galleryImgBlock_wrapper {
      margin-bottom: 0px; } }
 
.bl_galleryImgBlock_item {
  width: calc((100% - 10px) / 3);
 width:100%;
 height:auto;
  margin-right: 5px;
  margin-bottom: 5px;
margin:0;
vertical-align:bottom;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
  cursor: pointer; }
  .bl_galleryImgBlock_item:nth-child(3n) {
    margin-right: 0; }
.bl_galleryImgBlock_item a img{
vertical-align:middle;
}
/*  .bl_galleryImgBlock_item:before {
    content: "";
    display: block;
    padding-top: 100%; }*/
 
/*モーダル*/
.bl_modalBlock {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.8);
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  z-index: 1000000000; }
 
  .js_openModal .bl_modalBlock {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex; }
.bl_modalBlock img {
	width:100%;
}
.bl_modalBlock_wrapper {
  position: relative;
  width: 95%;
  height: 90%;
  background-size:contain;
  background-repeat: no-repeat;
  background-position: center center; }
.bl_modalBlock_wrapper img {
	width:100%;
}
  @media screen and (max-width: 840px) {
    .bl_modalBlock_wrapper {
  background-size:contain;
      width: 96%;
	  max-height: 90%; }
	.bl_modalBlock_wrapper img {
		width:100%;
		}
      .bl_modalBlock_wrapper:before {
        content: "";
        display: block;
        padding-top: 100%; }
}
 
.bl_modalBlock_closeButton {
  position: absolute;
  right: 0;
  top: -10px;
  width: 20px;
  height: 20px;
  -webkit-transform: translateY(-100%);
  -ms-transform: translateY(-100%);
  transform: translateY(-100%);
  cursor: pointer; }
  .bl_modalBlock_closeButton:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 149%;
    height: 2px;
    background-color: #ccc;
    -webkit-transform-origin: top left;
    -ms-transform-origin: top left;
    transform-origin: top left;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg); }
  .bl_modalBlock_closeButton:before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 149%;
    height: 2px;
    background-color: #ccc;
    -webkit-transform-origin: top right;
    -ms-transform-origin: top right;
    transform-origin: top right;
    -webkit-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    transform: rotate(-45deg); }
 
/*スクロール禁止
.js_fixed {
  position: fixed;
  width: 100%;
  height: 100%;
}*/