@media screen and (min-width: 992px) {
	.detail-image {
		width:400px; 
		display:inline-block;
		clear:right;
	}
	
	.h-titles {
		font-size:18px;
	}
	
	.gal-image {
		width:450px; 
		max-width:450px;
		display:block;
		margin-left:auto;
		margin-right:auto;
		clear:both;
	}
	.container {
		width:75%;margin-left:auto;margin-right:auto;display:block;margin-top:30px;margin-bottom:30px;
	}
}

/* start of desktop styles */

@media screen and (max-width: 991px) {
     /* start of large tablet styles */
	.detail-image {
		width:400px; 
		display:block;
		margin-left:auto;
		margin-right:auto;
	}
	.gal-image {
		width:400px; 
		max-width:400px;
		display:block;
		margin-left:auto;
		margin-right:auto;
		clear:both;
	}
	.container {
	margin-top:30px;margin-bottom:30px;
	}

}

@media screen and (max-width: 767px) {
     /* start of medium tablet styles */
	.detail-image { width:400px; 
	display:block;
		margin-left:auto;
		margin-right:auto;
	}
	.gal-image {
		width:80%; 
		max-width:300px;
		display:block;
		margin-left:auto;
		margin-right:auto;
	}
	.container {
	margin-top:30px;margin-bottom:30px;
	}
	

}

@media screen and (max-width: 480px) {
     /* start of phone styles */
	
	.detail-image { 
		width:275px;
		min-width:275px;
		display:block;
		margin-left:auto;
		margin-right:auto;
		margin-top:5px;
		padding-bottom:10px;
	}
	
	.h-titles {
		font-size:16px;
	}
	
	.gal-image {
		width:80%; 
		max-width:300px;
		display:block;
		margin-left:auto;
		margin-right:auto;
	}
	
	.container {
		margin-top:25px;
		margin-bottom:25px;
	}
	.top_box {
		padding-bottom:15px;
		display:block;
		margin-left:auto;
		margin-right:auto;
	}

}

::selection
{
color:#fff;
background:#67432c;
text-shadow: black 0.1em 0.1em 0.2em;
}
::-moz-selection
{
color:#fff;
background:#786500;
text-shadow: black 0.1em 0.1em 0.2em;
}

html {padding: 0; margin: 0;}
body {font-size: 16px; color: #3e392f; font-family: Arial, Verdana, sans-serif; background: #888174 url(../img/bg_body.jpg) center top fixed no-repeat; padding: 0; margin: 0;}
body#news {background-image: url(../img/bg_body_news.jpg);}

a:focus {outline: none;}




/* CONTENT */
h1 {font: 400 42px/46px 'Lora', serif; color: #000; text-transform: uppercase; padding: 20px 0 0; margin: 0 0 25px 0;}
h2 {font: normal 1.5em/1.16667em 'Oswald', sans-serif; color: #000; padding: 0; margin: 0 0 10px;}
p {font: normal 14px/18px 'Lora', serif; color: #2d1a0e; padding: 0; margin: 0 0 20px;}
p a,
p a:hover {color: #098323; text-decoration: none;}
img.span_bottom {margin-bottom: 20px!important;}


#content {background: #e0d3b9; padding: 20px; margin: 0 17px;}
.homepage #content {background: none; padding: 0;}
.row-fluid {width: auto; padding: 0;}
.home_logo {text-align: center; padding: 70px 0 100px;}
.home_text {background: url(../img/bg_home_text.png) left bottom no-repeat; background-size: 26%; padding: 0 0 0 28.07%;}
.home_text h1 {font: normal 22px/26px Georgia, sans-serif; color: #c3b9a6; text-transform: none; background: url(../img/bg_home_text_h1.png) right 12px no-repeat; padding: 0; margin: 0 0 10px;}
.home_text p {font: normal 16px/20px Georgia, sans-serif; color: #c6bca9; padding: 0 0 25px 0; margin: 0;}
.home_text p a {color: #c6bca9; text-decoration: underline;}
.text {clear: both; background: #b9ae99; padding: 16px 25px;}
.text h1,
.text h2 {font: 400 22px/26px 'Lora', sans; color: #2d1a0e; text-align: center; background: url(../img/bg_text_h1.png) left 13px repeat-x; padding: 0; margin: 0 0 25px 0;}
.text h1 span,
.text h2 span,
.text h1 a,
.text h2 a {background: #b9ae99; padding: 0 10px;}
.text p {}

.news_list {}
.news_list .item {padding: 30px 0 10px 0;border-top:3px solid #5d5742;}
.news_list .item:first-child {border-top-color:transparent;padding: 0 0 10px 0;}
.news_list .item .image {float: left; margin: 0 15px 15px 0;}
.news_list .item h2 {color: #3f3f3f;}
.news_list .item h2 a {color: #3f3f3f; text-decoration: none;}
.news_list .item h2 a:hover {color: #3f3f3f; text-decoration: underline;}
.news_list .item {position:relative;}
.news_list .item p {padding:5px 0px; margin-bottom:0px;}
.news_list .item .news-photo {display:inline-block; top:0; height:100%; float:left; max-width:300px;}
.news_list .item .news-photo img {width:100%; max-width:300px;}
.news_list .item .news-text {display:inline-block;width:66%;}

@media (max-width: 980px) {
    .news_list .item .news-text {width:50%;}
}
@media (max-width: 683px) {
    .news_list .item .news-text {width:inherit;}
}
@media (max-width: 545px) {
    .news_list .item .news-photo {max-width:none;width:100%;}
    .news_list .item .news-text {width:100%;}
}
@media (max-width: 980px) {
.home_text h1 {background:none;}
}

#content.horses_list {border-bottom: 8px solid #b9ae99; padding-bottom: 0;}
.horses_list .header {background: url(../img/bg_horses_list_header.png) center bottom no-repeat; background-size: 100%; padding: 4px 26px 0 16px; margin: 0 0 6px 0;}
.horses_list .header h1 {float: left; width: 70%; font: 400 42px/46px 'Lora', serif; color: #000; text-transform: uppercase; padding: 20px 0 0;}
.horses_list .header ul {float: right; /*width: 100px;*/width: 128px; list-style: none; padding: 0; margin: 0 0 14px;}
.horses_list .header ul li {font: 400 13px/16px 'Lora', serif; color: #000; text-transform: uppercase; text-align: right; background: url(../img/bg_horses_list_hint.png) right 0 no-repeat; padding: 0 24px 0 0; margin-bottom: 3px;}
.horses_list .header ul li.filly {background-position: right -19px;}
.horses_list .header ul li.stallion {background-position: right -39px;}
.horses_list .header ul li.colt {background-position: right -58px;}
.horses_list .header ul li.gelding {background-position: right -77px;}
.horses_list .list {width: 106%; max-width: 937px; margin-left: -2.8%;}
.horses_list .list .item {float: left; width: 24.5%; margin: 0 6px 6px 0;}
.horses_list .list .item:nth-child(4n+5) {clear:left;}
.horses_list .list .item:nth-child(4n) {margin-right: 0;}
.horses_list .list .image {position: relative; display: block; background: #b9ae99; border-bottom: 14px solid #940d0d; margin-bottom: 5px;}
.horses_list .list .image img.flag {position: absolute; bottom: 10px; right: 15px;}
.horses_list .list .filly .image {border-color: #c03f67;}
.horses_list .list .stallion .image {border-color: #223072;}
.horses_list .list .colt .image {border-color: #5381c0;}
.horses_list .list .gelding .image {border-color: #22722a;}
.horses_list .list .none .image {border-color: #67432c;}
.horses_list .list .item h2,
.horses_list .list .item h3 {font: normal 12px/15px Arial; color: #0e0805; text-transform: uppercase; padding: 0 5px 0 22px; margin: 0 0 2px;}
.horses_list .list .item h2 a,
.horses_list .list .item h3 a {color: #0e0805; text-decoration: none;}
.horses_list .list .item p {font: normal 10px/12px Arial; color: #0e0805; text-transform: uppercase; padding: 0 5px 0 22px;}
.horses_list .list .item p a {color: #0e0805; text-decoration: none}
@media (max-width: 980px) {
	.horses_list .list .item:nth-child(4n+5) {clear:none;}
	.horses_list .list .item:nth-child(3n+4) {clear:left;}
    .horses_list .list .item {width: 32.7%;}
    .horses_list .list .item:nth-child(4n) {margin-right: 6px;}
    .horses_list .list .item:nth-child(3n) {margin-right: 0;}
}
@media (max-width: 740px) {
    .horses_list .header h1 {font-size: 36px; line-height: 40px;}
}
@media (max-width: 686px) {
    .horses_list .list .item {width: 32.6%;}
}
@media (max-width: 605px) {
    .horses_list .list .item {width: 32.4%;}
}
@media (max-width: 560px) {
    .horses_list .header h1 {font-size: 28px; line-height: 32px;}
}
@media (max-width: 495px) {
    .horses_list .list .item {width: 49%;}
	.horses_list .list .item:nth-child(3n+4) {clear:none;}
    .horses_list .list .item:nth-child(3n),
    .horses_list .list .item:nth-child(4n) {margin-right: 6px;}
    .horses_list .list .item:nth-child(2n) {margin-right: 0;}
}
@media (max-width: 465px) {
    .horses_list .header {padding: 4px 0 0;}
    .horses_list .header h1 {width: 100%; font-size: 28px; line-height: 32px;}
    .horses_list .header ul {width: 100%; margin-right: 0;}
    .horses_list .header ul li {display: inline; padding-right: 22px; padding-left: 8px;}
    .horses_list .header ul li:first-child {padding-left: 0;}
}
@media (max-width: 400px) {
    .horses_list .header h1 {text-align: center; padding-top: 0;}
    .horses_list .header ul li {display: block; /*float: left;*/ float:none; /*width: 40%;*/ padding-left: 0;}
    /*.horses_list .header ul li:nth-child(2n) {float: right;}*/
    .horses_list .list .item {width: 100%; text-align: center;}
    .horses_list .list .item:nth-child(2n),
    .horses_list .list .item:nth-child(3n),
    .horses_list .list .item:nth-child(4n), {margin-right: 6px;}
}

.horse_detail .top_box {background: #2d1a0e; padding: 12px 0 0 12px; margin-bottom: 20px;}
.horse_detail .image_box {float: left; width: 45%; text-align: center; background: #e0d3b9; margin: 0 12px 12px 0;}
.horse_detail .info_box {float: right; width: 48%; padding: 12px 0 0; margin: 0 0 12px;}
.horse_detail .info_box h1 {font: 400 30px/40px 'Lora', serif; color: #2d1a0e; text-align: center; text-transform: none; background: #c1b69f; border-radius: 16px 0 0 16px; padding: 10px 0; margin: 0 -3px 45px 0;}
.horse_detail .info_box table {margin: 0 0 40px 14px;}
.horse_detail .info_box table th,
.horse_detail .info_box table td {font: 400 14px/18px 'Lora', serif; color: #e0d3b9; text-align: left; padding: 0px 10px 12px 0;}
.horse_detail .info_box table th {text-transform: uppercase;}
.horse_detail .info_box .links {padding: 0 0 0 10px;}
.horse_detail .info_box .links a {padding-right: 10px;}
.horse_detail .info_box .links a#pedigree_link {float: right; font: 400 22px/22px 'Lora', serif; color: #2d1a0e; text-align: center; text-decoration: none; text-transform: uppercase; background: #e0d3b9; border-radius: 31px; padding: 21px 30px 21px; margin-right: 32px;}
.horse_detail .info_box span {display: block; font: 300 1em/1.125em 'Oswald', Arial; color: #000; padding: 0 0 0 22px; margin: 0 0 2px 18px;}
.horse_detail .info_box span.birthdate {background: url(../img/icon-cake.png) left 1px no-repeat;}
.horse_detail .info_box span.height {background: url(../img/icon-hand.png) left 2px no-repeat;}
#content .horse_detail .info_box p {margin: 0 18px;}
#content .horse_detail .info_box ul {margin: 0 18px 22px 24px;}
.horse_detail .pedigree_box,
.horse_detail .gallery_box,
.horse_detail .video_box {clear: both; margin-top: 20px;}
.pedigree_box table {width: 85%;font-size:12px;margin-left:7.5%;}
.pedigree_box table td {font: 300 1.25em/1.2em, Arial;; color:#991325; vertical-align: middle; border-bottom: 2px solid #E0D3B9; padding: 15px 0;}
.pedigree_box table td[rowspan="8"] {}
.pedigree_box table td strong {font-weight: 300; color:#002E63;}
.gallery_box a {float: left; width: 19.5%; max-width: 160px; margin: 0 9px 9px 0;}
.gallery_box a:nth-of-type(5n) {margin-right: 0;}
.gallery_box img{max-height:107px;}
.gallery_box a {width: inherit;}
.video_box {text-align: center;}
.video_box iframe {width: 100%;}

@media (max-width: 980px) {
    .horse_detail .top_box {padding-right: 12px;}
    .horse_detail .image_box {width: 100%; max-width: 100%;}
    .horse_detail .info_box {width: 100%; height: auto; padding-bottom: 20px;}
    .gallery_box a {width: 18.8%;}
	.gallery_box img{max-height:125px;}
	.gallery_box a {width: inherit;}
}
@media (max-width: 860px) {.horse_detail .pedigree_box table td {font-size: 1em;}}
@media (max-width: 768px) {
    .gallery_box a {width: 23.8%;}
    .gallery_box a:nth-of-type(5n) {margin-right: 9px;}
    /*.gallery_box a:nth-of-type(4n) {margin-right: 0;}*/
	.gallery_box img{max-height:125px;}
	.gallery_box a {width: inherit;}
}
@media (max-width: 702px) {.horse_detail .gallery_box a {width: 23.6%;}}
@media (max-width: 640px) {.horse_detail .gallery_box a {width: 23.3%;}}
@media (max-width: 540px) {
    .gallery_box a {width: 31.5%;}
    .gallery_box a:nth-of-type(5n),
    .gallery_box a:nth-of-type(4n) {margin-right: 9px;}
    /*.gallery_box a:nth-of-type(3n) {margin-right: 0;}*/
	.gallery_box img{max-height:125px;}
	.gallery_box a {width: inherit;}
}
@media (max-width: 480px) {
    .horse_detail .pedigree_box table td {font-size: 0.875em;}
    .horse_detail .info_box .links a#pedigree_link {margin-right: 12px;}
    .gallery_box a {width: 48.0%;}
    .gallery_box a:nth-of-type(5n),
    .gallery_box a:nth-of-type(4n),
    .gallery_box a:nth-of-type(3n) {margin-right: 9px;}
    /*.gallery_box a:nth-of-type(2n) {margin-right: 0;}*/
	.gallery_box img{max-height:125px;}
	.gallery_box a {width: inherit;}
}

@media (max-width: 440px) {
    .horse_detail .info_box .links a#pedigree_link {font-size: 18px; padding-right: 15px; padding-left: 15px; margin-right: 12px;}
    .gallery_box a {width: 100%; max-width: 100%; text-align: center;}
    /*.gallery_box a:nth-of-type(5n),
    .gallery_box a:nth-of-type(4n),
    .gallery_box a:nth-of-type(3n),
    .gallery_box a:nth-of-type(2n) {margin-right: 0;}*/
	.gallery_box img{max-height:125px;}
	.gallery_box a {width: inherit;}
}

@media (max-device-width : 568px) 
and (orientation : portrait) {
	 body {background-size:cover;}
	 .horse_detail .info_box .links a#pedigree_link {float:left; margin-top:15px;}
}
@media
(max-device-width : 568px) 
and (orientation : landscape) {
	body {background-size:cover;}
}

/* UNDER CONTENT */
#under_content {padding-top: 68px;}
#under_content .container {max-width: 920px; padding: 0 20px;}
#under_content .text {text-align: center; background: url(../img/bg_home_text.png) left bottom no-repeat; background-size: 26%; padding: 80px 0 80px 28.07%;}
#under_content .text a {font: 400 40px/44px 'Lora', serif; color: #e0d3b9; text-decoration: none; background: url(../img/bg_under_content_link.png) right 16px no-repeat; padding: 0 42px 0 0;}
@media (max-width: 660px) {
    #under_content {padding-top: 58px;}
    #under_content .text {text-align: right; padding: 40px 0 40px 28.07%;}
}
@media (max-width: 500px) {
    #under_content {padding-top: 28px;}
    #under_content .text {text-align: right; padding: 30px 0 30px 28.07%;}
    #under_content .text a {font-size: 28px; line-height: 32px; background-position: right 6px; padding-right: 36px;}
}
@media (max-width: 340px) {
    #under_content {padding-top: 28px;}
    #under_content .text {text-align: right; padding: 20px 0 20px 28.07%;}
    #under_content .text a {font-size: 18px; line-height: 22px; background-position: right 4px; padding: 5px 32px 5px 0;}
}

/* ABOVE FOOTER */
#above_footer {height: 467px; background: url(../img/bg_above_footer.jpg) center top no-repeat; margin: -1px 0 0 0;}
#above_footer .text {font: 700 14px/18px 'Lora', sans; color: #170e08; text-align: center; background: #bbb2a0; border-radius: 35px; opacity: 0.75; box-shadow: 10px 15px 30px #0c0c0c; padding: 10px; margin-top: 370px;}
@media (max-width: 340px) {
    #above_footer .text {margin-top: 350px;}
}

/* FOOTER */
#footer {background: url(../img/bg_footer.png) left top repeat-x; height: 34px; padding: 50px 0 0; margin: -34px 0 0;}
#footer .container {width: 100%; max-width: 1000px; padding: 0; margin: 0 auto;}

.author {font: 700 12px/16px 'Lora', sans; color: #170e08; text-align: center; text-transform: uppercase;}
.author a {color: #170e08; text-decoration: none;}


.youtube {text-align: center;}
.youtube iframe,
.youtube object,
.youtube embed {width: 100%; max-width: 640px;}




.cleaner {clear: both; line-height: 0px; font-size: 0px;}
.clearfix:before,.clearfix:after {content: " "; display: table;}
.clearfix:after {clear: both;}
.clearfix {*zoom: 1;} 