/* 
   phpGraphy' stylesheet, please customise it as much as you want !
   and if you got a very nice theme that you want to share, then submit it,
   perhaps it'll be in the next release

   To change the default size font, modify the font-size element for both body and td,
   everything else is relative to them.
*/


/**
 *
 *General declaration (Mainly about font and colors) 
 *
**/
/*
body {
  font-size:12px;
  font-family : Verdana,Arial,Geneva,sans-serif;
  color: #101818;
  background-color: white;
}

td { 
  font-size:12px;
  font-family : Verdana,Arial,Geneva,sans-serif;
}
*/

#gal-main a { text-decoration: none }

#gal-main a:link { color: #79b8c8 } 

#gal-main a:visited { color: #79b8c8 }

#gal-main a:active { color: #79b8c8 }

#gal-main a:hover { 
  text-decoration: underline;
}

#gal-main a.menu:hover { text-decoration: none }

#gal-main a.lbmenu:hover { text-decoration: none }

#gal-main a.lbmenu { text-decoration: none }



#gal-main small, #gal-main .small { 
  font-size: 75%;
  font-family : Verdana,Arial,Geneva,sans-serif;
  }

#gal-main .small:link {
  font-size: 75%;
  font-family : Verdana,Arial,Geneva,sans-serif;
  color: black;
  }

#gal-main .small:visited {
  font-size: 75%;
  font-family : Verdana,Arial,Geneva,sans-serif;
  color: black;
  }

#gal-main .medium {
    font-size: 88%
	}

#gal-main .big { font-size: 150%; }

#gal-main .txt { 
  font-family : Courier New,sans-serif;
  }

#gal-main .notes {
    margin: 0.3em 0;
    font-size: 75%;
    color: #55f;
}

#gal-main .errormsg {
  font-family : Verdana,Arial,Geneva,sans-serif;
  font-size: 90%;
  color: red;
  }

#gal-main .successmsg {
  font-family : Verdana,Arial,Geneva,sans-serif;
  font-size: 90%;
  font-weight: bold;
  color: blue;
  }


/**
 *
 *  Position and behavior between the differents elements
 *
 *  Here is the main page layout
 *    banner (phpGraphy logo)
 *    dirbar (Current path (left) and Links (right))
 *    welcome (.welcome file)
 *    dirlist (List of directories)
 *    dircontent (List of files/thumbs) or displaypicture (Lowres/Highres picture)
 *    pagenav (Page Naviguation, Prev/Next and page number )
 *    footer
**/

/* Global container */
#gal-main {
  margin: 0 15px;
  }
  
/* Default phpGraphy banner */
#gal-main #banner {
  display: block;
  border: none;
  margin-bottom: 3px;
  }

/* Directory information bar (current directory) - not used anymore, now using dirbarleft/right */
/*#dirbar {
  width: 100%;
  border: none;
}
*/
/* .welcome (Only displayed on the first page when in thumbs mode) */
#gal-main #welcome {
    clear: left;
    color: #883333;
    padding: 5px;
}

/* display the directory content (directories) */
#gal-main #dirlist {
  clear: left;
}

/* display the directory content (files/thumbs) */
#gal-main #dircontent {
  clear: left;
 /* width: 620px;*/
  margin: 15px 0 0 15px;
}

#gal-main #dircontent td {
  vertical-align: top;
  padding-bottom: 1.5em;
}

/* Page naviguation (Previous/Next, Page number) */
#gal-main  #pagenav {
  float: left;
  clear: left;
  /*width: 100%;*/
  text-align: center;
  margin: 10px;
}

/*
#footer {
  clear: left;
  width: 100%;
  text-align: center;
}
*/

#gal-main #dirbarleft {
  float: left;
  text-align: left;
  }

#gal-main #dirbarright {
  float: right;
  width: 25%;
  text-align: right;
  }


/* picture title (displayed when browsing lowres/highres pictures) - along with browse.tpl */
#gal-main .title {
  font-family : Verdana,Arial,Geneva,sans-serif;
  text-decoration: underline;
  }
  
/* Lowres/Highres picture display area - along with display.tpl */
#gal-main #pictitle {
    display: block;
    width: 100%;
    text-align: center;
}

#gal-main #displaypicture {
  text-align: center;
  }

#gal-main #picrating span  {
  display: block;
  margin: 0.2em;
  }

#gal-main #currentrating {
  margin: 0.5em;
  }

#gal-main #metadataicon {
  margin-left: 5px;
  }

/* Admin form to change picture's associated data */
#gal-main .rotatebutton {
  background-color : transparent;
  border: 1px solid;
  color : #BDD77B;
}

/* exif metadata text */
#gal-main .exifmetadata { 
  color: #646464;
  text-align: center;
  }

/* iptc metadata text */
#gal-main .iptcmetadata {
  color: #a0a0a0;
  text-align: center;
  }

/* currently only used for the metadata table (hidden by default) */
#gal-main .metadatatable { 
  background-color: #f5beb4;
  border: 1px solid;
  border-spacing: 0px;
  margin-left:auto;
  margin-right:auto;
  margin-top: 8px;
  }
#gal-main .rowbgcolor1 { background-color: #f5beb4; }
#gal-main .rowbgcolor2 { background-color: #ffe5e0; }

#gal-main #commentstitle {
  float: left;
  text-decoration: underline;
  margin-bottom: 10px;
}

#gal-main #addcomment {
  float: right;
}

#gal-main .commentfrom {
    display: block;
    clear: left;
    /*width: 100%;*/
    text-align: left;
    margin-top: 12px;
}

#gal-main .usercomment {
    display: block;
    clear: left;
    text-align: left;
    /*width: 100%;*/
}


/* thumbnails properties */
#gal-main .thumbnail {
   border: 1px solid black;
}
#gal-main .picthumbnail, #gal-main .picinfo {
    float: left;
}
#gal-main .picinfo a, #gal-main .picinfo span {
    display: block;
    padding: .5em 1em 0 1em;
}
#gal-main .picinfo span {
    font-size: 75%;
    padding-left: 2em;
}



/* directory thumbnail */

/* Folder Frame related (draw a nice frame around folder (thx to Jeff for the initial CSS code) */

#gal-main .fftop         { background: url(images/border-top.gif) repeat-x; }
#gal-main .fftop div     { background: url(images/corner-top-left.gif) no-repeat top left; }
#gal-main .fftop div div { background: url(images/corner-top-right.gif) no-repeat top right; }

#gal-main .ffbottom         { background: url(images/border-bottom.gif) repeat-x; }
#gal-main .ffbottom div     { background: url(images/corner-bottom-left.gif) no-repeat top left; }
#gal-main .ffbottom div div { background: url(images/corner-bottom-right.gif) no-repeat top right; }

#gal-main .ffcontentwrap { background: url(images/border-left.gif) repeat-y; }
#gal-main .ffcontent     { background: url(images/border-right.gif) repeat-y right; }

/* Hack to handle the gap below the border with FireFox (when XHTML doctype is enabled )  */
#gal-main .ffcontent a { background-color: #ececec; }

#gal-main .fftop div, #gal-main .fftop, #gal-main .ffbottom div, #gal-main .ffbottom {
	/* width: 140px; <=  Not used to be relative - it's added within the code as style argument */
	height: 20px;
	font-size: 1px;
}

#gal-main .ffcontent {
    text-align: center;
    /* width: 140px; <=  Not used to be relative - it's added within the code as style argument */
}

/* One div per directory, contains a dirframe and a dirtitle */
#gal-main .direntry {
    margin: 0 15px 0 0;
    clear: left;
	 text-align: justify;
}

/*  Resides inside direntry, contains dirthumbnail and all the ff* (framefolder) entries) */
#gal-main .dirframe {
    float: left;
}

/* Resides inside a dirframe */
#gal-main .dirthumbnail {
    border: 1px solid #aaaaaa;
}


/* Used when $directory_display_mode = 'icon' */
#gal-main .diricon {
    border: none;
    vertical-align: middle;
    margin: 1px 1px 1px 0.2em;
}

/* Used when $directory_display_mode = 'picture' */
#gal-main .dirtitlepicture {
    margin: 15px 0 10px 10px;
    font-weight: bold;
    font-size: 120%;
	 float: left;
	 width: 65%;
}

#gal-main .dirinfo {
    font-size: 80%;
    font-weight: normal;
    margin-top: 5px;
    margin-bottom: 5px;
    color: #aaaaaa;
}

/* Used when $directory_display_mode = 'icon' */
#gal-main .dirtitleicon {
    margin: 5px 0 5px 5px;
}

/* Used when $directory_display_mode = 'name' */
#gal-main .dirtitlename {
    margin-left: -15px;
}



/* icons properties */
#gal-main .icon { border: none }

/* lowres/highres picture properties */
#gal-main .picture { 
  border: 1px solid black;
  }

#gal-main .popup {
  position: fixed;
  left: 10px;
  top: 10px;
  }

#gal-main #loginform table {
    margin: 5% auto;
    border: 1px solid #AAAAAA;
    padding: 50px;
}

/* login page */

#gal-main #loginbox {
    position: relative;
    width: 300px;
    margin: 5% auto;
    border: 1px solid #AAAAAA;
    padding: 50px;
}

#gal-main .margintop {
    margin-top: 5px;
}

#gal-main .floatlabel {
    width: 4em;
    float: left;
    text-align: right;
    margin: 0 1em 10px 0;
    clear: both
}

#gal-main #userscomments {

}

/* USER MANAGEMENT */

/* USER MANAGEMENT LIST */
table.um { border-collapse: collapse; border: 2px solid #999; margin: .5em auto; }
table.um th { font-weight: bold; color: #333; padding: .5em; background-color: #eee; }
table.um td { border: 1px solid #ddd; padding: .5em; text-align: center; }
table.um caption { padding: .5em; font-weight: bold; background-color: #eee; border: 2px solid #999; margin: 0 auto; }

/* USER MANAGEMENT EDIT USER INFO */
#user_management { width: 30em; margin: 1em auto; }
#bottomForm { text-align: right; font-weight:bold; }
#bodyForm { background-color: #eee; }
#bodyForm legend { font-weight: bold; }
#bodyForm fieldset label { float: left; width: 40%; text-align: right;  padding: 0 .5em 0 0; line-height: 1.8; }
#bodyForm .legend { font-style: italic; color: #666; }

/*  SLIDESHOW */

#gal-main #slideshow {

    position: absolute;
    top: 0;
    left: 0;
}

#gal-main #slideshow a {
	z-index: 9;
	cursor: pointer;
}

#gal-main #slideshow input {
    border: 0;
    margin: 0;
    padding: 0;
    text-align: right;
    width:1.5em;
}


#gal-main #close-slideshow {
    position: absolute;
    top: 0;
    right: 0;
    padding: 1.5em;
    font-weight: bold;
}

#gal-main #spanControl {
    background-color: #0FAA45;
    color: white;
    font-weight: bold;
}

#gal-main #spanControl input {
    color: white;
    background: #0FAA45;
	border-width: 0px;
	width: 1.5em;
}

#gal-main #slideshow-control {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    text-align:center;
	margin-top: .5em;
}

/* Show/Hide caption text within the remote control */
#gal-main #hidecaptions, #gal-main #showcaptions {
    font-size: 80%;
    font-weight: normal;
}

/* Where the picture's title get displayed */
#gal-main #slideshow-captions {
    font-weight: bold;
    text-align: center;
    margin-bottom: 3px;
}

/* DEBUG messages BOX - Reserved for development purposes */
#gal-main #debugbox {
    position: absolute;
    top: 2px;
    left: 2px;
    background-color: white;
    z-index: 1;
    border: solid 1px #ccc;
}

#gal-main #debugmsgs {
    text-align: left;
    padding: 2px 5px;
}

#gal-main #gallery-prev {
	background: #0FAA45 url('/img/gallery-prev.png') no-repeat 0 center;
	padding: 0 0 0 20px;
}

#gal-main #gallery-next {
	background: #0FAA45 url('/img/gallery-next.png') no-repeat right center;
	padding: 0 20px 0 0;
}

#gal-main #gallery-prev, #gal-main #gallery-close, #gal-main #gallery-next, #gal-main #gallery-slideshow {
	font-size: 1em;
	font-weight: bold;
	font: Verdana, Geneva, Arial, Helvetica, sans-serif;
}

#gal-main #gallery-prev span, #gal-main #gallery-close, #gal-main #gallery-next span, #gal-main #gallery-slideshow {
	color: #fff;
	background: #0FAA45;
	padding: 0 .4em;
}

#gal-main #gallery-slideshow {
	margin-left: 5em;
}

#gal-main #gallery-close, #gal-main #pause, #gal-main #play {
	border: 1px solid #fff;
	border-width: 0 2px;
}

#gal-main #pause, #gal-main #play {
	padding: 0 .4em;
}

#gallery_access_form {
	border: 1px solid #000;
	width: 300px;
	padding: .5em;
	text-align: center;
	clear: left;
}
#gallery_access_form p {
	text-align: left;
}
#gallery_access_form label {
	font-weight: bold;
}
#gal-main #picnav {
	margin-bottom: 1.5em;
}