/* @override http://rg.ollantaytambo.local/css/portfolio.css */
/* Adjustments to global-site layout */
/* For portfolio section of site, .portfolio class is applied to body */
html {
	overflow-y: scroll; /* Force vertical scroll bar to prevent jumping */
	height: 100%;
	margin-bottom: 1px;
}

.portfolio #header {
	height: 95px;
}

.portfolio #page {
    padding-top: 0px;
    min-height: 600px;
    position: relative;
}

#navigation h2 {
    margin-top: 15px;
}

/* Category navigation */
#portfolio-categories {
	margin: 3px 0 20px 0;
	list-style-type: none;
}

#portfolio-categories li {
    float: left;
    width: 152px;
    text-align: center;
	font-family: "Gill Sans";
	font-size: 14px;
}

/* Filter Options */
#filter {
    width: 152px;
    float: left;
    background: #ccc;
    display: none;
}

/* Portfolio Thumbnails */
#thumbnails {
    list-style-type: none;
	width: 800px;
	float: right;
}

#thumbnails li {
    width: 152px;
    min-height: 135px;
    float: left;
    margin-right: 64px; /* 1 col + 2 gutters */
    margin-top: 20px;
    padding: 0;
    cursor: pointer;
}

#thumbnails li:hover img {
    border-color: #ff7f00;
}

#thumbnails li h4 a {
    padding-top: 3px;
    display: block;
}

#thumbnails li h5 {
    padding-top: 3px;
	font-size: 12px;
	color: #333;
}

#thumbnails li:hover h4 a {
	background-color: #fff;
	text-decoration: none;
}

/* These selectors are only supported by some browsers.
In unsupported browsers JavaScript is used to apply the relevant classes */
#thumbnails li:nth-child(4n) {
	margin-right: 0px !important;
}

.last-in-row {
    margin-right: 0px !important;
}

#thumbnails li:nth-child(4n+1) {
	clear: left;
}

.first-in-row {
    clear: left;
}

#thumbnails img {
    border: 8px solid #666;
    display: block;
}

#thumbnails h4 {
	line-height: 1.1;
    font-size: 12px;
    font-weight: bold;
}

/* Remove standard hover effect */
#portfolio-outer {
	clear: both;
	margin-top: 15px;
	position: relative;
	min-height: 600px;
}

#portfolio-outer .description-outer {
	float: left;
    width: 368px;
    margin-right: 10px;
}

#portfolio-outer .description {
    float: left;
    width: 260px;
}

#loading {
    display: block;
    position: absolute;
}

/* Breadcrumbs */
/* Adapted from Veerle Pieters's article at http://veerle.duoh.com/blog/comments/simple_scalable_css_based_breadcrumbs/ */
#breadcrumbs, #breadcrumbs li {
    list-style-type: none;
    font-size: 12px;
	text-transform: uppercase;
}

#breadcrumbs li {
    float: left;
    margin-right: 10px;
}

#breadcrumbs li + li:before {
	content:  "\2192";
	margin-right: 10px;
	font-size: 16px;
	line-height: 12px;
}

#prev-item a, #next-item a {
	display: block;
	height: 73px;
	background: url(/portfolio/nav_arrows.png) no-repeat;
	text-indent: -9999em;
}

#prev-item a:focus, #prev-item a:hover, #prev-item a:active, #next-item a:focus, #next-item a:hover, #next-item a:active {
    outline: none; /* Prevents a display glitch in Firefox */
}

#prev-item {
    position: absolute;
    width: 44px;
    height: 73px; /* 75px plus 2px border */
    top: 78px;
    left: -54px;
    border-top: 1px solid #666;
    border-bottom: 1px solid #666;
}

#next-item {
    position: absolute;
    width: 44px;
    height: 73px; /* 75px plus 2px border */
    top: 78px;
    right: -54px;
    border-top: 1px solid #666;
    border-bottom: 1px solid #666;
}

/* Navigation Arrows */
#next-item a { background-position: -44px 0px; }
#prev-item a:hover { background-position: 0px -73px; }
#next-item a:hover { background-position: -44px -73px; }

#body .description-outer h2 {
	margin-top: 24px;
    font-size: 24px;
	padding-left: 5px;
}

.description h3 {
	margin: 5px 0 15px 0;
    font-size: 18px;
}

.tags {
	margin-bottom: 15px;
    list-style-type: none;
    font-size: 12px;
}

.tags li {
	float: left;
	padding: 2px 6px 2px 5px;
	margin-right: 10px;
    font-family: "Helvetica Neue";
    background: #fff9bf;
}

.description p {
    font-size: 13px;
    margin-bottom: 15px;
}

.thumbnails {
    width: 98px;
    height: 200px;
    float: right;
    list-style-type: none;
    line-height: 0;
}

.thumbnails li {
    position: relative;
    margin: 0;
    padding: 0;
}

.thumbnails img {
    display: block;
    margin: 10px auto 0px auto;
	border: 1px solid #666;
}

.thumbnails b {
    display: none;
    width: 70px;
    height: 70px;
    position: absolute;
	top: 1px;
    left: 14px;
    background: url('/portfolio/highlight_white.png');
}

.thumbnails li a:hover b {
    display: block;
}

/* Mirrors the sitewide #flickr-photos li a:hover img style */
.thumbnails li a:hover img {
	border: 1px solid #ff7f00;
}

.description .extras {
    list-style-type: none;
	background-color: #fff9bf;
	font-size: 14px;
}

.description .extras li a {
	font-weight: bold;
	color: #5a3c0c;
	display: block;
	font-size: 12px;
	text-align: center;
	padding: 5px 0px 5px 0px;
	border-bottom: 1px solid #fff;
	text-decoration: none;
}

.description .extras li a:hover {
	background: #ff7f00;
}

.slides {
    /*float: right;*/ /* For some reason I don't understand, float: right causes a display glitch where content is invisible after jQuery .fadeIn() */
    width: 584px;
    overflow: hidden;
}

.slides ul {
    border: 1px solid #666;
    list-style-type: none;
    margin-bottom: 5px;
    overflow: hidden;
}

.slides li {
    width: 584px;
    /*height: 520px;*/
    position: relative;
    overflow: hidden;
}

.slides li img {
    display: block;
}

.slides li.center img {
    margin-left: auto;
    margin-right: auto;
}

.slides .main-caption {
	clear: both;
	font-size: 12px;
	font-weight: bold;
	color: #5a3c0c;
}

li.selected a:hover {
	color: #fff;
	background: #5a3c0c;
}

#portfolio {
	list-style-type: none;
}

#portfolio p {
	margin-bottom: 25px;
}

/* Inset spacing for portfolio */
.text-col p, .text-col h4, .text-col h5 {
	padding-left: 5px;
	padding-right: 5px;
}

.text-col {
	padding-left: 10px;
	padding-top: 26px;
}

.left-col {
	width: 314px;
	float: left;
}


.right-col {
	float: right;
	width: 476px;
	padding-top: 10px;
}

.top-row {
	width: 809px;
}

.bottom-row .left-col {
	width: 368px;
}

.bottom-row .right-col {
	padding-left: 10px;
	float: left;
	width: 368px;
}

#portfolio h4 {
	font-size: 40px;
	line-height: 1;
	letter-spacing: -1px;
}

#portfolio h5 {
	font-size: 18px;
	font-style: italic;
	margin-bottom: 20px;
}

.right-col img {
	display: block;
	margin: 0 auto 20px auto;
}