section {
	overflow: hidden;
	color: rgb(102,102,102);
	margin: 0px;
	padding-left:0px;
	padding-right:1px;
	background-color: rgba(255,255,255,0.5);
	background-image: url("Images/background.jpg");
    background-repeat: no-repeat; /* Le fond ne sera pas répété */
	background-position: center bottom;
	/*background-size: cover;*/
}
h1{/*margin-left:19%;border-left: 1px solid rgb(140,140,140);*/margin-bottom: 0;/*padding-left: 5px;*/}
div#colonne1 {
    float: left;
    width: 18%;
	overflow: hidden;
	list-style-type: none ;
	margin: 0 1% 0 0;
	padding: 0px 5px 0px 0px;
	line-height:1.0;
	border-right: 1px solid rgb(140,140,140);
	min-height: 500px;
}
div#colonne1 p {
	text-align: center;
	}
div#colonne1 li{
	width: 100%;
	margin-right: 2px ;
	line-height: 2em;
	border-top: 1px dashed rgb(140,140,140); /*grisclair*/
}
div#colonne1 li a{
	display: block;
	line-height: 1.8em ;
	padding: 4px 0;
	text-decoration: none ;
	font-weight: normal;
	font-size: smaller;
}
div#colonne1 ul{
	list-style-type: none;
	margin-top: 5px;
	padding-left: 2px;
}
div#colonne1 li a:hover, div#colonne1 li a:focus, div#colonne1 li a:active {
	text-decoration: underline ;
	font-weight: bold;
}

#colonne1 img {
text-align: right;
margin-right: 2px;
float: left;
}
.largeur_min {min-width:175px;}
/*div#ancre1{float: left;width:79%;}*/
div#ancre1{overflow: hidden; margin-right: 10px;}
div#Infos_client{display:block;}
div#image_client {
	float: right;
	display: block;
	text-align: center;
	margin-right: 10px;
	width:20%;
	}
td img.avatar {
max-width: 200px;
height: auto;
}
img#supprimer2 {
margin-left: 10px;
}
.float_stop{
	clear:right;
}
.picto-pdf{
	top: 3px;
    display: inline-block;
    background: url(http://www.sportclean.fr/Images/picto-pdf-alt.png) no-repeat;
    position: relative;
    margin: 0px 5px;
    width: 14px;
    height: 16px;
}
.photo_client{
	max-width: 20%;
	min-width: 6em;
	height: auto;
	margin: 10px 10px 10px 10px;
    padding: 0px 0px 30px 0px;
}
section a {font-weight: bold;color: rgb(204,51,51);}
section a:hover{color: rgb(102,102,102);}

/*****************************************************************************/
/********************************* TABLEAUX ***********************************/
/*****************************************************************************/
.ligne_pair{background-color: rgb(249,249,249); border-bottom: 1px solid lightgray;}
.ligne_impaire{background-color:white; border-bottom: 1px solid lightgray;}
.tableau_prospects{border-collapse: collapse; background-color:white; color: black;font-size: 12px;width: 100%;}
.tableau_prospects td{padding-left:8px; padding-right:8px; line-height:2em;}
.tableau_clients{border-collapse: collapse; background-color:white; color: black;font-size: 12px;width: 100%;}
.tableau_clients td{padding-left:8px; padding-right:8px; line-height:2em;}
.tableau_administrateurs{border-collapse: collapse; background-color:white; color: black;font-size: 12px;width: 100%;}
.tableau_administrateurs td{padding-left:8px; padding-right:8px; line-height:2em;}
.tableau_documents{border-collapse: collapse; background-color:white; color: black;font-size: 12px;width: 100%;}
.tableau_documents td{padding-left:8px; padding-right:8px; line-height:2em;}
.tableau_terrains{border-collapse: collapse; background-color:white; color: black;font-size: 12px;width: 100%;}
.tableau_terrains td{padding-left:8px; padding-right:8px; line-height:2em;}
td.align-droite{text-align: right;}
.GridHeader{font-weight:bold; font-size:1em; border-bottom: 2px solid lightgray; border-top:1px solid lightgray; padding-right:5px; line-height:25px;}
.GridHeader th{
	background-image: url("Images/separateurGrid.gif");
	background-repeat: no-repeat;
	background-position-x: right;
	background-position-y: center;
	background-position: right center;
	padding: 0 3px;
}
th.GridHeaderSansSeparateur {background-image: none;width: 64px;}
th.Col_Tel {width : 92px; }
img#Ajouter {vertical-align: middle;}
img#Supprimer {vertical-align:middle; margin: 0px 4px 0px 4px;}
img#Modifier {vertical-align: middle; margin: 0px 4px 0px 4px;}


div#btn_ajout_clt {padding-left: 5px;}
div#btn_ajouter_clt a {text-decoration: none; color: rgb(104,104,104);}

/*****************************************************************************/
/********************************* MESSAGES **********************************/
/****************************************************************************/
.ok{
	background:#D6EFA1;
	color:#4F7307;
	border : 1px solid #C1D779;
	padding : 5px;	
	margin:5px;
	border-radius : 5px;
	-webkit-border-radius : 5px;
	-moz-border-radius : 5px;
}
.erreur{
background:#F11A57;
color : #FFF;
border : 1px solid #F11A57;
padding : 5px;
margin:5px;
border-radius : 5px;
-webkit-border-radius : 5px;
-moz-border-radius : 5px;
}
div#msg_confirmation {
	float: right;
	padding: 5px;
	margin: 4px;
	font-size: 1em;
	background-color: #d9edf7;
	opacity:1;
	 -webkit-animation: mymove 2s; /* Chrome, Safari, Opera */ 
    animation: mymove 2s;
	}
/* Chrome, Safari, Opera */ 
@-webkit-keyframes mymove {
    0%   {opacity: 0;}
	100% {opacity:1;}
}
/* Standard syntax */
@keyframes mymove {
    0%   {opacity: 0;}
	100% {opacity:1;}
}
/*****************************************************************************/
/********************************* BOUTONS **********************************/
/****************************************************************************/

a.bouton_export_excel {
	display: block;
	width: 65px;
	height: 40px;
	background-image: url("Images/export2.png");
	background-size: 65px 80px;
	background-position: top;
	margin-bottom: 5px;
}
a.bouton_export_excel:hover{
	background-position: bottom;
}

a.bouton_envoi_mail {
	display: block;
	width: 60px;
	height: 60px;
	background-image: url("Images/logo_mail2.png");
	background-size: 60px 120px;
	background-position: top;
}
a.bouton_envoi_mail:hover{
	background-position: bottom;
}
a.bouton_ajout_photo{
	display: inline-block;
	color: #ffffff;
	font-size: 14px;
	background: #3498db;
	padding: 5px 10px 5px 10px;
	text-decoration: none;
	font-weight: normal;
	margin-bottom: 2px;
}
a.bouton_ajout_photo:hover {
  background: #5bbbf7;
  text-decoration: none;
  color: #ffffff;
}
a.bouton_modif_photo {
    position: absolute;
    background: #3498db;
    padding: 5px 8px 5px 8px;
    text-decoration: none;
    color: white;
    font-weight: normal;
    bottom: 0px;
    left: 2px;
}
a.bouton_modif_photo:hover {
    background: #5bbbf7;
  	text-decoration: none;
  	color: #ffffff;
}
a.bouton_supp_photo {
    position: absolute;
    background: #DB3462;
    padding: 5px 8px 5px 8px;
    text-decoration: none;
    color: white;
    font-weight: 100;
    bottom: 0px;
    right: 2px;
}
a.bouton_supp_photo:hover {
    background: rgb(181, 83, 110);
  	text-decoration: none;
  	color: #ffffff;
}

.ui-datepicker {
    font-size: 10px !important;
}

/*****************************************************************************/
/********************************* FORMULAIRES ********************************/
/*****************************************************************************/
div#ancre1 label{
	min-width: 170px;
	display: inline-block;
	font-weight:bold;
	margin-right: 5px;
}

div#ancre1 label.error {
	color: red;
	font-size: 0.8em;
	font-style: italic;
	display: inline-block;
	/*margin-left: 170px;*/
	padding-left:5px;
	/*width: 400px;*/
	}
input {
	margin: 3px 0 3px 0;
}
input[type="submit"] {
	margin-left: 175px;
}	
#email {
    width: 240px;
	max-width:90%;
}
#emailmdp {
    width: 240px;
	max-width:90%;
}
#password {
    width: 240px;
	max-width:90%;
}



img.avatar {max-width:100%; height: auto;}

/*****************************************************************************/
/********************************** Formulaires  ********************************/
/*****************************************************************************/
.formulaire p{margin-left: 10px; text-decoration: underline; color: grey;}

.formulaire .table {
width: 100%;
border: 1px solid #ddd;
text-align: left;
border-spacing: 1px;
background: #fff;
clear: both;
border-radius: 5px;
}
.formulaire .table th:first-child {
border-top-left-radius: 3px;
}
.formulaire .table th:last-child {
border-top-right-radius: 3px;
}
.formulaire th {
font-weight: normal;
padding: 7px 5px;
text-align: center;
color: #fff;
background: grey;
border-bottom: 1px solid #ccc;
}
.formulaire label { font-weight: normal; }
.formulaire label.error { font-weight: bold; }
tr.txtinfos td {
text-align: center;
background-color: #f1f1f1;
padding: .75em;
}
tr.txt td {
font-weight: normal;
padding: 7px 5px;
text-align: center;
color: #fff;
background: grey;
border-bottom: 1px solid #ccc;
}
tr.row1 { background-color: #f6f6f6; }
tr.row2 { background: #fbfbfb; }
tr.subfoot td {
text-align: center;
padding: 4px;
}
.formulaire input[type="submit"] {	margin-left: 0px; }
tr.subfoot { background: #eee; }


/*****************************************************************************/
/************************** Formulaire MDP OUBLIE ? *****************************/
/*****************************************************************************/

.modalDialog{
	position: fixed;
	top: 0; right:0; bottom:0; left:0;
	background: rgba(0,0,0,0.8);
	z-index: 99999;
	display: none;
	/*opacity:0;*/
	-webkit-transition: opacity 400ms ease-in;
	-moz-transition: opacity 400ms ease-in;
	transition: opacity 400ms ease-in;
	pointer-events : none;
}
.modalDialog:target{display: block;/*opacity:1;*/pointer-events:auto;}
.modalDialog > div {
	/*width: 400px;*/
	max-width: 600px;
	/*min-width: 320px;*/
	width: 85%;
	position: relative;
	margin: 3% auto;
	padding: 5px 5px 5px 5px;
	border-radius: 10px;
	background: #fff;
	background: -moz-linear-gradient(#fff,#999);
	background: -webkit-linear-gradient(#fff,#999);
	background: -o-linear-gradient(#fff,#999);
}
img.btn_close {
    float: right;
    margin: -16px -16px 0 0;
	height: 21px;
}
.close {
	background: #606061;
	color: #FFFFFF;
	line-height: 25px;
	position: absolute;
	right: -12px;
	text-align: center;
	top: -10px;
	width: 24px;
	text-decoration: none;
	font-weight: bold;
	-webkit-border-radius: 12px;
	-moz-border-radius: 12px;
	border-radius: 12px;
	-moz-box-shadow: 1px 1px 3px #000;
	-webkit-box-shadow: 1px 1px 3px #000;
	box-shadow: 1px 1px 3px #000;
}

.close:hover { background: #fff; color:rgb(204,51,51);}

/*****************************************************************************/
/********************************* MOBILES ************************************/
/*****************************************************************************/
@media (max-width: 767px) {
	div#colonne1{
		width:100%; /*permet de faire passer la colonne centre en dessous*/
		min-height:0px;
	}
	div#ancre1 {padding-left: 1%; padding-right: 1%; width:98%;}
	div#suite, h1{margin-left:0px;border: none;} /* sans marge car passe en dessous du menu*/
	div#ancre1 label {display: initial;}
	img.avatar {max-width:100%; height: auto;}
	
	label.error {
	color: red;
	font-size: 0.8em;
	font-style: italic;
	margin-left: 0px !important;
	/*max-width: 310px;*/
	}
	input[type="submit"] {
	margin-left: 0px !important;
	}	

	
	/*tableau full screen smart phone*/
	/* Force table to not be like tables anymore */
	.responsive-table table, .responsive-table thead, .responsive-table tbody, .responsive-table th, .responsive-table td, .responsive-table tr { 
		display: block; 
	}

	/*table.ui-datepicker-calendar { display: grid !important; }
	thead.ui-datepicker-calendar { display: grid !important; }
	th.ui-datepicker-calendar { display: grid !important; }
	td.ui-datepicker-calendar { display: grid !important; }
	tr.ui-datepicker-calendar { display: grid !important; }*/
	
	/* Hide table headers (but not display: none;, for accessibility) */
	thead tr { 
		position: absolute;
		top: -9999px;
		left: -9999px;
	}
	
	tr { border: 1px solid #ccc; }
	
	td { 
		/* Behave  like a "row" */
		border: none;
		border-bottom: 1px solid #eee; 
		position: relative;
		/*padding-left: 50%; */
	}
	
	td:before { 
		/* Now like a table header */
		/*position: absolute;*/
		/* Top/left values mimic padding */
		top: 6px;
		left: 6px;
		width: 45%; 
		padding-right: 10px; 
		white-space: nowrap;
	}
	
	/*
	Label the data
	*/
	.tableau_prospects td:nth-of-type(1):before { content: "Ville/Raison sociale :"; font-weight:bold; }
	.tableau_prospects td:nth-of-type(2):before { content: "Contact :";  font-weight:bold;}
	.tableau_prospects td:nth-of-type(3):before { content: "Email :";  font-weight:bold;}
	.tableau_prospects td:nth-of-type(4):before { content: "Tel :";  font-weight:bold;}
	.tableau_prospects td:nth-of-type(5):before { content: "Date :";  font-weight:bold;}
	
	.tableau_clients td:nth-of-type(1):before { content: "Dénomination :"; font-weight:bold; }
	.tableau_clients td:nth-of-type(2):before { content: "Email :";  font-weight:bold;}
	.tableau_clients td:nth-of-type(3):before { content: "Tel :";  font-weight:bold;}
	.tableau_clients td:nth-of-type(4):before { content: "Ville :";  font-weight:bold;}
	
	.tableau_terrains td:nth-of-type(1):before { content: "Dénomination :"; font-weight:bold; }
	.tableau_terrains td:nth-of-type(2):before { content: "Adresse :";  font-weight:bold;}
	.tableau_terrains td:nth-of-type(3):before { content: "Adresse :";  font-weight:bold;}
	.tableau_terrains td:nth-of-type(4):before { content: "Adresse :";  font-weight:bold;}
	.tableau_terrains td:nth-of-type(5):before { content: "Ville :";  font-weight:bold;}
	.tableau_terrains td:nth-of-type(6):before { content: "Code postal :";  font-weight:bold;}

	.tableau_documents td:nth-of-type(1):before { content:"Date :"; font-weight: bold; }
	.tableau_documents td:nth-of-type(2):before { content:"Type document :"; font-weight: bold; }
	.tableau_documents td:nth-of-type(3):before { content:"Type devis :"; font-weight: bold; }
	
	.tableau_administrateurs td:nth-of-type(1):before { content: "Nom :"; font-weight:bold; }
	.tableau_administrateurs td:nth-of-type(2):before { content: "Prénom :";  font-weight:bold;}
	.tableau_administrateurs td:nth-of-type(3):before { content: "Email :";  font-weight:bold;}
	.tableau_administrateurs td:nth-of-type(4):before { content: "Tel :";  font-weight:bold;}
	
}
/*****************************************************************************/
/***************************** GALERIE PHOTO *********************************/
/*****************************************************************************/

.wrap {
      overflow: hidden;
      font-size: 12px;     
    }
.box {
	float: left;
	position: relative;
	width: 25%;
	padding-bottom: 25%;
	background-color: rgba(115, 64, 64, 0.23);
}
.boxInner {
	position: absolute;
	left: 10px;
	right: 10px;
	top: 10px;
	bottom: 10px;
	overflow: hidden;
}
.boxInner img {
	width: 100%;
}
.boxInner .titleBox {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	margin-bottom: -100px;
	background: #000;
	background: rgba(0, 0, 0, 0.5);
	color: #FFF;
	padding: 10px;
	text-align: center;
	-webkit-transition: all 0.3s ease-out;
	-moz-transition: all 0.3s ease-out;
	-o-transition: all 0.3s ease-out;
	transition: all 0.3s ease-out;
}
body.no-touch .boxInner:hover .titleBox, body.touch .boxInner.touchFocus .titleBox {
	margin-bottom: 20%;
}
a.lienphoto2 {
    position: absolute;
    top: 86%;
    margin: 0px 2%;
}
a.lienphoto {
    position: absolute;
    top: 86%;
    margin: 0px 15%;
}
@media only screen and (max-width : 480px) {
/* Smartphone view: 1 tile */
	.box {
		width: 100%;
		padding-bottom: 100%;
	}
}
@media only screen and (max-width : 650px) and (min-width : 481px) {
/* Tablet view: 2 tiles */
	.box {
		width: 50%;
		padding-bottom: 50%;
	}
}
@media only screen and (max-width : 1050px) and (min-width : 651px) {
/* Small desktop / ipad view: 3 tiles */
	.box {
		width: 33.3%;
		padding-bottom: 33.3%;
	}
}
@media only screen and (max-width : 1290px) and (min-width : 1051px) {
/* Medium desktop: 4 tiles */
	.box {
		width: 25%;
		padding-bottom: 25%;
	}
}
/* padding-bottom and top for image */
.mfp-no-margins img.mfp-img {
	padding: 0;
}
/* position of shadow behind the image */
.mfp-no-margins .mfp-figure:after {
	top: 0;
	bottom: 0;
}
/* padding for main container */
.mfp-no-margins .mfp-container {
	padding: 0;
}
.mfp-with-zoom .mfp-container,
.mfp-with-zoom.mfp-bg {
	opacity: 0;
	-webkit-backface-visibility: hidden;
	-webkit-transition: all 0.3s ease-out; 
	-moz-transition: all 0.3s ease-out; 
	-o-transition: all 0.3s ease-out; 
	transition: all 0.3s ease-out;
}

.mfp-with-zoom.mfp-ready .mfp-container {
		opacity: 1;
}
.mfp-with-zoom.mfp-ready.mfp-bg {
		opacity: 0.8;
}

.mfp-with-zoom.mfp-removing .mfp-container, 
.mfp-with-zoom.mfp-removing.mfp-bg {
	opacity: 0;
}
/* Magnific Popup CSS */
.mfp-bg {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1042;
  overflow: hidden;
  position: fixed;
  background: #0b0b0b;
  opacity: 0.8;
  filter: alpha(opacity=80); }

.mfp-wrap {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1043;
  position: fixed;
  outline: none !important;
  -webkit-backface-visibility: hidden; }

.mfp-container {
  text-align: center;
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  padding: 0 8px;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box; }

.mfp-container:before {
  content: '';
  display: inline-block;
  height: 100%;
  vertical-align: middle; }

.mfp-align-top .mfp-container:before {
  display: none; }

.mfp-content {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  margin: 0 auto;
  text-align: left;
  z-index: 1045; }

.mfp-inline-holder .mfp-content,
.mfp-ajax-holder .mfp-content {
  width: 100%;
  cursor: auto; }

.mfp-ajax-cur {
  cursor: progress; }

.mfp-zoom-out-cur, .mfp-zoom-out-cur .mfp-image-holder .mfp-close {
  cursor: -moz-zoom-out;
  cursor: -webkit-zoom-out;
  cursor: zoom-out; }

.mfp-zoom {
  cursor: pointer;
  cursor: -webkit-zoom-in;
  cursor: -moz-zoom-in;
  cursor: zoom-in; }

.mfp-auto-cursor .mfp-content {
  cursor: auto; }

.mfp-close,
.mfp-arrow,
.mfp-preloader,
.mfp-counter {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none; }

.mfp-loading.mfp-figure {
  display: none; }

.mfp-hide {
  display: none !important; }

.mfp-preloader {
  color: #CCC;
  position: absolute;
  top: 50%;
  width: auto;
  text-align: center;
  margin-top: -0.8em;
  left: 8px;
  right: 8px;
  z-index: 1044; }
  .mfp-preloader a {
    color: #CCC; }
    .mfp-preloader a:hover {
      color: #FFF; }

.mfp-s-ready .mfp-preloader {
  display: none; }

.mfp-s-error .mfp-content {
  display: none; }

button.mfp-close,
button.mfp-arrow {
  overflow: visible;
  cursor: pointer;
  background: transparent;
  border: 0;
  -webkit-appearance: none;
  display: block;
  outline: none;
  padding: 0;
  z-index: 1046;
  -webkit-box-shadow: none;
  box-shadow: none; }

button::-moz-focus-inner {
  padding: 0;
  border: 0; }

.mfp-close {
  width: 44px;
  height: 44px;
  line-height: 44px;
  position: absolute;
  right: 0;
  top: 0;
  text-decoration: none;
  text-align: center;
  opacity: 0.65;
  filter: alpha(opacity=65);
  padding: 0 0 18px 10px;
  color: #FFF;
  font-style: normal;
  font-size: 28px;
  font-family: Arial, Baskerville, monospace; }
  .mfp-close:hover,
  .mfp-close:focus {
    opacity: 1;
    filter: alpha(opacity=100); }
  .mfp-close:active {
    top: 1px; }

.mfp-close-btn-in .mfp-close {
  color: #333; }

.mfp-image-holder .mfp-close,
.mfp-iframe-holder .mfp-close {
  color: #FFF;
  right: -6px;
  text-align: right;
  padding-right: 6px;
  width: 100%; }

.mfp-counter {
  position: absolute;
  top: 0;
  right: 0;
  color: #CCC;
  font-size: 12px;
  line-height: 18px;
  white-space: nowrap; }

.mfp-arrow {
  position: absolute;
  opacity: 0.65;
  filter: alpha(opacity=65);
  margin: 0;
  top: 50%;
  margin-top: -55px;
  padding: 0;
  width: 90px;
  height: 110px;
  -webkit-tap-highlight-color: transparent; }
  .mfp-arrow:active {
    margin-top: -54px; }
  .mfp-arrow:hover,
  .mfp-arrow:focus {
    opacity: 1;
    filter: alpha(opacity=100); }
  .mfp-arrow:before,
  .mfp-arrow:after,
  .mfp-arrow .mfp-b,
  .mfp-arrow .mfp-a {
    content: '';
    display: block;
    width: 0;
    height: 0;
    position: absolute;
    left: 0;
    top: 0;
    margin-top: 35px;
    margin-left: 35px;
    border: medium inset transparent; }
  .mfp-arrow:after,
  .mfp-arrow .mfp-a {
    border-top-width: 13px;
    border-bottom-width: 13px;
    top: 8px; }
  .mfp-arrow:before,
  .mfp-arrow .mfp-b {
    border-top-width: 21px;
    border-bottom-width: 21px;
    opacity: 0.7; }

.mfp-arrow-left {
  left: 0; }
  .mfp-arrow-left:after,
  .mfp-arrow-left .mfp-a {
    border-right: 17px solid #FFF;
    margin-left: 31px; }
  .mfp-arrow-left:before,
  .mfp-arrow-left .mfp-b {
    margin-left: 25px;
    border-right: 27px solid #3F3F3F; }

.mfp-arrow-right {
  right: 0; }
  .mfp-arrow-right:after,
  .mfp-arrow-right .mfp-a {
    border-left: 17px solid #FFF;
    margin-left: 39px; }
  .mfp-arrow-right:before,
  .mfp-arrow-right .mfp-b {
    border-left: 27px solid #3F3F3F; }

.mfp-iframe-holder {
  padding-top: 40px;
  padding-bottom: 40px; }
  .mfp-iframe-holder .mfp-content {
    line-height: 0;
    width: 100%;
    max-width: 900px; }
  .mfp-iframe-holder .mfp-close {
    top: -40px; }

.mfp-iframe-scaler {
  width: 100%;
  height: 0;
  overflow: hidden;
  padding-top: 56.25%; }
  .mfp-iframe-scaler iframe {
    position: absolute;
    display: block;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
    background: #000; }

/* Main image in popup */
img.mfp-img {
  width: auto;
  max-width: 100%;
  height: auto;
  display: block;
  line-height: 0;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  padding: 40px 0 40px;
  margin: 0 auto; }

/* The shadow behind the image */
.mfp-figure {
  line-height: 0; }
  .mfp-figure:after {
    content: '';
    position: absolute;
    left: 0;
    top: 40px;
    bottom: 40px;
    display: block;
    right: 0;
    width: auto;
    height: auto;
    z-index: -1;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
    background: #444; }
  .mfp-figure small {
    color: #BDBDBD;
    display: block;
    font-size: 12px;
    line-height: 14px; }
  .mfp-figure figure {
    margin: 0; }

.mfp-bottom-bar {
  margin-top: -36px;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  cursor: auto; }

.mfp-title {
  text-align: left;
  line-height: 18px;
  color: #F3F3F3;
  word-wrap: break-word;
  padding-right: 36px; }

.mfp-image-holder .mfp-content {
  max-width: 100%; }

.mfp-gallery .mfp-image-holder .mfp-figure {
  cursor: pointer; }

@media screen and (max-width: 800px) and (orientation: landscape), screen and (max-height: 300px) {
  /**
       * Remove all paddings around the image on small screen
       */
  .mfp-img-mobile .mfp-image-holder {
    padding-left: 0;
    padding-right: 0; }
  .mfp-img-mobile img.mfp-img {
    padding: 0; }
  .mfp-img-mobile .mfp-figure:after {
    top: 0;
    bottom: 0; }
  .mfp-img-mobile .mfp-figure small {
    display: inline;
    margin-left: 5px; }
  .mfp-img-mobile .mfp-bottom-bar {
    background: rgba(0, 0, 0, 0.6);
    bottom: 0;
    margin: 0;
    top: auto;
    padding: 3px 5px;
    position: fixed;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box; }
    .mfp-img-mobile .mfp-bottom-bar:empty {
      padding: 0; }
  .mfp-img-mobile .mfp-counter {
    right: 5px;
    top: 3px; }
  .mfp-img-mobile .mfp-close {
    top: 0;
    right: 0;
    width: 35px;
    height: 35px;
    line-height: 35px;
    background: rgba(0, 0, 0, 0.6);
    position: fixed;
    text-align: center;
    padding: 0; } }

@media all and (max-width: 900px) {
  .mfp-arrow {
    -webkit-transform: scale(0.75);
    transform: scale(0.75); }
  .mfp-arrow-left {
    -webkit-transform-origin: 0;
    transform-origin: 0; }
  .mfp-arrow-right {
    -webkit-transform-origin: 100%;
    transform-origin: 100%; }
  .mfp-container {
    padding-left: 6px;
    padding-right: 6px; } }

.mfp-ie7 .mfp-img {
  padding: 0; }

.mfp-ie7 .mfp-bottom-bar {
  width: 600px;
  left: 50%;
  margin-left: -300px;
  margin-top: 5px;
  padding-bottom: 5px; }

.mfp-ie7 .mfp-container {
  padding: 0; }

.mfp-ie7 .mfp-content {
  padding-top: 44px; }

.mfp-ie7 .mfp-close {
  top: 0;
  right: 0;
  padding-top: 0; }