<!--
/*
	gal_view.css: contains styles used by the gallery viewer.
	(C) Blue Moon Design, 2006
	Some styles are modified within the viewer code: see comments for details.
*/

/* Tags first: */

body {
	background: url(img/bg_main.jpg) #444444 top left repeat;
	margin: 0px 0px 0px 0px;
	padding: 0px 0px 0px 0px;
}

p {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 8pt;
	color: #EEEEEE;
	text-decoration: none;
}

a {
	color: #EEDD99;
	text-decoration: none;
}

a:hover {
	color: #EECCEE;
}

/* See also some a:hover stuff among the thumbs stuff below. */

/* Now the named styles, in alpabetical order. */
.copyright_text {
	font-style: italic;
	font-size: 10pt;
	text-align: center;
	color: #CCCCCC;
	margin: 5px 0px 5px 0px;
}

.gal_control { /* The width attribute is set by the PHP depending on whether Javascript is enabled (as some control icons are not displayed). */
	white-space: nowrap;
	border: 1px solid #999999;
	background-color: #505050;
	padding: 2px 0px 2px 0px;
	margin: 5px auto 5px auto;
}

.gal_control a img {
	border: none; /* Some browsers seem to need this. */
}

.gal_control_s {
	width: 40px;
	height: 16px;
}

.gal_control_ss {
	width: 3px;
	height: 16px;
}

.gal_heading {
	font-size: 10pt;
	margin: 0px 0px 0px 0px;
}

.gal_title {
	color: #FFCC00;
}

.help_close {
	border: none;
	float: right;
	margin-top: -7px; /* keep these synchronised with #help_text paddings. */
	margin-right: -7px;
}

.help_heading {
	margin-top: 0em;
	color: #FFCC00;
	font-size: 12pt;
}

.help_key_head, .help_desc_head {
	color: #FFCC00;
}

.help_key, .help_key_head {
	display: block;
	float: left;
	width: 4em;
	text-align: right;
}

.help_desc, .help_desc_head {
	margin-left: 1em;
	text-align: left;
}

.help_subheading {
	font-style: italic;
}

#help_text {
	display: none;
	position: absolute;
	margin-top: 50px;
	z-index: 2;
	background-color: #333333;
	border: 2px solid #998877;
	width: 300px; /* Keep this synchronised with toggle_help() in the javascript. */
	padding: 7px 7px 7px 7px; /* Keep this synchronised with the .help_close margins. */
	text-align: left;
}

#help_text p {
	line-height: 1.3em;
	font-size: 10pt;
	margin-bottom: 0em;
}

#image_container {
	text-align: center;
}

.info_close {
	border: none;
	float: right;
	margin-top: -5px; /* Keep these synchronised with the #pic_info padding. */
	margin-right: -5px; /* WinME IE5.5 doesn't seem to listen to the negative right margin */
}

#info_code {
	margin-right: 2em; /* Spacing for the static link */
}

.main_pic {
	border: 1px solid #AAAAAA;
}

#photo_title {
	font-style: italic;
}

.pic_code {
	margin-top: 0px;
	margin-bottom: 10px;
}

#pic_comments {
	margin: 3px 0px 0px 20px;
}

#pic_info { /* the 'display' attribute is set in view.php depending on Javascript support. */
	width: 600px;
	padding: 5px 5px 5px 5px; /* Keep this synchronised with the .info_close margins. */
	margin: 0px auto 0px auto;
	text-align: left; /* makes up for the outer <div align="center"> required for WinME IE5.5. */
	border: 1px solid #999999;
	background-color: #505050;
}

#pic_location {
	margin: 3px 0px 10px 20px;
}

.prints_header {
	font-family: "Courier New", Courier, mono;
	font-style: italic;
	font-weight: bold;
	font-size: 14pt;
	color: #DDAA00; /* I've decided to make this a little darker than the usual heading, to make it less distracting. */
	margin-top: 0px;
	margin-bottom: 0px;
}

.prints_subheader {
	color: #CC9900;
}

.section_head {
	color: #FFCC00;
}

.thumb_row {
	white-space: nowrap; /* this should never actually be necessary */
	margin: 0px auto 0px auto;
	padding: 3px 0px 3px 0px; /* Using margins confuses FireFox */
}

.thumb_row a {
}

.thumb_row a img {
	border: 6px solid #666666;
	margin: 0px 3px 0px 3px; /* Theoretically this (and the .thumb_row padding) should be 5px, but there's an extra 2px being picked up somehow. */
}

/*
	Note that I am now using onMouseOver/Out attributes to control the thumbnail mouseover behaviour.  This is because of two issues:
	1. Safari has a bug where you can't clear a border-color style attribute (eg el.style.borderColor = '').  I've filed a bug report with Apple.
	   I was able to work around this by using a small padding and modifying the backgroundColor instead, but this leads us to issue 2:
	2. Windows IE5.5 will not apply padding/background attributes to images.

	If Safari gets fixed I'd like to go back to what I have below, and remove the onMouseOut/onMouseOver attributes.  In the Javascript
	I can bring the highlight/unhighlight functions back into highlight_current_thumb().

comment: I need both of these for browser compatibility.
.thumb_row a:hover img, .thumb_row a img:hover {
	border: 6px solid #AAAA66;
}
*/

/* Several attributes are set by the PHP depending on whether Javascript is enabled. */
#thumbs {
	z-index: 1;
	background-image: url(img/bg_thumbs.jpg);
	background-color: #333333;
	padding-bottom: 10px;
	width: 700px; /* Keep this synchronised with thumbs_in() in the javascript. */
	border: 2px solid #666666;
}

.thumbs_close {
	border: none;
	float: right;
	margin-top: 0px;
	margin-right: 0px;
}

.thumbs_heading {
	font-size: 13px;
	text-align: center;
	margin: 5px 5px 5px 5px; 
}

.thumbs_heading_title {
	color: #FFCC00;
}

.title_container {
	margin-top: 5px;
	margin-bottom: 5px;
	padding-top: 0px;
	padding-bottom: 0px;
	text-align: center;
	font-size: 10pt;
	color: #DDDDDD;
}
-->
