/*--------------------------------------------------------------
   Widgets
--------------------------------------------------------------*/
.johannes-sidebar{
    display: block;
    margin-top: 0;
    @include mq('md') {
        margin-top: 30px;
    }
    @include mq('lg') {
        margin-top: 0;
    }
}
.widget-title {
    line-height: 1.4;
    margin-top: 0;
}
.johannes-sticky .widget:last-child{
    margin-bottom: 0;
}
.widget li a{
    transition: all .15s ease-in-out;
}
.widget {
    font-size: 1.4rem;
    line-height: 1.7;

    margin-bottom: 30px;
    @include mq('md') {
        margin-bottom: get-gutter-width('md');
    }
    @include mq('lg') {
        margin-bottom: get-gutter-width('lg');
    }
    @include mq('xl') {
        margin-bottom: get-gutter-width('xl');
    }
}

.widget p{
    margin-bottom: get-gutter-width('xl') * 0.5;
    &:last-child {
        margin-bottom: 0;
    }
}

.widget-inside {
    padding: 20px;
    @include mq('sm') {
        padding: get-gutter-width('md')*0.75 get-gutter-width('md') get-gutter-width('md');
    }
    @include mq('lg') {
        padding: get-gutter-width('lg')*0.75 get-gutter-width('lg') get-gutter-width('lg');
    }
    @include mq('xl') {
        padding: get-gutter-width('xl')*0.75 get-gutter-width('xl') get-gutter-width('xl');
    }
}

.johannes-sidebar .widget-title {
    margin-bottom: 20px;
    margin-top: 0;
    @include mq('md') {
        margin-bottom: get-gutter-width('xl') * 0.5;
    }
}

.widget li {
    margin-bottom: get-gutter-width('xl') * 0.25;
    position: relative;
    &:last-child {
        margin-bottom: 0;
    }
}

.widget_recent_entries li,
.widget_recent_comments li{
    margin-bottom: 20px;
}
.widget_recent_entries a,
.widget_recent_comments a,
.widget a.rsswidget {
 font-weight: 900;
 display: block;
}



/*Calendar Widget*/

.widget_calendar table {
    background: transparent;
    width: 100%;
    table-layout: fixed;
    -moz-box-shadow: none;
    -webkit-box-shadow: none;
    box-shadow: none;
    margin-bottom: 0;
    position: relative;
}

.widget_calendar table {
    font-size: 1.1rem;
}

.widget_calendar table thead th {
    text-align: center;
    padding: 5px 0;
}
.widget_calendar table tbody td {
    text-align: center;
    padding: 5px 0;
}

.widget_calendar tbody tr {
    border-bottom: none;
}

.widget_calendar table tfoot {
    background: transparent;
}

.widget_calendar table tfoot tr #next {
    text-align: right;
}

.widget_calendar table caption {
    font-size: 1rem;
    position: absolute;
    top: -25px;
    left: 0;
    text-transform: uppercase;
    opacity: .8;
}

.widget_calendar #today {
    position: relative;
}
.widget_calendar #prev,
.widget_calendar #next{
    padding: 0;
}
.widget_calendar a{
    border: 1px solid;
    display: inline-block;
    text-align: center;
    padding: 4px 7px;
    opacity: .8;
    min-width: 30px;
    &:hover{
        opacity: 1;
    }
}
.widget_calendar #prev a,
.widget_calendar #next a{
    padding: 4px 15px;
}

//RSS Widget
.rss-date {
    display: block;
    margin-bottom: 10px;
}

.widget cite,
.widget .post-date,
.cat-item .count,
.rss-date {
    font-size: 90%;
}
.post-date{
    display: block;
}

.widget_rss ul li {
    margin-bottom: get-gutter-width('xl') * 0.5;
}

.widget a.rsswidget {
    font-size: inherit;
    line-height: inherit;
}

.rss-widget-icon {
    display: none;
}
.widget .wp-video{
    margin-bottom: 0;
}
.widget .gallery-item figcaption{
    display: none;
}

//Meks Flickr widget
ul.flickr li,
.widget ul.flickr li {
    margin: 6px 3px 0 3px !important;
}

ul.flickr {
    margin: -6px -3px 0;
}

ul.flickr:after {
    content: "";
    display: table;
    clear: both;
}
.widget .meks-widget-cta .fa{
    display: none;
}
.widget ul.flickr img,
.meks-instagram-widget a img {
    object-fit: cover;
    opacity: 1;
    transition: all .25s ease-out;
}

.widget.mks_flickr_widget ul.flickr li {
    overflow: hidden;
}

.widget ul.flickr li:hover img,
.meks-instagram-widget a:hover img {
    opacity: .8;
}

.meks-instagram-widget div>a {
    overflow: hidden;
}
.meks-instagram-follow-link{
    text-align: center;
}
.widget .meks-instagram-follow-link a,
.widget .mks_read_more a{
    width: auto;
    min-width: 120px;
}
//Meks Ads widget
.widget.mks_ads_widget .widget-title {
    font-size: 70%;
    opacity: .5;
    margin-bottom: 10px;
}

.widget.mks_ads_widget .small li, .widget.mks_adswidget_ul.small li {
    margin-right: 6px;
    margin-left: 6px;
    margin-bottom: 10px;
}
.widget.mks_ads_widget ul.custom li, 
.widget.mks_adswidget_ul.custom li{
    margin:0;
}
.mks_adswidget_ul li img,
.mks_adswidget_ul li >div{
    max-width: 100%;
}
.mks_adswidget_ul.custom li img, 
.mks_adswidget_ul.custom li>div {
    max-width: 100% !important;
    width: 100% !important;
}

.widget ul.mks_social_widget_ul li:hover a {
    opacity: 1;
}
.widget.mks_ads_widget .johannes-bg-alt-2 li a,
.widget.mks_ads_widget .johannes-bg-alt-1 li a{
    background-color: initial;
    color: initial;    
}
p + .mks_social_widget_ul{
    margin-top: 16px;
}
//Widget Archive / Category

.widget_categories ul li,
.widget_archive ul li{
    display: block;
    overflow: hidden;
}
.widget .count{
    font-weight: 900;
}
.widget_categories ul li .dots:before,
.widget_archive ul li .dots:before{
    content: ". . . . . . . . . . . . . . . . . . . . " ". . . . . . . . . . . . . . . . . . . . ";
    white-space: nowrap;
    display: block;
    width: 100%;
    height: 2px;
    opacity: 1;
    position: absolute;
    z-index: 0;
    line-height: 1;
    top: 0;
    display: block;
}
.widget_categories ul li a,
.widget_archive ul li a{
    position: relative;
    z-index: 1;
}
.widget .count{
    position: absolute;
    right: 0;
    z-index: 1;
}
.widget .johannes-accordion-nav + .count{
    right: 20px;
}
.widget_categories ul li a,
.widget_archive ul li a{
    padding-right: 10px;
    display: inline-flex;
}
.widget .count{
    display: inline-flex;
    padding-left: 10px;
}
//Aligns in widgets
.widget .alignnone {
    margin: 0 auto;
}
.widget .wp-caption{
    margin-bottom: 24px;
}

.section-description .search-form .h3,
.widget .search-form .h3 {
    display: none;
}
.mks_author_widget h3 a{
    transition: color .15s ease-in-out;
}
.widget.mks_author_widget a:hover {
    background: transparent;
}

//Author widget
.mks_author_widget{
    text-align: center;
}
.mks_author_widget h3{
    margin: 10px 0;
}
.widget.mks_author_widget img{
    float:none;
    margin: 0 auto;
}
.mks_author_widget h3{
    display: block;
}
.widget.mks_author_widget .mks_autor_link_wrap{
    margin-top: 20px;
}

//Themeforest widget
.mks_themeforest_widget_ul{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 0 -5px;
}
.widget .mks_themeforest_widget_ul li{
    margin: 0 5px 10px 0;
}

//Flickr
ul.flickr {
    margin: 0px -4px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
.widget ul.flickr li, ul.flickr li {
    margin: 0 4px 2px !important;
}

//Ads widget
.johannes-sidebar .widget.mks_ads_widget .widget-inside{
    background: transparent;
    padding: 0;
    text-align: center;
}
.mks_adswidget_ul.large li > div{
    margin: 0 auto;
    max-width: 100%;
}
//Tagcloud widget
.tagcloud {
    font-size: 0;
    display: flex;
    flex-wrap: wrap;
    margin: 0 -4px;
}

.tagcloud a {
    margin-bottom: 8px;
    height: 30px;
    line-height: 30px;
    padding: 0 14px;
    font-size: 1rem !important;
    text-transform: uppercase;
    display: inline-block;
    vertical-align: middle;
    border: 1px solid;
    cursor: pointer;
    font-weight: 900;
    flex: 1 0 auto;
    position: relative;
    text-align: center;
    transition: all .15s ease-in-out;
}

.tagcloud a {
    margin-left: 4px;
    margin-right: 4px;
}

//Widget Search / Form elements
.widget_search,
.search-alt {
    input[type=search],
    input[type=text]{
        border: none;
        border-bottom: 1px solid;
        padding: 15px 0;
        height: auto;
        line-height: 1;
    }
    input[type=submit],
    button[type=submit]{
        width: 100%;
    }
}
.widget_search button[type=submit]{
    margin-top: get-gutter-width('xl') * 0.25;
}

/*Accordion Functionality Widget*/

.widget .sub-menu,
.widget .children{
  display: none;
  margin: 10px 0 10px 15px;
}

.widget .menu-item-has-children .johannes-accordion-nav,
.widget .page_item_has_children .johannes-accordion-nav,
.widget .cat-parent .johannes-accordion-nav{
    position: absolute;
    right: -10px;
    height: 32px;
    width: 32px;
    cursor: pointer;
    display: flex;
    font-size: 2rem;
    top: -6px;
    text-align: center;
    line-height: 32px;
    align-items: center;
    justify-content: center;
    user-select: none;
    transition: all .15s ease;
}
.active > .johannes-accordion-nav{
  transform: rotate(180deg);
}
.widget li.active > .johannes-accordion-nav{
  top: -1px;
}


//Posts Widget
.johannes_posts_widget .entry-header > a{
    transition: all .15s ease-in-out;   
    font-weight: 900;
    font-size: 1.8rem;
    line-height: 1.2; 
}
.johannes_posts_widget .entry-media a{
    position: relative;
}
.johannes_posts_widget .original-widget-post{
    margin-bottom: 24px;
}
.johannes_posts_widget .original-widget-post:last-child,
.johannes_posts_widget .johannes-widget-posts-small  .original-widget-post:last-child{
    margin-bottom: 0;
}
//Large
.johannes-widget-posts-large .entry-media{
    margin-bottom: 12px;
}
.johannes_posts_widget .johannes-widget-posts-small  .original-widget-post{
    margin-bottom: 20px;
}


//Small
.johannes_posts_widget .johannes-widget-posts-small .entry-header a{
    font-size: 1.6rem;
}
.johannes-widget-posts-small .original-widget-post{
    display: flex;
}
.johannes-widget-posts-small .entry-media {
    margin-bottom: 0;
    margin-right: 24px;
    flex: 0 0 70px;
}
.johannes-widget-posts-small .entry-header{
    margin-top: -5px;
}
.widget-inside iframe{
    max-width:100%;
    height: auto;
}