/* ~ ImgZoomy V2.5.3 ~ 2023/02/15 ~ */
#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%;
	box-sizing: unset;
}

	.zoomy_content img {
		display: block;
		max-width: 100%;
		max-height: 90vh;
	}
	@media screen and (max-width: 767px) and (orientation: portrait) {
		.zoomy_content img {
			max-width: 100%;
			max-height: 90vw;
		}
	}

	.zoomy_opener {
		cursor: pointer;
	}

	.zoomy_btt {
		cursor: pointer;
		display: inline-block;
		position: absolute;
		width: 30px;
		height: 30px;
		color: rgba(var(--fourth_rgb), 0.5);
		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;
		filter: drop-shadow(4px 3px 0 #000000);
		right: 8px;
		bottom: 8px;
		z-index: 100;
	}
	@media screen and (min-width : 768px) {
		.zoomy_btt { width: 35px; height: 35px; line-height: 36px; right: 10px; bottom: 10px; font-size: 22px; }
	}
		.zoomy_btt:hover {
			color: var(--fourth_color);
		}

	#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;
		bottom: 43px;
		right: 40px;
		
		font-size: 100%;
		display: inline-block;
		width: 30px;
		height: 30px;
		color: rgba(var(--fourth_rgb), 0.5);
		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;
		filter: drop-shadow(4px 3px 0 #000000);
	}
	@media screen and (min-width : 768px) {
		#zoomy_close { bottom: 50px; right: 45px; width: 35px; height: 35px; line-height: 45px; font-size: 22px; }
	}
	
	#zoomy_close:hover {
		color: var(--fourth_color);
	}
	
	#zoomy_left, #zoomy_right {
		cursor: pointer;
		position: absolute;
		
		font-size: 100%;
		display: inline-block;
		width: 30px;
		height: 30px;
		color: rgba(var(--fourth_rgb), 0.5);
		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: var(--fourth_color);
	}
		
		#zoomy_left svg, #zoomy_right svg {
			position: relative;
			top: -1px;
			left: -1px;
			max-width: none;
			max-height: none;
		}
		@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%;
		}