/* 
   css Copyright © 2005-2012 Karelia Software. All rights reserved.
   css released under Creative Commons License  - http://creativecommons.org/licenses/by-sa/2.5/ 
   All associated graphics belong to their respective owners and are licensed separately. 
*/

/* IE7 hacks */

*:first-child+html .gridItem img {
	position:relative;
	top:0px;
}

*:first-child+html .gridItem h3 {
	position:relative;
	top:0px;
}

/* Navigation arrows */
div.text-navigation { text-align:center; margin-bottom:1em;}
div.text-navigation div { display:inline; margin:0px 0.5em; }
.collection-navigation .disabled-navigation { text-indent:-5000px; }

/* 2.0 wrap compatibility. 2.0-compatible designs can further adjust these if they need */
.wide { display:block; }

.narrow.left {   /* Some designs won't respect without !important */
    float:left!important;
    clear:left!important;
}
.narrow.right {
    float:right!important;
    clear:right!important;
}

.wide.left .graphic, img.wide.left { margin-left:0px; margin-right:auto; }
.wide.center .graphic, img.wide.center { margin-left:auto; margin-right:auto; }
.wide.right .graphic, img.wide.right { margin-left:auto; margin-right:0px; }

.ImageElement.left { text-align:left; }
.ImageElement.center { text-align:center; }
.ImageElement.right { text-align:right; }

/* Captions should align themselves with the graphic */
.graphic-container.left .caption { text-align:left; }
.graphic-container.center .caption { text-align:center; }
.graphic-container.right .caption { text-align:right; }

/* Inline iframes need to display as a block to layout right */
.graphic iframe { display:block; }

/* Pagelet photo grids should be generally be auto width (some 1.x designs hardcoded an exact width) */
.pagelet .photogrid-index { width:auto; }

/* For content like amazon which forces white background. Design SHOULD set color for A tag and text color. */
.whiteBackground
{
	background-color:white;
}

.article-info
{
	margin-bottom:1em;
}
 
/* Firefox reduce dotted lines on links */
.photo-navigation a:focus, .replaced a:focus {overflow:hidden;}

/* Disqus correction to prevent overflow scroll bars in some designs */
#dsq-content { overflow:hidden; }
#dsq-content .dsq-auth-header { width: auto!important; }
#dsq-content .dsq-by { margin: 4px 6px 0px 0px; }
#dsq-content .dsq-by a, #dsq-content .dsq-by a:hover { border: 0px none; }
#dsq-content h3 { margin:0px; }

/* Site menus. Don't wrap the top level items, and wrap sub-menu items normaly. */
#sitemenu-content ul li {white-space: nowrap}
* html #sitemenu-content ul li {white-space: normal}
*:first-child+html #sitemenu-content ul li {white-space: normal}
#sitemenu-content ul ul li {white-space: normal}
#sitemenu-content span.in { position: relative; }

/* Keep tables with long content from pushing too far over */
table { word-break: break-all; }

.photogrid-index-bottom { clear:left; }

/*
	Based on ColorBox 1.3.19 example1.  Changes:
		changed "colorbox/" to "colorbox/"
		removed background:url line for #cboxOverlay
        added color to #cboxError
*/
/*
    ColorBox Core Style:
    The following CSS is consistent between example themes and should not be altered.
*/
#colorbox, #cboxOverlay, #cboxWrapper{position:absolute; top:0; left:0; z-index:9999; overflow:hidden;}
#cboxOverlay{position:fixed; width:100%; height:100%;}
#cboxMiddleLeft, #cboxBottomLeft{clear:left;}
#cboxContent{position:relative;}
#cboxLoadedContent{overflow:auto;}
#cboxTitle{margin:0;}
#cboxLoadingOverlay, #cboxLoadingGraphic{position:absolute; top:0; left:0; width:100%; height:100%;}
#cboxPrevious, #cboxNext, #cboxClose, #cboxSlideshow{cursor:pointer;}
.cboxPhoto{float:left; margin:auto; border:0; display:block;}
.cboxIframe{width:100%; height:100%; display:block; border:0;}

/* 
    User Style:
    Change the following styles to modify the appearance of ColorBox.  They are
    ordered & tabbed in a way that represents the nesting of the generated HTML.
*/
#colorbox{}
    #cboxTopLeft{width:21px; height:21px; background:url(colorbox/controls.png) no-repeat -101px 0;}
    #cboxTopRight{width:21px; height:21px; background:url(colorbox/controls.png) no-repeat -130px 0;}
    #cboxBottomLeft{width:21px; height:21px; background:url(colorbox/controls.png) no-repeat -101px -29px;}
    #cboxBottomRight{width:21px; height:21px; background:url(colorbox/controls.png) no-repeat -130px -29px;}
    #cboxMiddleLeft{width:21px; background:url(colorbox/controls.png) left top repeat-y;}
    #cboxMiddleRight{width:21px; background:url(colorbox/controls.png) right top repeat-y;}
    #cboxTopCenter{height:21px; background:url(colorbox/border.png) 0 0 repeat-x;}
    #cboxBottomCenter{height:21px; background:url(colorbox/border.png) 0 -29px repeat-x;}
    #cboxContent{background:#fff; overflow:hidden;}
        .cboxIframe{background:#fff;}
        #cboxError{padding:50px; border:1px solid #ccc;color:red;}
        #cboxLoadedContent{margin-bottom:28px;}
        #cboxTitle{position:absolute; bottom:4px; left:0; text-align:center; width:100%; color:#949494;}
        #cboxCurrent{position:absolute; bottom:4px; left:58px; color:#949494;}
        #cboxSlideshow{position:absolute; bottom:4px; right:30px; color:#0092ef;}
        #cboxPrevious{position:absolute; bottom:0; left:0; background:url(colorbox/controls.png) no-repeat -75px 0; width:25px; height:25px; text-indent:-9999px;}
        #cboxPrevious:hover{background-position:-75px -25px;}
        #cboxNext{position:absolute; bottom:0; left:27px; background:url(colorbox/controls.png) no-repeat -50px 0; width:25px; height:25px; text-indent:-9999px;}
        #cboxNext:hover{background-position:-50px -25px;}
        #cboxLoadingOverlay{background:url(colorbox/loading_background.png) no-repeat center center;}
        #cboxLoadingGraphic{background:url(colorbox/loading.gif) no-repeat center center;}
        #cboxClose{position:absolute; bottom:0; right:0; background:url(colorbox/controls.png) no-repeat -25px 0; width:25px; height:25px; text-indent:-9999px;}
        #cboxClose:hover{background-position:-25px -25px;}

/*
  The following fixes a problem where IE7 and IE8 replace a PNG's alpha transparency with a black fill
  when an alpha filter (opacity change) is set on the element or ancestor element.  This style is not applied to or needed in IE9.
  See: http://jacklmoore.com/notes/ie-transparency-problems/
*/
.cboxIE #cboxTopLeft,
.cboxIE #cboxTopCenter,
.cboxIE #cboxTopRight,
.cboxIE #cboxBottomLeft,
.cboxIE #cboxBottomCenter,
.cboxIE #cboxBottomRight,
.cboxIE #cboxMiddleLeft,
.cboxIE #cboxMiddleRight {
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#00FFFFFF,endColorstr=#00FFFFFF);
}

/*
  The following provides PNG transparency support for IE6
  Feel free to remove this and the /ie6/ directory if you have dropped IE6 support.
*/
.cboxIE6 #cboxTopLeft{background:url(colorbox/ie6/borderTopLeft.png);}
.cboxIE6 #cboxTopCenter{background:url(colorbox/ie6/borderTopCenter.png);}
.cboxIE6 #cboxTopRight{background:url(colorbox/ie6/borderTopRight.png);}
.cboxIE6 #cboxBottomLeft{background:url(colorbox/ie6/borderBottomLeft.png);}
.cboxIE6 #cboxBottomCenter{background:url(colorbox/ie6/borderBottomCenter.png);}
.cboxIE6 #cboxBottomRight{background:url(colorbox/ie6/borderBottomRight.png);}
.cboxIE6 #cboxMiddleLeft{background:url(colorbox/ie6/borderMiddleLeft.png);}
.cboxIE6 #cboxMiddleRight{background:url(colorbox/ie6/borderMiddleRight.png);}

.cboxIE6 #cboxTopLeft,
.cboxIE6 #cboxTopCenter,
.cboxIE6 #cboxTopRight,
.cboxIE6 #cboxBottomLeft,
.cboxIE6 #cboxBottomCenter,
.cboxIE6 #cboxBottomRight,
.cboxIE6 #cboxMiddleLeft,
.cboxIE6 #cboxMiddleRight {
    _behavior: expression(this.src = this.src ? this.src : this.currentStyle.backgroundImage.split('"')[1], this.style.background = "none", this.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src=" + this.src + ", sizingMethod='scale')");
}

textarea.fullWidth, input.fullWidth, select.fullWidth {
	width:96%;
	margin:4px 0;
}
textarea.fullWidth, select.fullWidth {
	margin: 4px 1px
}

form.contactElement input.submit {
	width:auto;
	display:block;
	margin-left:auto;
	margin-right:2%;
}
form.contactElement th {
	text-align:right;
	font-weight:normal;
	width:25%;
}

.contactError { color:red; font-weight:bold; }

/* Contact Element For IE 7 */
*:first-child+html form.contactElement input.submit {
	padding:0px 10%;
	min-width: 0px;
}

textarea {
    resize: vertical;
}

form.contactElement p {
	text-align: left;
}

/* 
   css Copyright © 2005-2012 Karelia Software. All rights reserved.
   css released under Creative Commons License 
        - http://creativecommons.org/licenses/by-sa/2.5/ 
   All associated graphics belong to their respective owners 
        and are licensed separately. 
*/


/*
GLOBAL

Try to define style properties as globally as possible. E.g. the basic font setting should be right there for the body element
*/

* { 
	margin:0px;
	padding:0px;
}

body {
	font-family: Georgia, Palatino, Times, "Times New Roman", serif;
	font-size: 76%; /* as recommended in CSS guide */
	background-color:#eee;
	color:#111;
	word-wrap:break-word;
	line-height:1.6;
}

body.allow-sidebar {
	background-color:#fff;
	background-image:url(background.gif);
	background-position: 0% 0%;
	background-repeat: repeat-y;
}

#sidebar, .callout, #page-top, h1, h2, h3, h4, h5, h6 {
	font-family:Optima, Tahoma, sans-serif;
	font-weight:normal;
	color:#000;
	background-color:inherit;
}

h1, h2, h3 {
	margin-bottom:0.5em;
}

h4, h5, h6 {
	font-size: 100%;
	font-weight:bold;
}

p {
	margin-bottom:0.5em;
	max-width:70em;
}

a {
	color:#09c;
	text-decoration:none;
	font-weight:600;
}

a:hover {
	color:#07a;
	text-decoration:underline;
}

a img {
	border:none;
}

ul, ol {
	padding-left:24px;
	margin-bottom:10px;
	max-width: 70em;
}

#sitemenu ul {
	margin-bottom:0px;
}

dl {
	max-width: 70em;
}

dt {
	font-style: italic;
}

dd {
	padding-left: 24px;
}


/* 
GENERAL LAYOUT FOR HEADER AND SIDEBAR 
float them on the left if there is a sidebar, this way we can unify them into a single structure. Have the header on top if there is no sidebar.
*/
.allow-sidebar #page-top, #sidebar-container {
	float:left;
	width:220px;
	clear:left;
}

#title, #sitemenu-content, #sidebar-container #sidebar {
	padding:14px;
}

.no-sidebar #title {
	float:left;	
	position:relative;
	width:55%;
	height:100%;
	padding:0px;
}

.no-sidebar h1 {
	padding:14px 0px 0px 20px;
	padding-bottom:0px;
}

h1 a {
	color:inherit;
	font-weight: inherit;
}

.no-sidebar #title p {
	padding:0px 0px 0px 20px;
}

#sitemenu-content {
	padding-top:0px;
	font-weight: bold;
}

.allow-sidebar #sitemenu-content {
	position: relative;
	z-index: 100;
	padding-right: 0px;
}

.allow-sidebar #sitemenu-content.ddsmoothmenu-v ul .submenu-indicator {
	top: 0px;
	right: -12px;
}

.allow-sidebar #sitemenu-content.ddsmoothmenu-v ul ul .submenu-indicator,
.no-sidebar #sitemenu-content.ddsmoothmenu-v ul ul .submenu-indicator {
	top: 10px;
	right: 5px;
}

.allow-sidebar #sitemenu-content li {
	white-space: normal;
	display:block;
}

#sitemenu-content .currentParent > a {
	color:#07a;
}

.no-sidebar #sitemenu-content {
	float:left;
	position:relative;
	width:43%;
	padding:14px 5px 3px 0px;
}

.no-sidebar #sitemenu-content ul {
	list-style-type:none;
	height:100%;
}

.no-sidebar #sitemenu-content li {
	display:inline;	
}


.no-sidebar #sitemenu-content li.currentPage {
	font-weight:bold;
}

.no-sidebar #sitemenu-content li:before {
	content: " | ";
	font-weight:normal;
}

.no-sidebar #sitemenu-content li.i1:before {
	content:"";
	display:none;
}

/* IE Hack as IE can't do :after, emulate the effect using borders */
/* Hides from IE5-mac \*/
* html .no-sidebar #sitemenu-content li {
	margin:0px;
	padding-left:4px;
	border-left:#999 solid 2px;
}
* html .no-sidebar #sitemenu-content li.i1 {
	border:none;
	padding:0px;
}
/* End hide from IE5-mac */

#sitemenu-content li ul li:before {
	content: "";
	display: none;
}

.no-sidebar #sitemenu-content ul ul {
	height: auto;
}

.no-sidebar #sitemenu-content li ul li { 
	display:list-item;
}

#sitemenu-content ul li ul li span.in {
	padding-right: 12px;
}

#sitemenu-content .selected {
	text-decoration: underline;
}


.no-sidebar #page-top + .clear {
	display:block;
	height:5px;
	background-color:Green;
	width:100%;
	border-bottom:3px #999 dashed;
	background-color: #eee;
}

/* IE Hack as IE can't do adjacent selectors, use a top border on #main-content instead, to get roughly the same effect */
/* Hides from IE5-mac \*/
* html .no-sidebar #main-content{
	border-top:3px #999 dashed;
}
/* End hide from IE5-mac */


.no-sidebar #main {
	background-color:#fff;
	color:inherit;
}

.allow-sidebar #main {
	position:absolute;
	top:0px;
	left:250px;
}

/* IE Hack */

/* Hides from IE5-mac \*/
* html .allow-sidebar #main {
	margin-left:0px;
}
/* End hide from IE5-mac */


.allow-sidebar #main-top {
	/* set up minimum width for page */
	display:block;
	width:520px;
}


#main-content {
	padding:20px 10px 5px 20px;
}



/* 
TITLE
Centre smaller logos within their 200px container and, in turn, that container in its container.
*/
#title {
	width:100%;
}

#logo-container {
	display:block;
	width:200px;
	text-align:center;
	margin:auto;
}

.no-sidebar #logo-container {
	float:right;
	width:auto;
}

/*
PAGELETS & CALLOUTS
*/
.callout {
	float:right;
	width:250px;
	padding: 0px 0px 0px 24px;
}

.no-sidebar .callout {
	margin-left:8px;
}

#sidebar {
	width:100%;
}

#sidebar .pagelet.bordered {
	border-top: 1px #999 solid;
}

.pagelet {
	min-width:204px;
}

.pagelet + .pagelet {
	margin-top:12px;
}

.callout .pagelet.bordered {
	color:#000;
	background-color:#eee;
	border: dashed #999 3px;
	margin-bottom:12px;
	padding:2px 6px 0px 7px;
}

.callout .pagelet.bordered:hover {
	border-color:#666;
}

.pagelet h4 {
	margin:1.2em 0em 0.4em 0em;
}

.callout .pagelet.bordered h4 {
	margin-top:0.5em;
}

.blockquote-container blockquote {
	border-left: 3px solid #999;
	padding-left: 1em;
	font-style: italic;
}



/*
ACTUAL CONTENT
*/

.article h3 {
	margin-top:1em;
}



/* 
PHOTO GRID PAGE
*/

.photogrid-index {
    text-align: center;
    margin: auto;
    overflow: auto;
}

.photogrid-index a {
	background-color:inherit;
	color:#000;
	text-decoration:none;
}
.photogrid-index h3 a:hover {
	text-decoration:underline;
}

.gridItem {
    float: left;
    position:relative;
    width:150px;
    height:180px;	/* room for caption */
	margin:5px;
    padding-top: 10px;
    background-color: #fff;
    color:inherit;
    overflow: hidden;
}

.gridItem h3 {
    font-size: 0.9em;
    font-weight: normal;
	background-color:inherit;
    color: #000;
    margin-top: 4px;
    margin-left: 7px;
    margin-right: 7px;
    position:absolute;
	top: 140px; /* needs to leave 38px from the bottom of the gridItem */
	width: 136px;
	line-height:15px;
}

.gridItem img {
    border: 1px solid #807973;
    margin: auto;
    display:block;
    position: absolute;
    top: 0;
    bottom: 40px;
    right: 0;
    left: 0;
}

/* IE Hack */
/* Hides from IE5-mac \*/
* html .gridItem img {
	position: relative;
	top:0px;
}

* html .gridItem h3 {
	position: relative;
	top: 0px;
}
/* End hide from IE5-mac */
#sidebar .photogrid-index{
	width:auto;
	margin-left:25px;
}




/*
PHOTO NAVIGATION
*/

.photo-navigation {
	position:relative;
    height: 21px;
    width:200px;
    margin:0px auto 8px auto;
}

.photo-navigation div {
	width:34px;
	height:21px;
	position: absolute;
    text-indent: -5000em;
}

.photo-navigation a {
	border-bottom:none;
	display:block;
	width:100%;
	height:100%;
}

#previous-photo	{
    background: url(photo-prev-off.gif)		no-repeat;
    left: 42px;
}
#previous-photo a {
    background: url(photo-prev.gif)		no-repeat;
}

#next-photo {
    background: url(photo-next-off.gif)		no-repeat;
    left: 124px; 
}
#next-photo a {
    background: url(photo-next.gif)		no-repeat;
}

#photo-list {
    background: url(photo-list-off.gif)		no-repeat;
    left: 83px;
}
#photo-list a {
    background: url(photo-list.gif)		no-repeat;
}

.image-controls a {
	border-bottom:none !important;
}
.text-navigation #previous-photo, .text-navigation #next-photo, .text-navigation  #photo-list, .text-navigation a, .text-navigation a:hover{
	background:none!important;
	width:auto!important;
}

/*
PAGE BOTTOM
*/
.article-info {
	clear:both;
}

#page-bottom {
	padding:0px 14px;
	width:220px;
}

.no-sidebar #page-bottom {
	width:93%;
}


#page-bottom p {
	margin:0px;
}

/* 
SANDVOX INTERNALS
	
these should be present in every style sheeto ensure that certain classes used by Sandvox to hide and clear elements are respected.
Don't change them unless you have very good reason to do so.
*/

.clear {clear: both; height: 0;}
.hidden {display:none;}
.narrow {float: right; margin:5px 0 5px 10px;}
img.wide {display: block;}
.ImageElement, .VideoElement { text-align:center;}
.ImageElement p, .VideoElement p { margin:auto; }
.narrow.left{
	margin:5px 10px 5px 0;
}
.narrow.right{
	margin:5px 0 5px 10px;
}
.article-thumbnail {
    float: left;
	margin:5px 10px 5px 0;
}
.no-page-title .photo-navigation {margin-top:38px;}

.callout-container, .graphic-container { clear:both; }

