.ekko-lightbox {
    display: -ms-flexbox !important;
    display: flex !important;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding-right: 0 !important
}

.ekko-lightbox-container {
    position: relative
}

.ekko-lightbox-container > div.ekko-lightbox-item {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    overflow: hidden;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
	background-color: #000;
}

.ekko-lightbox-container > div.ekko-lightbox-item img {
	 /* width: auto !important;
	max-height: 100%;
    min-height: 0;  */
    max-width: 100%;
    height: 100%;
    object-fit: contain;
}

.ekko-lightbox iframe {
    width: 100%;
    height: 100%
}

.ekko-lightbox-nav-overlay {
    z-index: 1;
    position: absolute;
    bottom: 0;
    right: 0;
    display: -ms-flexbox;
    display: flex;
}

.ekko-lightbox-nav-overlay a {
    transition: background .5s;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 0 5px;
}

.ekko-lightbox-nav-overlay a > * {
}

.ekko-lightbox-nav-overlay a > :focus {
    outline: none
}

.ekko-lightbox-nav-overlay a span {
    display: flex;
    width: 60px;
    height: 60px;
    background: #fff;
    position: relative;
    align-items: center;
    justify-content: center;
    transition: ease .15s;
	font-size: 21px;
	color: #3e3e3e;
}

.ekko-lightbox-nav-overlay a:last-child span {
    text-align: right;
}

.ekko-lightbox-nav-overlay a:hover {
    text-decoration: none
}

.ekko-lightbox-nav-overlay a:focus {
    outline: none
}

.ekko-lightbox-nav-overlay a.disabled {
    cursor: default;
    visibility: hidden
}

.ekko-lightbox a:hover {
    opacity: 1;
    text-decoration: none
}

.ekko-lightbox .modal-dialog {
    display: none
}

.ekko-lightbox .modal-footer {
    text-align: left
}

.ekko-lightbox-loader {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    -ms-flex-pack: center;
    justify-content: center;
    -ms-flex-align: center;
    align-items: center
}

.ekko-lightbox-loader > div {
    width: 40px;
    height: 40px;
    position: relative;
    text-align: center
}

.ekko-lightbox-loader > div > div {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #fff;
    opacity: .6;
    position: absolute;
    top: 0;
    left: 0;
    animation: a 2s infinite ease-in-out
}

.ekko-lightbox-loader > div > div:last-child {
    animation-delay: -1s
}

.modal-dialog .ekko-lightbox-loader > div > div {
    background-color: #333
}

@keyframes a {
    0%, to {
        transform: scale(0);
        -webkit-transform: scale(0)
    }
    50% {
        transform: scale(1);
        -webkit-transform: scale(1)
    }
}

.photo-gallery-close:before {
    content: '';
    background-image: url('../images/icons/close-gallery-popup.svg');
    width: 32px;
    height: 32px;
    background-size: 32px;
    position: absolute;
    background-repeat: no-repeat;
}

.modal-backdrop.show {
    opacity: .8;
    background: #323232;
}

/*.arrow-left:before {*/
    /*content: '';*/
    /*background-image: url('../images/icons/gallery-arrow-left.svg');*/
    /*width: 12px;*/
    /*height: 20px;*/
    /*position: absolute;*/
    /*background-repeat: no-repeat;*/
/*}*/

/*.arrow-right:before {*/
    /*content: '';*/
    /*background-image: url('../images/icons/gallery-arrow-right.svg');*/
    /*width: 12px;*/
    /*height: 20px;*/
    /*position: absolute;*/
    /*background-repeat: no-repeat;*/
/*}*/

.arrow-left:hover {
    background: #f00;
	color: #fff;
}

.arrow-right:hover {
    background: #f00;
	color: #fff;
}

.close.photo-gallery-close {
    position: absolute;
    right: 0;
    top: 16px;
    outline: 0;
    opacity: 1;
}

@media screen and (max-width: 992px) {
	.ekko-lightbox-container {
		height: 500px !important;
	}
	.modal.show .modal-dialog {
		max-width: 100% !important;
	}
	.close.photo-gallery-close {
		right: 48px;
		top: -30px;
	}
}

@media screen and (max-width: 767px) {

	.modal-body {
		padding: 0;
	}

	.modal-dialog {
		margin: 0;
	}

	.ekko-lightbox-container {
		height: 190px !important;
	}

    .ekko-lightbox-nav-overlay a span {
        width: 25px;
        height: 25px;
    }

    .close.photo-gallery-close {
	    right: 40px;
	    top: -35px;
	    z-index: 2;
    }

    .photo-gallery-close:before {
        width: 24px;
        height: 24px;
        background-size: 24px;
    }

    .arrow-right:before,
    .arrow-left:before {
        width: 6px;
        height: 12px;
        background-size: 7px;
    }
}