.imgtitle {
    width: 100%;
    background: #fff;
    overflow: hidden;
    position: absolute;
    bottom: 0;
    width: 100%;
    -webkit-transition: all .8s ease;
    -moz-transition: all .8s ease;
    -ms-transition: all .8s ease;
    -o-transition: all .8s ease;
    transition: all .8s ease;
}
.imgtitle b {
    margin: 0;
    display: inline-block;
    font-weight: normal;
    padding: 8px;
    font-size: 16px;
    line-height: 1.3;
}
.gallery-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    padding: 30px 50px 20px 50px;
    text-align: center;
    display: table;
    z-index: 1000;
}
.gallery-middle {
    vertical-align: middle;
    display: table-cell;
    position: relative;
}
.gallery-content {
    background: white;
    display: inline-block;
    margin: 0 auto;
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
    position: relative;
}
.gallery-img {
    position: relative;
    display: block;
}
.gallery-img .end,
.gallery-img .start {
    display: none;
}
.gallery-counter {
    font-size: 14px;
    color: #fff;
    width: 100%;
    padding-top: 5px;
    text-align: center;
}
.gallery-img img {
    margin: 0;
    padding: 10px;
    max-width: 100%;
    max-height: 100%;
    height: auto;
    display: block;
}
.previmg,
.nextimg {
    cursor: pointer;
    height: 50px;
    line-height: 50px;
    text-align: center;
    overflow: hidden;
    position: absolute;
    top: 50%;
    margin-top: -25px;
    white-space: nowrap;
    width: 50px;
    z-index: 1000;
    display: inline-block;
    height: 50px;
    line-height: 50px;
    width: 50px;
    text-align: center;
    color: rgba(255, 255, 255, 1);
}
.previmg {
    left: -50px;
}
.nextimg {
    right: -50px;
}
.previmg:before,
.nextimg:before,
.previmg:after,
.nextimg:after {
    content: "";
    display: inline-block;
    background: #fff;
    width: 20px;
    height: 3px;
    margin-top: -1px;
    position: absolute;
}
.previmg:before {
    top: 18px;
    left: 12px;
    -ms-transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
}
.previmg:after {
    bottom: 18px;
    left: 12px;
    -ms-transform: rotate(-135deg);
    -webkit-transform: rotate(-135deg);
    transform: rotate(-135deg);
}
.nextimg:before {
    top: 18px;
    right: 12px;
    -ms-transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
}
.nextimg:after {
    bottom: 18px;
    right: 12px;
    -ms-transform: rotate(135deg);
    -webkit-transform: rotate(135deg);
    transform: rotate(135deg);
}
.gallery-close {
    top: 0px;
    right: 0px;
    width: 50px;
    height: 50px;
    text-align: center;
    line-height: 50px;
    cursor: pointer;
    position: absolute;
    z-index: 10;
}
.gallery-close:after,
.gallery-close:before {
    content: "";
    width: 3px;
    height: 30px;
    background: #fff;
    top: 50%;
    left: 50%;
    margin-top: -15px;
    margin-left: -1px;
    position: absolute;
}
.gallery-close:before {
    -ms-transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
}
.gallery-close:after {
    -ms-transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
}
figure {
    cursor: pointer;
    position: relative;
    margin-bottom: 30px;
    background-position: center center;
    background-repeat: no-repeat;
    no-repeat;
    text-align: center;

}
.landscape {
    background-size: auto 100%;
}
.portrait {
    background-size: 100% auto;
}
figure:after {
    content: "";
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    position: absolute;
    display: block;
    -webkit-transition: all .4s ease;
    -moz-transition: all .4s ease;
    -ms-transition: all .4s ease;
    -o-transition: all .4s ease;
    transition: all .4s ease;
}
figure:before {
    content: "";
    height: 40px;
    width: 40px;
    margin-top: -20px;
    margin-left: -20px;
    top: 50%;
    left: 50%;
    background-position: center center;
    position: absolute;
    display: block;
    border-radius: 50%;
    -webkit-transition: all .4s ease;
    -moz-transition: all .4s ease;
    -ms-transition: all .4s ease;
    -o-transition: all .4s ease;
    transition: all .4s ease;
}
figure:hover:before {
    content: "";
    height: 40px;
    width: 40px;
    margin-top: -20px;
    margin-left: -20px;
    background: #8ab294 url(../img/zoom.svg) center center no-repeat;
    background-size: 20px auto;
    top: 50%;
    left: 50%;
    position: absolute;
    z-index: 5;
    display: block;
    -webkit-transition: all .2s ease;
    -moz-transition: all .2s ease;
    -ms-transition: all .2s ease;
    -o-transition: all .2s ease;
    transition: all .2s ease;
}
figure:hover:after {
    content: "";
    height: 100%;
    width: 100%;
    background: rgba(255, 255, 255, 0.4);
    top: 0;
    left: 0;
    position: absolute;
    display: block;
}
figure img {
    cursor: pointer;
    width: 100%;
}
@media only screen and (max-width: 650px) {
    .imgtitle {
        position: relative;
    }
    .imgtitle b {
        font-size: 14px;
    }
}