/*
Theme Name: Stockbridge Edinburgh New
Theme URI: http://diggingintowordpress.com/
Description: A custom theme for Stockbridge Edinburgh.
Version: 1.0
Author: James Cant
Author URI: http://www.stockbridgeeedinburgh.com/
Tags: 

	H5 v1.0
	http://diggingintowordpress.com/

	This theme was lovingly designed and developed by Jeff Starr, 
	who blogs at perishablepress.com and designs at monzilla.biz.

	The CSS, HTML and design is released under GPL:
	http://www.opensource.org/licenses/gpl-3.0.html
*/


/* == BASICS == */

* {
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    color: #333;
    line-height: 150%;
    background-color: #EFEFEF;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
    line-height: 120%;
    color: #666;
}

h1 {
    font-size: 30px;
    font-weight: 700;
}

h2 {
    font-size: 20px;
    font-weight: 700;
}

h3 {
    font-size: 14px;
    font-weight: 700;
}

h4, h5, h6 {
    font-size: 16px;
    font-weight: 700;
}

img {
    border: none;
    height: auto;
    border-radius: 4px;
}

img.size-full {
    max-width: 97.5%;
    width: auto; /* Prevent stretching of full-size images with height and width attributes in IE8 */
}

.scaleimage {
    width: 100%;
    height: auto;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption img {
    max-width: 100%;
    height: auto;
}


a:link, a:visited {
    color: #666;
    text-decoration: none;
}

a:hover, a:active {
    color: #666;
    text-decoration: underline;
}

p {
    margin: 10px 0;
}

.clear {
    clear: both;
}

#page {
    margin: 0 auto;
    width: 1040px;
    background-color: #FFF;
    padding: 0 40px;
}

#header {
    position: relative;
    height: 160px
}

#logo {
    position: absolute;
    top: 20px;
    left: 0;
    width: 120px;
}

#header_social {
    position: absolute;
    top: 25px;
    right: 0;
}

#footer {
    margin: 0 auto 20px;
    width: 1040px;
    background-color: #222;
    color: #999;
    overflow: hidden;
    clear: both;
}

#footer p {
    padding: 0 15px;
}

#header_social a {
    margin-left: 2px;
}

#header_nav {
    position: absolute;
    top: 65px;
    right: 0;
    font-size: 11px;
}

#search_bar {
    border: 1px solid #DFDFDF;
    padding: 1px;
    position: absolute;
    top: 85px;
    right: 0;
    height: 28px;
    width: 210px;
    background: url('images/icons/search.gif') no-repeat 192px 3px;
}

#search_bar input {
    border: none;
    margin: 1px;
    padding: 1px;
    outline: none;
    width: 168px;
}

/* == NAVIGATION == */

#nav_container {
    width: 960px;
}

#nav {
    float: left;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
    background-color: #FFF;
}

#nav li {
    float: left;
    font-size: 14px;
}

#nav li a {
    display: block;
    padding: 8px 15px;
    text-decoration: none;
    font-weight: bold;
    color: #162840;
}

#nav li a:hover {
    background-color: #EFEFEF;
}

#main {
    float: left;
    width: 630px;
    padding-right: 30px;
}

#sidebar {
    float: right;
    width: 300px;
}

#sidebar div {
    margin-bottom: 20px;
}

.related_entry {
    width: 300px;
}

.advert_group img {
    margin-bottom: 5px;
}

.search_results td {
    padding: 10px 0;
}

.thumbnail {
    border: 3px solid #CCC;
    margin-right: 20px;
}

.page_navigation {
    margin-top: 30px;
}

/* == COMMENTS == */


h1, h2 {
    margin-bottom: 13px;
}

h1 span, h2 span {
    background-color: #000;
    color: #FFFFFF;
    padding: 1%;
    padding-left: 5px;
    padding-right: 5px;
    border-radius: 4px;
}

.title_full {
    font-size: 40px;
    margin: 20px 0 0;
    background-color: #000;
    color: #FFFFFF;
    padding: 0;
    margin-top: 50px;
}

.title_full_post {
    font-size: 40px;
    margin: 0 0 20px;
    background-color: #000;
    color: #FFFFFF;
    padding: 0;
}

/* == LISTING == */

.listing_title {
    font-size: 32px;
}

.listing_column {
    width: 310px;
    float: left;
    margin-top: 20px;
    padding: 0 20px;
    margin-bottom: 20px;
}

.listing_links {
    list-style: none;
}

/* == PANELs == */

.post-panel {
    height: 400px;
    width: 300px;
    float: left;
    margin-bottom: 30px;
}

.post-panel-center {
    margin: 0 30px;
}

.listing-panel {
    height: 240px;
    width: 300px;
    float: left;
    margin-bottom: 30px;
}

.listing-panel-center {
    margin: 0 30px;
}

.meta {
    color: #666;
    font-size: 11px;
    text-transform: uppercase;
    border-top: 1px solid #EEE;
    border-bottom: 1px solid #EEE;
    padding: 4px 0;
}

/* == DIVIDERS == */

.divider {
    clear: both;
    border-bottom: 1px #ddd solid;
    margin: 20px 0;
}

.divider2 {
    clear: both;
    border-bottom: 1px #aaa dashed;
    margin: 20px 0;
}

.divider3 {
    clear: both;
    background: transparent url(images/dot.gif) repeat-x left bottom;
    height: 1px;
    margin: 20px 0;
}

.divider-top {
    width: 93%;
    float: left;
    border-bottom: 1px #ccc solid;
    margin: 20px 0;
}

.divider-top-container {
    clear: both;
}

.dtoplink {
    margin-top: 10px;
}

.divider-custom {
    clear: both;
    height: 20px;
    padding-top: 20px;
}

.divider-blank {
    clear: both;
    padding: 20px 0;
}

/* == ALL YOUR CODE ARE BELONG TO POETRY == */


/*My Code*/
.menu-responsive-btn {
    text-align: right;
    display: none;
}

.top-image img {
    width: 100% !important;
}

.row {
    margin-bottom: 20px;
}

#footer a {
    color: #fff;
}

#footer {
    color: #fff !important;
}

/****/

@media screen and (max-width: 1060px) {
    #page {
        width: 860px;
    }

    #nav_container {
        width: 860px;
    }

    #nav li a {
        padding: 8px 9px;
    }

    div#map_canvas {
        width: 100% !important;
    }

    #main {
        width: 63%;
    }

    .post-panel {
        width: 47%;
    }

    .post-panel img {
        width: 100%;
    }

    #sidebar {
        width: 33%;
    }

    .listing-panel {
        width: 266px;
    }

    .listing-panel img {
        width: 100%;
    }

    .listing_column {
        width: 174px !important;
    }

    #footer {
        width: 965px;
    }
}

@media screen and (max-width: 991px) {
    #page {
        width: 667px;
    }

    #nav_container {
        width: 667px;
    }

    #nav li a {
        padding: 8px 3px;
        font-weight: 500;
        font-size: 12px;
    }

    @-moz-document url-prefix() {
        #nav li a {
            padding: 8px 7px;
            font-size: 11.4px;
        }
    }
    .top-text {
        width: 48%;
    }

    .top-img {
        width: 100%;
    }

    #main {
        width: 50%;
    }

    .post-panel {
        width: 100%;
        margin-left: 0px !important;
    }

    .post-panel img {
        width: inherit;
    }

    #sidebar {
        width: 40%;
    }

    .listing-panel {
        width: 318px;
        margin-right: 15px !important;
        margin: 0 0px;
    }

    .listing-panel-center {
        margin: 0 0px;
    }

    .listing_column {
        width: 126px !important;
    }

    #footer {
        width: 747px;
    }
}

@media screen and (max-width: 768px) {
    #page {
        width: 88%;
        padding: 0 20px;
    }

    #nav_container {
        width: 100%;
    }

    #nav {
        display: none;
    }

    #nav li {
        float: none;
    }

    #nav li a {
        padding: 8px 2px;
        font-weight: 600;
        font-size: 13px;
        border-right: none;
        text-align: center;
        border-bottom: 1px solid #ccc;
    }

    .menu-responsive-btn {
        display: block;
    }

    .menu-responsive-btn img {
        cursor: pointer;
    }

    #main {
        width: 100%;
        padding-right: 0px;
    }

    /*
     * ----------------------- image overrides -----------------------
     */
    /* wordpress */
    #main img {
        width: 100% !important;
        height: auto !important;
    }

    /* instagram */
    #main iframe {
        width: 100% !important;
        min-width: auto !important;
    }

    /*
     * ----------------------- image overrides -----------------------
     */
    .post-panel img {
        width: 300px !important;
    }

    .title_full_post {
        font-size: 32px;
    }

    img.wp-image-15365 {
        width: 141px !important;
    }

    .wp-caption {
        width: 100% !important;
    }

    #sidebar {
        width: 250px;
        float: none;
        margin: auto;
    }

    .listing-panel {
        width: 47%;
    }

    .listing_column {
        width: 42% !important;
    }

    #footer {
        width: 98%;
    }
}

@media screen and (max-width: 600px) {
    .top-text {
        float: left;
        width: 100%;
        padding-right: 0px !important;
    }

    .top-img-main {
        float: left;
        width: 100%;
        text-align: center;
    }

    .top-img {
        height: 250px;
    }

    div#map_canvas {
        height: 500px !important;
    }

    .search-text {
        float: left;
    }

    .search-img-main {
        float: left;
    }

    .listing-panel {
        width: 338px;
        margin-right: 0px !important;
    }

    .listing_column {
        width: 38% !important;
    }

    #page {
        width: 86%;
    }

    #logo {
        width: 30%;
    }

    #header_nav {
        top: 125px;
    }

    #search_bar {
        top: 145px;
    }

    .menu-responsive-btn {
        margin-top: 30px;
    }

    .title_full_post {
        font-size: 28px;
    }

    .top-img {
        max-height: 400px;
        height: auto;
        margin-left: auto;
        margin-right: auto;
    }

    div#map_canvas {
        height: 400px !important;
    }

    .post-panel img {
        width: 100% !important;
    }

    .advert_group img {
        width: 100%;
    }

    .listing-panel {
        width: 100%;
    }

    .listing_column {
        width: 100% !important;
        padding: 0 0px;
    }

    #sidebar img {
        width: 100%;
    }
}


@media only screen and (max-width: 500px) {
    .pages {
        display: none;
    }
}

@media only screen and (max-width: 786px) {
    img {
        max-height: 600px;
    }
}

@media only screen and (max-width: 500px) {
    img {
        max-height: 400px;
    }
}

@media only screen and (max-width: 368px) {
    img {
        max-height: 330px;
    }

    .related_entry {
        width: 284px;
    }
}

@media screen and (min-width: 991px) {
    .top-text {
        width: 40%;
    }

    .top-image {
        min-height: 500px;
    }
}