/*   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: 100;
}

.lightbox .img-show {
	position: absolute;
	height: 100%;
	width: 100%;
	box-sizing: border-box;
	text-align: center;
}

.img-caption {
	background: rgba(0, 0, 0, 0.3);
	padding: 10px;
	position: absolute;
	/* bottom: 0; */
	display: block;
	z-index: 101;
	color: #fff;
	text-shadow: 1px 0.4px rgba(0, 0, 0, 0.5);
	width: 100%;
	box-sizing: border-box;
}


.img-show img {
    /* This fits tall images, but not wide images. The reverse fits wide but
     * not tall. How to do both? */
	width: auto;
	height: 100%;
	position: absolute;
	display: block;
	top: 0;
	bottom: 0;
	margin: auto;
}



@media only screen and ( min-width: 680px) {
	.lightbox {
		border-radius: 5px;
		box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.5);
	}
}
