.mfp-bg {
    opacity: 0.6;
    filter: alpha(opacity=60);
}

.white-popup-block {
    background: #FFF;
    padding: 20px 30px;
    text-align: left;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.white-popup-block .modal-body {
    padding: 15px 0 0;
}

.modal-body-template {
    display : none;
}

.modal-body>div.text {
    margin: 0px;
    overflow: auto;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.modal-body>div.text>pre {
    border: none;
}

.modal-body>textarea.text {
    width: 100%;
    height: calc(100vh - 110px);
}

button.mfp-close {
    overflow: visible;
    cursor: pointer;
    background: 0 0;
    border: 0;
    color: #000000;
    -webkit-appearance: none;
    display: block;
    outline: 0;
    padding: 0;
    z-index: 1046;
    -webkit-box-shadow: none;
    box-shadow: none;
}

.popup-gallery {
    /*width: 100%;*/
    height: auto;
    font-size: 0;
    position: relative;

    max-height: calc(100vh - 165px);
    overflow: auto;
}

.popup-gallery div.gallery-item {
    max-width : 300px;
    overflow : hidden;
    margin-bottom: 5px;
}

.popup-gallery a {
    /*display: block;*/
    /*width: auto;*/
    /*max-width: 100%;*/
    height: auto;
    display: inline-block;
    margin: 0 5px 5px 0;
    width: auto;
    vertical-align: top;
    xwidth: 200px;
    line-height: 0;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    -webkit-touch-callout: none;
}

.popup-gallery a:last-of-type {
    /*margin-right: 0;*/
}

.popup-gallery img {
    width: auto;
    height: auto;
    /*max-width: 100%;*/
    border: 0;
}
.popup-gallery figure {
    display: none;
}

div.gallery-item {
    width: auto;
    height: 150px;
    display:inline-block;
}

.js-download-zip{
    margin-top : 15px;
}

.thmb_ph {
    border: 1px solid #CCCCCC;
}

div.thmb_ph {
    background-position: center;
    background-repeat: no-repeat;
    background-image: url("img-loader.gif");
}


img.rot270.pswp__img.rot270:not(.pswp__img--placeholder)  {
    -ms-transform: rotate(270deg); /* IE 9 */
    -webkit-transform: rotate(270deg); /* Chrome, Safari, Opera */
    transform: rotate(270deg);
}

img.rot180.pswp__img:not(.pswp__img--placeholder) {
    -ms-transform: rotate(180deg); /* IE 9 */
    -webkit-transform: rotate(180deg); /* Chrome, Safari, Opera */
    transform: rotate(180deg);
}

img.rot90.pswp__img:not(.pswp__img--placeholder) {
    -ms-transform: rotate(90deg); /* IE 9 */
    -webkit-transform: rotate(90deg); /* Chrome, Safari, Opera */
    transform: rotate(90deg);
}

img.flipHoris.pswp__img:not(.pswp__img--placeholder) {
    -moz-transform: scaleX(-1);
    -o-transform: scaleX(-1);
    -webkit-transform: scaleX(-1);
    transform: scaleX(-1);
    filter: FlipH;
    -ms-filter: "FlipH";
}

.pswp__caption__center {
    text-align: center;
}

.pswp__img--placeholder--blank {
    display: none;
}

#about {
    display: none;
}