.custom-modal-carousel .modal-body {
    padding: 0;
    background-color: #333;
    position: relative;
    max-height: 1067px;
    max-width:1518px;
}

.custom-modal-carousel .modal-header,
.custom-modal-text .modal-header {
    border:none;
    padding: 8px 15px 8px 15px;
    background-color: #333;
    color:#fff;
}

.custom-modal-text .modal-lg{
    max-width:600px;
}

.custom-modal-text .modal-body {
    padding: 0;
    background:#f9f9f9;
    position: relative;
}

.custom-modal-carousel .modal-title,
.custom-modal-text .modal-title {
    font-size:14px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.custom-modal-carousel .close,
.custom-modal-text .close {
    color:#fff;
    opacity:0.9;
}

.custom-modal-carousel .modal-body img {
    margin:0 auto;
}


/* Fade transition for carousel items */
.custom-modal-carousel .carousel-inner > .item {
    opacity: 0;
    top: 0;
    left: 0;
    width: 100%;
    display: block;
    position: absolute;
    z-index: 0;
    -webkit-transition: none;
    -o-transition: none;
    transition: none;
    -webkit-transform: translate3d(0, 0, 0) !important;
    transform: translate3d(0, 0, 0) !important;
}
.custom-modal-carousel .carousel-inner > .item:first-of-type {
    position: relative;
}
.custom-modal-carousel .carousel-inner > .active {
    opacity: 1;
    z-index: 3;
}
.custom-modal-carousel .carousel-inner > .next.left,
.custom-modal-carousel .carousel-inner > .prev.right {
    -webkit-transition: opacity 0.4s ease-in-out;
    -o-transition: opacity 0.4s ease-in-out;
    transition: opacity 0.4s ease-in-out;
    opacity: 1;
    left: 0;
    z-index: 2;
}
.custom-modal-carousel .carousel-inner > .active.left,
.custom-modal-carousel .carousel-inner > .active.right {
    z-index: 1;
}
.custom-modal-carousel .carousel-control {
    z-index: 4;
}

.custom-modal-carousel .carousel-control {
    filter: progid:DXImageTransform.Microsoft.gradient(enabled = false) !important;
}

.custom-modal-carousel .next.left,
.custom-modal-carousel .prev.right {
    opacity: 1;
    z-index: 1;
}
.custom-modal-carousel .active.left,
.custom-modal-carousel .active.right {
    opacity: 0;
    z-index: 2;
}

.custom-modal-carousel .left,
.custom-modal-carousel .right {
    transition: all 0.2s ease-in-out 0s;
    -webkit-transition: all 0.2s ease-in-out 0s;
}

.custom-modal-carousel .left {
    background:transparent url(../img/prev.png) no-repeat top 45% left 20px;
    opacity: 1;
}

.custom-modal-carousel .right {
    background:transparent url(../img/next.png) no-repeat top 45% right 20px;
    opacity: 1;
}
.custom-modal-carousel .left:hover {
    background-position:top 45% left 10px;
}

.custom-modal-carousel .right:hover {
    background-position:top 45% right 10px;
}

.custom-modal-carousel .carousel-indicators li,
.custom-modal-carousel .carousel-indicators .active {
    border-radius: 20px;
    height: 20px;
    margin: 5px;
    width: 20px;
    text-align:left;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    opacity:0.5;
}

.custom-modal-carousel .carousel-indicators .active {
    background-color:#fff;
}

.custom-modal-carousel .carousel-indicators li {
    border: 1px solid #fff;
}

.custom-modal-carousel .carousel-indicators li:hover {
    background-color:#fff;
    border: 1px solid #fff;
    opacity:1;
}

.inactive {
    display:none;
}

.custom-modal-carousel,
.custom-modal-text {
    font-weight:300;
    font-size:14px;
}
.custom-modal-carousel .modal-footer ,
.custom-modal-text .modal-footer {
    min-height:20px;
    background:#f9f9f9;
    border:0;
    color:#333;
    text-align: left;
}

.modal-footer-text,
.modal-text {
    padding-bottom:10px;
    border-bottom:1px solid #ddd;
    clear:both;
    margin:0;
}

.modal-footer-text {
    margin-bottom:10px;
}

.modal-footer-text ul {
    padding:5px 0 0 15px;
}

.modal-text {
    margin-left:15px;
    margin-right:15px;
    padding-bottom:15px;
    padding-top:15px;
}

.modal-footer-str,
.modal-str {
    float:left;
    font-weight:400;
    margin:0;
    line-height:16px;
}

.modal-footer-link,
.modal-link {
    float:right;
    margin:0;
    font-size:16px;
    line-height:14px;
}

.modal-footer-link a,
.modal-link a {
    color: #e5741b;
    font-weight:600 !important;
}

.firmen-text-modal-link:hover,
.firmen-modal-link:hover,
.firmen-link:hover {
    background:#333 !important;
    color:#fff !important;
    cursor:pointer;
}

