/*
Theme Name: Sunny Brook
Theme URI: https://sunnybrook.in/
Description: Faithful rebuild of the original "oriental" theme (by Ying Zhang / pure-essence.net, GPL) as used by Sunny Brook School, Besant Nagar, Chennai, circa WordPress 2.8.2. Reconstructed from archive.org Wayback evidence (snapshot 20110129) plus the recovered original oriental style.css and theme images. Updated for WordPress 7.0 / PHP 8.3 compatibility. Original CSS/design GPL-licensed.
Author: Rebuilt from oriental by Ying Zhang
Author URI: https://sunnybrook.in/
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: fixed-width, two-columns, left-sidebar, yellow, orange, red, custom-menu
*/


/* Layout */
body {
	padding: 0;
	margin: 0;
	font-size: 0.9em;
	font-family: Arial, Verdana, Sans-Serif;
	background: #fab728 url(images/bk.jpg) left top repeat-x;
	color: #000;
}

/* Default */
a {
	color: #3b6065;
}

a:hover {
	color: #841700;
}

h1 {
	font-size: 1.2em;
}

h2 {
	font-size: 1.1em;
}

h3 {
	font-size: 1em;
}

h4 {
	font-size: .9em;
}

h5 {
	font-size: .8em;
}

h6 {
	font-size: .7em;
}

blockquote {
	padding: 0 0.5em;
	border-left: 5px solid #f0e8a7;
	margin: 0;
	background-color: #f8f8e2;
}

img.alignleft {
	float: left;
	margin: 0 .8em .8em 0;
}

img.alignright {
	float: right;
	margin: 0 0 .8em .8em;
}

.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.alignleft {
	float: left;
}

.alignright {
	float: right;
}

a img {
	padding: 5px;
	border: 1px solid #ccc;
}

form {
	padding: 0;
	margin: 0;
}

/* Layout */
#container {
	background: url(images/orientalBk.jpg) right top no-repeat;
	width: 980px;
	margin: 0 auto;
}

#header {
	height: 123px;
}

#header h1 {
	padding: 25px 0 0 53px;
	margin: 0;
	color: #faf6bb;
	font-family: Garamond, Georgia, serif;
	font-size: 2em;
}

#header h1 a,
#header h1 a:hover {
	text-decoration: none;
	color: #faf6bb;
}

#header .description {
	padding: 0 0 0 53px;
	color: #c46816;
	font-family: Garamond, Georgia, serif;
	font-size: 1.3em;
}

#page {
	padding: 0 53px;
	background: url(images/leftFlare.jpg) left 87px no-repeat;
}

#pageinner {
	position: relative;
	margin: 13px 0 0 0;
	background: url(images/pageInnerBk.gif) right top repeat-y;
}

#navcontainer ul {
	background: url(images/headerBarBk.png) repeat;
	padding: 0;
	margin: 0;
	list-style: none;
	float: left;
	width: 100%;
}

* html #navcontainer ul {
	background: #972f07 url(images/headerBarBkForIE6.jpg) no-repeat;
}

#navcontainer ul li { 
	display: inline; 
}

#navcontainer ul li#first a,
#navcontainer ul li#first a:hover {
	cursor: default;
	background-image: none;
	text-decoration: none;
}

#navcontainer ul li a {
	color: #faf6bb;
	margin: 5px 0 0 0;
	padding: 4px 14px 8px 12px;
	text-decoration: none;
	background: url(images/headerBarLiBk.gif) right 3px no-repeat;
	float: left;
}

#navcontainer ul li a:hover {
	text-decoration: underline;
}

#navcontainer ul li.current_page_item a,
#navcontainer ul li.current_page_ancestor a {
	background: url(images/searchBarBk.gif) repeat-x;
	color: #841700;
	padding: 4px 12px 8px 12px;
	margin-left: -2px;
	font-family: Garamond, Georgia, serif;
	font-weight: bold;
}

#navcontainer ul li.current_page_item a:hover,
#navcontainer ul li.current_page_ancestor a:hover {
	text-decoration: none;
}

#navcontainer ul li a:hover {
	text-decoration: underline;
}

#searchBar {
	clear: left;
	background: url(images/searchBarBk.gif) repeat-x;
	text-align: right;
}

#searchform {
	padding: 5px;
}

#s {
	border: 1px solid #bbb;
}

#searchsubmit {
	border: 1px solid #bbb;
	background: #fff url(images/buttonBk.gif) repeat-x;
}

#sidebar {
	position: absolute;
	left: 0;
	top: 0;
	width: 200px;
	margin: 0;
	color: #011631;
}

#sidebar a {
	color: #736f44;
}

#sidebar ul {
	padding: 0;
	margin: 0;
	list-style: none;
}

#sidebar ul li {	
	background-color: #fefef6;
	margin: 0 0 13px 0;
	font-size: 0.85em;
}

#sidebar ul li h2 {
	margin: 0;
	background: url(images/yellowBarBk.gif) repeat-x;
	color: #3a3a3a;
	font-family: Garamond, Georgia, serif;
	font-size: 1.3em;
	padding: 3px 3px 3px 10px;
}

#sidebar ul li p,
#sidebar ul li div {
	padding: 5px 10px 10px 10px;
	margin: 0;
}

#sidebar ul li table {
	padding-bottom: 5px;
}

#sidebar ul li table caption {
	padding: 5px 0 0 0;
}

#sidebar ul li ul {
	padding: 0.3em 0;
}

#sidebar ul li ul ul,
#sidebar ul li ul ul ul,
#sidebar ul li ul ul ul ul,
#sidebar ul li ul ul ul ul ul {
	padding: 0;
}

#sidebar ul li ul li {
	font-size: 1em;
	padding: 0.2em 1em 0.2em 0;
	margin: 0 0 0 1em;
}

#sidebar ul li ul li li,
#sidebar ul li ul li li li,
#sidebar ul li ul li li li li,
#sidebar ul li ul li li li li li {
	margin: 0 0 0 1em;
}

#sidebar ul li ul li a {
	text-decoration: none;
	background: url(images/sidebarBullet.gif) left center no-repeat;
	padding-left: 1em;
}
#sidebar ul li ul#themeswitcher li a,
#sidebar ul li ul li.recentcomments a {
	background-image: none;
	padding-left: 0;
}
#sidebar ul li ul#themeswitcher li,
#sidebar ul li ul li.recentcomments {
	background: url(images/sidebarBullet.gif) left center no-repeat;
	padding-left: 1em;
}

#sidebar ul li ul li a:hover {
	color: #863f09;
}

/* Calendar */
#wp-calendar {
	width: 100%;
}

#wp-calendar th,
#wp-calendar td {
	text-align: center;
}

#wp-calendar td#today {
	font-weight: bold;
}

h2.pagetitle {
	background: #fefef6 url(images/yellowBarBk.gif) repeat-x;
	margin: 0;
	color: #3a3a3a;
	font-family: Garamond, Georgia, serif;
	padding: 3px 3px 3px 10px;
}

#content {
	margin: 0 0 0 213px;
	padding: 0;
}

#content .g2_column {
	width: 800px
}
#contentinner {
	padding: 10px;
	font-size: 0.9em;
	line-height: 1.5em;
}


/* Post */
.post h2.posttitle {
	padding: 0;
	margin: 0;
	float: right;
	font-size: 1.2em;
}

.post h2.posttitle a,
.post h2.posttitle a:hover {
	text-decoration: none;
	color: #8e1901;
}

/* make your own sticky post styling */
.sticky {
}

small.postmetadata {
	font-size: 0.85em;
}

ul.postmetadata {
	padding: 0;
	margin: 0;
	list-style: none;
	font-size: 0.85em;
}

ul li.tags {
	float: left;
}

ul li.comments {
	text-align: right;
}

div.divider {
	background: url(images/divider.gif) center center repeat-x;
	height: 47px;
	margin: 1em 0;
}

div.navigation {
	text-align: center;
	font-family: Garamond, Georgia, serif;
	padding: 0 0 2em 0;
}

div.commentnavigation {
	padding: 0;
}

#singlepost {
	background: url(images/commentBk.gif) center bottom repeat-x;
	padding: 10px 10px 49px 10px;
	margin: 0;
	font-size: 0.9em;
	line-height: 1.5em;
}

#commentwrapper {
	background: #dfd797 url(images/commentBottomBk.gif) center bottom repeat-x;
	padding: 0 15px 49px 15px;
}

#commentwrapper h2 {
	margin: 0;
	padding: 0.5em 0;
}

/* Comment */
h2.commentheading {
	font-size: 1.2em;
	color: #fefef6;
	font-family: Garamond, Georgia, serif;
}

ol.commentlist {
	padding: 0;
	margin: 0;
	list-style: none;
	font-family: Tahoma, 'Trebuchet MS', Verdana, Arial, sans-serif;
	color: #3a3a3a;
}

ol.commentlist a {
	text-decoration: none;
}

img.avatar {
	border: 3px solid #fefef6;
	margin: 0 0.5em;
}

ol.commentlist li.commentind {
	padding: 0 0 2em 0;
	margin: 0;
}

ol.commentlist li.depth-1 {
	border-bottom: 3px double #fefef6;
	padding: 0 0 1em 0;
	margin-bottom: 1em;
}

ul.children {
	list-style: none;
}

ol.commentlist ul.children li.commentind {
	padding: 1em 0 0 0;
}

ol.commentlist li.commentind cite {
	font-style: normal;
}

p.commentsedit {
	font-size: 0.9em;
	margin: 0 0 0 0.5em;
}

.commentindheader {
	border-bottom: 1px dotted #fefef6;
}

.commentindheader img.avatar {
	float: left;
}

ol.commentlist li.legacyAlt .commentindheader {
	text-align: right;
}

ol.commentlist li.legacyAlt .commentindheader img.avatar {
	float: right;
}

ol.commentlist li.legacyAlt p.commentsedit {
	text-align: right;
	margin: 0 0.5em 0 0;
}

/* Comment form */
form#commentform input,
form#commentform textarea {
	border: 1px solid #bbb;
}

input#author,
input#email,
input#url {
	width: 60%;
}

textarea#comment {
	width: 90%;
}

input#submit {
	border: 1px solid #bbb;
	background: #fff url(images/buttonBk.gif) repeat-x;
}

#footer {
	clear: both;
	background: url(images/footerBk.gif) 60px top no-repeat;
	height: 108px;
	margin: 0 53px;
	font-family: Garamond, Georgia, serif;
	text-align: right;
	font-size: 1em;
	color: #a66117;
}

#footer p {
	margin: 0;
	padding: 0.9em;
	line-height: 1.5em;
}

#footer a {
	color: #a66117;
}

#footer a:hover {
	color: #cf7819;
}

div#recaptcha_widget_div {
	float: right;
}

/* Wordpress required */
.wp-caption {
	border: 1px solid #ddd;
	text-align: center;
	background-color: #f3f3f3;
	padding-top: 4px;
	margin: 10px;
}

.wp-caption img {
	margin: 0;
	padding: 0;
	border: 0 none;
}

.wp-caption-dd {
	font-size: 11px;
	line-height: 17px;
	padding: 0 4px 5px;
	margin: 0;
}

h3.subpages {
	padding: 1em 0 0.5em 0;
	margin: 0;
}

ul.subpages {
	padding: 0 0 0 1em;
	margin: 0 0 0 1em;
	list-style: square;
}

/* Formatting */
fieldset {
	border: 1px solid #ccc;
	padding: 0 1em;
	margin: 0;
}

legend {
	color: #999;
	font-size: 1.1em;
	font-weight: bold;
}

hr {
	border: 0;
	color: #cfc887;
	background-color: #cfc887;
}

pre, code {
	width: 100%;
	overflow: auto;
	font-size: 1em;
}

.post table {
	width: 100%;
	border: 1px solid #ccc;
	border-top: 0;
	border-collapse: collapse;
}

.post table th,
.post table td {
	border: 1px solid #ccc;
	border-bottom: 0;
	padding: .3em .5em;
}

.post table th {
	text-align: left;
	border-bottom: 2px solid #ccc;
}

p.loggedinAs {
	margin: 0; 
	padding: 0;
}

a#cancel-comment-reply-link {
	display: block;
	margin-bottom: 1em;
}


/* --- Sunny Brook rebuild additions (WP 7.0 compat + gallery preview) --- */

/* Modern WP image alignment + caption shortcode output */
.wp-caption { max-width: 100%; }
.wp-caption img { max-width: 100%; height: auto; }
img { max-width: 100%; height: auto; }

/* Nav menu produced by wp_nav_menu fallback (page list) */
#navcontainer ul#navlist { overflow: hidden; }

/* Gallery call-to-action button on the Photo Gallery page */
.sb-gallery-cta {
	text-align: center;
	margin: 1.5em 0;
}
.sb-gallery-cta a.button {
	display: inline-block;
	background: #972f07 url(images/searchBarBk.gif) repeat-x;
	color: #faf6bb;
	font-family: Garamond, Georgia, serif;
	font-size: 1.2em;
	font-weight: bold;
	text-decoration: none;
	padding: 10px 26px;
	border: 1px solid #841700;
	border-radius: 3px;
}
.sb-gallery-cta a.button:hover {
	color: #fff;
	text-decoration: none;
}

/* Inline gallery preview grid (optional thumbnails on the WP page) */
.sb-gallery-preview {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	margin: 1em 0;
}
.sb-gallery-preview a img {
	width: 130px;
	height: 100px;
	object-fit: cover;
	padding: 3px;
	border: 1px solid #ccc;
}
