/*
// ============================================================================
// GC online 
// ---------------------------------------------------------------------------- 
// gfc_css_modal.css - CSS rules for modal windows
// Adapted from https://www.w3schools.com/howto/howto_css_modals.asp
// ---------------------------------------------------------------------------- 
*/

/* The Modal (background) */
.modal {
	display: none;
	position: fixed;
	z-index: 100;
	padding-top: 10px;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(128, 128, 128, 0.9);
}

/* Modal Content */
.modal-content {
	position: relative;
	margin: auto;
	padding-top: 1em;
	padding-right: 1em;
	padding-bottom: 2em;
	padding-left: 1em;
	border-radius: 5px;
	background-color: black;
	width: 90%;
	overflow: auto;
	transition: all 0.3s ease-in-out;
	text-align: center; 
	cursor: zoom-out; 
}
.modal-content img {
	/*object-fit: contain; 
	object-position: center top; */
	max-width: 100%; 
	max-height: 96vh; 
}

/* The Close Button */
.close {
	z-index: 101;
	color: white;
	position: absolute;
	/* top: 6px; */
	right: 5%;
	font-size: 34px;
	font-weight: bold;
	line-height: 1; 
}

.close:hover,
.close:focus {
	color: #999;
	text-decoration: none;
	cursor: pointer;
}

.caption-container {
    position: absolute;
    bottom: 1em;
    right: 1em;
    border-radius: 3px;
	padding: 2px 8px;
    background-color: white;
    opacity: 0.7;
	text-align: center;
}
p#caption {
	font-size: smaller; 
	font-style: italic; 
    color: black;
}
p#caption a:hover {
	color: cadetblue;
}

img.hover-shadow {
	transition: 0.3s;
}

.hover-shadow:hover {
	box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}
