/*   Project: Popup Lightbox 
 *   Author: Asif Mughal
 *   URL: www.codehim.com
 *   License: MIT License
 *   Copyright (c) 2019 - Asif Mughal
 */
 
/* File: popup-lightbox.css */

.lightbox {
	position: fixed;
	background: rgba(0, 0, 0, 0.90);
	display: none;
	z-index: 9999;
}

.lightbox .img-show {
	position: relative;
	height: 100%;
	width: 100%;
	box-sizing: border-box;
	text-align: center;
	margin:0;
}

.img-caption {
	background: rgba(0, 0, 0, 0.3);
	padding: 20px 5px 10px 40px;
	/*position: absolute;*/
	bottom: 0;
	display: block;
	z-index: 101;
	color: #fff;
	text-shadow: 1px 0.4px rgba(0, 0, 0, 0.5);
	width: 48%;
	box-sizing: border-box;
	float:left;
	text-align:left;
	font-size: 15px;
}

.lightbox .btn-close {
	position: absolute;
	top: -15px;
	right: -10px;
	width: 32px;
	height: 32px;
	background: url(../images/close.png) no-repeat;
	border-radius: 50%;
	text-align: center;
	font-size: 18pt;
	z-index: 101;
	cursor: pointer;
	border: 0;
    text-indent: -90px;
    overflow: hidden;
	background-color: #fff;
}


.lightbox .lightbox-status {
	position: absolute;
	top: 20px;
	left: 20px;
	color: #fff;
	font-size: 14px;
	z-index: 101;
	display:none;
}

.img-show img {
	width: 50%;
	height: auto;
	/*position: absolute;*/
	display: block;
	top: 0;
	bottom: 0;
	margin: auto;
	float:right;
}


/* Next and Previous Buttons */

.btn-prev,
.btn-next {
	width: 32px;
	height: auto;
	background: rgba(0, 0, 0, 0.50);
	cursor: pointer;
	position: absolute;
	top: 60%;
	margin-top: -50px;
	z-index: 101;
	border: 0;
	font-family: FontAwesome;
	color: #fff;
	font-size: 18pt;
	border-radius: 5px;
	padding: 5px 12px 8px;
	line-height: 20px;
}

.btn-prev:hover,
.btn-next:hover {
	background: rgba(0, 0, 0, 0.7);
	color: #fff;
	transition: .4s;
	-webkit-transition: .4s;
	-moz-transition: .4s;
	-ms-transition: 0.4s;
	-o-transition: .4s;
}

.btn-prev {
	left: 3px;
}

.btn-next {
	right: 5px;
}

.btn-prev:before {
	content: "\f104";
}

.btn-next:before {
	content: "\f105";
}

.lightbox {
	border-radius: 0;
	border-top: solid #017ff6 4px;
	border-bottom: solid #017ff6 13px; overflow:visible !important;
	height:auto !important;
}

@media (min-width:1023px){
.lightbox {

    /*width: 750px !important;*/
    left: 0 !important;
    right: 0 !important;
    margin: auto !important;

}
}
.lightBox-open::before {
    opacity: 0.9;
    visibility: visible;
    background-color: black;
    position: fixed;
    top: 0px;
    right: 0px;
    bottom: 0px;
    left: 0px;
    z-index: 999;
    content: '';
}

@media (max-width:667px){
.lightbox {
    width: 80% !important;
    left: 10% !important;
	z-index:999999;
	top:75% !important;
	margin:0 !important;
	position:absolute !important;
}	
.img-show img {width:100%; margin-bottom: 10px;}
.img-caption {
    width: 100%;
    padding:0 10px;
	height: 190px;
    overflow: auto;
}
}

@media (max-width:479px){
.img-show img {max-height: 340px;}
}

 /* iphone X */
@media only screen and (min-device-width: 375px) and (max-device-height: 812px) and (-webkit-device-pixel-ratio: 3) {
.lightbox {
	width: 80% !important;
    left: 10% !important;
	z-index:999999;
	top:70% !important;
	margin:0 !important;
	position:absolute !important;
}
.lightbox .btn-close {height:30px; width:30px; padding:0;}

}