/* layout-photography.css -- CSS layout file for Hulubei.Net's
   Photography section.  */

/*
 * Copyright (C) 2005 Tudor Hulubei <tudor@hulubei.net>.
 * Distributed under the GNU General Public License.
 */

a.PhotoIndexThumbnail:link img,
a.PhotoIndexThumbnail:visited img,
a.PhotoIndexThumbnail:hover img,
a.PhotoIndexThumbnail:active img,
a.PhotoIndexThumbnail:focus img
{
    display: block;
    border: 5px;
    margin: 20px 0 20px 0px;
}

div.PhotoContent
{
    margin: 0 0 0 162px;
    border: 0;
    padding: 0 0 0 8px;
}

/* Make sure this properly encapsulates all its floating children.
   See http://www.positioniseverything.net/easyclearing.html.  */
div.PhotoNavigation:after
{
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}
div.PhotoNavigation { display: inline-table; }
/* Hides from IE-mac \*/
* html div.PhotoNavigation { height: 1%; }
div.PhotoNavigation { display: block; }
/* End hide from IE-mac */

div.PhotoNavigation
{
    margin: 0;
    /* "border: solid 1px;" would look cooler, but is hidden
       partially for small window sizes.  Don't know why.  */
    border: 0;
    padding: 5px 0 0 5px;
    float: left;
    text-align: left;
}

div.PhotoMostPopularLinks
{
    text-align: left;
    margin: 0 auto 0 auto;
    border: 0;
    padding: 5px 0 0 0;
    /* Keep this in sync with the font size for PhotoButton.  */
    font-size: 125%;
    font-variant: small-caps;
    display: inline;
}

/* Make sure this properly encapsulates all its floating children.
   See http://www.positioniseverything.net/easyclearing.html.  */
div.PhotoFrame:after
{
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}
div.PhotoFrame { display: inline-table; }
/* Hides from IE-mac \*/
* html div.PhotoFrame { height: 1%; }
div.PhotoFrame { display: block; }
/* End hide from IE-mac */

div.PhotoFrame
{
    border: 0;
    padding: 0;
    margin: 0 auto 1em auto;
    text-align: center;
    display: block;
    clear: both;
}

div.PhotoInfo
{
    margin: 5px 2% 5px 2%; /* More than 2% is bad for 1024x768.  */
    border: solid 1px;
    padding: 0.5em 5px 0.5em 5px;
    display: block;
    overflow: auto;
}

div.PhotoInfo
{
    text-align: center;
}

div.PhotoDescription
{
    margin: 5px 2% 5px 2%; /* More than 2% is bad for 1024x768.  */
    border: solid 1px;
    padding: 0.5em 1em 0.5em 1em;
    display: block;
    overflow: auto;
}

div.PhotoCopyright
{
    padding: 2px 5px 2px 5px;
    border: 1px;
    margin: 0px 2% 5px 2%; /* More than 2% is bad for 1024x768.  */
    text-align: left;
    display: block;
    font-variant: small-caps;
    letter-spacing: 0.04em;
}

a.PhotoButton:link,
a.PhotoButton:visited,
a.PhotoButton:hover,
a.PhotoButton:active,
a.PhotoButton:focus,
span.PhotoButton
{
    border: 0;
    margin: 0;
    padding: 0;
    /* Keep this in sync with the font size for PhotoMostPopularLinks.  */
    font-size: 125%;
    font-variant: small-caps;
}

a.MediumSizePhoto:link img,
a.MediumSizePhoto:visited img,
a.MediumSizePhoto:hover img,
a.MediumSizePhoto:active img,
a.MediumSizePhoto:focus img
{
    border: 1px;
    margin: 0;
    padding: 0;
}

div.PhotoSeparator
{
    border: 0;
    margin: 0 10px 0 10px;
    padding-top: 5px; /* Top + bottom ~= the height of the corner images.  */
    padding-left: 0;
    padding-bottom: 5px;
    display: inline;
}

hr.PhotoTop
{
    border: 0;
    margin: 5px 0 5px 0;
    padding: 0;
    display: block;
    width: 0;
    height: 0;
}

hr.PhotoBottom
{
    border: 0;
    margin: 5px 0 5px 0;
    padding: 0;
    display: block;
    width: 0;
    height: 0;
}

div.PhotoFrameTopLeft,
div.PhotoFrameTopRight,
div.PhotoFrameBottomLeft,
div.PhotoFrameBottomRight
{
    border: 0;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    display: inline;
    /* The following padding amounts to a size of 9x9.  */
    padding: 4px 5px 5px 4px;
}

div.PhotoFrameTopLeft,
div.PhotoFrameTopRight
{
    margin: 0 0 10px 0;
}

div.PhotoFrameBottomLeft,
div.PhotoFrameBottomRight
{
    margin: 0;
}

div.PhotoHolder
{
    margin: 0;
    border: 0;
    padding: 0;
    display: block;
    z-index: 3;
    background-position: 50% 50%;
    background-repeat: no-repeat;
}

table#ImageBasedNavigation
{
    margin: 0 auto 0 auto;
    border: 1px;
    padding: 5px;

    /* Tantek Celik's box model workaround required for the width & height.  */
    /* For the height, take the 5px image border into consideration.  */
    width: 740px; /* Incorrect value (1+5+(728)+5+1), for IE5x PC.  */
    height: 182px; /* Incorrect value (1+5+(160+10)+5+1), for IE5x PC.  */
    voice-family: "\"}\"";
    voice-family: inherit;
    /* Correct values, for conformant browsers.  */
    width: 728px; /* The size of the Google letterboard ad unit.  */
    height: 170px; /* Take the 5px image border into consideration.  */
}

/* Tantek Celik's "Be nice to Opera 5" rule.  */
html>body table#ImageBasedNavigation
{
    /* Correct values, again.  */
    width: 728px;
    height: 170px;
}

tr.ImageBasedNavigation,
td.ImageBasedNavigation
{
    margin: 0;
    padding: 0;
    vertical-align: middle;
}

div#HalfBannerAd
{
    display: block;
    margin: 50px auto 50px auto;
    border: 1px;
    padding: 0;

    /* Tantek Celik's box model workaround required for the width & height.  */
    width: 236px; /* Incorrect value (1+234+1), for IE5x PC.  */
    height: 62px; /* Incorrect value (1+60+1), for IE5x PC.  */
    voice-family: "\"}\"";
    voice-family: inherit;
    /* Correct values, for conformant browsers.  */
    width: 234px;
    height: 60px;
}

/* Tantek Celik's "Be nice to Opera 5" rule.  */
html>body div#HalfBannerAd
{
    /* Correct values, again.  */
    width: 234px;
    height: 60px;
}

a.PhotographThumbnail
{
    margin: 0;
    border: 0;
    padding: 0;
}

img.PhotographThumbnail
{
    margin: 0;
    border: 5px;
    padding: 0;
}

img#ThePhoto
{
    /* The border is defined in the color scheme, to attempt to
       circumvent a bug in FireFox.  */
    margin: 0;
    padding: 0;
    z-index: 1;
}

#map
{
    color: red;
}

#MapReframe
{
    margin: 0;
    border: 0;
    padding: 0;
    float: left;
    text-align: left;
}

#MapCoordinates
{
    margin: 0;
    border: 0;
    padding: 0;
    text-align: right;
    float: right;
}

/* This contains the Ads, the StatCounter and maybe some more extras.  */
div#PhotoExtras
{
    /* In most browsers, except IE, we can set this to "fixed". We do
       it in main(), to degrade nicely in case JavaScript is disabled.  */
    position: absolute;
    top: 3px;
    /* Most productive ads are in the individual photographs,
       because they get the most hits.  Statistically, it's
       better if they're placed on the right.  */
    left: 3px;
    z-index: 0;
    margin: 0;
    border: 0;
    padding: 0;
    width: 162px;
}

div#PhotoSearchBox
{
    position: absolute;
    display: inline;
    top: 2em;
    right: 0px;
    float: left;
    margin: 0;
    border: 0;
    padding: 0;
    text-align: right;
    width: 20em;
}

/* Make sure this properly encapsulates all its floating children.
   See http://www.positioniseverything.net/easyclearing.html.  */
div.PhotoIndexTableHolder:after
{
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}
div.PhotoIndexTableHolder { display: inline-table; }
/* Hides from IE-mac \*/
* html div.PhotoIndexTableHolder { height: 1%; }
div.PhotoIndexTableHolder { display: block; }
/* End hide from IE-mac */

div.PhotoIndexTableHolder
{
    margin: 20px auto 0 auto;
    border: 0;
    padding: 0;
    clear: both;
    z-index: -2;
    overflow: hidden;
}

table.PhotoIndex
{
    margin: auto;
    border: 0;
    padding: 0;
}

tr.PhotoIndex
{
    margin: 0;
    border: 0;
    padding: 0;
}

td.PhotoIndexImage
{
    margin: 0;
    border-top: 0;
    border-right: 0;
    border-bottom: 0;
    border-left: solid 1px;
    padding: 20px;
    vertical-align: middle;
}

hr.PhotoIndexInfoSeparator
{
    margin: 20px 0 20px -35px;
    border: 0;
    padding: 0;
    position: relative;
    z-index: 2;
}

td.PhotoIndexSeparator
{
    margin: 0;
    border: 0;
    padding: 0;
}

hr.PhotoIndexSeparator
{
    display: block;
    margin: 2px 0 20px auto;
    border: 0;
    padding: 0;
    float: right;
    clear: both;
    width: 50%;
}

div.PhotoNumber
{
    margin: 0;
    border: 0;
    padding: 0;
    float: right;
    font-size: 85%;
    font-style: italic;
}

div.PhotoIndexTableOfContents
{
    display: inline;
    margin: 0.5em 0 0 0;
    border: 0;
    padding: 0;
    float: left;
    font-size: 120%;
}

/* This overrides what's in layout.css.  Should be in sync with
   PhotoCopyright.  */
div.Validators
{
    margin: 5px 2% 5px 2%; /* More than 2% is bad for 1024x768.  */
}
