body.lb-disable-scrolling {
  overflow: hidden;
}

.lightboxOverlay {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 9999;
  background-color: black;
  filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=80);
  opacity: 0.8;
  display: none;
  width: 100% !important;
}



.lightbox {
  position: absolute;
  left: 0;
  width: 100%;
  z-index: 10000;
  text-align: center;
  line-height: 0;
  font-weight: normal;
  outline: none;
  flex-direction: column-reverse;
  display: flex; margin-top: 5vw;
  max-width: 100%;
}
@media screen and (min-width:781px) and ( max-width:1279px) {
  .lightbox { margin-top:15vw;}
}
@media screen and (max-width: 768px) {
  .lightbox { margin-top:10vw;}
}
@media screen and (min-width:500px) and (max-width: 779px) {
  .lightbox {margin-top: 20vw;}
}
@media screen and (max-width: 499px) {
  .lightbox {margin-top: 30vw;}
}

.lightbox .lb-image {
  display: block;
  height: auto;
  max-width: inherit;
  max-height: none;
  border-radius: 3px;

  /* Image border */
  border: 4px solid white;
}

@media screen and (min-width:781px) and ( max-width:1279px) {
  .lightbox .lb-image {
  }
}

.lightbox a img {
  border: none;
}

.lb-outerContainer {
  position: relative;
  *zoom: 1;
  width: 250px;
  height: 250px;
  margin: 0 auto;
  border-radius: 10px; padding: 5vw;

  /* Background color behind image.
     This is visible during transitions. */
  background-color: white;
}

@media screen and (max-width: 768px) {
  .lb-outerContainer {
  padding: 0;
  }
}

@media screen and (min-width:780px) and (max-width: 1024px) {
  .lb-outerContainer {
    padding: 0;
  }
}

.lb-outerContainer:after {
  content: "";
  display: table;
  clear: both;
}

.lb-loader {
  position: absolute;
  top: 43%;
  left: 0;
  height: 25%;
  width: 100%;
  text-align: center;
  line-height: 0;
}

.lb-cancel {
  display: block;
  width: 32px;
  height: 32px;
  margin: 0 auto;
  background: url(../images/loading.gif) no-repeat;
}

.lb-nav {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: 10;
}

.lb-container > .nav {
  left: 0;
}

.lb-nav a {
  outline: none;
  background-image: url('data:image/gif;base64,R0lGODlhAQABAPAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==');
}

.lb-prev, .lb-next {
  height: 100%;
  cursor: pointer;
  display: block;
}

.lb-nav a.lb-prev {
  width: 34%;
  left: 0;
  float: left;
  background: url(../images/prev.png) left 48% no-repeat;
  filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=0);
  opacity: 0;
  -webkit-transition: opacity 0.6s;
  -moz-transition: opacity 0.6s;
  -o-transition: opacity 0.6s;
  transition: opacity 0.6s;
}

.lb-nav a.lb-prev:hover {
  filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=100);
  opacity: 1;
}

.lb-nav a.lb-next {
  width: 64%;
  right: 0;
  float: right;
  background: url(../images/next.png) right 48% no-repeat;
  filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=0);
  opacity: 0;
  -webkit-transition: opacity 0.6s;
  -moz-transition: opacity 0.6s;
  -o-transition: opacity 0.6s;
  transition: opacity 0.6s;
}

.lb-nav a.lb-next:hover {
  filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=100);
  opacity: 1;
}

.lb-dataContainer {
  margin: 0 auto;
  padding-top: 5px;
  *zoom: 1;
  width: 100%;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
}

.lb-dataContainer:after {
  content: "";
  display: table;
  clear: both;
}

.lb-data {
  color: #ccc; position: relative;
  width: calc(100% + 5vw);
 
}
@media screen and (max-width: 810px) {
  .lb-data {
  width: 100%;
  }
}

.lb-data .lb-details {
  width: 85%;
  float: left;
  text-align: left;
  line-height: 1.1em;
}

.lb-data .lb-caption {
  font-size: 13px;
  font-weight: bold;
  line-height: 1em;
}

.lb-data .lb-caption a {
  color: #4ae;
}

.lb-data .lb-number {
  display: none!important;
  clear: left;
  padding-bottom: 1em;
  font-size: 12px;
  color: #999999;
}

.lb-data .lb-close { 
  display: block;
  position: absolute; top: -3.5vw; right: 0;
  width: 114px; padding: 0 10px; border-radius: 100px;
  height: 36px; border: 1px solid #FFFFFF;
  text-align: center; box-sizing: border-box; line-height: 36px;
}
@media screen and (max-width: 768px) {
  .lb-data .lb-close {top: -14vw; right: 0vw;
    width: 26vw; height: 10vw;
  }
}
@media screen and (min-width:500px) and (max-width: 779px) {
  .lb-data .lb-close {width: 20vw; right: 2.5vw;
    height: 8vw;}
  }

  @media screen and (min-width:780px) and (max-width: 810px) {
    
.lb-container img{ max-width: 100%;}
    .lb-data .lb-close {width: 14vw;
      right: 0;
      top: -8.5vw;
      height: 5vw;}
    }

    @media screen and (min-width:811px) and (max-width: 1024px) {
      .lb-data .lb-close {width: 14vw;
        right: 5vw;
        top: -8.5vw;
        height: 5vw;}
    }
  

.lb-data .lb-close:before {
  content:"× 閉じる"; display: block; font-size: 16px;
  position: absolute; top: -2px;
  right: 22px; color: #FFFFFF;
}

@media screen and (min-width:780px) and (max-width: 1024px) {
  .lb-data .lb-close:before {
top: -0.1vw;
  }
}

@media screen and (max-width: 768px) {
  .lb-data .lb-close:before {
    font-size: 4vw; top: 0;
    right: 3.7vw;
  }
}
@media screen and (min-width:500px) and (max-width: 779px) {
  .lb-data .lb-close:before {
    font-size: 3.5vw; top: 1vw;
    right: 2.5vw;
  }
}
@media screen and (min-width:811px) and (max-width: 1024px) {
  .lb-data .lb-close:before {
top: 0.5vw !important;
    right: 3.5vw;
  }
}

.lb-data .lb-close:hover {
  cursor: pointer;
  filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=100);
  opacity: 1;
}
