/*---------------------------------------------------------------*/
/* =Media queries
-------------------------------------------------------------- */

/* Does the same thing as <meta name="viewport" content="width=device-width">,
 * but in the future W3C standard way. -ms- prefix is required for IE10+ to
 * render responsive styling in Windows 8 "snapped" views; IE10+ does not honor
 * the meta tag. See https://core.trac.wordpress.org/ticket/25888.
 */
@-ms-viewport {
	width: device-width;
}
@viewport {
	width: device-width;
}

/* Minimum width of 600 pixels. */
@media screen and (min-width: 600px) {
	.author-avatar {
		float: left;
		margin-top: 8px;
		margin-top: 0.571428571rem;
	}
	.author-description {
		float: right;
		width: 80%;
	}
	.site {
		margin: 0 auto;
		max-width: 1100px;
		overflow: hidden;
	}	
	.main-navigation ul.nav-menu,
	.main-navigation div.nav-menu > ul {
		background-color:#fff;
		border-bottom: 1px solid #ededed;
		border-top: 1px solid #ededed;
		display: inline-block !important;
		text-align: left;
		width: 100%;
		padding-left: 20px;
		padding-right: 20px;
	}
	.main-navigation ul {
		margin: 0;
		text-indent: 0;
	}
	.main-navigation li a,
	.main-navigation li {
		display: inline-block;
		text-decoration: none;
	}
	.main-navigation li a {
		border-bottom: 0;
		line-height: 3.692307692;
		text-transform: uppercase;
		white-space: nowrap;
	}
	.main-navigation li a:hover {
		color: #848484;
	}
	.main-navigation li {
		margin: 0 20px 0 0;
		margin: 0 1.5rem 0 0;
        position: relative;
	}
	.main-navigation li ul {
		margin: 0;
		padding: 0;
		position: absolute;
		top: 100%;
		z-index: 2;
		height: 1px;
		width: 1px;
		overflow: hidden;
		clip: rect(1px, 1px, 1px, 1px);
	}
	.main-navigation li ul ul {
		top: 0;
		left: 100%;
	}
	.main-navigation ul li:hover > ul,
	.main-navigation ul li:focus > ul,
	.main-navigation .focus > ul {
		border-left: 0;
		clip: inherit;
		overflow: inherit;
		height: inherit;
		width: inherit;
	}
	.main-navigation li ul li a {
		background-color:#ededed;
		border-bottom: 1px solid #ededed;
		display: block;
		font-size: 11px;
		font-size: 0.785714286rem;
		line-height: 2.181818182;
		padding: 8px 10px;
		padding: 0.571428571rem 0.714285714rem;
		width: 180px;
		width: 12.85714286rem;
		white-space: normal;
	}
	.main-navigation li ul li a:hover {
		color: #444;
		background-color:#f5f5f5;
	}
	.menu-toggle {
		display: none;
	}
	.entry-header .entry-title {
		font-size: 36px;
		font-size: 2.571428571rem;
	}
	#respond form input[type="text"] {
		width: 46.333333333%;
	}
	#respond form textarea.blog-textarea {
		width: 79.666666667%;
	}
	.fourmagz-login-inner {
    	width:485px;
	}
	.ajax-auth input#username, .ajax-auth input#password, .ajax-auth input#nick_name, .ajax-auth input#name, .ajax-auth input#signonname, .ajax-auth input#email, .ajax-auth input#signonpassword, .ajax-auth input#password2, .ajax-auth input#user_login{
	    margin: -10px 0;
	}
	.template-front-page .site-content,
	.template-front-page article {
		overflow: hidden;
	}
	.template-front-page.has-post-thumbnail article {
		float: left;
		width: 47.916666667%;
	}
	.entry-page-image {
		float: right;
		margin-bottom: 0;
		width: 47.916666667%;
	}
	.template-front-page .widget-area .widget,
	.template-front-page.two-sidebars .widget-area .front-widgets {
		float: left;
		width: 51.875%;
		margin-bottom: 24px;
		margin-bottom: 1.714285714rem;
	}
	.template-front-page .widget-area .widget:nth-child(odd) {
		clear: right;
	}
	.template-front-page .widget-area .widget:nth-child(even),
	.template-front-page.two-sidebars .widget-area .front-widgets + .front-widgets {
		float: right;
		width: 39.0625%;
		margin: 0 0 24px;
		margin: 0 0 1.714285714rem;
	}
	.template-front-page.two-sidebars .widget,
	.template-front-page.two-sidebars .widget:nth-child(even) {
		float: none;
		width: auto;
		
	}
	.commentlist .children {
		margin-left: 48px;
		margin-left: 3.428571429rem;
	}
}

@media screen and (min-width: 960px) {
	body .site {
		box-shadow: 0 2px 6px rgba(100, 100, 100, 0.3);
	}
	body.custom-background-empty {
		background-color: #fff;
	}
	body.custom-background-empty .site,
	body.custom-background-white .site {
		padding: 0;
		margin-top: 0;
		margin-bottom: 0;
		box-shadow: none;
	}
	.home .entry-header, 
	.category .entry-header, 
	.tag .entry-header, 
	.archive .entry-header, 
	.search .entry-header {
		padding: 15px;
		display: inline-block;
	}
	.entry-header {
		margin-bottom: 0;
	}
	.format-status ul > li {
		margin: 0;
		padding-right:20px;
	}
	.single .format-status .entry-content h1 {
		font-size: 24px;
		font-size: 1.8rem;
		line-height: 1.5;
	}
	.img-single{
		margin-bottom: 10px;
	}
	.entry-header .title-list-home {
        font-size: 20px;
        font-size: 1.464376rem;
    }
    .widget .repost__title h2 {
        font-size: 16px;
        font-size: 1.163489rem;
        line-height: 1.1;
    }
    .widget .popular__title h2{
        font-size: 16px;
        font-size: 1.123489rem;
        line-height: 1.3;
    }
    .widget-area .widget p, .widget-area .widget li, 
    .widget-area .widget .textwidget {
        font-size: 14px;
        font-size: 1rem;
        line-height: 1.2;
    }
	/* page template */
	.page-template-default .site-content {
		width: 70%;
		padding-right: 15px;
	}
	.page-template-default .widget-area {
		width: 30%;
	}
	.entry-header .entry-title-single {
        font-size: 34px;
        font-size: 2.5rem;
        line-height: 1.1;
    }
	/* page front page theme */
	.page-template-front-page .container {
		display: block;
	}
	.template-front-page.two-sidebars .widget-area .front-widgets {
		width: 50%;
	}
	.template-front-page.two-sidebars .widget-area .front-widgets + .front-widgets {width: 48%;}
	.template-front-page .widget-area .widget li { width: 97%; }
	
	.hide-md{display:none!important}
	
	/* =Gride Layout Fourmagz
	-------------------------------------------------------------- */	
	.container{
		display: flex;
		padding: 20px 20px 0 20px;
		background-color: #f5f5f5;
		width: 97.1279%;
	}
	
	.widget-area .widget p,
	.widget-area .widget li,
	.widget-area .widget .textwidget {
		width: 95%;
	}

	/* Container */
	.main-container {
		width:100%;
		left:0;
	}

	.main-container-2cr {
		width:70%;
		left:0;
		padding-right: 15px;
	}

	.right-sidebar-2cr {
		width:30%;
	}
	.main-container-2cl {
		width: 75%;
		left: 25%;
		padding-left: 15px;
	}
	.left-sidebar-2cl {
		width:25%;
		right:75%;
	}
	.main-container-3cm {
		width: 46.333%;
		left: 23.33333%;
		padding-left: 5px;
		padding-right: 15px;
	}
	.left-sidebar-3cm {
		width: 23.33333%;
		right: 47.999%;
	}
	.right-sidebar-3cm {
		width:30%;
	}
	
	/* Header */
	.header-container-2cl {
		width:70%;
		left:30%;
	}
	.left-header-2cl{
		width:30%;
		right:70%;
	}

	.header-container-2cr {
		width:70%;
	}
	.right-header-2cr{
		width:30%;
	}

	.header-container-3cm {
		width:40%;
		left:30%;
	}
	.right-header-3cm {
		width:30%;
	}
	.left-header-3cm {
		width:30%;
		right:40%;
	}

	/* Footer widget */
	.footer-container-2cl {
		width:70%;
		left:30%;
	}
	.left-footer-2cl{
		width:30%;
		right:70%;
	}

	.footer-container-2cr {
		width:70%;
	}
	.right-footer-2cr{
		width:30%;
	}

	.footer-container-3cm {
		width:40%;
		left:30%;
	}
	.right-footer-3cm {
		width:30%;
	}
	.left-footer-3cm {
		width:30%;
		right:40%;
	}
	.widget ul > li {
		padding: 7px;
	}
}

/* Small devices (landscape phones, less than 768px) */ 
@media only screen and (min-width: 768px) and (max-width: 959px) { 
	body {
		width: 100%;
		margin:0 auto;
		background: rgb(232,232,232);
		color: rgb(60,60,60);
		-webkit-text-size-adjust: 100%; /* Stops Mobile Safari from auto-adjusting font-sizes */
	}
	/* home */
	.center-header .logo-header {
		padding-left: 20px;
	}
	.logo-header img {
		max-width: 300px;
	}
	.ads-header {
		margin-top: 0;
		padding-left: 3rem;
	}
	.left-header-3cm .social-header {
		display: inline-block;
		float: left;
		margin: 20px 0;
	}
	.main-navigation li {
		margin: 0 20px 0 0;
		margin: 0 1.557142857rem 0 0;
	}	
	.home .site-content article, 
	.archive .site-content article, 
	.search .site-content article {
		margin-bottom: 5px;
	}
	.widget-area .widget {
		background-color: #fff;
		padding: 10px;
	}
	.widget-area .widget p, 
	.widget-area .widget li, 
	.widget-area .widget .textwidget {
		border: none;
	}
	.widget .popular__info {
		margin-right: 10px;
		font-size: 14px;
	}
	.entry-header .title-list-home {
		font-size: 18px;
		font-size: 1.424376rem;
		padding-right: 10px;
	}
	.widget-area .widget p, 
	.widget-area .widget li, 
	.widget-area .widget .textwidget {
		font-size: 14px;
		font-size: 1.08571429rem;
	}
	.widget .repost__title h2 {
		font-size: 13px;
		font-size: 1.2163489rem;
		line-height: 1.3;
	}
	.widget .popular__title h2 {
		font-size: 1.295765rem;
		font-weight: normal;
		line-height: 1.7rem;
	}
	.archive-title, 
	.page-title,
	.entry-content th, 
	.comment-content th {
		padding-left: 20px;
	}
	.entry-header img.img-home {
	    margin-bottom:5px;   
	}
	/* single */
	img.img-single {
		width: 100%;
		height: auto;
	}
	.relatedposts h3 {
		padding-left: 5px;
	}
	/* footer */
	footer .footer-top {
		margin: 0 10px 15px;
	}
	
}

/* Minimum width of 768 pixels. */
@media screen and (max-width: 767px) {
	body {
		background: rgb(232,232,232);
		overflow: hidden;
		color: rgba(60, 60, 60, 0.88);
		-webkit-text-size-adjust: 100%; 
		/* Stops Mobile Safari from auto-adjusting font-sizes */
	}
	/* Home */
	.fourmagz-header {
		display:none;
	}
	.mh-head .mh-text .site-description {display:none;}
	.search-on{
		display:none;
	}
	.site-header {
		padding: 0;
		background-color: #fff;
		display: block;
		position: relative;
	}
	.logo-header {
		margin-top: 0;
		margin-left:-40px;
	}
	.logo-header img {
		max-width: 200px;
	}	
	.home .site-content article, 
	.archive .site-content article, 
	.search .site-content article {
		margin-bottom: 5px;
		display: inline-block;
		padding: 0;
	}
	.entry-header img.img-home {
		float: left;
		margin-right: 15px;
		margin-bottom: 5px;
	}
	.entry-header .title-list-home {
		line-height: 20px;
		font-weight: 400;
		font-size: 1.186rem;
		top: 0;
	}
	.search .entry-header{
	    padding:20px;
	}
	.page .entry-header .entry-title,
	.search .entry-header .entry-title{
        font-size: 34px;
        font-size: 2.271428571rem;
        padding-bottom: 10px;
    }
	/* Ads settings */
	.ads-mobile-header {
		display:block;
	}
	.ads-header {
		max-width: 100%;
		margin: 20px 10px 10px;
	}
	.ads-header img{
        width:100%;
    }
    
	/* post status format */
	.format-status .entry-content h1 {
		line-height: 1.2;
		font-size: 1.3rem;
		padding: 0 15px;
		margin-bottom: 10px;
	}
	.format-status .entry-header {
		margin-bottom: 10px;
		margin-bottom: 1.114285714rem;
	}
	.format-status .entry-content h1 {
			padding: 0 15px;
	}
	.format-status ul {
		padding:0 15px;
	}
	.format-status ul > li {
		padding-right:20px;
	}
	.img-single {
		margin-left: -15px;
		margin-right: -30px;
		padding-bottom: 10px;
	}
	.entry-header ul > li {
		line-height: 18px;
		font-weight: 400;
		font-size: 0.886rem;
	}
	.home footer.entry-meta,
	.caregory footer.entry-meta,
	.archive footer.entry-meta,
	.tag footer.entry-meta,
	.search footer.entry-meta{
		display:none;
	}
	.entry-header {
		margin-bottom: 0;
	}
	.widget .repost__title h2 {
		font-size: 18px;
		font-size: 1.253489rem;
	}
	.widget .repost__title span {
		font-size: 14px;
		line-height: 2.2;
	}
	.widget .popular__title h2 {
		font-size: 1.18765rem;
		font-weight: 300;
		line-height: 1.2;
	}
	.relatedposts h2 {
		font-size: 18px;
		line-height: 1.2;
	}
	.footer-top h3.widget-title {
		font-size: 18px;
		font-size: 1.367rem;
	}
	.footer-top aside > ul > li {
		font-size: 16px;
		font-size: 1.14571429rem;
		line-height: 1.3;
	}
	/* Mobile Header */
	.mobile-menus{
		display:block;
	}
	header.mobile_stickytop {
		left: 0;
		position: fixed;
		right: 0;
		top: 0;
		z-index:9;
	}
	.nav-previous, .previous-image, .nav-next, .next-image {
		width: 95%;
		padding: 10px;
		font-size: 15px;
		font-weight: 600;
		display: inline-block;
	}
	.relatedposts .relatedthumb {
		width: 100%;
	}
	.entry-header .entry-title-single {
		font-size: 24px;
		font-size: 1.8rem;
		line-height: 1.2;
		font-weight: normal;
	}
	.comments-area {
		margin-bottom: 20px;
		margin-top: 20px;
	}
	.comments-title {
		margin-bottom: 0;
		padding: 10px;
	}
	.widget-area {
        width: 100%;
    }
	.widget-area .widget {
		background-color: #fff;
		padding: 10px;
	}
	.widget-area .widget p, 
	.widget-area .widget li, 
	.widget-area .widget .textwidget {
		border: none;
		border-bottom: 1px solid #ededed;
		padding-bottom: 10px;
		padding-top: 5px;
		font-size: 16px;
		font-size: 1.112571429rem;
		line-height: 1.2;		
	}
	.widget .popular__info {
		margin-right: 10px;
		float: left;
	}
	.archive-title, 
	.page-title,
	.entry-content th, 
	.comment-content th {
		padding-left: 20px;
	}
	/* single */
	img.img-single {
		width: 100%;
		height: auto;
	}
	.relatedposts h3 {
		padding-left: 5px;
	}
	/* footer */
	footer .footer-top {
		margin: 0 10px 15px;
	}
	footer .footer-top {
		display: inline-block;
	}
	.footer-container-3cm, 
	.footer-top-left,
	.footer-top-right{
		width: 100%;
		left: 0;
		right: 0;
	}
	.entry-header .entry-meta {
		padding-top: 5px;
		
	}	
}

/* Maximum width of 320 pixels. */
@media screen and (max-width: 320px) {
	body {
		background: rgb(232,232,232);
		color: rgb(60,60,60);
		-webkit-text-size-adjust: 100%; /* Stops Mobile Safari from auto-adjusting font-sizes */
	}
	.logo-header {
		margin-top: 5px;
	}
	.logo-header img {
		max-width: 200px;
	}
	.site-header h1 a, .site-header h2 a {
		line-height: 25px !important;
	}
	/* home */
	.headline-category {
		font-size: 12px;
	}
	.headline-post .headline-title {
		padding: 10px;
		font-size: 12px;
		line-height: 1.4;
	}
	.headline-gradient {
		padding:0;
	}
	.headline-title h2 {
		font-size: 20px;
		line-height: 1.6rem;
	}
	.home .site-content article, 
	.archive .site-content article, 
	.search .site-content article {
		padding: 0;
	}
	.entry-header img.img-home {
		margin-right: 10px;
		width: 100px;
	}
	.entry-header .title-list-home {
		font-size: 12px;
		font-size: 0.874376rem;
		line-height: 1.4;
	}
	.entry-header ul > li {
		font-size: 11px;
		line-height: 0;
	}
	.entry-header .entry-title-single {
		font-size: 18px;
		font-size: 1.5rem;
	}
	.relatedposts h2 {
		font-size: 1.1rem;
		font-weight: 300;
		line-height: 18px;
	}
	.entry-header .img-homepage {
		margin-right: 10px;
		width: 100px;
	}
	.entry-header .img-homepage span {
		top: 10%;
		right: 30%;
	}
	/* Format Video */
    .format-video .fourmagz-video-frame{
    	height: 130px;
    }
}

/* =Print
----------------------------------------------- */

@media print {
	body {
		background: none !important;
		color: #000;
		font-size: 10pt;
	}
	footer a[rel=bookmark]:link:after,
	footer a[rel=bookmark]:visited:after {
		content: " [" attr(href) "] "; /* Show URLs */
	}
	a {
		text-decoration: none;
	}
	.entry-content img,
	.comment-content img,
	.author-avatar img,
	img.wp-post-image {
		border-radius: 0;
		box-shadow: none;
	}
	.site {
		clear: both !important;
		display: block !important;
		float: none !important;
		max-width: 100%;
		position: relative !important;
	}
	.site-header {
		margin-bottom: 72px;
		margin-bottom: 5.142857143rem;
		text-align: left;
	}
	.site-header h1 {
		font-size: 21pt;
		line-height: 1;
		text-align: left;
	}
	.site-header h2 {
		color: #000;
		font-size: 10pt;
		text-align: left;
	}
	.site-header h1 a,
	.site-header h2 a {
		color: #000;
	}
	.author-avatar,
	#colophon,
	#respond,
	.commentlist .comment-edit-link,
	.commentlist .reply,
	.entry-header .comments-link,
	.entry-meta .edit-link a,
	.page-link,
	.site-content nav,
	.widget-area,
	img.header-image,
	.main-navigation {
		display: none;
	}
	.wrapper {
		border-top: none;
		box-shadow: none;
	}
	.site-content {
		margin: 0;
		width: auto;
	}

	.entry-header .entry-title,
	.entry-title {
		font-size: 21pt;
	}
	footer.entry-meta,
	footer.entry-meta a {
		color: #444;
		font-size: 10pt;
	}
	.author-description {
		float: none;
		width: auto;
	}

	/* Comments */
	.commentlist > li.comment {
		background: none;
		position: relative;
		width: auto;
	}
	.commentlist .avatar {
		height: 39px;
		left: 2.2em;
		top: 2.2em;
		width: 39px;
	}
	.comments-area article header cite,
	.comments-area article header time {
		margin-left: 50px;
		margin-left: 3.57142857rem;
	}
}