.lightbox {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: black;
    /* IE Fallback (Solid Colour) */
    background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAIElEQVQ4T2NkYGDYDMRkA8ZRAxhGw4BhNAyA+WAYpAMAIFgLQfO9BoEAAAAASUVORK5CYII=);
    background: rgba(0, 0, 0, 0.7);
    -webkit-filter: none !important;
    z-index: 9997;
}

.lightbox-inner {
    width: 800px;
    height: 800px;
    position: relative;
    margin: 0 auto;
}

.lightbox img {
    display: block;
    position: absolute;
    box-shadow: 0px 0px 16px -6px rgba(0,0,0,1);
}

body.blurred > * {
    -webkit-transform: translate3d(0, 0, 0);
}

.lightbox__loading {
    background: url(loading.gif) center center no-repeat;
    width: 32px;
    height: 32px;
    margin: -16px 0 0 -16px;
    position: absolute;
    top: 50%;
    left: 50%;
}

.lightbox__caption {
    display: none;
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    text-align: center;
    z-index: 9998;
    background: #000;
    background: rgba(0, 0, 0, 0.7);
}

.lightbox__caption p {
    margin: 0 auto;
    max-width: 70%;
    display: inline-block;
    *display: inline;
    *zoom: 1;
    padding: 10px;
    color: #fff;
    font-size: 12px;
    line-height: 18px;
}

.lightbox__button {
    position: absolute;
    z-index: 9999;
    background: no-repeat center center;
}
.lightbox__button:link, .lightbox__button:visited {
    color: #fff;
    text-decoration: none;
}

.lightbox__close {
    right: 30px;
    top: 30px;
    font-size: 25px;
    font-weight: bolder;
}

.lightbox__nav {
    display: block;
    position: absolute;
    top: 0;
    bottom: auto;
    margin-bottom: auto;
    padding: 20px;
    box-sizing: border-box;
    z-index: 1001;
    cursor: pointer;
    border-radius: 30px; /* CSS3草案 */ -webkit-border-radius: 30px; /* Safari,Google Chrome用 */ -moz-border-radius: 30px; /* Firefox用 */
    font-size: 0;
    line-height: 0;
}
.lightbox__nav--next:before,
.lightbox__nav--prev:before {
    position: absolute;
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    margin: auto;
    content: "";
    vertical-align: middle;
    text-shadow: 1px 0px 6px rgba(0,0,0,0.3);
}
.lightbox__nav--prev {
    left: 0;
    margin-left: 0;
}
.lightbox__nav--prev:before {
    top: 35%;
    left: 40%;
    width: 8px;
    height: 8px;
    border-left: 3px solid #eee;
    border-bottom: 3px solid #eee;
}
.lightbox__nav--next {
    right: 0;
    margin-right: 0;
}
.lightbox__nav--next:before {
    top: 35%;
    left: 30%;
    width: 8px;
    height: 8px;
    border-top: 3px solid #eee;
    border-right: 3px solid #eee;
}
@media screen and (max-width:768px){
    .lightbox-inner {
        width: 100%;
        height: auto;
        position: static;
        margin: 0 auto;
    }
    .lightbox__close {
        top: 20px;
        right: 20px;
    }
    .lightbox__nav {
        top: 48%;
        margin-top: 0;
        padding: 20px 15px;
    }
}