/*
Theme Name:  Melody
Theme URI:   https://classicpress-themes/
Author:      Tradesouthwest
Author URI:  https://tradesouthwest.com/
Description: Melody is a grid based theme templated for general website use. Melody is a ClassicPress theme designed to approach a concept on how to make page building a more user-friendly and SEO (page speed load time) friendly process. Page builders take up a lot of bandwidth and are sometimes filled with lots of excessive code that just slows down your website. So we attempt to eliminate over-bloat of code by using built in components of WordPress that are already part of its core functionality. You can use a custom Landing page template to arrange widget on the page which help in building typical page sections, without knowing code. Demo at https://melody.tradesnet.us/
Requires PHP: 7.4
Requires CP:  1.4
Version:     1.0.1
License:     GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags:        one-column, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-images, flexible-header,sticky-post, threaded-comments, translation-ready, blog
Text Domain: melody

This theme, like ClassicPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

/* === CSS Index ===
 * *************************
 * I   - Page Model 
 * II  - Content Elements 
 * III - Article Content 
 * IV  - Navigation Elements 
 * V   - WP Requires 
 * VI  - Media Queries
 * ************************** 
 */

/* ************************************************** I - Page Model */ 
body {
    font-size: 16px;
    margin: 0;
    padding: 0;
    font-family: ui-sans-serif, "Helvetica Neue", Arial, Helvetica, system-ui, sans-serif;
    color: rgb(40, 46, 50);
    min-height:100vh;
    line-height: 1.48;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
.wrapper{
    padding: 0;
    margin-right:auto;
    margin-left:auto;
    box-shadow: 0 0 1px 0 #ddd;
    overflow:hidden;
}
.parent {
    display: grid;
    grid-template-columns: minmax(0, 4fr); 
    margin-right:auto;
    margin-left:auto;
    margin-top: 0;
}
body, div, main, article, section, header, footer, nav, aside, span {
    box-sizing: border-box;
}
.wide-container,
.melody-heading-meta{
    display: grid;
    grid-template-columns: 1fr;
    width:100%;
}
.page-template-three-columns .second-child,
.melody-html-widget-three .mldywidget-third-child{
    width: auto;
} 
.second-child{
    margin-left: 0;
}
.first-child{
    margin-right: 0;
                             
}
.third-child{
    margin-left: 0;
}
.footer-base{
    display: flex;
    flex-direction: row; 
    padding: .825em 1em;
} 
.inner-wide-header{
    display: flex;
    flex-direction: column;
    min-height: 1px;
    width: 100%;
} 
.inner-wide-header > .hsection{
    flex: 1 1 100%;
    flex-shrink: 1;
}
.hgroup{
    order: 2;
    width: 100%;
    text-align: center;
}
.logo-top{
    order: 1;
    width: 100%;
    text-align: center;
}
.melody-search-top{
    order: 3;
    width: 100%;
    margin-left: 1em;
    margin-top: 2em;
}
.logo-top img{
    height: 100px;
    margin-bottom: -1.67em;
}

.padded{
   padding: .825em 1.68em
}

/* ************************************************** II - Content Elements */
/* Avoid text overflows */
p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
    line-height: 1.485;
}
h1, h2, h3, h4, h5, h6{
    padding-top: .444rem;
    padding-bottom: inherit;
    color: #48494a
}
  h1 {
    font-size: 2em;
  }
  h2 {
    font-size: 1.75em;
  }
  h3 {
    font-size: 1.5em;
  }
  h4 {
    font-size: 1.25em;
  }
  h5 {
    font-size: 1em;
  }
  h6 {
    font-size: 0.85em;
  }

img, picture, video, canvas, svg {
    border-style: none;
    height: auto;
    max-width: 100%;
}
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    height: 1px;
    overflow: hidden;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}
/* must have higher specificity than alternative color schemes inline styles */
.skip-link {
    background-color: #f1f1f1;
    box-shadow: 0 0 1px 1px rgba(0, 0, 0, 0.2);
    color: #21759b;
    display: block;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    left: -9999em;
    outline: none;
    padding: 15px 23px 14px;
    text-decoration: none;
    text-transform: none;
    top: -9999em;
}
.logged-in .skip-link {
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.2);
    font-family: "Open Sans", sans-serif;
}
.skip-link:focus {
    clip: auto;
    height: auto;
    left: 6px;
    top: 7px;
    width: auto;
    z-index: 100000;
}
a:active, a:hover {
    outline: 0;
}
table th,
table td{
    padding:2px 3px;
}

/* ************************************************** II - Article Elements */
article.page .wp-caption img,
article.post .wp-caption img{
    max-width: calc( 85.2% - 2em );
}
.melody-home-post-wrap{
    display: flex;
    flex-direction: row;
    margin-top: 1.222em;
    min-height: 12em;
}
.format-standard:first-of-type .melody-home-post-wrap{
    margin-top: 2em;
}
.excerpt-post-heading{
    display: flex;
    padding: 5px;
    width: 25%;
    justify-content: center;
}
.melody-excerpt-wrap{
    display: flex;
    flex-direction: column;
    width: 75%;
}
.excerptwrap-link{
    height: 100%;
    display: inherit;
}
.melody-post-heading{
    font-size: 1.644em;
    font-weight: 400;
    margin-top: -5px;
    margin-bottom: 0;
    line-height: 1.82;
}
.melody-post-heading a{
    text-decoration:none;
}
.blog .attachment-melody-excerpt{
    height: 150px;
}
.post-excerpt-heading,
.inner-article-content{
    max-width: 94.6%;
}
.post-excerpt-heading{
    min-width: 8em;
}
.inner-article-content{
    font-size: 93.8%;
    padding-top: 10px;
    padding-left: 0;
}
.single .linked-attachment-container{
   box-shadow:none;
   border: 0;
}
.blog .home-excerpt-thumb{
    display: inline-block;
    position: relative;
    margin: .4445em 1em;
    border: thin solid #eee;
    width: 7em;
    height: 7em;
}
article.page .wp-caption img,
article.post .wp-caption img{
    max-width: 75%;
}
.melody-excerpt-meta{
    position: relative;
    top: -5%;
    left: .888em;
    display:inline-flex;
}
.melody-excerpt-commcount{
    padding-left: 1em;
    padding-right: 1em;
}
.mldy-sep{
    display: inline-block;
    width:3px;
}
.upto-section{
    display: flex;
    align-items: center;
}
.back_to_top{
    color: #000;
    font-size: xx-large;
    text-shadow: 0 1px 1px #eee;
    border: 1px solid #000;
    box-shadow: 0 0 1px 1px #eee;
    height: 1em;
    width: 1em;
    cursor: pointer
}
.upto-section sup{
    position:relative;
    top: 0;
    left: 32%;
}
.back_to_top-show {
    display: flex;
}
.upto-section,
.site-copyright-section{
    width: 50%;
}
/* save for theme mods */
.melody-landing-wrapper .post-title{
    color:inherit;
}
.landing-attachment-container{
    margin-left: -15px;
    margin-right: -15px;
}
.landing-attachment-container img{
    height: 100%;
    width: 100%;
    margin: 0 auto;
    display: flex;
}
.melody-landing-excerpt{
    display: block;
    width: 91.5%;
    margin: 0 auto 0 1em;
    padding-left: 2em;
    padding-right: 2em;
    background: #dff;
}
.melody-inner-content{
    margin-top: 2em;
    margin-bottom: 2em;
}
.melody-inner-content:before,
.melody-inner-content:after{
    content: "";
    clear:both;
}
.melody-landing-footing .wide-container{
    margin-top: 2em;
    text-align: center;
    border-bottom: thin solid #ddd;
} 
.melody-landing-footing .textwidget{
    line-height: 1.582;
    color: #515355
}
.melody-html-widget-three,
.melody-html-widget-one,
.melody-html-widget-two{
    overflow: hidden;
    white-space: normal;
    display:   flex;
    width:     100%;
    justify-content: space-around;
    /*grid-template-columns: 1fr;*/
    word-wrap: anywhere;
    margin-top: 2em;
}
.melody-figtext{
    display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
    margin-top: 1.5em;
    margin-bottom: 1.5em;
}
.melody-figtext .melody-figtext-txt{
    width: calc(66.6% - 16px);
}
.melody-figtext .melody-figtext-img{
    width: calc(33.33% - 16px);
}
/* ************************************************** IV - Navigation Elements */  
.bfi-date:before,
.page-nav > li::before { 
    content: "";
    border-color: transparent #7d7e7f;
    border-style: solid;
    border-width: 0.35em 0 0.35em 0.45em;
    display: block;
    height: 0;
    width: 0;
    left: -1em;
    top: 1em;
    position: relative;
}
.bfi-date:before{
    left: -.75em;
    top: 1.04em;
}
.pagination-nav{
    width: 100%;
    min-height: 1em;
    flex-direction: column;
}
.prevpst-nav,
.nextpst-nav{
    padding: 6px 12px;
    margin: 0 1em;
    font-size: larger;
    font-weight: bold;
    background: #f7f7f7;
    box-shadow: 1px 2px 1px 0px #ccc;
}
.prevpst-nav:hover,
.nextpst-nav:hover,
.prevpst-nav:focus,
.nextpst-nav:focus,
.prevpst-nav:focus-within,
.nextpst-nav:focus-within{
    background: #cde;
    border-bottom: thin dotted #000
}
.navbar-toggle{
    display: flex;
    margin-left: 2em;
    cursor: pointer;
}  
.page-nav-wrapper{
    padding: 0;
    line-height: inherit;
    margin: 0;
}
.page-nav-wrapper ul{
    margin-left: initial;
    margin-right: initial;
}
.page-nav-wrapper ul li{
    list-style-type: none;
}
.page-nav-wrapper a{
    text-decoration: none;
}
.menu-item-has-children{
    margin-top: 0;
}

/* ************************************************** V - WP Requiires   */  
.alignleft {
    display: flex;
	align-content: flex-start;
    justify-content: space-between;    
	margin: 0.375em 1.75em 1.75em 0;
}
.alignright {
    display: flex;
	align-content: flex-end;
    justify-content: space-between;    
	margin: 0.375em 0 1.75em 1.75em;
}
.aligncenter {
	align-content: center;
    justify-content: space-between;
    text-align: center;
}
blockquote.alignleft {
	margin: 0.3157894737em 1.4736842105em 1.473684211em 0;
}
blockquote.alignright {
	margin: 0.3157894737em 0 1.473684211em 1.4736842105em;
}
blockquote.aligncenter {
	margin-bottom: 1.473684211em;
}
.widget {
	border-top: 2px solid transparent;
	margin-bottom: 3.5em;
	padding-top: 1em;
}
.widget.widget_search{
    border-top: 0;
}
.widget-area > :last-child,
.widget > :last-child {
	margin-bottom: 0;
}
/* Calendar widget */
.widget.widget_calendar table {
	margin: 0;
}
.widget_calendar td,
.widget_calendar th {
	line-height: 2.5625;
	padding: 0 4px;
	text-align: center;
    border-left: 1px solid #ddd;
    border-top: 1px solid #ddd;
}
.widget_calendar caption {
	font-weight: 900;
	margin-bottom: 1.75em;
}
.widget_calendar tbody a {
	background-color: #007acc;
	color: #fff;
	display: block;
	font-weight: 700;
}
.widget_calendar tbody a:hover,
.widget_calendar tbody a:focus {
	background-color: #686868;
	color: #fff;
}
/* Tag Cloud widget */
.tagcloud a {
	border: 1px solid #d1d1d1;
	border-radius: 2px;
	display: inline-block;
	font-family: Frutiger, "Frutiger Linotype", Univers, Calibri, "Gill Sans", "Gill Sans MT", "Myriad Pro", Myriad, "DejaVu Sans Condensed", "Liberation Sans", "Nimbus Sans L", Tahoma, Geneva, "Helvetica Neue", Helvetica, Arial, sans-serif;
	line-height: 1;
	margin: 0 0.1875em 0.4375em 0;
	padding: 0.5625em 0.4375em 0.5em;
}
.tagcloud ul {
	list-style-type: none;
	margin-left: 0;
}
.tagcloud ul li {
	display: inline-block;
}
.tagcloud a:hover,
.tagcloud a:focus {
	border-color: #007acc;
	color: #007acc;
	outline: 0;
}
#primary-default.sidebar .widget:first-of-type{
    padding-top: 0;
}
.sticky-post {
	color: #686868;
	display: block;
	font-family: Frutiger, "Frutiger Linotype", Univers, Calibri, "Gill Sans", "Gill Sans MT", "Myriad Pro", Myriad, "DejaVu Sans Condensed", "Liberation Sans", "Nimbus Sans L", Tahoma, Geneva, "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 13px;
	font-size: 0.8125rem;
	letter-spacing: 0.076923077em;
	line-height: 1.6153846154;
	margin-bottom: 0.5384615385em;
	text-transform: uppercase;
}
.comments-area {
	margin: 0 7.6923% 3.5em;
}
.comment-list + .comment-respond,
.comment-navigation + .comment-respond {
	padding-top: 1.75em;
}
.comments-title,
.comment-reply-title {
	border-top: 4px solid #1a1a1a;
	font-family: Frutiger, "Frutiger Linotype", Univers, Calibri, "Gill Sans", "Gill Sans MT", "Myriad Pro", Myriad, "DejaVu Sans Condensed", "Liberation Sans", "Nimbus Sans L", Tahoma, Geneva, "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 23px;
	font-size: 1.4375rem;
	font-weight: 700;
	line-height: 1.3125;
	padding-top: 1.217391304em;
}
.comments-title {
	margin-bottom: 1.217391304em;
}
.comment-list {
	list-style: none;
	margin: 0;
}
.form-allowed-tags code {
	font-family: Inconsolata, monospace;
}
/* Make sure embeds and iframes fit their containers. */
embed,
iframe,
object,
video {
	margin-bottom: 1.75em;
	max-width: 100%;
	vertical-align: middle;
}
p > embed,
p > iframe,
p > object,
p > video {
	margin-bottom: 0;
}
.wp-caption {
	margin-bottom: 1.75em;
	max-width: 100%;
}
.wp-caption img[class*="wp-image-"] {
	display: block;
	margin: 0;
}
.wp-caption .wp-caption-text {
	color: #686868;
	font-size: 13px;
	font-size: 0.8125rem;
	font-style: italic;
	line-height: 1.6154;
	padding: 0.5em;
    margin: auto;
}
.wp-caption .wp-caption-text:before,
.wp-caption .wp-caption-text:after{
    clear: both;
content: "";
}
.gallery-icon img {
	margin: 0 auto;
}
.gallery-caption {
	color: #686868;
	display: block;
	font-size: 13px;
	font-size: 0.8125rem;
	font-style: italic;
	line-height: 1.6154;
	padding-top: 0.5385em;
}
.gallery-columns-6 .gallery-caption,
.gallery-columns-7 .gallery-caption,
.gallery-columns-8 .gallery-caption,
.gallery-columns-9 .gallery-caption {
	display: none;
}

/* ************************************************** VI - Media Queries */  
@media screen and ( min-width: 1440px ){
    .wrapper{
        max-width: 1480px;
        margin: 0 auto;
    }
} 
@media screen and ( max-width: 599px ){
    .melody-html-widget-three{
        display: block;
        width: 100%;
    }
    .melody-html-widget-three .mldywidget-first-child,
    .melody-html-widget-three .mldywidget-second-child,
    .melody-html-widget-three .mldywidget-third-child{
        width: 100%;
    }
}

@media screen and ( max-width: 768px ){
    .melody-html-widget-two{
        display: block;
    }
    .second-child,
    .third-child{
        padding-top: 0;
        margin-top: -1.5284em;
    } 
}
@media screen and ( min-width: 980px ){
    .parent{
        grid-template-columns: 1fr minmax(0, 3fr);
        min-height: 66vh;
        display: grid;
    }
    .page-template-three-columns .parent{
        grid-template-columns: 1fr minmax(0, 3fr) 1fr;
    }
    .first-child{
        padding-right: 5px;  
    }
    .second-child{
        
        min-width: 290px;   
    }
    .third-child{
        padding-right:0;
    }
    .third-child.padded{
        padding-top: .675em;
        padding-left: 1.75em
    } 

    .melody-html-widget-two{
        grid-template-columns: 1fr minmax(0, 1fr);
    }
    .melody-html-widget-three{
        display: flex;
        flex-direction: row;
        align-content: flex-start;
        justify-content: space-between;
        width: 100%;
    }
    .melody-html-widget-two .mldywidget-first-child{
        word-wrap: anywhere;
    }
    .melody-html-widget-two .mldywidget-second-child{
        word-wrap: anywhere;
    }
    .melody-html-widget-three .mldywidget-first-child,
    .melody-html-widget-three .mldywidget-second-child,
    .melody-html-widget-three .mldywidget-third-child{
        flex: 1 1 100%;
    }
    .inner-wide-header{
        flex-direction: row;
        justify-content: center;   
        min-height: 1px;
        width: 100%;
        padding-bottom: .444em;
    } 
    .inner-wide-header > .hsection{
        padding: 0 1em;
        line-height: 1.486;
    } 
    .hgroup{
        order: 2;
    }
    .logo-top{
        order: 3;
    }
    .melody-search-top{
        order: 1;
        margin-top: 2.75em;
    } 
    .page-nav-wrapper a{
        font-weight: 400;
    }
    .navbar-toggle{
        visibility: hidden;
        margin-top: -1em;
    }
    .second-child .article-heading:not(.page-template-landing-page .article-heading){
        margin-top: -1em;
    }
    .third-child .widget-title:first-of-type{
        margin-top: .25em;
    }
    .blog .attachment-thumbnail.size-thumbnail{
        max-width: initial;
        width: initial;
    }
    .inner-article-content{
        font-size: 100%;
    }
    .blog .home-excerpt-thumb{
        width: 8em;
        height: 8em;
    }
} 