/* ~ ImgZoomy V2.5 ~ 2021/12/20 ~ */
#zoomy_overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 100000;
}

/* box che fa ruotare l'immagine in landscape */
#zoomy_rotazion_box {}
@media screen and (max-width: 767px) and (orientation: portrait) {
	#zoomy_rotazion_box {
		transform: rotate(90deg);
		transform-origin: right top;
		width: 100vh;
		height: 100vw;
		overflow: hidden;
		position: absolute;
		top: 100%;
		right: 0;
	}
}

#zoomy_background {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: #000000; /* Fallback color */
	background-color: rgba(0, 0, 0, 0.90); /* Black w/ opacity */
	z-index: 10005;
}

.zoomy_content {
	position: absolute;
	padding: 30px;
	top: 50%;
	left: 50%;
	margin-right: -50%;
	transform: translate(-50%, -50%);
	z-index: 10010;
	max-width: 100%;
	max-height: 100%;
}

	.zoomy_content img {
		max-width: calc(100vw - 60px);
		max-height: calc(100vh - 60px);
	}
	@media screen and (max-width: 767px) and (orientation: portrait) {
		.zoomy_content img {
			max-width:  calc(100vh - 60px);
			max-height: calc(100vw - 60px);
		}
	}

	.zoomy_opener {
		cursor: pointer;
	}

	.zoomy_btt {
		cursor: pointer;
		display: inline-block;
		position: relative;
		width: 30px;
		height: 30px;
		color: #ffffff;
		background: #333;
		border-radius: 50%;
		text-align: center;
		line-height: 30px;
		transition: background 0.3s linear;
		-webkit-transition: background 0.3s linear;
		-moz-transition: background 0.3s li;
		
		top: -40px;
		left: calc(100% - 36px);
		z-index: 100;
	}
	@media screen and (min-width : 768px) {
		.zoomy_btt { width: 35px; height: 35px; line-height: 36px; left: calc(100% - 41px); top: -44px; }
	}
		.zoomy_btt:hover {
			background: #161616;
		}

	#zoomy_text {
		position: absolute;
		bottom: 40px;
		left: 35px;
		padding: 4px;
		color: rgba(255, 255, 255, 0.90);
		background-color: rgba(0, 0, 0, 0.60);
		
		-webkit-touch-callout: none;
		-webkit-user-select: none;
		-khtml-user-select: none;
		-moz-user-select: none;
		-ms-user-select: none;
		-o-user-select: none;
		user-select: none;
	}	
		#zoomy_text a { color: rgba(255, 255, 255, 0.80); }
		#zoomy_text a:hover { color: rgba(255, 255, 255, 0.95); }
		
	#zoomy_close {
		display: none;
		cursor: pointer;
		position: absolute;
		top: 43px;
		right: 40px;
		
		font-size: 100%;
		display: inline-block;
		width: 30px;
		height: 30px;
		color: #333;
		background: #ffffff;
		border-radius: 50%;
		text-align: center;
		line-height: 35px;
		transition: background 0.3s linear;
		-webkit-transition: background 0.3s linear;
		-moz-transition: background 0.3s li;
	}
	@media screen and (min-width : 768px) {
		#zoomy_close { top: 50px; right: 45px; width: 35px; height: 35px; line-height: 45px; font-size: 22px; }
	}
	#zoomy_close:hover {
		color: #161616;
	}
		
		#zoomy_close svg {
			position: relative;
			top: -1px;
			left: -1px;
		}
		@media screen and (min-width : 768px) {
			#zoomy_close svg { top: -5px; left: -5px; }
		}

	#zoomy_left, #zoomy_right {
		cursor: pointer;
		position: absolute;
		
		font-size: 100%;
		display: inline-block;
		width: 30px;
		height: 30px;
		color: #333;
		background: #ffffff;
		border-radius: 50%;
		text-align: center;
		line-height: 35px;
		transition: background 0.3s linear;
		-webkit-transition: background 0.3s linear;
		-moz-transition: background 0.3s li;
	}
	@media screen and (min-width : 768px) {
		#zoomy_left, #zoomy_right { width: 35px; height: 35px; line-height: 45px; font-size: 22px; }
	}
	#zoomy_left:hover, #zoomy_right:hover {
		color: #161616;
	}
		
		#zoomy_left svg, #zoomy_right svg {
			position: relative;
			top: -1px;
			left: -1px;
		}
		@media screen and (min-width : 768px) {
			#zoomy_left svg, #zoomy_right svg { top: -5px; left: -5px; }
		}
		
		
		
		#zoomy_right {
			position: absolute;
			right: 10px;
			top: 50%;
		}
		#zoomy_left {
			position: absolute;
			left: 10px;
			top: 50%;
		}
		
		
		#zoomy_overlay .fa {
			position: relative;
			top: -4px;
			font-size: 37px;
		}
		@media screen and (min-width : 768px) {
			#zoomy_overlay .fa { top: -5px; font-size: 44px; }
			#zoomy_overlay .fa.fa-arrow-circle-left { left: -2px; }
		}
		