/**
 * Media Queries
 *
 * This file is loaded after all other CSS in order to override styles at various browser widths.
 *
 */





 @media screen and (max-width: 1266px) {
	#header nav.logo-row {
		width: 30%;
	}
	#header nav.logo-row.left {
		margin-left: 1.3%;
	}
	#main-nav a {
		padding-left: 6px;
		padding-right: 6px;
	}

	/* donate/visit buttons */
     #nav-bar { right: 0px; }
     #nav-bar nav#top-nav-aux {
		margin-right: 24px;
   	 }

     /* Themify builder page columns */
     .pagewidth { width: auto; }

     div#pagewrap {
         width: auto;
         border: none;
     }

     div#layout.pagewidth {
         width: auto !important;
         max-width: 94% !important;
     }


 }
 @media screen and (max-width: 1190px) {
	 #header nav.logo-row {width: 29%;} nav.logo-row.right {width: 28%;}


 }
 @media screen and (max-width: 1140px) {
     /* Hide MassINC button */
     #headerwrap.fixed-header #top-nav-menu li:last-child { display: none; }
 }



 @media screen and (max-width: 1106px) {
	 #header nav.logo-row { width: 27%;}
     #header nav.logo-row.left {margin-left: 1.6%;}

     /* Search */
     #headerwrap #searchform-wrap, #headerwrap #searchform { right: 105px; }


     /* Themify builder page columns */
     .col4-1, .col4-2, .col4-3, .col3-1, .col3-2, .col2-1 {
         margin-left: 2% !important;
     }
     .col4-1 {
         width: 23.1%;
     }
     .col3-2.last {
         width: 66%;
         max-width: 66%;
     }

     /* Featured Quote box */
     .featured-quote-module .tab-content .listing-item > .excerpt {
         font-size: 0.9em;
     }

     /* Print Issues all */
     body.page.page-id-19790 .page-content .print-issue-taxonomy-meta {

         width: 30%;
         height: 416px;
     }
     body.page.page-id-19790 .page-content .print-issue-taxonomy-meta .actions .view-pdf {
         font-size: 0.8em;
     }

     /* Authors */
     .author-bios.style-page .author-bio {
         min-height: 120px;
     }

 }


 @media screen and (max-width: 1066px) {
  	 #header nav.logo-row {width: 26%;}
     #header nav.logo-row.left {margin-left: 0.5%;}

     #headerwrap #top-nav-menu li:last-child {
         display: none;
     }

     /* Search */
     #headerwrap #searchform-wrap, #headerwrap #searchform { right: 47px;  }


     #headerwrap.fixed-header nav.logo-row.right { width: 69%; }
     #headerwrap.fixed-header #top-nav-menu li:nth-last-child(2) { display: none; }


     /* Authors */
     .author-bios.style-page .author-bio .author-image {
         max-width: 39%;

     }


 }
 @media screen and (max-width: 998px) {
 	#header nav.logo-row {width: 24%;}
     #header nav.logo-row.left {margin-left: 0.6%;}
     #headerwrap.fixed-header #header nav.logo-row.right {margin-left: 0.6em;}


     /**
      * Homepage
      */
     .special-series-module .tab-content .listing-item:last-of-type h3.title { display: none; }

 }
 @media screen and (max-width: 990px) {


 	#header nav.logo-row > ul > li { display: none; }
	#header nav.logo-row.right > ul > li:first-child { display: list-item; visibility: hidden; }
    #headerwrap.fixed-header #header nav.logo-row.right > ul > li:first-child { display: list-item; visibility: visible; }


     #header nav.logo-row.left ul li.menu-name-menu { display: list-item; }


     /** Nav Bar drops beneath logo, goes full width **/
     #header hgroup { margin: 0; width: 100%; }
     #header nav.logo-row.left { display: none; }
     #header nav.logo-row.right { width: 100%; top: 0px; margin: 1em 0; }
     #header nav.logo-row.right > ul > li:first-child {visibility: visible; }
     #headerwrap #main-nav { overflow: hidden !important; max-height: 100%; padding: 0px 5px; }
     #headerwrap #main-nav li { display: list-item !important; float: left; }
     #headerwrap #main-nav li a { color: #A01525; padding: 6px 6px 7px 6px !important; }

     #headerwrap #main-nav li a:hover,
     #headerwrap #main-nav li a:active { color: #FFF; background-color: #752225 !important; }


     /* Fixed Header */
     #headerwrap.fixed-header #main-nav li a { padding: 5px 6px 7px 6px !important; }

     #headerwrap.fixed-header #main-nav li.menu-item-dynamic.menu-name-menu i.fa {   }



     /* Social */
     #headerwrap .social-widget { top: 45px; }
     .social-widget .rss { display: none; }
     .social-widget:after { display: none; }


     /* Donate / Visit MassINC  */
     .float-header #top-nav-menu li:last-child { display: none; }
     #top-nav-menu li:last-child { display: none; }

     #nav-bar { height: 16px; } /* reduce header top padding */
     #nav-bar nav { top: 61px; }
     #nav-bar nav#top-nav-aux { margin-right: 6px; }

     /* Search */
     #headerwrap #searchform-wrap,
     #headerwrap #searchform { top: 24px; right: 40px; }




     /** END Logo above nav bar **/

     /* Fixed header */
     #headerwrap.fixed-header #header nav.logo-row.right {
         margin-top: 0; margin-bottom: 0; margin-right: 0;
         left: 6px; top: 35px; width: 68%;
     }
     #headerwrap.fixed-header #header hgroup { float: left; }
     #headerwrap.fixed-header #nav-bar { display: none; }



     /* Print Issues all */
     body.page.page-id-19790 .page-content .print-issue-taxonomy-meta {

         width: 28%;
         height: 396px;
     }

    /* Single */

     .related-posts article,
     .related-posts article:nth-child(odd) {
         float: none;
         width: auto;
         margin-left: 1em;
         height: auto;
         min-height: auto;

     }
     .related-posts article:last-child {
         margin-bottom: 32px !important;
     }
     .related-posts .related-title { margin-bottom: 23px; }

     .post-nav .next-text a,
     .post-nav .prev-text a {
         font-size: 0.9em;
         line-height: 105%;

     }

     /* Footer */
     footer .col3-1.first:nth-of-type(2),
     footer .col3-2 { width: 100%; max-width: 100%; clear: both; }


     footer .col3-1.first:nth-of-type(2) > .widget {
         float: left;
         margin-right: 1em;
     }


 }

 @media screen and (max-width: 940px) {
 	#header nav.logo-row {width: 23%;} #header nav.logo-row.left {margin-left: 0.4%;}

	#wpadminbar #wp-admin-bar-themify_builder { width: 24px; height: 32px; overflow: hidden; }


     /* Featured Quote box */
     .featured-quote-module .tab-content .listing-item > .excerpt {
         font-size: 0.8em;
     }
     .featured-quote-module .tab-content .listing-item > .excerpt:before {
         top: -13px;
     }

     /* Special Series Tab Module */
     .special-series-module .tab-content .listing-item h3.title {
         white-space: nowrap;
         text-overflow: ellipsis;
         overflow: hidden;
     }

 }
 @media screen and (max-width: 900px) {
     #header nav.logo-row {width: 22%;}
     #header nav.logo-row.left {margin-left: 0.3%;}
     #headerwrap.fixed-header #header nav.logo-row.right { top: 34px; }



 }

 @media screen and (max-width: 870px) {
     #header nav.logo-row {width: 22%;} #header nav.logo-row.left {margin-left: 0.3%;}
 }

 @media screen and (max-width: 840px) {
	#header nav.logo-row {width: 21%;}
 	#header nav.logo-row > ul > li { display: none; }
	#header nav.logo-row.right > ul > li.menu-name-menu:first-child { display:list-item; }



     #header nav.logo-row.right > ul > li { display: list-item; }
    #headerwrap.fixed-header #header nav.logo-row.right { top: 30px; }


     body.page.page-id-19790 .page-content .print-issue-taxonomy-meta h3 { font-size: 0.8em; }

}
 @media screen and (max-width: 815px) {
     #header nav.logo-row {width: 19%;}

 }

 @media screen and (max-width: 780px) {
	.mobile-home-articles {
		display: block;
	}

     .top-nav-sidr.sidr {
         padding: 0px;
         width: 210px;
     }
     .admin-bar .sidr,
     body.admin-bar nav#top-nav-sidr {
         top: 47px;
     }
     .admin-bar #headerwrap.fixed-header {
         top: 47px;
         transition: top 0.3s linear;

     }


     #headerwrap.fixed-header #header nav.logo-row.right {
         top: 34px;
     }

	 /* Remove theme default right-hand sidr nav trigger */
	 #header #menu-icon { display: none; }


     /* Donate */
     #headerwrap #nav-bar { position: absolute; right: 0px; top: 0px;  }

     #headerwrap #nav-bar a#menu-icon-top { display: none; }
     #nav-bar nav { top: 82px; }

     /* Social */
     #header .social-widget { text-align: left; position: absolute !important; top: 29px; left: 0px; }
     #header .social-widget .themify-social-links {   }


     /**
      * Sidebar column drops beneath main content column
      * Don't make sidebar full width
      */

     aside#sidebar,
     .sidebar1 #sidebar-alt,
     .sidebar1 #sidebar {
         margin-top: 1em;
         padding-top: 1em;
         border-top: 1px #CAB76A solid;
     }
     aside#sidebar > div,
     .sidebar1 #sidebar-alt > div,
     .sidebar1 #sidebar > div {
         max-width: 450px;
         width: auto !important;
         margin: 0 auto 2em auto;

     }
     #sidebar .current-print-issue { max-width: 450px; }

     /* Sidebar items */
     #sidebar .current-print-issue {
         margin: 0 auto;
     }


     /**
      *
      * Homepage
      *
      **/

     /* Row 1 */
     #themify_builder_content-84 .module_row_0 .tb-column:nth-of-type(1) {
         display: none;
     }
     #themify_builder_content-84 .module_row_0 .tb-column.col4-2 {
         width: 60%;
         max-width: 60%;
     }
     #themify_builder_content-84 .module_row_0 .tb-column.col4-1 {
         width: 33%;
         max-width: 33%;
         margin-left: 4% !important;
     }
     /* Row 2 */
     #themify_builder_content-84 .module_row_1 .tb-column.col4-2 {
         width: auto;
         max-width: 100%;
         clear: both;
         float: none;
     }

     /* Row 3 */
     #themify_builder_content-84 .module_row_2 > .row_inner > .tb-column {
         width: auto;
         max-width: 100%;
         clear: both;
         float: none;
     }
     #themify_builder_content-84 .module_row_2 > .row_inner > .tb-column.col3-1 {
         max-width: 350px;
     }
     #themify_builder_content-84 .module_row_2.ad-center > .row_inner > .tb-column.col3-1 {
         max-width: 100%;
     }
     /**
      * Homepage SS tabbed box
      */
     .special-series-module .tab-content .listing-item:last-of-type h3.title { display: block; }

     .special-series-module .tab-content .listing-item h3.title {
         white-space: normal;

     }

 }

 @media screen and (max-width: 720px) {

     /* Fixed header */
     #headerwrap.fixed-header #header #site-logo {
         margin: 5px 0px;
     }

     #headerwrap.fixed-header #header nav.logo-row.right {
         top: 20px;
         height: 21px;
         font-size: 0.9em;
     }

     #headerwrap.fixed-header #header nav.logo-row.right #main-nav li a {


     }

     #headerwrap.fixed-header #main-nav li.menu-item-dynamic.menu-name-menu a { padding-top: 2px !important;   }

     #headerwrap.fixed-header #main-nav li.menu-item-dynamic.menu-name-menu i.fa { font-size: 14px;  }

     #headerwrap.fixed-header #main-nav li.menu-item-dynamic.menu-name-more a { padding-top: 6px !important;   }




     .listing-item.thumb-top-large .half {
         width: 100%;
         text-align: left;
         float: none;
         clear: both;
         margin-left: 0;
     }
     .listing-item.thumb-top-large .half.first h3,
     .listing-item.thumb-top-large .half.first .authors {
         text-align: left;
     }

     /* Print Issues all */
     body.page.page-id-19790 .page-content .print-issue-taxonomy-meta {

         width: 30%;
         height: 386px;
     }

     /**
      * Footer Mission Statement Row
      */
     #footer #text-1020.widget .textwidget ul { display: block; }
     #footer #text-1020.widget .textwidget ul > li {
         display: block;
         width: auto !important;
         max-width: 100% !important;
         text-align: center !important;
         padding: 0.6em 0.2em;
     }
     #footer .widget#text-1020 .textwidget { padding: 1em; }



 }
 @media screen and (max-width: 640px) {

     /* Social */
     #header .social-widget,
     #headerwrap #nav-bar .social-links { display: none; }

     /* Donate */
     #nav-bar nav#top-nav-aux { display: none; }




     #headerwrap #main-nav li a { color: #A01525;  }
     #headerwrap #main-nav li.menu-name-more a { padding-bottom: 11px !important; }

     #headerwrap.fixed-header hgroup { min-width: 140px; }
     #headerwrap.fixed-header #header nav.logo-row.right { width: 65%; border: none; }

     /* Print Issues all */
     body.page.page-id-19790 .page-content .print-issue-taxonomy-meta {

         width: 45%;
         height: 496px;
     }

     /* Authors */
     .author-bios.style-page .author-bio {
         font-size: 0.8em;
     }
     .author-bios.style-page .author-bio .author-image {
         max-width: 43%;
         right: 0;

     }
     .author-bios.style-page .author-bio.photo-style-normal .author-image {
         right: 1em;
     }


     .author-bios.style-page .author-bio.has-photo .author-name,
     .author-bios.style-page .author-bio.has-photo .author-title-org,
     .author-bios.style-page .author-bio.has-photo .author-social-links,
     .author-bios.style-page .author-bio.has-photo .author-description {
         position: relative;
         margin-left: 0;
         width: 65%;
     }

     .author-bios.style-page .author-bio.has-photo.photo-style-normal .author-name,
     .author-bios.style-page .author-bio.has-photo.photo-style-normal .author-title-org,
     .author-bios.style-page .author-bio.has-photo.photo-style-normal .author-social-links,
     .author-bios.style-page .author-bio.has-photo.photo-style-normal .author-description {
         position: relative;
         margin-left: 0;
         width: 63%;
     }




     #wpadminbar {  position: fixed;}

}
 @media screen and (max-width: 480px) {

     /**
      * Themify builder columns: one column only for mobile
      */
     .themify_builder_content .tb-column {
         width: 100% !important;
         max-width: 100% !important;
         margin-left: 0 !important;
     }

     /**
      * Homepage-specific
      */
     #themify_builder_content-84 .module_row_0 .tb-column.col4-1 { margin-left: 0 !important; }
     body.home.page-id-84 .col4-2.middle.tb-column .listing-item.thumb-left-small { margin-left: 0; margin-right: 0; }
     body.home .listing-item.author-feature img.author-photo { width: auto; max-height: 116px; }


     #site-logo { padding-right: 0px !important; }

     #headerwrap { margin-bottom: 1em; }



     #headerwrap nav.logo-row.right { float: none; width: 50px; height: auto; border: none; margin: 0 auto;}
     #headerwrap nav.logo-row.right #main-nav {   }
     #headerwrap #main-nav > li {display: none !important;}

     #headerwrap nav.right #main-nav > li.menu-name-menu {display: list-item !important;}

     #headerwrap #main-nav li.menu-item-dynamic.menu-name-menu a {
         padding: 4px 6px 4px 6px !important;
         color: #FFF;
         background-color: #A01525;
         -moz-border-radius: 4px;
         -webkit-border-radius: 4px;
         border-radius: 4px;
         -khtml-border-radius: 4px;
     }

     #headerwrap #main-nav li.menu-item-dynamic.menu-name-menu a:link,
     #headerwrap #main-nav li.menu-item-dynamic.menu-name-menu a:visited {     }

     #headerwrap #main-nav li.menu-item-dynamic.menu-name-menu a:hover,
     #headerwrap #main-nav li.menu-item-dynamic.menu-name-menu a:active {  background-color: #752225;  }



     /* Fixed header */
     #headerwrap.fixed-header #site-logo { padding: 0px; }
     #headerwrap.fixed-header hgroup { width: auto; }

     #headerwrap.fixed-header #header nav.logo-row.right {
         float: left;
         width: 50px;
         height: 24px;
     }

     #headerwrap #main-nav li.menu-item-dynamic.menu-name-menu a {
         padding: 2px 6px 2px 6px !important;
         background: none !important;
     }
     #headerwrap #main-nav li.menu-item-dynamic.menu-name-menu a i.fa {
         padding: 4px 6px;
         background-color: #A01525;
         left: 0px;
         -moz-border-radius: 4px;
         -webkit-border-radius: 4px;
         border-radius: 4px; /* future proofing */
         -khtml-border-radius: 4px; /* for old Konqueror browsers */
     }
     #headerwrap #main-nav li.menu-item-dynamic.menu-name-menu a:hover > i.fa,
     #headerwrap #main-nav li.menu-item-dynamic.menu-name-menu a:active > i.fa {
         background-color: #752225;
     }

     li.menu-item-dynamic.menu-name-menu a i.fa { top: 0px; }

     /* Firefox only */
     @-moz-document url-prefix() {

         .fixed-header li.menu-item-dynamic.menu-name-menu a i.fa { top: -2px; }
         #headerwrap.fixed-header #main-nav li.menu-item-dynamic.menu-name-menu a i.fa { left: 0px; }
     }

     /* Footer */
     #footer .footer-widgets .col3-1.first,
     footer .col3-1.first:nth-of-type(2),
     footer .col3-2 {
         margin-left: auto !important;
         margin-right: auto !important;
     }
     #footer .widget.widget_nav_menu {
         float: none;
         text-align: center;
         min-height: 0px;
         margin-right: 0;
     }
     footer .col3-1.first:nth-of-type(2) > .widget,
     div#themify-social-links-1016 {
         float: none;
         margin: 0 auto 2em auto;
         clear: both;
         text-align: center;
     }

     .archive .post-title { font-size: 1.6em !important; }
     .archive .post-subtitle { font-size: 1.15em !important; }

     .related-posts article .post-title { font-size: 1.2em !important; }
     .related-posts article .post-subtitle { font-size: 0.9em !important; margin-top: 0.2em; }

     /* Single */

     .single #content > article .post-title { font-size: 1.8em !important; }

     .single #content > article .post-subtitle { font-size: 1.25em; }

     .page-title { text-align: center; }

     .post-nav td.prev, .post-nav td.next { display: table-cell; }
     .post-nav span.prev, .post-nav span.next { display: inline; }

     /**
      * Floated elements in post/page content
      */
     .single #content > article .photoright,
     .single #content > article .photoleft {
         float: none;
         clear: both;
         margin-bottom: 1em;
     }
     /**
     * Author Bio Block
     */
     .author-bios.style-block { position: relative; float: none; clear: both; margin-left: auto; margin-right: auto; }
     .author-bios.style-block .author-bio { margin-left: auto; margin-right: auto; }

     .related-posts article .post-image { margin-bottom: 50px; }


     /* Print Issues all */
     body.page.page-id-19790 .page-content .print-issue-taxonomy-meta {
         text-align: center;
         width: 80%;
         margin: 0 auto;

         height: auto;
         float: none;
     }
     body.page.page-id-19790 .page-content .print-issue-taxonomy-meta h3 { font-size: 1em; }


     /* Author pages */
     .author-bios.style-page .author-image {

     }

     .author-bios.style-page .author-bio.has-photo.photo-style-normal .author-name,
     .author-bios.style-page .author-bio.has-photo.photo-style-normal .author-title-org,
     .author-bios.style-page .author-bio.has-photo.photo-style-normal .author-social-links,
     .author-bios.style-page .author-bio.has-photo.photo-style-normal .author-description {
         position: relative;
         margin-left: 0;
         width: 54%;
     }
     .author-bios.style-page .author-bio.has-photo.photo-style-normal .author-name {
        font-size: 1.2em;
     }
     .author-bios.style-page .author-bio.has-photo.photo-style-normal .author-title-org {
         font-size: 0.9em;
     }


     /**
      * Homepage
      */

     /* SS tabbed box */
     .ui.module-tab.vertical.special-series-module .tab-content { height: 360px; }

     /* Featured Voices tabbed box */
     .featured-quote-module .tab-content .listing-item > .excerpt { max-height: 360px; }


 }

@media screen and (max-width: 350px) {
    /**
     * Homepage
     */
    .special-series-module .tab-content .listing-item:last-of-type h3.title { display: none; }

    .home .current-print-issue td.issue-image { visibility: hidden; width: 2em; padding: 0 !important; }
    .csstransforms3d .sidebar-none div.current-print-issue-wrapper tr.content > td { padding-top: 1.6em; }

    .featured-quote-module { padding-bottom: 120px; }
    .featured-quote-module .tab-content { height: 300px; }
    .featured-quote-module ul.tab-nav { top: 300px; }
    .featured-quote-module .tab-content .listing-item > .excerpt:before { color: #FFF; font-size: 1em; display: inline; position: relative; top:0;left: 0; font-weight: normal; }
    .featured-quote-module .tab-content .listing-item > .excerpt { padding: 1em; }
    .featured-quote-module .tab-content .listing-item > .excerpt:hover:before { color: #FFF; }

}
