/* Caption of Modal Image (Image Text) - Same Width as the Image */

@keyframes zoom {
  	from {transform:scale(0)} 
  	to {transform:scale(1)}
}

.close {
  	position: fixed;
  	top: 80px;
  	right: 20px;
  	color: #000000;
  	font-size: 35px;
  	font-weight: bold;
  	transition: 0.3s;
  	opacity: 0.6;
	background: #fff;
    border-radius: 50%;
    height: 35px;
	width: 35px;
    display: block;
    box-sizing: border-box;
	text-align: center;
	z-index:2000;
 }

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

.close {
	text-shadow: unset !important;
}


.modalviewport > img, #caption { 
  	animation-name: zoom;
  	animation-duration: 0.6s;
}

.modalviewport {
    width: 100%;
	height: 100%;
	position: fixed;
	top: 60px;
	left: 0px;
	background-color: rgba(152,152,152,0.9);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 1050;
}

.showMenu .modalviewport {
	width: calc(100% - 320px);
	left: 320px;
}

@media only screen and (min-width: 992px) {
	.modalviewport {
		width: calc(100% - 320px);
		left: 320px;
	}
}

html.ie .modalviewport > img {
	position: relative;
}

/*html.ie .showMenu .modalviewport {
	width: calc(100% - 320px);
	left: 320px;
}*/

@media only screen and (min-width: 992px) {
	html.ie .modalviewport {
		width: calc(100% - 320px);
		left: 320px;
	}
}

/*html.ie div.modalviewport > img {
	top: 80px;
}*/

html.notie div.modalviewport > img {
	position: absolute;
	width: 100% !important;
	height: 100%;
	padding-top: 75px;
    padding-bottom: 110px;
	padding-left: 10px;
	padding-right: 10px;
	max-width: 650px;
	object-fit: contain;
}

html.ie div.modalviewport > img {
	max-width: 90vw;
	max-height: 80vh;
	height: auto !important;
}

@media (min-width: 767px) {
	html.ie .modalviewport > img {
		width: auto !important;
	}
}

@media (max-width: 767px) {
	html.ie .modalviewport > img {
		width: auto !important;
	}
}

img.modal-zoomable {
	cursor: -webkit-zoom-in;
	cursor: -moz-zoom-in;
	cursor: zoom-in;
}