.popup {
    display: none;
    position: fixed;
    left: 50%;
    top: 50%;
    width: 50vw;
    transform: translate(-50%,-50%);
}
.view {
    display: flex;
    margin: 0 15px;
}
.red {
    background-color: red;
    width: 170px;
    height: 170px;
}
.green {
    background-color: green;
    width: 170px;
    height: 170px;
}
.black {
    background-color: black;
    width: 170px;
    height: 170px;
}
.media {
    display: flex;
}
.modalImg {
    display: none;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: fixed;
    left: 0;
    top: 0;             /*26px*/
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.77);
    z-index: 66666;
    box-sizing: border-box;
}
.modalImg.fade .modalImg-dialog {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    overflow: hidden;
    /*display: block;*/
    visibility: visible;
    /*left: 325px;*/
    position: fixed;
    max-width: 450px;
    /*width: 450px;  !*708.111px*!*/
    background-color: #000;
    box-sizing: border-box;
}
.modalImg-dialog {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    align-self: center;
    overflow: hidden;
    width: 100%;
    top: 87px;
    max-width: 590px;
    min-height: 110px;
    position: absolute;
    z-index: 55555;
    background-color: #ffffff;
    box-sizing: border-box;
}
.modalImg-content {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
    width: 100%;
    background-color: #000;
    border-radius: 0.3rem;
    outline: 0;
    box-sizing: border-box;
}
.modalImg-header {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: row;
    flex-direction: row;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -ms-flex-align: center;
    align-items: center;
    overflow: hidden;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
}
#cboxTitle {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    text-transform: capitalize;
    color: #ccc;
    box-sizing: border-box;
}
#cboxCurrent {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    color: #ccc;
    box-sizing: border-box;
}
.close {
    position: absolute;
    top: 29px;
    right: 5px;
    display: block;
    background: url(../img/controls.png) no-repeat top center;
    width: 38px;
    height: 19px;
    text-indent: -9999px;
    z-index: 999;
    cursor: pointer;
}
#cboxPrevImg {
    position: absolute;
    top: 50%;
    left: 5px;
    margin-top: -32px;
    background: url(../img/controls.png) no-repeat top left;
    width: 28px;
    height: 65px;
    z-index: 100;
    text-indent: -9999px;
    cursor: pointer;
}
#cboxNextImg {
    position: absolute;
    top: 50%;
    right: 5px;
    margin-top: -32px;
    background: url(../img/controls.png) no-repeat top right;
    width: 28px;
    height: 65px;
    z-index: 100;
    text-indent: -9999px;
    cursor: pointer;
}
.z_zvon .modalImg-header img {
    display: block;
    height: auto;
    margin: 0 auto;
    max-width: 301px;
    width: 100%;
}
.modalImg-title {
    margin-bottom: 0;
    line-height: 1.5;
}
.z_zvon .modalImg-header .close {
    font-size: 3.5rem;
    padding-bottom: 10px;
}
button.close {
    padding: 0;
    background: 0 0;
    border: 0;
    -webkit-appearance: none;
}

.modalImg-body {
    position: relative;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    padding: 15px;
}

.slider {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    box-sizing: border-box;
}
.carousel {
    position: relative;
}
.carousel-indicators {
    position: absolute;
    right: 0;
    bottom: 18px;
    left: 0;
    z-index: 15;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-pack: center;
    justify-content: center;
    padding-left: 0;
    margin-right: 15%;
    margin-left: 15%;
    list-style: none;
}
.carousel-indicators li {
    position: relative;
    -ms-flex: 0 1 auto;
    flex: 0 1 auto;
    width: 30px;
    height: 3px;
    margin-right: 3px;
    margin-left: 3px;
    text-indent: -999px;
    background-color: rgba(255,255,255,.5);
}
.carousel-indicators li::before {
    position: absolute;
    top: -10px;
    left: 0;
    display: inline-block;
    width: 100%;
    height: 10px;
    content: "";
}
.carousel-indicators li::after {
    position: absolute;
    bottom: -10px;
    left: 0;
    display: inline-block;
    width: 100%;
    height: 10px;
    content: "";
}
.carousel-inner {
    display: block;
    position: relative;
    width: 100%;
    /*max-height: 1362px;*/
    overflow: hidden;
}
.carousel-inner img {
    width: 100%;
    max-width: 450px;
    height: auto;
    min-height: 203px;
}
.carousel-item {
    position: relative;
    display: none;
    -ms-flex-align: center;
    align-items: center;
    /*width: 100%;*/
    transition: -webkit-transform .6s ease;
    transition: transform .6s ease;
    transition: transform .6s ease,-webkit-transform .6s ease;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000px;
    perspective: 1000px;
}
/*.shown {*/
/*    display: flex;*/
/*}*/
.main {
    display: flex;
}
.source {
    display: none;
}
.source .shown {
    display: none;
}
.carousel-item-nextImg, .carousel-item-prevImg, .carousel-item.active {
    display: block;
}
.carousel-control-prevImg-icon {
    background-image: url(../prev.svg);
}

.carousel-control-nextImg-icon, .carousel-control-prevImg-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background: transparent no-repeat center center;
    background-size: 100% 100%;
}
/* Slideshow container */
.slideshow-container {
    max-width: 1000px;
    position: relative;
    margin: auto;
    background: inherit;
}
.carousel-inner-modalImg {
    width: 100%;
}
.carousel-item-modalImg {
    width: 100%;
}
#img-carousel-item-modal {
    display: flex;
    width: 100%;
    height: auto;
}
