/*
Theme Name: Barbara Lubich
Theme URI: https://btsa.de/wp_themes/barbara_lubich
Author: BTSA
Author URI: http://btsa.de/
Description: WordPress theme for Barbara Lubich by Matthias Marx & BTSA
Version: 0.2.0
License: GNU General Public License
License URI: https://www.gnu.org/licenses/gpl.html
Tags: translation-ready
Text Domain: barbara_lubich
*/

:root {
    --bs-font-sans-serif: Montserrat, sans-serif;
    --bs-font-serif: Neuton, serif;
}

html {
    font-size: 20px;
    font-weight: 600;
}
.fw-light {
    font-weight: 400 !important;
}

img {
    max-width: 100%;
    height: auto;
}

.site-title,
h1.entry-title
{
    font-size: 2em;
    line-height: 1.2;
}

.site-title { 
    text-transform: uppercase; 
    padding: 0 0 .4em 0;
    margin-top: .8em;
    margin-bottom: .5em;
    /*
    border-bottom: .25rem solid #000;
    */
    background: var(--line-bg);
    background-size: 1.6em;
    background-position: 0 bottom;
    background-repeat: repeat-x;
}

h1.entry-title {
    margin-bottom: 1em;
    background: var(--line-bg-sm);
    background-size: 1.2em;
    background-position: 0 -0.55em;
}

.main-sidebar,
.page-footer {
    margin-top: 2em;
    padding-top: 2em;
    border-top: .25rem solid #000;
}

.widget-area .widget-container {
    padding: .5em 0;
}
.widget-area ul {
    list-style: none;  
    padding: 0;
}
.wp-block-search__label.screen-reader-text {
    width: 1px;
}

.navbar .menu-item {
    padding: .2em 0;
}

.navbar .menu-item .nav-link 
{
    background: var(--line-bg);
    background-size: 1.6em;
    line-height: 1.6em;
    display: block;
    padding: 0;
    transition: background-position .5s ease-in-out;
}

.navbar .menu-item .nav-link:hover,
.navbar .menu-item.active > .nav-link, 
.navbar .menu-item.current-menu-parent > .nav-link 
{
    background-position: 0 -0.7em;
}


#page-header .navbar {
    position: initial;
}
#page-header .navbar-toggler {
    position: absolute;
    top: 0;
    left: 0;
}
#page-header .navbar .navbar-nav {
    width: 100%;
}
#page-header .sub-menu { 
    font-size: .8em;
    display: none;
}
#page-header .menu-item .sub-menu.show, 
#page-header .menu-item.active > .sub-menu, 
#page-header .menu-item.current-menu-parent .sub-menu 
{ 
    display: block;
}


.entry-header .wp-post-image {
    margin-bottom: 2em;
}
.entry-content .wp-block-columns {
    hyphens: auto;
}
.entry-content .wp-block-heading.has-text-align-center:first-child {
    font-size: inherit;
    margin-bottom: 1rem;
}

.text-link,
.entry-content a {
    text-decoration: underline;
    text-decoration-thickness: 0.12em;
}

.text-link:hover,
.entry-content a:hover {
    text-decoration: line-through;
    text-decoration-thickness: 0.12em;
}

.home .wp-block-paragraph,
.entry-excerpt,
.comment-body p {
    font-family: var(--bs-font-serif);
    font-weight: normal;
    font-size: 1.2rem;
}
.entry-excerpt { font-style: italic; }
.entry-excerpt .more-link { font-style: normal; }


.wp-block-embed__wrapper {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
    padding-top: 56.25%;
}
.wp-block-embed__wrapper iframe, .wp-block-embed__wrapper video {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}



/* GRID */

ul.grid {
    list-style: none;
    padding: 0;
    margin: 0 -1px;
}
ul.grid li {
    padding: 0;
}

ul.grid .grid-item { 
    position: relative;
    overflow: hidden;
    padding-bottom: 4%;
}
ul.grid .grid-item .entry-title { 
    font-size: inherit;
    margin-bottom: 0;
}

@media (min-width: 769px) {
    .grid-sizer,
    .grid-item { 
        width: 48%; 
    }
    .gutter-sizer { width: 4%; }
}





/* POST NAVIGATION */


.posts-navigation {
    padding: 2em .5em;
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
}
.nav-links {
    display: flex;
}
.nav-links a {
    display: inline-block;
    width: 90%;
}
.nav-links a:hover {
    text-decoration: none;
}
.navigation .nav-previous,
.navigation .nav-next
{
    flex-basis: 50%;
    flex-grow: 2;
}
.navigation .nav-next
{
    text-align: right;
}



@media (min-width: 992px) {         /* LG */
    .navbar-expand-lg .navbar-nav .nav-link {
        font-size: 1.8em;
    }
    #page-header .navbar-toggler {
        display: none;
    }
    #page-header .sub-menu { 
        font-size: .5em;
    }
    .site-title { 
        margin-top: 0;
        margin-bottom: 2rem;
    }
    
    .main-content > header, 
    .main-content > article:first-child .entry-header 
    {
        min-height: 182px;
    }
}
