/* Media max 1920px */
@media( max-width: 1920px ) {

	/* Post Box Grid */
	.content-two-sidebar .posts-box.posts-grid-4 .hentry {
		width: 33.333336%;
	}
		.content-two-sidebar .posts-box.posts-grid-4.standart .hentry:nth-child(4n+1) {
			clear: none;
		}
		.content-two-sidebar .posts-box.posts-grid-4.standart .hentry:nth-child(3n+1) {
			clear: left;
		}
		.content-two-sidebar .posts-box.posts-grid-4 .hentry:nth-child(n+4) {
			margin-top: 1.3125rem;
		}
}


/* Media max 1680px */
@media( max-width: 1680px ) {

	/* Post Box Grid */
	.content-two-sidebar .posts-box.posts-grid-4 .hentry,
	.content-two-sidebar .posts-box.posts-grid-3 .hentry {
		width: 50%;
	}
		.content-two-sidebar .posts-box.posts-grid-4.standart .hentry:nth-child(3n+1),
		.content-two-sidebar .posts-box.posts-grid-3.standart .hentry:nth-child(3n+1) {
			clear: none;
		}
		.content-two-sidebar .posts-box.posts-grid-4.standart .hentry:nth-child(2n+1),
		.content-two-sidebar .posts-box.posts-grid-3.standart .hentry:nth-child(2n+1) {
			clear: left;
		}
		.content-two-sidebar .posts-box.posts-grid-4 .hentry:nth-child(n+3),
		.content-two-sidebar .posts-box.posts-grid-3 .hentry:nth-child(n+3) {
			margin-top: 1.3125rem;
		}

	/* Post Box List */
	.content-two-sidebar .posts-box.posts-list .hentry .post-thumb-area {
		float: none;
		width: 100%;
		margin-bottom: 1.3125rem;
	}
	.content-two-sidebar .posts-box.posts-list .hentry h3.title,
	.content-two-sidebar .posts-box.posts-list .hentry .desc,
	.content-two-sidebar .posts-box.posts-list .hentry .info-wrap {
		margin-left: 0;
	}
}


/* Media max 1450px */
@media( max-width: 1450px ) {

	/* Layout */
	.var-col-main.content-right-sidebar,
	.var-col-main.content-left-sidebar {
		width: 70%;
	}
	.var-col-main.content-two-sidebar {
		width: 40%;
	}
	.var-col-sidebar {
		width: 30%;
	}

	/* Post Box Grid */
	.content-two-sidebar .posts-box[class*="posts-grid-"] .hentry {
		width: 100%;
		clear: left;
	}
	.content-two-sidebar .posts-box.posts-grid-4 .hentry:nth-child(n+2),
	.content-two-sidebar .posts-box.posts-grid-3 .hentry:nth-child(n+2),
	.content-two-sidebar .posts-box.posts-grid-2 .hentry:nth-child(n+2) {
		margin-top: 1.3125rem;
	}
}


/* Media max 1199px */
@media( max-width: 1199px ) {

	/* Form Elements */
	input.error + label.error,
	textarea.error + label.error,
	.contacts .wpcf7-form .wpcf7-not-valid-tip {
		display: none !important;
	}


	/* Layout */
	.var-col-main {
		padding-bottom: 2.5625rem;
		margin-bottom: 2.5625rem;
	}
	.var-col-main.content-right-sidebar,
	.var-col-main.content-left-sidebar,
	.var-col-main.content-two-sidebar {
		width: 100%;
		border: none;
	}
		.var-col-main.content-right-sidebar:before {
			right: 0;
		}
		.var-col-main.content-left-sidebar:before {
			left: 0;
		}
		.var-col-main.content-two-sidebar:before {
			left: 0;
			right: 0;
		}
	.var-col-sidebar {
		width: 100%;
		padding-top: 0;
		padding-bottom: 2.5625rem;
	}
		#secondary-sidebar.two-sidebar,
		.var-col-sidebar.right-sidebar {
			padding-left: 0;
			padding-right: 0;
		}
		#main-sidebar.two-sidebar,
		.var-col-sidebar.left-sidebar {
			padding-left: 0;
			padding-right: 0;
		}
		.sidebar .widget {
			border-width: 1px 0 1px 0;
		}

	/* Post Box Grid */
	.content-two-sidebar .posts-box.posts-grid-4 .hentry,
	.content-two-sidebar .posts-box.posts-grid-3 .hentry,
	.content-two-sidebar .posts-box.posts-grid-2 .hentry {
		width: 50%;
		clear: none;
	}
		.content-two-sidebar .posts-box.posts-grid-4 .hentry:nth-child(2),
		.content-two-sidebar .posts-box.posts-grid-3 .hentry:nth-child(2),
		.content-two-sidebar .posts-box.posts-grid-2 .hentry:nth-child(2) {
			margin-top: 0;
		}
		.content-two-sidebar .posts-box.posts-grid-4 .hentry:nth-child(2n+1),
		.content-two-sidebar .posts-box.posts-grid-3 .hentry:nth-child(2n+1),
		.content-two-sidebar .posts-box.posts-grid-2 .hentry:nth-child(2n+1) {
			clear: left;
		}

	.posts-box.posts-grid-4.standart .hentry:nth-child(4n+1),
	.posts-box.posts-grid-3.standart .hentry:nth-child(3n+1) {
		clear: none;
	}
		.posts-box.posts-grid-4.standart .hentry:nth-child(2n+1),
		.posts-box.posts-grid-3.standart .hentry:nth-child(2n+1) {
			clear: left;
		}
		.posts-box.posts-grid-4 .hentry:nth-child(n+3),
		.posts-box.posts-grid-3 .hentry:nth-child(n+3) {
			margin-top: 1.3125rem;
		}

	/* Post Box List */
	.content-two-sidebar .posts-box.posts-list .hentry .post-thumb-area {
		float: left;
		width: 327px;
		margin-bottom: 0;
	}
	.content-two-sidebar .posts-box.posts-list .hentry h3.title,
	.content-two-sidebar .posts-box.posts-list .hentry .desc,
	.content-two-sidebar .posts-box.posts-list .hentry .info-wrap {
		margin-left: 22.125rem;
	}


	/* Content Formatting */
	.content-formatting .gallery-columns-5 .gallery-item:nth-child(5n+1) {
		clear: none;
	}
	.content-formatting .gallery-columns-6 .gallery-item:nth-child(6n+1) {
		clear: none;
	}
	.content-formatting .gallery-columns-7 .gallery-item:nth-child(7n+1) {
		clear: none;
	}
	.content-formatting .gallery-columns-8 .gallery-item:nth-child(8n+1) {
		clear: none;
	}
	.content-formatting .gallery-columns-9 .gallery-item:nth-child(9n+1) {
		clear: none;
	}
	.content-formatting .gallery-columns-5 .gallery-item,
	.content-formatting .gallery-columns-6 .gallery-item,
	.content-formatting .gallery-columns-7 .gallery-item,
	.content-formatting .gallery-columns-8 .gallery-item,
	.content-formatting .gallery-columns-9 .gallery-item {
		width: 25%;
	}
		.content-formatting .gallery-columns-5 .gallery-item:nth-child(4n+1),
		.content-formatting .gallery-columns-6 .gallery-item:nth-child(4n+1),
		.content-formatting .gallery-columns-7 .gallery-item:nth-child(4n+1),
		.content-formatting .gallery-columns-8 .gallery-item:nth-child(4n+1),
		.content-formatting .gallery-columns-9 .gallery-item:nth-child(4n+1) {
			clear: both;
		}
}


/* Media max 991px */
@media( max-width: 991px ) {

	/* HEADER */

	#main-header {
		position: relative;
		width: 100% !important;
		left: 0 !important;
        background-color: black;
        background-image: none;
	}
		.customize-support #main-header {
			top: 0;
		}
	#main-header #visibility-btn {
		display: none !important;
	}
	#main-header .logo-wrap .logo-description {
		display: none;
	}


	/* Logo */

	#main-header .logo-wrap .logo-image {
		margin-left: 15px;
	}
	#main-header .logo-wrap {
		padding-top: 1.5625rem;
		padding-bottom: 1.5625rem;
		padding-left: 90px !important;
		padding-right: 90px !important;
	}
	#main-header.style-2 .logo-wrap.standart {
		display: block;
	}

	#main-header .logo-wrap.mobile {
		display: block;
	}
	#main-header .logo-wrap.standart + .logo-wrap.mini,
	#main-header .logo-wrap.mobile + .logo-wrap.standart,
	#main-header .logo-wrap.mobile + .logo-wrap.mini {
		display: none !important;
	}


	/* Menu */
	.head {
		background-color: rgba(0, 0, 0, 0);
		color: #E42E54;
	}

	.menu-box .menu > li > .item-link {
		margin-left: 10px;
		font-weight: bold;
	}

	#main-header.style-2 .menu-box .menu li .item-link > i.arrow {
		font-size: 1rem;
		line-height: 1.4;
	}
	#main-header .custom-item.menu-btn,
	#main-header .custom-item.menu-details-btn {
		display: none !important;
	}
	
		#main-header .mobile-toogle-btn > * {
			-webkit-transition: 0.25s;
			-moz-transition:    0.25s;
			-ms-transition:     0.25s;
			-o-transition:      0.25s;
			transition:         0.25s;
		}
		#main-header .mobile-toogle-btn > *:hover {
			-webkit-opacity: 0.75;
			-moz-opacity:    0.75;
			opacity:         0.75;
		}
		
			
		#main-header .mobile-toogle-btn.info-btn {
			right: 20px;
			overflow: hidden;
            display: none;
		}
			#main-header .mobile-toogle-btn.info-btn.opened {
				left: inherit;
			}
			#main-header .mobile-toogle-btn.info-btn.opened i:before {
				content: '\f00d';
			}
			#main-header .mobile-toogle-btn.info-btn i {
				font-size: 25px;
				line-height: 52px;
			}

	#wrapper #main-header .scroller-wrap {
		position: relative;
		height: auto;
		margin-left: 0 !important;
		left: 0;
		display: none;
		visibility: visible;
		z-index: 1;
		width: 100%;
		bottom: inherit;
		padding: 0;

		-webkit-transition: none;
		-moz-transition:    none;
		-o-transition:      none;
		-ms-transition:     none;
		transition:         none;
	}
		#wrapper #main-header .scroller-wrap .scroller-cont {
			display: block;
		}
	#main-footer {
		padding: 0;
	}


	/* MAIN */
	#main-content {
		margin-left: 0;
	}
		#main-header.style-2 + #main-content {
			margin-left: 0;
		}
		#main-header.align-right + #main-content {
			margin-right: 0;
		}
		#main-header.style-2.align-right + #main-content {
			margin-right: 0;
		}


	/* Contacts */
	#content-box .map-wrap {
		position: relative;
		width: 100%;
		height: 500px;
	}
	#wrapper #content-box .contacts {
		padding-left: 0;
		padding-right: 0;
		padding-bottom: 0;
		float: none;
		margin: 0 !important;
		width: 100% !important;
	}
		#wrapper #content-box .contacts > .row {
			margin-left: 0;
			margin-right: 0;
		}
		#wrapper #content-box .contacts .block-content,
		#wrapper #content-box .contacts .block-short {
			padding-right: 0;
			padding-left: 0;
			width: 100%;
			float: none;
		}
			#wrapper #content-box .contacts .block-short {
				padding-top: 1.75rem;
			}


	/* SLIDER */
	#main-content #componentWrapper {
		width: 100%;
		left: 0;
		top: 0 !important;
		position: relative;
		min-height: 200px;
	}
	#main-header.style-2 + #main-content #componentWrapper {
		width: 100%;
		left: 0;
	}
	#main-header.align-right + #main-content #componentWrapper {
		right: 0;
	}
	#main-header.style-2.align-right + #main-content #componentWrapper {
		width: 100%;
		right: 0;
	}


	/* Content Formatting */
	.content-formatting .gallery-columns-4 .gallery-item:nth-child(4n+1) {
		clear: none;
	}
	.content-formatting .gallery-columns-5 .gallery-item:nth-child(5n+1) {
		clear: none;
	}
	.content-formatting .gallery-columns-6 .gallery-item:nth-child(6n+1) {
		clear: none;
	}
	.content-formatting .gallery-columns-7 .gallery-item:nth-child(7n+1) {
		clear: none;
	}
	.content-formatting .gallery-columns-8 .gallery-item:nth-child(8n+1) {
		clear: none;
	}
	.content-formatting .gallery-columns-9 .gallery-item:nth-child(9n+1) {
		clear: none;
	}
	.content-formatting .gallery-columns-4 .gallery-item,
	.content-formatting .gallery-columns-5 .gallery-item,
	.content-formatting .gallery-columns-6 .gallery-item,
	.content-formatting .gallery-columns-7 .gallery-item,
	.content-formatting .gallery-columns-8 .gallery-item,
	.content-formatting .gallery-columns-9 .gallery-item {
		width: 33.3336%;
	}
		.content-formatting .gallery-columns-4 .gallery-item:nth-child(3n+1),
		.content-formatting .gallery-columns-5 .gallery-item:nth-child(3n+1),
		.content-formatting .gallery-columns-6 .gallery-item:nth-child(3n+1),
		.content-formatting .gallery-columns-7 .gallery-item:nth-child(3n+1),
		.content-formatting .gallery-columns-8 .gallery-item:nth-child(3n+1),
		.content-formatting .gallery-columns-9 .gallery-item:nth-child(3n+1) {
			clear: both;
		}
}


/* Media max 767px */
@media( max-width: 767px ) {

	/* Layout */
	.var-col-main {
		padding-left: 1rem !important;
		padding-right: 1rem !important;
	}
	.sidebar .widget {
		padding-left: 1rem !important;
		padding-right: 1rem !important;
	}

	/* Post Box List */
	#main-content .posts-box.posts-list .hentry .post-thumb-area {
		float: none;
		width: 100%;
		margin-bottom: 1.3125rem;
	}
	#main-content .posts-box.posts-list .hentry h3.title,
	#main-content .posts-box.posts-list .hentry .desc,
	#main-content .posts-box.posts-list .hentry .info-wrap {
		margin-left: 0;
	}


	/* Slider */
	#componentWrapper .componentPlaylist,
	#componentWrapper .playlist_toggle {
		display: none !important;
	}
	#componentWrapper .caption .item {
		display: none !important;
	}

	#componentWrapper .videoPlayer {
		height: auto !important;
		left: 0 !important;
		margin-left: 0 !important;
		margin-top: -28.125% !important;
		padding-bottom: 56.25%;
		width: 100% !important;
	}
		#componentWrapper .videoPlayer .player_close {
			right: 0;
			top: -35px;
		}


	/* 404 */
	.error404 #content-box h1.page-title {
		font-size: 6rem !important;
	}
		.error404 #content-box h1.page-title i {
			padding: 0 0.5rem;
			font-size: 4rem;
		}
	.error404 #content-box .title {
		font-size: 2.1875rem;
	}


	/* Single */
	.single .author-box .avatar {
		width: 80px;
		margin-right: 10px;
		margin-bottom: 2px;
	}
		.single .author-box img.avatar {
			margin: 0;
		}
	.single .author-box .author-info-wrap {
		width: calc(100% - 100px);
		width: -moz-calc(100% - 100px);
		width: -webkit-calc(100% - 100px);
		width: -o-calc(100% - 100px);
	}
	.single .author-box h3.title,
	.single .author-box p.author-bio {
		margin-left: 0;
	}

	.related-posts article.post {
		margin-top: 2rem;
	}
		.related-posts article.post:first-child {
			margin-top: 0;
		}

	#comments ul li.comment > ul {
		margin-left: 0;
	}

	.post-thumb-info + .post-content-wrap {
		margin-top: 0.75rem;
	}
	#prev-next-posts.full .post.prev,
	#prev-next-posts.full .post.next {
		width: 100%;
		float: none;
		padding: 0;
		clear: both;
	}
	#prev-next-posts.full .post.prev + .post.next {
		padding-top: 1rem;
	}

	.post-thumb-info.style-center .overlay {
		position: relative;
		padding: 1.125rem 0 0;
		background: none;
	}
		.post-thumb-info.style-center .align-wrap {
			display: block;
			text-align: left;
		}
		.post-thumb-info.style-center .align {
			display: block;
		}
		.post-thumb-info.style-center .page-title {
			margin-top: 1rem;
		}

		.post-thumb-info.style-center .cat-wrap {
			left: 0;
		}
		.post-thumb-info.style-center .cat-wrap li{
			right: inherit;
		}


	/* Content Formatting */
	.content-formatting blockquote {
		margin: 0.625rem 0;
	}
		.content-formatting blockquote:before {
			left: -1.25rem;
		}

	.content-formatting .gallery-columns-2 .gallery-item:nth-child(2n+1) {
		clear: none;
	}
	.content-formatting .gallery-columns-3 .gallery-item:nth-child(3n+1) {
		clear: none;
	}
	.content-formatting .gallery-columns-4 .gallery-item:nth-child(4n+1) {
		clear: none;
	}
	.content-formatting .gallery-columns-5 .gallery-item:nth-child(5n+1) {
		clear: none;
	}
	.content-formatting .gallery-columns-6 .gallery-item:nth-child(6n+1) {
		clear: none;
	}
	.content-formatting .gallery-columns-7 .gallery-item:nth-child(7n+1) {
		clear: none;
	}
	.content-formatting .gallery-columns-8 .gallery-item:nth-child(8n+1) {
		clear: none;
	}
	.content-formatting .gallery-columns-9 .gallery-item:nth-child(9n+1) {
		clear: none;
	}
	.content-formatting [class^="gallery-columns-"] .gallery-item,
	.content-formatting [class*=" gallery-columns-"] .gallery-item {
		width: 50%;
	}
		.content-formatting [class^="gallery-columns-"] .gallery-item:nth-child(2n+1),
		.content-formatting [class*=" gallery-columns-"] .gallery-item:nth-child(2n+1) {
			clear: both;
		}
	.content-formatting .gallery-columns-1 .gallery-item {
		width: 100%;
	}
}


/* Media max 543px */
@media( max-width: 543px ) {

	/* Logo */
	#main-header .logo-wrap {
		padding-left: 72px !important;
		padding-right: 72px !important;
	}
	#main-header .mobile-toogle-btn {
		width: 40px;
		height: 40px;
		margin-top: -20px;
	}
		
		#main-header .mobile-toogle-btn.info-btn {
			right: 1rem;
		}
			#main-header .mobile-toogle-btn.info-btn i {
				line-height: 42px;
			}


	/* Portfolio Box */
	.portfolio-box .hentry {
		padding-left: 0 !important;
		padding-right: 0 !important;
	}

	.portfolio-box:not(.masonry-previews) .hentry .desc-wrap .subtitle {
		margin-bottom: 0;
	}
	.portfolio-box:not(.masonry-previews) .hentry .desc-wrap .separator,
	.portfolio-box:not(.masonry-previews) .hentry .desc-wrap .read-more {
		display: none;
	}


	/* Posts Box */
	.posts-box[class*="posts-grid-"] .hentry:nth-child(n+2) {
		margin-top: 1.3125rem !important;
	}


	/*Content Formatting */
	.content-formatting table thead tr td {
		font-size: 0.875rem;
		padding: 0.5rem 0.5rem 0.375rem
	}
	.content-formatting table thead tr th {
		font-size: 1rem;
		padding: 0.5rem 0.5rem 0.375rem
	}
	.content-formatting .alignright,
	.content-formatting .alignleft,
	.content-formatting a img.alignright,
	.content-formatting a img.alignleft,
	.content-formatting p img.alignright,
	.content-formatting p img.alignleft,
	.content-formatting img.alignleft,
	.content-formatting img.alignright {
		width: 100%;
		float: none;
		margin-left: 0;
		margin-right: 0;
	}
	.content-formatting [class^="gallery-columns-"] .gallery-item,
	.content-formatting [class*=" gallery-columns-"] .gallery-item {
		width: 100%;
		text-align: center;
	}

	.content-formatting .panel-grid-cell {
		clear: both;
	}
		.content-formatting .panel-grid-cell:after {
			content: '';
			display: table;
			clear: both;
		}
}