a { -webkit-tap-highlight-color: rgba(0,0,0,0); -webkit-tap-highlight-color: transparent; }
.trigram, .search-toggle { display: none; }
#content img { max-width: 100%; height: auto; }
.floating-ad { position: fixed; z-index: 1; }
.floating-ad-desktop { right: 2%; top: 300px; }
.floating-ad-mobile { display: none; }

@media only screen and (max-width: 1200px) {
    * { max-width: 100%; }
	.wrapper { width: 95%; margin: 0 2.5%; }
    .main-menu .menu .menu-item-has-children .sub-menu .sub-menu { position: static; height: auto; }
    .main-menu .menu .menu-item-has-children .sub-menu > li a { padding: 5px 16px; }
	#content, #sidebars { width: 90%; float: none; overflow: hidden; padding: 5%; }
	#content { width: 100%; padding: 5% 0; }
    #sidebars { margin-bottom: 10px; }
	#sidebars > * { width: 31%; margin-left: 1%; margin-right: 1%; }
    #sidebars > .first { clear: left; }
	.post, .videos, .photos { padding: 0 0 25px; }

	/* .head-ads, .wide-ad { display: none; } */
    #header .head-ads { float: none; margin: 0 46px 10px; }

	.flexslider.home-news, .flexslider.news-list { box-sizing: border-box; }
	.flexslider.home-news .flex-control-nav { display: none; }
	.flexslider.home-news { width: 70%; padding: 5px; }
	.flexslider.news-list { width: 30%; }
    #comments-block { margin: 28px 0 0; }
    #colophon #toggle { display: inline-block; }
}

@media only screen and (max-width: 1024px) {
	#header .wrapper { text-align: center; }
	#header .site-logo img { margin-top: 0; }
	#header .menu-holder .wrapper { width: 100%; padding: 0; margin: 0; }
	.main-menu { width: 100%; }
	.main-menu .menu > li { padding: 0 10px; height: 40px; line-height: 40px; float: none; text-align: left; display: block; border-bottom: 1px solid #223a56; position: relative; }
	.main-menu .menu > li a { display: block; }
	.main-menu .menu > li.menu-item-has-children > span { position: absolute; right: 15px; top: 0; }
	.main-menu .menu .menu-item-has-children .sub-menu { width: 100%; }
	.main-menu .menu > li:hover ul.sub-menu { display: none; }
	.main-menu .menu > li.current-menu-item ul.sub-menu, .main-menu .menu > li.menu-item ul.sub-menu.opened { display: block; position: static; background: none; }
	.main-menu .menu .menu-item-has-children .sub-menu > li { float: none; width: 100%; padding: 10px 0; }
	.main-menu .menu .menu-item-has-children .sub-menu > li a { border: none; }
	.main-menu .menu > li.current-menu-item.menu-item-has-children { padding-bottom: 0; height: auto; }
    .main-menu .menu .menu-item-has-children .sub-menu li.menu-item-has-children > span { width: 40px; border-left: 1px solid #103561; }
    .main-menu .menu > li.current-menu-ancestor .sub-menu .sub-menu, .main-menu .menu > li.current-menu-item.menu-item-has-children .sub-menu .sub-menu { padding: 10px 20px 0; }
	.searchform, .main-menu, .social-header { display: none; }
	#header { position:relative; }
	.trigram, .search-toggle { display: block; font-size: 27px; line-height: 1; position: absolute; top: 0; height: 100%; box-sizing: border-box; padding: 18px 5%; }
	.trigram.active, .search-toggle.active { background: #103561; }
	.trigram { left: 0; }
	.search-toggle { right: 0; padding: 26px 5%; }
	.trigram.blueish, .search-toggle.blueish { background: #103561; }
	.trigram > p { font-size: 8px; text-transform: uppercase; margin-top: 6px; }
	.trigram { float: left; }
	.news-thumbnail-video, .news-thumbnail { float: left; margin-bottom: 20px; margin-right: 20px; text-align: center; }
	.news-thumbnail-video iframe { width: 100%; }
    .news-thumbnail.video-comment { float: right; margin-right: 40px; }
    #sidebars > aside { width: 100%; }
    #searchform { float: none; height: 37px; padding: 0 5%; margin:12px 0; }
    .searchform input[type="submit"] { display: inline-block; float:none; vertical-align: top; width:37px; box-sizing:border-box; margin-left:-37px; }
    .searchform input[type="text"] { float: none; padding:0 47px 0 5%; width:100%; min-width:none; box-sizing:border-box; height:37px; line-height:37px; }
}

@media only screen and (max-width: 980px) {
	.flexslider.home-news { width: 100%; border-right: 1px solid #dae0e7; }
	.flexslider.news-list { float: none; clear: both; width: 100%; display: none; }
    .flexslider.news-list .slides > li { width: auto !important; }
    .flexslider.news-list.mobile-carousel { display: block; margin-top: 40px; }
    .flexslider.news-list.mobile-carousel .slides > li { display: block; }
}

@media only screen and (max-width: 768px) {
    #colophon .wrapper:after { content: ""; }
    #colophon { text-align: center; }
    #colophon #menu-footer_menu { float: none; display: inline-block; }
    .foot-categories { display: block; }
	#sidebars > aside { width: 100%; }
	.post .news-thumbnail { float: left; width: 30%; }
    .category .type-post:not(.col3) .news-thumbnail { float: none; width: 100%; height: 142px; max-width: none; }
    .category .type-post:not(.top3) .news-thumbnail { float: left; width: 40%; }
    .category-photo #content .type-post:not(.col3) .in-column { display: block; }
    .category .type-post.col3 .news-thumbnail { float: left; width: 30%; }
	.news-tags, .category-photo .news-tags { padding-left: 0; }
    .news-title { clear: both; }
    .category .news-title { clear: none; }
	.news-title, .slide-title { font-size: 30px; }
	.news-content, .slide-content { margin: 10px 0; padding-right: 0; }
	.flexslider.home-news { padding-bottom: 80px; }
/* 	.flexslider .news-pic { display: none; margin-right: 0; } */
	.flexslider .slides img { width: auto; max-width: 100%; height: auto; margin: 0 auto; }
/* 	.count-comments, .leave-comment { float: none; margin: 0 5px 10px; display: inline-block; } */
	.flexslider.home-news .flex-control-nav { text-align: left; padding-left: 0; }
    .flexslider.home-news { float: none; overflow: hidden; visibility: hidden; position: relative; }
    .flexslider.home-news .slides { overflow: hidden; position: relative; max-width: none; }
    .flexslider.home-news .slides li { display: block; float: left; width: 100%; position: relative; }
	.slide-meta { padding-top: 20px; }
    .news-thumbnail > img { width: 100%; }
    .category .type-post .news-thumbnail.video-comment { float: right; height: auto; clear: both; width: 36px; margin-right: 0; }
    /*.news-meta { clear: left; }*/
    #content .news-tags,
    #content .type-post.col2 .news-content,
    #content .type-post.col2 .thumb-gallery,
    #content .type-post.col3 .thumb-gallery { display: none; }
    .category-photo #content .category-photo.col3 { width: 100%; height: auto; padding:0; margin-bottom: 30px; padding: 0 0 30px; }
    .category-photo #content .category-photo .entire-gallery { display: inline-block; margin-bottom: 10px; position: static; }
    .category-photo #content .category-photo.col3 .entire-gallery { display: none; }
    .category-photo #content .category-photo.col3 { border-color: #eaeaea; border-style: none none solid; border-width: 1px; }
    .category-photo #content .category-photo.col3 .in-column { display: none; }
    .category-photo #content .category-photo.col3 h2 + .social-block { display: none; }
    .category-photo #content .news-title { margin-right: 0; }
    .category-photo .entire-gallery + .social-block { display: none; }
    .category-photo #content .type-post:not(.col3) .news-content { display: none; }
    .category .type-post:not(.col3) .news-thumbnail { height: auto; }
/*     .category-photo #content .type-post.col3 .news-content { display: block; float: left; } */
    .type-post.col2 { width: 100%; padding: 0 15px; height: auto; }
    .type-post.col2.first { border-bottom: 1px solid #eaeaea; border-right: 0; }
    .archive .post { margin-bottom: 15px; padding: 0 0 10px; }
    .archive .pagination { margin-top: 10px; }

    .widget_wpt { display: none; }
    .a2a_i.a2a_sss { display: block; }
    #sidebars aside { position: relative; }
    .collapsed:after { content: ""; display: block; border-left: 10px solid #000; border-top: 10px solid transparent; border-bottom: 10px solid transparent; position: absolute; right: 20px; top: 5px; }
    .collapsed.expanded:after { border-left: 10px solid transparent; border-top: 10px solid #000; border-right: 10px solid transparent; border-bottom: 0; }
    .widget_webit_latest_gallery.expanded { min-height: 320px; -webkit-transition: all ease 1s; transition: all ease 1s; }
    .archive.category-photo .news-meta,
    .home .news-meta { float: none; width: 100%; }
    .home .news-title { clear: none; }
    .floating-ad-desktop { display: none; }
    .floating-ad-mobile { display: block; width: 100%; left: 0; bottom: 120px; }
}

@media only screen and (max-width: 680px) {
	#colophon:after { content: none; }
	#colophon .copyright, #colophon .menu { float: none; text-align: center; }
	#colophon .menu li:first-child { padding-left: 0; margin-left: 0; border-left: none; box-shadow: none; }
    #colophon .menu { margin-top: 20px; }
	.more-posts .post.single-related:first-of-type, .more-posts .post.single-related:nth-of-type(2) { padding: 0; border: none; }
	.single-photos .thumb-gallery ul { text-align: center; }
}

@media only screen and (max-width: 640px) {
	.more-posts .post { width: 100%; float: none; }
	.more-posts .related-small { border-right: none; padding-left: 10px; border-left: none; }
	#sidebars > aside { width: 100%; float: none; margin-left: 0; margin-right: 0; }
    /*.home .news-title { clear: both; }*/
    .single .news-content img { width: 100%; float: none; }
    .single .news-content div.printfriendly img { width: auto; }
    .social-comment-block .commenting { float: none; }
    .more-posts .related-small .news-thumbnail { width: auto; margin: 0 10px 10px 0; }
    .more-posts .related-small .news-title,
    .more-posts .related-small .news-meta { width: auto; float: none; clear: none; margin-left: 60px; }
    .social-comment-block .commenting,
    .social-comment-block .social-block { margin: 5px 0; vertical-align: top; }
    .more-posts .post.top3,
    .more-posts .post.top3 + .post.top3 { padding: 0; }
    /*.post .news-thumbnail { width: 70%; }*/
    .post .news-thumbnail { width: 40%; float: left; margin-right: 10px; margin-bottom: 5px; }
    .post .news-title, .videos .news-title, .photos .news-title { font-size: 18px; }
    .type-post.top3 { padding-right: 0; }
    .news-thumbnail-video, .news-thumbnail { margin-bottom: 10px; }
    .home .post:not(.top3) .news-title, .category .post:not(.top3) .news-title, .category .post:not(.top3) .news-meta, .home .news-meta, .post:not(.top3) .addtoany_shortcode { padding-left: 44%; clear: none; display: block; }
    .in-post-ads { float: none; margin-left: 0; max-width: none; }
}

@media only screen and (max-width: 480px) {
    .category-photo #content .category-photo.col3 h2 a { height: auto; line-height: 14px; }
    .category-photo #content .category-photo.col3 h2 { margin-bottom: 0; margin-left: 2%; clear: none; width: 65%; float: left; font-size: 12px; font-weight: normal; }
    .news-meta { float: left; margin-left: 2%; width: 65%; }
    .category .news-title { clear: both; }
    .category-photo #content .category-photo.col3 h2 { float: none; width: 100%; }
    .category-photo #content .category-photo.col3 .news-meta { width: auto; float: none; }
    #sidebars > * { width: 100%; }
    .trigram, .search-toggle { padding:18px 5% 0 5%; }
    #respond form textarea { width: 100%; }
    .comment-form-author, .comment-form-email { width: 100%; float: none; margin-right: 0; }
}

@media only screen and (max-width: 380px) {
    #header .site-logo img { max-width:190px; }
    #respond form { padding: 20px; }
    /*.post .news-thumbnail { width: 100%; }*/
    .news-title, .slide-title { font-size: 20px; }
    .foot-categories { font-size: 18px; }
    .widget_webit_latest_gallery.expanded { min-height: 300px; }
    .wide-ad.wider .webit-ads > p, .wide-ad.wider .webit-ads > p:first-child { float: none; margin-left: 0; }
}
