/* BASE STYLES mobile first */ 

.tmnf_container,
.tmnf_slider_inside{
    max-width: 1300px; /*VAR*/
    width: 100%;
    margin: 0 auto;
}

.header_fullwidth .tmnf_container_head{
    max-width: 100%;
}
.tmnf_cell{
    padding: 0 20px; /*VAR*/
    position: relative;
}

#header .tmnf_cell{
    overflow: hidden;
}

/* Mobile Menu */
.show_menu {
    display: block;
    position: absolute;
    right: 20px;
    top:17px;
}
#navigation,
#additional_menu{
    display: none;
}
#navigation {
    border-style: solid;
    border-width: 0 0 1px 0;
    padding-bottom:15px ;
}
#navigation > li > a{
    letter-spacing: 2px;
}
.tmnf_menu ul {
    display: none;
    list-style: none;
    padding-left: 0;
    text-align: left;
}
.tmnf_menu li {
    padding: 7px 0;
    position: relative;
}

.tmnf_menu .sub-menu ul{
    margin: 2px 0 2px 15px;
    display: block;
}

.tmnf_menu .sub-menu li{
    padding:2px 0;
}

.tmnf_menu .sub-menu li.current-menu-item > a{
    font-weight: bold;
    text-decoration: underline !important;
}

.tmnf_menu li ul li:before {
    content: "";
    position: absolute;
    left: 20px;
}
.toggle_submenu{
    position: relative;
    float: right;
    cursor: pointer;
    background-color: rgba(255,255,255,.1);
    padding: 12px;
    height: 35px;
    width: 35px;
    font-size: 11px;
    transition: transform 0.3s ease;
    border-radius: 50%;
    line-height: 1.2 !important;
    margin-top: -2px;
}
.toggle_submenu.tmnf_submenu_active{
    transform: rotate(180deg);
}

.tmnf_menu li.special > a{
    width: 100%;
    padding: 8px 15px;
}

#additional_menu > ul > li > a{
    font-size: 13px !important;
    font-weight: 500 !important;
}

.tmnf_kill {
    pointer-events: none;
}
/* end Mobile Menu */  

/* 
END BASE STYLES for mobile devices */


/* MOBILES BIG (480px and above ) */
@media screen and (min-width: 480px) {

    .tmnf_page_header{
        padding: 10vw 0 8vw 0;
    }

    .tmnf_blog_item.has-post-thumbnail .tmnf_imgwrapper{
        margin: 0 35px 20px 0;
        width: 33%;
        float: left;
    }

    .no_search_entry .tmnf_searchform{
        max-width: 50%;
    }

    .tmnf_blog_item.sticky{
        padding-right: 25px;
    } 
    .tmnf_blog_item.sticky h2{
        padding-right: 60px;
    }

}
/* 
END mobile big devices */

/* TABLETS (768px and above ) */
@media screen and (min-width: 768px) {

    .tmnf_content{ width: 70%; float: left;}/*VAR*/
    .tmnf_sidebar{ width: 30%; float: left;}/*VAR*/

    .tmnf_columns_2 .tmnf_item {width: 50%;} 
    .tmnf_columns_3 .tmnf_item {width: 33%;} 
    .tmnf_columns_4 .tmnf_item {width: 25%;} 

    .foocol{width: 20%;}

    .foocol.first{width: 40%; padding-right: 5%;}

    #tmnf_woo .tmnf_content{ width: 75%;}
    #tmnf_woo .tmnf_sidebar{ width: 25%;}

    /* sidebar off */
    .tmnf_sidebar_none .tmnf_content,
    .tmnf_sidebar_none .archive_subtitle{
        float: none;
        margin: auto;
    }
    .tmnf_sidebar_none .tmnf_archive_title{
        text-align: center;
    }

    /* post/page layouts*/
    .tmnf_sidebar_left main{
        float: right;
    }

    .tmnf_sidebar_none .tmnf_single_inn,
    .tmnf_sidebar_none .tmnf_page_header_inn{
        max-width: 800px;
        margin: auto;
    }

    #tmnf_site.tmnf_sidebar_none .tmnf_page_header .tmnf_cell,
    .tmnf_page_header.tmnf_sidebar_none .tmnf_cell{
        text-align: center;
        margin: auto;
    }

    .tmnf_page_header.tmnf_sidebar_none .tmnf_post_meta {
        display: inline-block;
    }

    .tmnf_sidebar_none .alignfull{
		margin-left: calc(50% - 50vw);
		margin-right: calc(50% - 50vw);
		width: auto;
		max-width: 1000%;
		margin-top:25px;
		margin-bottom:25px;
	}
	.tmnf_sidebar_none .alignwide {
		margin-left: calc(38% - 25vw) !important;
		margin-right: calc(38% - 25vw) !important;
		width: auto;
		max-width: 1000%;
	}
	.alignwide img,.alignfull img {
		display: block;
		margin: 0 auto;
		padding:0 0;
	}
	.wp-block-gallery.alignleft{ margin-right:30px !important;}
	.wp-block-gallery.alignright{ margin-left:30px !important;}


    /* hero */
    .tmnf_page_header{
        padding: 15vw 0 13vw 0;
    }

    /* events */

    .events_2_columns .tmnf_cell{width: 50%;}
    .events_2_columns .tmnf_cell:nth-child(2n + 3){ clear: left;}

    .events_3_columns .tmnf_cell{width: 33.33%;}
    .events_3_columns .tmnf_cell:nth-child(3n + 4){ clear: left;}

    .events_4_columns .tmnf_cell{width: 25%;}
    .events_4_columns .tmnf_cell:nth-child(4n + 5){ clear: left;}

    .tmnf_event_content .tmnf_event_head{
        padding:35px 20px;
    }

    .tmnf_event_content .tmnf_event_head > div{
        padding:8px 20px;
        font-size: 18px !important;
    }

    /* other */

    .tmnf_post_navigation {
        display: flex;
        justify-content: space-between;
    }

    .tmnf_previous_post,
    .tmnf_next_post {
        width: 50%;
    }
    .tmnf_next_post{
        border-width: 1px 1px 1px 0;
    }
    
    .tmnf_related_item{
        width: 33.3%;
    }
    
    .tmnf_related_item:last-of-type{
        display: inherit;
    }

    /* footer */

    .footer_icons .tmnf_social_menu li a{
        width: auto;
        padding: 10px 15px;
    }

    .footer_icons .tmnf_social_menu li a span{
        display: block;
    }

    .footer_text{
        float: left;
    }

    .footer_menu{
        float: right;
    }

}
/* END tablets (768px and above ) */




/* SMALL DESKTOPS (992px and above ) */
@media screen and (min-width: 992px) {



    .tmnf_item.format-quote .tmnf_post_inn {
        padding: 30px;
    }

    .tmnf_blog_item.format-quote{
        padding: 60px;
    }
 

    .author_box{
        padding: 35px 35px 35px 140px;
    }

    .author_box_img{
        position: absolute;
        top: 35px;
        left: 35px;
    }


}
/* END small desktops (992px and above ) */



/* LARGE DESKTOPS (1200px and above) */
@media screen and (min-width: 1200px) {

    /* CELLS */
    .tmnf_cell{
        padding: 0 40px; /*VAR*/
    }

    .tmnf_events{
        margin: 0 -40px;
    }

    .tmnf_eleslider .owl-dots {
        margin: 0 0 0 -610px;
    }

    /* HEADER */

    .header_fullwidth .tmnf_container_head{
        padding: 0 1%;
    }

    /* tranparent */
    [class*="hero-cover"] #header {
        position: absolute;
        width: 100%;
    }

    [class*="hero-cover"] #header:not(.scrolled) {
        background: none !important;
    }

    [class*="hero-cover"] .tmnf_page_header {
        padding-top: 18vw;
    }

    [class*="hero-cover"] #navigation{
        border-color: rgba(255,255,255,.2);
    }

    /* classic */

    #header .tmnf_cell{
        display: flex;
        flex-direction: row;
        overflow: visible;
    }

    #header.scrolled{
        -webkit-box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.1);
        -moz-box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.1);
        box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.1);
    }

    .title_part{
        margin-right: 60px;
    }

    /* fixed */

    .header_fixed #header{
        position: fixed;
        width: 100%;
        top: 0;
    }

    [class*="hero-cover"] .header_fixed .tmnf_header_fix{
        display: none;
    }

    .header_fixed .tmnf_header_fix{
        height: 40px;
        display: block;
    }


    /* navi  */
    
    .navigation_part {
        flex: 1;
    }
    
    #navigation,
    #additional_menu {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    #navigation {
        z-index: 1;
        position: relative;
        padding-bottom: 0;
    }
    
    .tmnf_menu {
        display: flex;
        list-style-type: none;
        padding: 0;
    }
    
    .tmnf_menu > li {
        margin-left: 10px;
    }
    


    /* NAVIGATION */
    .show_menu,
    .toggle_submenu {
        display: none;
    }

    /* Main Menu Styles */
    .tmnf_menu {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .tmnf_menu li {
        display: inline-block;
        position: relative;
    }

    .tmnf_menu li a {
        display: block;
        padding: 10px 15px;
        text-decoration: none;
        line-height: 1.2;
    }

    /* Submenu Styles */
    .tmnf_menu ul {
        display: none;
        position: absolute;
        top: 90%;
        left: 15px;
        padding: 15px 25px;
        width: 230px;
    }

    .tmnf_menu ul li{
        width: 100%;
        padding: 0 10px;
    }

    .tmnf_menu .sub-menu ul{
        display: none;
    }

    .tmnf_menu li:hover > ul {
        display: block;
    }

    .tmnf_menu ul ul {
        top: 0;
        left: 100%;
        margin:-15px 0 0 0 !important;
    }

    .tmnf_menu li ul li a {
        display: block;
        padding: 12px 0;
        line-height: 1.4;
        text-decoration: none;
        border-bottom: 1px solid rgba(255,255,255,.1);
    }

    .tmnf_menu li ul li:last-child a {
        border-bottom: 1px solid rgba(255,255,255,0);
    }

    .tmnf_menu li.menu-item-has-children a{
        padding-right: 20px !important;
        position: relative;
    }

    .tmnf_menu li.menu-item-has-children > a::after {
        content: '';
        display: inline-block;
        width: 0;
        height: 0;
        content: '↓';
        position: absolute;
        line-height: 1;
        font-size: 14px;
        top:calc(50% - 7px);
        right: 10px;
        transform: translateY(-50%);
    }

    .tmnf_menu .sub-menu li.menu-item-has-children > a::after {
        right:12px;
        font-size: 12px;
    }

    
    .tmnf_menu>li>ul:after {
        border-width: 8px 0 0 8px;
        border-color: transparent transparent transparent rgba(0,0,0,.2);
        border-style: solid;
        bottom: 100%;
        content: "";
        height: 0;
        position: absolute;
        left: 0;
        top: -8px;
        width: 0;
    }

    .tmnf_menu li a:focus {
        outline: 2px solid rgba(0,0,0,.1); 
    }

    .tmnf_menu li:focus-within > ul {
        display: block;
    }

    .tmnf_menu li ul li a:focus {
        outline: 2px solid rgba(0,0,0,.3);
    }

    .tmnf_menu li.special{
        margin: -6px 0 0 25px;
    }

    .tmnf_menu li.special > a{
        padding: 15px 20px;
    }

    #additional_menu{
        float: right;
    }

    #additional_menu .tmnf_menu li > a{
        padding: 5px 7px;
    }

    #additional_menu a i{
        font-size: 15px;
        margin: 1px 6px 0 0 ;
        display: block;
        float: left;
    }

    /* end menu */

    #tmnf_core{
        margin-top: 90px;
    }

    #tmnf_core.tmnf_classic_single{
        margin-top: 140px;
    }
    

    main h1.tmnf_main_title{
        margin: 0 0 40px 0;
    }

    .tmnf_archive_title{
        margin: 120px 0 60px 0;
    }

    .archive_subtitle{
        max-width: 65%;
    }

    .tmnf_blog_item{
        margin: 0 0 60px;
    }

    /* hero */
    .tmnf_page_header .tmnf_cell {
        max-width: 75%;
    }

    #sidebar .sidebar_item{
        padding:35px;
    }

    .tmnf_related_wrap{
        margin: 0 -30px;
        max-width: calc(100% + 60px);
    }
    
    .tmnf_related_item{
        padding: 0 30px;
    }

    .tmnf_top_scroll{
        width: 70px;
        right: 100px;
        padding: 20px 20px 22px 20px;
    }

    /* addons */
    
    .tmnf_columns_2 .tmnf_repeater_section{
        width: 50%;
        float: left;
    }


}
/* END large desktops (1200px and above) */