@keyframes fader_photo {
  0% {
    opacity: 0;
  }
  100% { /* 3s for fade in */
    opacity: 0.7;
  }
}

@keyframes fader_title {
  0% { opacity: 0; }
  100% { opacity: 0.7; }
}

@keyframes fader_out {
  0% { opacity: 0.7; }
  100% { opacity: 0; }
}

div#dimmer
{
	opacity: 1;
	background-color: #000000;
	width: 100vw;
	height: 100vh;
}

div#photobox
{	
	position: fixed;
	top: 0; left: 0;
	color: #806000;
	z-index: 8; 
}

div#photo
{
	position: fixed;
	width: auto;
	height: auto;
	padding: 0;
	top: 45vh;
  	left: 50vw;
  	transform: translate(-50%,-50%);
  	
  	overflow: hidden;
  	animation: fader_photo 1s;
	//border: 1px solid #ffeeee;	
}

img#photobox_photo
{
	max-height: 85vh;
	max-width: 80vw;
	animation: fader_photo 0.5s;
}

div#photobox_title
{
	position: absolute;
	bottom: 2%;
	margin-left: 1%;	
	width: 94%;
	height: auto;
	padding: 2%;
	background-color: black;
	color: white; 
	opacity: 0;
	border-radius: 0.5vw;
	font-size: 0.7rem;
	overflow: hidden;
	//border: 1px solid white;
}

div#photobox_description
{
	position: relative;
	float: left;
	text-align: left;
	width: 45%;
	bottom: 10%;
}

div#photobox_place
{
	position: relative;
	float: right;
	text-align: right;
	width: 45%;
	bottom: 10%;
}

div#photobox_title div
{
	font-size: 0.9rem;
}

div#photobox_title:hover
{
	opacity: 0.7;
	animation: fader_title 1s;
}

div#photobox_close
{
	position: absolute;
	top: 50px;
	right: 50px;
	z-index: 10;
	width: 100px;
	height: 100px;
	//background-color: #555555;
}

a.navigation
{
	//text-decoration: none;
	color: white;
}


div#fb_photolike
{
	margin-top: 3px;
	z-index: 10;
}
div.antitheft
{
	position: absolute;
	top: 0px;
	left: 0px;
	width: <?php echo $photo_width; ?>px;
	height: <?php echo $photo_height; ?>px;
}

div.rew_fwd
{
	position: absolute;
	width: 100px;
	text-align: center;
	left: <?php echo intval(($photobox_width - 100)/2) ?>px;
	//background-color: #333333;
	margin-left: auto;
	margin-right: auto;
	bottom: 10px;
}

div#rew, div#fwd
{
	position: absolute;
	top: 45%;
	border-radius: 50%;
	opacity: 0.8;
	font-size: 5vw;
	font-family: montserrat;
	color: white;
}
img#rew, img#fwd
{
	width: 5vw;
}
img#close
{
	width: 6vw;
	max-width: 6vh;
	position: absolute;
	top: 0;
	right: 0;
}

div#rew
{ left: 3vw; }

div#fwd
{ right: 3vw; }