/*
	Nel Dorpers — Superior Rouxville Dorpers
	Static HTML/CSS/JS rebuild of the original WordPress theme.
*/

/* RESET */

*, *::before, *::after { box-sizing: border-box; }
:link, :visited { text-decoration: none; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6, pre, code { font-size: 1em; font-weight: normal; }
ul, ol, li, h1, h2, h3, h4, h5, h6, pre, form, body, html, p, blockquote, fieldset, input, figure { margin: 0; padding: 0; }
a img, :link img, :visited img { border: none; }
address { font-style: normal; }
img { max-width: 100%; height: auto; }

/* STYLING */

body, html {
	background: #bababa url('../images/theme/bodybg.jpg') repeat center top;
	color: #b8b8b8;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 13px;
}

a, a:active, a:link, a:visited { color: #ffffff; }
a:hover { color: #e7e7e7; }

h1, h2, h3 {
	color: #ffffff;
	font-family: Georgia, "Times New Roman", Times, serif;
}

h1 {
	font-size: 36px;
	border: dashed #535353;
	border-width: 1px 0;
	padding: 20px 0 18px;
	margin-bottom: 18px;
}

h1 .subtitle { display: block; }

h2 { font-size: 20px; margin-bottom: 12px; }
h3 { font-size: 16px; margin-bottom: 12px; }

p + h2, p + h3, p + h4, ul + h2, ol + h2, table + h2, #enquiryformbox { margin-top: 14px; }
p + h2, ul + h2, ol + h2, table + h2, #enquiryformbox { border-top: 1px dotted #535353; padding-top: 18px; }

p { padding-bottom: 10px; }

input[type=text], input[type=email], input[type=tel], textarea {
	width: 240px;
	max-width: 100%;
	display: inline-block;
	padding: 4px;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 13px;
	line-height: 18px;
	background-color: #fff;
	border: 1px solid #000;
	box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.5);
}

textarea { height: 190px; }

input[type=text]:focus, input[type=email]:focus, input[type=tel]:focus, textarea:focus {
	border-color: #ffffff;
	box-shadow: inset 0 0 0 rgba(0, 0, 0, 0);
}

input[type=submit], button {
	background: #fff;
	color: #000000;
	font-family: Georgia, "Times New Roman", Times, serif;
	font-size: 13px;
	text-align: center;
	text-transform: uppercase;
	line-height: 18px;
	vertical-align: middle;
	padding: 8px 11px;
	display: inline-block;
	cursor: pointer;
	border: none;
	box-shadow: 0 0 4px 0 rgba(0, 0, 0, 1);
}

input[type=submit]:hover, button:hover {
	background: #f0f0f0;
	padding: 7px 10px;
	margin: 1px 0;
	box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
}

.headtitle {
	color: #b8b8b8;
	font-family: Arial, Helvetica, sans-serif;
	text-transform: uppercase;
	font-size: 16px;
	font-weight: bold;
	display: block;
}

.screen-reader-text {
	position: absolute;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* LAYOUT SHELL */

#contentsection {
	background: url('../images/theme/wood.jpg') repeat left top;
	width: 100%;
	float: left;
}

#topcontentsectiondeco {
	background: url('../images/theme/topcontentsectiondeco.png') repeat-x left top;
	width: 100%;
	float: left;
}

#bottomcontentsectiondeco {
	background: url('../images/theme/bottomcontentsectiondeco.png') repeat-x left bottom;
	width: 100%;
	padding-bottom: 30px;
	border-bottom: 1px solid #000000;
	float: left;
}

#wrapper { width: 960px; margin: 0 auto; }
#contentwrap { width: 960px; float: left; }

/* SIDEBAR */

#leftbox { width: 200px; margin: 0 19px; float: left; }

#mainmenuwrap {
	background: #bababa url('../images/theme/bodybg.jpg') repeat center top;
	width: 100%;
	box-shadow: 0 0 5px 0 rgba(0, 0, 0, .75);
	float: left;
}

#logo {
	background: url('../images/theme/logo.png') no-repeat center top;
	color: #000000;
	width: 100%;
	height: 36px;
	font-family: Georgia, "Times New Roman", Times, serif;
	font-size: 24px;
	text-align: center;
	text-transform: uppercase;
	padding-top: 76px;
	margin: 40px 0;
	float: left;
}

#logo a, #logo a:link, #logo a:visited { color: #000000; }

#menutoggle { display: none; }

#mainmenu {
	background: #bababa url('../images/theme/leftbox.jpg') repeat-y center top;
	width: 100%;
	margin: 5px 0;
	border-top: 1px dashed #535353;
	border-bottom: 1px dashed #535353;
	float: left;
}

#mainmenu ul { width: 100%; float: left; }
#mainmenu li { width: 100%; float: left; }

#mainmenu a, #mainmenu a:active, #mainmenu a:link, #mainmenu a:visited {
	color: #707070;
	width: 100%;
	font-family: Georgia, "Times New Roman", Times, serif;
	font-size: 11px;
	text-align: center;
	font-style: italic;
	padding: 20px 0;
	border-top: 1px dashed #999999;
	float: left;
}

#mainmenu a strong {
	font-size: 18px;
	font-style: normal;
	text-transform: uppercase;
	font-weight: normal;
	display: block;
}

#mainmenu a:hover { color: #000000; }

#mainmenu .current-menu-item a { color: #000000; border-color: #000000; }
#mainmenu .current-menu-item + li a { border-color: #000000; }

#leftbox #widgetbox .widget {
	background: url('../images/theme/slideshowbox.png') repeat left top;
	width: 180px;
	padding: 10px;
	margin-top: 15px;
	float: left;
}

#leftbox #widgetbox .widget-semen {
	text-align: center;
	letter-spacing: 5px;
	font-size: 12px;
}

#leftbox #widgetbox .widget-semen span {
	font-family: Georgia, "Times New Roman", Times, serif;
	font-size: 24px;
	width: 100%;
	letter-spacing: normal;
	padding: 10px 0 5px;
	display: block;
}

#leftbox #widgetbox .widget-semen a {
	display: block;
	letter-spacing: normal;
	padding: 15px 0;
}

/* MAIN CONTENT */

#contentbox { width: 720px; padding: 60px 0 30px; float: left; }

#contentbox ul, #contentbox ol { margin: 0 0 10px 5px; display: inline-block; }
#contentbox ul li, #contentbox ol li { margin-left: 15px; padding: 0 0 8px 5px; }
#contentbox ul { list-style-type: circle; }
#contentbox ol { list-style-type: decimal; }
#contentbox img { box-shadow: 0 0 4px 0 rgba(0, 0, 0, 1); }

.colfull { width: 680px; margin: 0 20px; float: left; }
.colfifty { width: 320px; margin: 0 20px; float: left; }

/* HOME — SLIDESHOW + CALLOUT */

#homefeaturesbox {
	background: url('../images/theme/slideshowbox.png') repeat left top;
	width: 660px;
	padding: 10px;
	margin-bottom: 30px;
	float: left;
}

#contentbox #homefeaturesbox img { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); }

.slideshow {
	position: relative;
	width: 100%;
	border: 1px solid #000000;
	margin-bottom: 40px;
	float: left;
	box-shadow: 0 0 4px 0 rgba(0, 0, 0, 1);
}

.slideshow-clip {
	position: relative;
	width: 100%;
	overflow: hidden;
	/* 658 x 360 source images */
	aspect-ratio: 658 / 360;
}

.mslide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity .6s ease-in-out;
}

.mslide.is-active { opacity: 1; }

.mslide img { display: block; width: 100%; height: 100%; object-fit: cover; }

.slideshow-nav { position: relative; width: 100%; float: left; }

.slideshow-nav button {
	background: url('../images/theme/slideshowarrows.png') no-repeat;
	width: 18px;
	height: 18px;
	padding: 0;
	margin: 0;
	border: 0;
	box-shadow: none;
	text-indent: -9999px;
	overflow: hidden;
	position: absolute;
	z-index: 10;
	cursor: pointer;
}

.slideshow-nav button:hover { padding: 0; margin: 0; }

.slideshow-nav .prev { left: 260px; bottom: -24px; background-position: left top; }
.slideshow-nav .next { right: 260px; bottom: -24px; background-position: right top; }
.slideshow-nav .prev:hover { background-position: left bottom; }
.slideshow-nav .next:hover { background-position: right bottom; }

.slideshow-buttons {
	height: 18px;
	text-align: center;
	padding: 0;
	position: absolute;
	bottom: -24px;
	width: 100%;
}

.slideshow-buttons button {
	background: url('../images/theme/slideshowthumbs.png') repeat left bottom;
	width: 18px;
	height: 18px;
	padding: 0;
	margin: 0;
	border: 0;
	box-shadow: none;
	text-indent: -9999px;
	overflow: hidden;
	display: inline-block;
	cursor: pointer;
}

.slideshow-buttons button:hover { background-position: left center; padding: 0; margin: 0; }
.slideshow-buttons button.is-active { background-position: left top; }

.homecallout {
	width: 100%;
	border-top: 1px solid #000;
	padding-top: 10px;
	float: left;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	font-family: Georgia, "Times New Roman", Times, serif;
	font-size: 16px;
}

.homecallout a {
	background: #ffffff url('../images/theme/homefeatureslink.jpg') repeat-x left center;
	color: #000;
	font-size: 24px;
	text-transform: uppercase;
	border: 1px solid #ffffff;
	padding: 6px 10px;
	white-space: nowrap;
	box-shadow: 0 0 4px 0 rgba(0, 0, 0, 1);
}

.homecallout a span { font-size: 10px; font-style: italic; display: block; }

.homecallout a:hover {
	background: #fff;
	box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
	border: 1px solid #000;
}

/* DORPER STUD — POST LIST */

.postintrobox { width: 100%; float: left; position: relative; }
.postintrobox + .postintrobox { margin-top: 30px; }

.postgallerybox { width: 280px; margin-right: 20px; float: left; position: relative; }
.postdetailsbox { width: 380px; float: left; }

a.gallerylink {
	background: url('../images/theme/gallerylink.png') no-repeat left top;
	width: 280px;
	height: 200px;
	position: absolute;
	top: 0;
	left: 0;
	text-indent: -9999px;
	overflow: hidden;
}

a.gallerylink:hover { background-position: left -220px; }

/* GALLERY */

.gallerypost { width: 700px; padding: 0 10px; float: left; }

.gallerypost h2 {
	border-top: 1px dotted #535353;
	margin: 18px 10px;
	padding-top: 18px;
}

.colfull + .gallerypost h2 { border-top: 0; margin: 0 0 18px 10px; padding-top: 0; }

.gallery-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
	width: 100%;
	float: left;
	margin-bottom: 10px;
}

.gallery-grid .gallery-item { display: block; text-align: center; }

#contentbox .gallery-grid img {
	border: 2px solid #cfcfcf;
	box-shadow: none;
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 155 / 115;
	object-fit: cover;
	transition: border-color .2s ease;
}

#contentbox .gallery-grid a:hover img { border-color: #ffffff; }

/* CONTACT */

#contactdetails { width: 100%; }
#contactdetails td { vertical-align: top; text-align: right; }
#contactdetails td:first-child { text-align: left; }

#mapbox {
	width: 100%;
	margin-top: 5px;
	float: left;
	box-shadow: 0 0 4px 0 rgba(0, 0, 0, 1);
}

#mapbox iframe { display: block; width: 100%; height: 486px; border: 0; }

#enquirytable { width: 100%; }
#enquirytable td { text-align: right; padding-bottom: 5px; }
#enquirytable td:first-child { text-align: left; }
#enquirytable td.label-message { width: 70px; vertical-align: top; padding-top: 8px; }

.field-error {
	color: #ff2a00;
	font-size: 11px;
	text-align: right;
	display: none;
	padding-top: 2px;
}

.field-error.is-visible { display: block; }

.hp-wrap { position: absolute; left: -9999px; visibility: hidden; }

#formresponse {
	margin: 10px 0 20px;
	font-size: 12px;
	display: none;
}

#formresponse.is-visible { display: block; }
#formresponse.is-error { color: #ff2a00; }
#formresponse.is-success { color: #ffffff; }

.textsmall {
	color: #ffffff;
	font-size: 11px;
	font-family: Georgia, "Times New Roman", Times, serif;
}

/* ALIGNMENT HELPERS */

.alignleft, img.alignleft { display: inline; float: left; margin-right: 24px; margin-top: 4px; }
.alignright, img.alignright { display: inline; float: right; margin-left: 24px; margin-top: 4px; }
.aligncenter, img.aligncenter { clear: both; display: block; margin-left: auto; margin-right: auto; }
img.alignleft, img.alignright, img.aligncenter { margin-bottom: 12px; }

/* FOOTER */

#footer { width: 100%; float: left; }

#featuresbox {
	background: #ffffff url('../images/theme/featuresbox.jpg') repeat center top;
	width: 100%;
	margin: 5px 0;
	border-top: 1px dashed #535353;
	border-bottom: 1px dashed #535353;
	float: left;
}

#featureswrap { width: 960px; margin: 0 auto; }
#features { color: #707070; width: 100%; float: left; }

#features .widget { width: 320px; margin: 20px 0; float: left; }
#features .widget a { width: 280px; padding: 0 20px; float: left; }
#features .widget img { float: left; margin-right: 10px; }
#features .widget h3 { color: #000000; text-transform: uppercase; }
#features .widget p { color: #3e3e3e; }

#features .widget .readon {
	background: url('../images/theme/readonarrow.png') no-repeat left 3px;
	color: #000;
	width: 120px;
	font-family: Georgia, "Times New Roman", Times, serif;
	padding-left: 10px;
	float: left;
}

#features .widget a:hover h3,
#features .widget a:hover p,
#features .widget a:hover .readon { background-position: left -10px; color: #666666; }

/* Each page hides its own feature box and reveals Contact in its place */
#features .widget-contact { display: none; }
body.page-home #features .widget-contact { display: none; }
body.page-dorpers #features .widget-dorpers { display: none; }
body.page-breeding #features .widget-breeding { display: none; }
body.page-gallery #features .widget-gallery { display: none; }
body.page-dorpers #features .widget-contact,
body.page-breeding #features .widget-contact,
body.page-gallery #features .widget-contact,
body.page-contact #features .widget-contact { display: block; }
body.page-contact #features .widget-gallery { display: none; }

#footercredit {
	color: #3e3e3e;
	width: 100%;
	min-height: 40px;
	text-align: center;
	font-size: 11px;
	line-height: 40px;
	padding: 0 15px;
	float: left;
}

#footercredit a { color: #000; }

/* LIGHTBOX */

.lightbox {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, .88);
	z-index: 9999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 50px 60px;
}

.lightbox.is-open { display: flex; }

.lightbox img {
	max-width: 100%;
	max-height: 100%;
	box-shadow: 0 0 20px rgba(0, 0, 0, .9);
	border: 3px solid #fff;
}

.lightbox button {
	position: absolute;
	background: rgba(255, 255, 255, .9);
	color: #000;
	border: 0;
	box-shadow: none;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 22px;
	line-height: 1;
	width: 44px;
	height: 44px;
	padding: 0;
	cursor: pointer;
}

.lightbox button:hover { background: #fff; padding: 0; margin: 0; }

.lightbox .lb-close { top: 12px; right: 12px; }
.lightbox .lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-counter {
	position: absolute;
	bottom: 14px;
	left: 0;
	width: 100%;
	text-align: center;
	color: #ddd;
	font-size: 12px;
}

.lightbox.is-single .lb-prev,
.lightbox.is-single .lb-next,
.lightbox.is-single .lb-counter { display: none; }

/* RESPONSIVE */

@media (max-width: 1000px) {
	#wrapper, #contentwrap, #featureswrap { width: 100%; }
	#wrapper { padding: 0 15px; }

	#leftbox { width: 100%; margin: 0; }
	#contentbox { width: 100%; padding: 40px 0 30px; }

	#logo { margin: 25px 0; }

	.colfull, .colfifty, .gallerypost { width: 100%; margin: 0; padding: 0; float: none; }
	.colfifty + .colfifty { margin-top: 30px; }

	#homefeaturesbox { width: 100%; margin-bottom: 26px; }

	#leftbox #widgetbox { width: 100%; float: left; }
	#leftbox #widgetbox .widget { width: 100%; }

	#features .widget { width: 50%; }
	#features .widget a { width: 100%; padding: 0 15px; }

	.gallerypost h2, .colfull + .gallerypost h2 { margin-left: 0; margin-right: 0; }

	/* Collapse the sidebar menu behind a toggle */
	#menutoggle {
		display: block;
		width: 100%;
		background: #fff;
		color: #000;
		font-family: Georgia, "Times New Roman", Times, serif;
		font-size: 15px;
		text-transform: uppercase;
		padding: 12px;
		margin: 0;
		box-shadow: none;
		border-top: 1px dashed #535353;
	}

	#menutoggle:hover { padding: 12px; margin: 0; }

	#mainmenu { display: none; }
	#mainmenu.is-open { display: block; background: #fff; }
	#mainmenu a, #mainmenu a:active, #mainmenu a:link, #mainmenu a:visited {
		background: #fff;
		padding: 14px 0;
	}
	#mainmenu a strong { font-size: 16px; }
}

@media (max-width: 782px) {
	h1 { font-size: 28px; }

	.postgallerybox, .postdetailsbox { width: 100%; margin-right: 0; float: none; }
	.postdetailsbox { margin-top: 14px; }
	a.gallerylink { display: none; }

	.homecallout { flex-direction: column; align-items: stretch; text-align: center; }
	.homecallout a { margin: 0 auto; }

	.slideshow-nav .prev { left: 8px; bottom: 50%; transform: translateY(50%); }
	.slideshow-nav .next { right: 8px; bottom: 50%; transform: translateY(50%); }
	.slideshow-buttons { position: relative; bottom: auto; margin-top: 10px; }
	.slideshow { margin-bottom: 10px; }

	.gallery-grid { grid-template-columns: repeat(3, 1fr); }

	#features .widget { width: 100%; margin: 12px 0; }

	#contactdetails td, #contactdetails td:first-child { text-align: left; display: block; width: 100%; }

	#enquirytable, #enquirytable tbody, #enquirytable tr, #enquirytable td { display: block; width: 100%; }
	#enquirytable td, #enquirytable td:first-child { text-align: left; }
	#enquirytable td.label-message { width: 100%; padding-top: 0; }
	input[type=text], input[type=email], input[type=tel], textarea { width: 100%; }
	.field-error { text-align: left; }

	#mapbox iframe { height: 320px; }

	.lightbox { padding: 60px 12px; }
}

@media (max-width: 480px) {
	h1 { font-size: 24px; }
	.gallery-grid { grid-template-columns: repeat(2, 1fr); }
	.homecallout a { font-size: 19px; }
}
