/* LARGE DESKTOP  (1366)
---------------------------------------------*/
@media only screen and (max-width:1366px) {
    .td_poster img {height: 235px;}
    .td_item_post:first-child .td_poster img, .td_item_post:nth-last-child(-n+2) .td_poster img {height: 325px;}
    .td_item_post:nth-child(n+2):nth-child(-n+3) .td_poster img, 
    .td_item_post:nth-last-child(n+3):nth-last-child(-n+4) .td_poster img {height: 190px;}
    #td_popular_carousel {margin: -15px 0px 0;}
    #td_popular_carousel .td_poster img {height: 170px;}
    .veh-related-gal img {height: 170px;}
    .td_files_item .td_item_post img {height: 415px !important;}
}



/* LARGE DESKTOP  (1280)
---------------------------------------------*/
@media only screen and (max-width:1280px) {
    .td_profile span {display: none;}
    .td_profile[data-toggle="dropdown"] [class*="fa-"] {margin-right: 0;}
    .td_seo_text_head {font-size: 34px;}
    .td_poster img {height: 220px;}
    .td_item_post:first-child .td_poster img, .td_item_post:nth-last-child(-n+2) .td_poster img {height: 305px;}
    .td_item_post:nth-child(n+2):nth-child(-n+3) .td_poster img, 
    .td_item_post:nth-last-child(n+3):nth-last-child(-n+4) .td_poster img {height: 180px;}
    .td_item_post:first-child .td_item_post_info, 
    .td_item_post:nth-last-child(-n+2) .td_item_post_info {margin-bottom: 15px; padding-top: 0;}
    .td_item_post:nth-child(n+2):nth-child(-n+3) .td_description, 
    .td_item_post:nth-last-child(n+3):nth-last-child(-n+4) .td_description {max-height: 179px;}
    .td_nav_list li [data-toggle="dropdown"], .td_nav_link {padding: 26px 15px;}
    #td_popular_carousel {margin: -15px 0px 0;}
    #td_popular_carousel .td_poster img {height: 160px;}
    .td_aside {flex: 0 0 350px;}
    .royalSlider {width: 100%;}
    .veh-related-gal img {height: 145px;}
    .td_files_item .td_item_post img {height: 390px !important;}
}



/* DESKTOP  (1200)
---------------------------------------------*/
@media only screen and (max-width:1200px) {
    .td_item_post:nth-child(n+2):nth-child(-n+3) .td_description, 
    .td_item_post:nth-last-child(n+3):nth-last-child(-n+4) .td_description {max-height: 180px;}
    .td_nav {padding: 0 20px;}
    .td_nav_list li [data-toggle="dropdown"], .td_nav_link {font-size: 12px; padding: 28px 15px;}
    .td_seo_text {margin-right: 43%;}
    .td_seo_text_head {font-size: 26px;}
    .td_section_title {font-size: 32px;} 
    .veh-related-gal img {height: 125px;}
    .td_files_item .td_item_post {flex: 0 0 33.333% !important;}
    .td_files_item .td_item_post img {height: 490px !important;}
}



/* DESKTOP  (1024)
---------------------------------------------*/
@media only screen and (max-width:1024px) {
    .td_mob_nav {display: inline-flex; align-items: center; }
    .td_nav_list {display: none; position: absolute; background: #2c3847; z-index: 10; left: 0; width: 245px;padding: 10px 0; box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);}
    .td_nav_list li a [class*="fa-"] {transition: all 0.3s ease 0s;}
    .td_nav_list li.open a [class*="fa-"], .dropdown.open .dropdown-toggle [class*="fa-"] {transform: rotate(-90deg);}
    .td_nav_list li.open .td_nav_all [class*="fa-"], .td_uPanel .dropdown.open [class*="fa-"] {transform: rotate(0deg);}
    .td_nav_link, .td_nav_list li [data-toggle="dropdown"] {padding: 10px 20px;display: flex;justify-content: space-between;}
    .td_nav_list li [data-toggle="dropdown"] + .dropdown-menu {position: absolute; left: 100%; top: 0;width: 779px;min-height: 100%; border: 0;}
    .td_nav_section_title {text-align: left; padding-left: 30px; padding-right: 30px;}
    .td_nav_list .dropdown {position: inherit;}
    .td_nav_list li .dropdown.open .dropdown-menu {width: 100%;}
    .td_nav_list .dropdown .dropdown-item {flex: 1 }
    .td_nav_link:hover::before, 
    .td_nav_list .dropdown.open a::before,
    .td_nav_list li [data-toggle="dropdown"]:hover::before,
    .td_nav_list li.open [data-toggle="dropdown"]::before {background: transparent;}
    
    .td_profile span {display: inline-block;}
    .td_profile[data-toggle="dropdown"] [class*="fa-"] {margin-right: 15px;}
    
    .td_item_post,
    .td_item_post:first-child, .td_item_post:nth-last-child(-n+2),
    .td_item_post:nth-child(n+2):nth-child(-n+3), 
    .td_item_post:nth-last-child(n+3):nth-last-child(-n+4) {flex: 0 0 50%;}
    
    .td_poster img,
    .td_item_post:first-child .td_poster img, .td_item_post:nth-last-child(-n+2) .td_poster img,
    .td_item_post:nth-child(n+2):nth-child(-n+3) .td_poster img, 
    .td_item_post:nth-last-child(n+3):nth-last-child(-n+4) .td_poster img {height: 265px;}
    
    .td_item_post:nth-child(n+2):nth-child(-n+3) .td_add_date, 
    .td_item_post:nth-last-child(n+3):nth-last-child(-n+4) .td_add_date {right: auto;left: 20px;}
    
    .td_item_post:first-child .td_add_date, 
    .td_item_post:nth-last-child(-n+2) .td_add_date {height: 65px;width: 65px;font-size: 26px;padding: 10px;}
    
    .td_item_post:first-child .td_add_date span, 
    .td_item_post:nth-last-child(-n+2) .td_add_date span {font-size: 10px;}
    
    .td_item_post:first-child .td_category,  
    .td_item_post:nth-last-child(-n+2) .td_category {display: inline-block;}
    
    .td_item_post:first-child .td_poster .td_category, 
    .td_item_post:nth-last-child(-n+2) .td_poster .td_category,
    .td_item_post:first-child .td_item_post_info h2, 
    .td_item_post:nth-last-child(-n+2) .td_item_post_info h2 {display: none;}
    
    .td_item_post:first-child h2, 
    .td_item_post:nth-last-child(-n+2) h2 {display: flex;}
    .td_item_post:first-child h2 a, 
    .td_item_post:nth-last-child(-n+2) h2 a {font-size: 16px; line-height: 24px; font-weight: 600;}

    .td_item_post:first-child .td_description, 
    .td_item_post:nth-last-child(-n+2) .td_description,
    .td_item_post:nth-child(n+2):nth-child(-n+3) .td_description, 
    .td_item_post:nth-last-child(n+3):nth-last-child(-n+4) .td_description {max-height: 112px;}
    
    .td_item_post:first-child .td_poster > span.td_category, 
    .td_item_post:nth-last-child(-n+2) .td_poster > span.td_category {display: none;}
    
    .td_item_post:first-child .td_item_post_info > a:first-child, 
    .td_item_post:nth-last-child(-n+2) .td_item_post_info > a:first-child {display: inline-block;}
    
    .td_seo_text {margin-right: 0;}
    .td_seo_text_head {font-size: 28px; text-align: center; margin-bottom: 25px;}
    .td_seo_text_descr {margin-right: 50%;}
    .td_seo_content {background: url(/templates/The-Drive/images/td_seo_bg.png) no-repeat 100% 95px;}
    
    #td_popular_carousel .td_poster img {height: 170px;}
    
    .td_fullpage {width: 100%;}
    .td_aside {flex: 0 0 320px;}
    .royalSlider {width: 100%;}
    .td_fullpage .td_full_title, .td_breadcrumbs {margin-right: 0;}
    
    .td_xfiedls_search {float: none; margin-left: 0; margin-bottom: 25px;}
    .td_xfiedls_search li {justify-content: left;}
    
    .td_full_post_text {font-size: 15px;}
    
    .td_files_item .td_item_post:first-child .td_poster > span.td_category, 
	.td_files_item .td_item_post:nth-last-child(-n+2) .td_poster > span.td_category {display: inline-block;}
    .td_files_item .td_item_post_info > a {display: none !important;}
    .td_files_item .td_item_post:nth-last-child(-n+2) .td_item_post_info h2,
    .td_files_item .td_item_post:first-child,
    .td_files_item .td_item_post:first-child .td_item_post_info h2 {display: inline-flex !important;}
    .td_files_item .td_item_post:nth-last-child(-n+2) h2,
    .td_files_item .td_item_post:first-child h2 {display: none !important;}
    .td_files_item .td_files_item .td_item_post h2 a,
    .td_files_item .td_item_post h2 a {font-weight: 600 !important;}
    .td_files_item .td_item_post img {height: 415px !important;}
}



/* TABLET  (992)
---------------------------------------------*/
@media only screen and (max-width:992px) {
    .td_nav_list li [data-toggle="dropdown"] + .dropdown-menu {width: 747px;}
    .td_poster img, 
    .td_item_post:first-child .td_poster img, 
    .td_item_post:nth-last-child(-n+2) .td_poster img, 
    .td_item_post:nth-child(n+2):nth-child(-n+3) .td_poster img, 
    .td_item_post:nth-last-child(n+3):nth-last-child(-n+4) .td_poster img {height: 250px;}
    #td_popular_carousel .td_poster img {height: 160px;}
    .td_files_item .td_item_post img {height: 400px !important;}
}



/* TABLET  (800)
---------------------------------------------*/
@media only screen and (max-width:800px) {
    .td_nav_list li [data-toggle="dropdown"] + .dropdown-menu {width: 555px;}
    .td_poster img, 
    .td_item_post:first-child .td_poster img, 
    .td_item_post:nth-last-child(-n+2) .td_poster img, 
    .td_item_post:nth-child(n+2):nth-child(-n+3) .td_poster img, 
    .td_item_post:nth-last-child(n+3):nth-last-child(-n+4) .td_poster img {height: 200px;}
    .td_nav_list li [data-toggle="dropdown"] + .dropdown-menu {position: relative;left: 0;width: 100%;}
    .td_nav_section_title span.td_nav_title {display: none;}
    .td_nav_section_title a.td_nav_all {position: relative;font-size: 12px;right: 0;top: 0;line-height: 1;padding: 8px 10px;display: flex;align-items: center;justify-content: center;}
    .td_seo_text_descr {margin-right: 0;margin-bottom: 250px;}
    .td_seo_content {background: url(/templates/The-Drive/images/td_seo_bg.png) no-repeat center 220px;}
    .td_seo_text_head {margin-top: -20px;}
    .tp_pages {order: 1;}
    #td_popular_carousel .owl-nav {top: -80px;}
    #td_popular_carousel .td_poster img {height: 200px;}
    .td_full_body, .td_full_content {width: 100%;}
    .td_full_content {overflow: hidden;}
    .rsDefault .rsThumbsHor {height: 86px;padding-top: 8px;}
    .rsDefault {margin-bottom: 45px;}
    .td_aside {display: block;margin-left: 0;flex: 1;margin-top: 30px;}
    .td_donation_btn {justify-content: center;}
    .td_main {padding: 40px 0 0;}
    .td_aside_widget_title {text-align: center;}
    .td_inf_aside_1 .td_inf_aside_poster {max-width: 135px;}
    .td_inf_aside_1 .td_inf_aside_content {flex: 1; padding: 10px 0;}
    .td_files_item .td_item_post {flex: 0 0 50% !important;}
    .td_files_item .td_item_post img {height: 485px !important;}
}



/* TABLET  (768)
---------------------------------------------*/
@media only screen and (max-width:768px) {
    .pagination {display: block; text-align: center;}
    .pagination .tp_page_prev, .pagination .tp_page_next {display: none;}
    .pagination a, .pagination span {display: inline-block;text-align: center;line-height: 38px;}
    .rsDefault .rsThumbsHor {height: 60px;}
    .td_files_item .td_item_post img {height: 465px !important;}
}



/* TABLET  (640)
---------------------------------------------*/
@media only screen and (max-width:640px) {
    .td_poster img, 
    .td_item_post:first-child .td_poster img, 
    .td_item_post:nth-last-child(-n+2) .td_poster img, 
    .td_item_post:nth-child(n+2):nth-child(-n+3) .td_poster img, 
    .td_item_post:nth-last-child(n+3):nth-last-child(-n+4) .td_poster img {height: 150px;}
    .td_seo_text_head {font-size: 22px;}
    .td_seo_content {background: url(/templates/The-Drive/images/td_seo_bg.png) no-repeat center 265px;}
    .td_section_title {font-size: 26px;}
    #td_popular_carousel .td_poster img {height: 320px;}
    #td_popular_carousel .owl-nav {top: -76px;}
    .veh-related-gal img {height: 100px;}
    .td_full_content .td_add_date {display: none;}
    .td_fullpage .td_full_title h1 {font-size: 24px;}
    .pagination a, .pagination span {height: auto;}
    .pagination {margin-bottom: 25px;}
    #td_popular_carousel .td_item_post h3 a {font-size: 18px;}
    .td_files_item .td_item_post img {height: 370px !important;}
}



/* MOBILE  (480)
---------------------------------------------*/
@media only screen and (max-width:480px) {
    .td_item_post, 
    .td_item_post:first-child, 
    .td_item_post:nth-last-child(-n+2), 
    .td_item_post:nth-child(n+2):nth-child(-n+3), 
    .td_item_post:nth-last-child(n+3):nth-last-child(-n+4) {flex: 0 0 100%;}
    .td_poster img, 
    .td_item_post:first-child .td_poster img, 
    .td_item_post:nth-last-child(-n+2) .td_poster img, 
    .td_item_post:nth-child(n+2):nth-child(-n+3) .td_poster img, 
    .td_item_post:nth-last-child(n+3):nth-last-child(-n+4) .td_poster img {height: auto;}
    .td_description,
    .td_item_post:first-child .td_description, 
    .td_item_post:nth-last-child(-n+2) .td_description,
    .td_item_post:nth-child(n+2):nth-child(-n+3) .td_description, 
    .td_item_post:nth-last-child(n+3):nth-last-child(-n+4) .td_description {max-height: 112px;}
    .td_seo_content {background: url(/templates/The-Drive/images/td_seo_bg.png) no-repeat center 350px;}
    #td_popular_carousel .owl-nav {top: 0; right: 15px; left: 15px;}
    #td_popular_carousel {padding-top: 60px; margin-top: -35px;}
    #td_popular_carousel .td_poster img {height: 230px;}
    .td_logo {flex: 0 0 100%;}
    .td_nav {padding: 0;}
    .td_mob_nav {margin-left: -25px;padding: 25px;}
    .td_uPanel {margin-right: -25px;padding: 0;}
    .td_profile {padding: 25px !important;}
    .td_search_form_bl {padding: 25px 0;}
    .td_nav {margin-left: -25px;}
    .td_uPanel, .td_nav, .td_mob_nav {background: #2c3847;}
    .td_mob_nav {margin-left: 0;}
    .td_nav_list, .td_search_form_bl {background: #253241;}
    .td_profile {padding: 26px 25px !important;}
    #td_popular_carousel .td_item_post h3 a {font-size: 16px;}
    .td_files_item .td_item_post {flex: 0 0 100% !important;}
    .td_files_item .td_item_post img {height: auto !important;}
}



/* MOBILE  (360)
---------------------------------------------*/
@media only screen and (max-width: 360px) {
    .td_main {padding: 40px 0;margin: 0 -15px;}
    .td_seo_content {background: url(/templates/The-Drive/images/td_seo_bg.png) no-repeat center bottom 60px; background-size: contain;}
    .td_seo_text_descr {margin-bottom: 200px; hyphens: auto;}
    #td_popular_carousel .td_poster img {height: 175px;}
    .td_comment_item {display: flex;justify-content: center;flex-wrap: wrap;}
    .td_comment_item .td_ava_comm {flex: 1;max-width: 60px;margin-right: 0;display: flex;width: 100%;margin-bottom: 30px;}
    .td_inf_aside_1 .td_inf_aside_content {flex: 1;padding: 0;}
    .td_inf_aside_1 {display: flex;flex-wrap: wrap;}
    .td_inf_aside_1 .td_inf_aside_poster {max-width: 100%;min-width: 100%;}
    .td_inf_aside_1 img {width: 100%;height: auto;object-fit: cover;display: block;margin-bottom: 10px;}
    .td_inf_aside_1 h5 {flex: 1;margin-bottom: 10px;}
}



/* MOBILE  (320)
---------------------------------------------*/
@media only screen and (max-width:320px) {
    .td_mob_nav span, .td_profile span {display: none;}
    .td_mob_nav [class*="fa-"], .td_profile[data-toggle="dropdown"] [class*="fa-"] {margin-right: 0;}
    #td_popular_carousel .td_poster img {height: 150px;}
    .td_seo_text_descr {margin-bottom: 175px;}
}