body, html { height: 100%; }
body { position: relative; }

.yui-doc{ height: 100%; position: relative;}
#wrap {
    min-height: 100%;
}

#hd {
    position: relative;
}
#hd h1, #logo { margin: 0; display: block; display: inline-block;}
#hd h1 a, #logo a {
    display: inline-block;
    font-size: inherit; font-weight: inherit; font-family: inherit;
    font-style: inherit; text-decoration: inherit;
    color: inherit; background-color: inherit;
    letter-spacing: inherit; word-spacing: inherit;
}
#bd { position: relative; }
#ft { text-align: center; margin-top: 20px;}

#sidebar .container {
    min-height: 400px;
    padding: .5em;
}

#main-menu{
    position: relative;
    z-index: 100;
    width: 100%; 
    /*background-color: #C9C7C7;*/
}
#main-menu ul { margin:0; list-style: none; }
#main-menu ul li { margin:0; float: left; list-style: none; }
#main-menu a {
    outline: none;
    display: block;
    font-weight: normal;
    text-decoration: none;    
}
#main-menu a:hover, #main-menu a.hover { /*background-color:#8E8C8C;*/}
#main-menu ul ul { display: none; }

/* Page & Images */
.image-page {
    float: left;
    width: 35%;
}
.text-only-page { }

.imagearea { 
    position: relative;
    height: 550px; width:60%;
    text-align: right; 
    float: right; 
    margin-top: 0px;
}
.image-text {}
.image-only { width: 100%; }
.imageframe {position:relative; width: 100%;}
.image-only .imageframe { width: 100% !important; }
.imageframe a { display: block; outline: none; background: transparent !important; }
.imageframe img { cursor: pointer; }
.image-info { float: right;}
.image-caption {
    text-align: right;    
    margin-left: 11em;
}
.image-caption p { margin: 0; }
.image-controls { position: absolute; top: -22px; right: 0; word-spacing: 20px; }
.image-controls a { 
    letter-spacing: inherit;
    text-decoration: none;
    outline: none;
    cursor: pointer;    
}
.image-controls .image-next {
}
.image-controls .image-prev {
}

.thumbnails {
    word-spacing: 10px;
    margin-top: 20px;
    text-align: justify;
    text-align-last: justify;
    vertical-align: top;
}
/* Justify last line of thumbnails */
.thumbnails.fulljustify:after {
    content: "";
    display: inline-block;
    width: 100%;
    visibility: hidden;
}
.thumbnails a { 
    display: inline-block;
    margin-bottom: 12px;
}
.thumbnails a img {
    vertical-align: middle;
}


/* Blog */
.blog {  }
ul.entries { list-style: none; }
ul.entries li { list-style: none; margin: 0; margin-bottom: 50px;}

.blog-index {
    margin: 0;
    margin-right: 180px;
    list-style: none;    
}
.blog-entry {
    margin-bottom: 20px;
    padding-bottom: 20px;
}
div.blog-entry {
    margin-right: 210px;
}

.blog-entry .info {
    color: #555;
    font-style: italic; 
}

.blog-sidebar {
    float: right;
    text-align: right;
    width: 140px;
    margin-left: 20px;
}
.blog-sidebar h4 a { font-size: 90%; text-transform: none;}
.blog-sidebar h3 { margin-bottom: 10px; }
.blog-sidebar ul {
    list-style: none;
    margin: 0 0 20px 0;
}
.blog-sidebar li {
    list-style: none;
}
.blog-sidebar li a {
    text-decoration: none;
}
.blog-sidebar li a:hover, 
.blog-sidebar li a.hover, 
.blog-sidebar li a.active {}


/* Menu Index Pages */
.menuitem-index {
}
.menuitem-index ul {
    list-style: none; margin: 0;
}
.menuitem-index ul li { list-style: none; }
.menuitem-index li a { display: block; }
.menuitem-index li img {
    display: block;
    float: left;
    margin-right: 8px;
}

/* Other */

/* Clearing floats without extra markup  */
.wrapper { display: inline-block; }
.wrapper:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; }
* html .wrapper { height: 1%; }
.wrapper { display: block; }


/* Image Popup */
#fullscreenContainer {
  font-family: Arial, Helvetica, sans-serif;
  color: #000;
  min-width: 300px;
  position: relative;
}
#fullscreenContainer a:link {color: #000;}
#fullscreenContainer a:visited {color: #000;}
#fullscreenContainer a:hover {color: #000;}
#fullscreenContainer a:active {color: #000;}
#fullscreenContainer a:focus {color: #000;}
#overlay {
  position: fixed;
  z-index:100;
  top: 0px;
  left: 0px;
  background-color: #eee;
  filter:alpha(opacity=70);
  -moz-opacity: 0.70;
  opacity: 0.70;
  height:100%;
  width:100%;
}
* html #overlay {
    position: absolute;
    height: expression(document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + 'px');
 }

#fullscreenContainer {
  position: fixed;
  background: #ffffff;
  z-index: 102;
  color:#000000;
  display:none;
  border: 1px solid #888;
  text-align:left;
  top:50%;
  left:50%;
}
* html #fullscreenContainer {
    position: absolute;
 }
#fullscreenContainer img#fullscreenImage {
  display:block;
  margin: 15px 0 0 15px;  
  cursor: pointer;
}
#fullscreenCaption{
  line-height: 1.2em;
  padding-right: 22px;
  padding-top: 10px;
  margin: 10px 52px 10px 14px;
}
#fullscreenCaption p {
    margin: .6em 0 !important;
}
#fullscreenImageData {
    position: relative;
    padding-bottom: 14px;
    min-height: 50px;
    height: auto !important;
    height: 50px;
}
#fullscreenImageData a { text-decoration: none; }
#TB_secondLine {
  position: absolute;
  top: 0px; right: 14px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
  color:#000;
}
#TB_imageCount { display: none; }
#fullscreenCloseButton {
  height:25px;
  font-weight:bold;
  font-size: 16px;
  position: absolute;
  bottom: 0px; right: 20px;
}
#fullscreenCloseButton:hover {
    color: #aaa !important;
}
#fullscreenLoad{
  position: fixed;
  display:none;
  height:13px;
  width:208px;
  z-index:103;
  top: 50%;
  left: 50%;
  margin: -6px 0 0 -104px; /* -height/2 0 0 -width/2 */
}

#fullscreenControls {
    color: #000;
    position: absolute;
    right: 12px; top: 0px;
}
#fullscreenControls a {
    margin: 0px 1px;
    cursor: pointer;
    color: #666;
    text-transform: capitalize;
}
#fullscreenControls a:hover {
    color: #D90310;    
}
#fullscreenPrev, #fullscreenNext { 
    width: 7px; height: 11px;
    display: block; text-indent: -9000px;
    position: absolute; bottom: -16px;
}
#fullscreenPrev {
    right: 18px;
}
#fullscreenNext {
    right: 6px;
}
