/*
Theme Name: Investigator V2
Author: Ruslan Ratych
Version: 1.0
*/

#wpadminbar { position: fixed;}

.admin-bar .header._home { top:32px;}
@media screen and (max-width: 782px) {
    .admin-bar .header._home { top:46px;}
}

body.single-post { padding: 0;}

/* lang menu */
.lang-dropdown:hover .language-chooser {
  visibility: visible;
  opacity: 1;
}
.language-chooser {
  position: absolute;
  top: 100%;
  left: -1rem;
  right: -1rem;
  background: #FF0000;
  z-index: 700;
  visibility: hidden;
  opacity: 0;
  transition: 0.3s;
  padding: 0.5rem 0;
}
@media screen and (max-width: 1000px) {
  .language-chooser {
    visibility: visible;
    opacity: 1;
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}
.language-chooser li a {
  line-height: 1.7;
  padding: 0 1rem;
  display: block;
  font-weight: bold;
}
@media (hover: hover) {
  .language-chooser li a:hover {
    opacity: 0.7;
  }
}
.language-chooser li.active a {
  display: none;
}
@media screen and (max-width: 1000px) {
  .language-chooser li.active a {
    display: flex;
    background: #293863;
  }
}

h1 mark { background: none; color:#f00;}

.content.content-longread { max-width: 1150px;}

.post .post__title { font-size: 2rem; line-height: 1.4;}
.post.post-big .post__title { font-size: 3rem; line-height: 1.3;}
.post .post__video { display: block; position: absolute; margin: 0; top:1.8rem; right:1.8rem; z-index: 2;}
.post .authors-wrap { display: flex; flex-wrap:wrap;}
.post .post-author-row { display: flex; align-items: center; margin-right:1.5rem;}
.post .post-author-row:last-child { margin-right: 0;}
.post .post-author-row .post__author { margin-right: 0; padding: 0.3rem 0.8rem 0.5rem; font-size: 0.7em; max-width: 100px; }
.post .post__author-thumb { display: block;}
.post .post__author-thumb .post__author-thumb-item { width: 4rem; height: 4rem; margin-right: 0.8rem;}

.post-list._publications .post__title { font-size: 2.8rem;}
.post-list._publications .post-big .post__title { font-size: 3rem;}

.single-post-row { margin-bottom: 3rem;}
.single-post__share .addtoany_list { padding: 0.5rem 0; display: flex;}
.single-post__share .addtoany_list a { padding: 0; margin-right: 1rem; display: block;}
.single-post__share .addtoany_list a .a2a_svg { display: block; position: relative; background: #2D3969 !important; border-radius: 50% !important;}
.single-post__share .addtoany_list a .a2a_svg svg { display: none;}
.single-post__share .addtoany_list a .a2a_svg:before { content:''; display: block; width: 16px; height: 16px; position: absolute; top:50%; left:50%; transform:translate(-50%,-50%); background-repeat: no-repeat; background-position: center; background-size:contain;}
.single-post__share .addtoany_list a .a2a_s_facebook:before { background-image:url(images/icons/facebook.svg);}
.single-post__share .addtoany_list a .a2a_s_twitter:before { background-image:url(images/icons/twitter.svg);}
.single-post__share .addtoany_list a .a2a_s_telegram:before { background-image:url(images/icons/telegram.svg);}
.single-post__share .addtoany_list a:hover .a2a_svg { background: #FF0000 !important; opacity: 1;}

.alignnone { margin:0 3rem 2rem 0; max-width: 100%;}
.aligncenter { display: block; margin:0.5rem auto 2rem;}
.alignright { float: right; margin: 0.5rem 0 2rem 3rem;}
.alignleft { float: left; margin:0.5rem 3rem 2rem 0;}
.entry-content img { margin-bottom: 2rem;}
.entry-content .wp-caption img { display: block; margin: 0;}
.entry-content h2, .entry-content h3 { margin-top: 3rem;}
.entry-content h2:first-child, .entry-content h3:first-child { margin-top: 0;}
.wp-caption .wp-caption-text { display: block; font-size: 1.4rem; margin: 1rem 0 0; font-style:normal;}
.wp-caption .wp-caption-text em { font-style:normal;}
.entry-content iframe { display: block; max-width: 100%; margin-bottom: 2rem;}
.entry-content iframe[src*="youtu"] { width: 100%; height: auto; aspect-ratio: 16/9;}

.more-article { padding-top: 0;}

.news .news__desc { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;}

.content-search { margin-bottom: 2rem;}
.content-search .search__form { display: flex; max-width: 600px;}
.content-search .search__form .search-form__input { background: rgba(20,101,97,0.03); font-size: 1.8rem; height: 60px; padding: 0 2rem;}
.content-search .search__form .btn { font-size: 1.8rem; height: 60px; padding: 0 3.5rem;}
.search-filters { margin-bottom: 2rem;}

.calendar-wrap {}
.calendar-wrap .year-caption { display: flex; justify-content: center; margin-bottom:3rem; font-size:3rem; line-height: 4rem; font-weight:bold; color:#293863;}
.calendar-wrap .year-caption-prev, .calendar-wrap .year-caption-next { margin:0 5px;}
.calendar-wrap .year-caption-prev svg, .calendar-wrap .year-caption-next svg { display: block;}
.calendar-wrap .year-caption-prev svg path, .calendar-wrap .year-caption-next svg path { stroke:#293863;}
.calendar-wrap .year-caption-prev:hover svg path, .calendar-wrap .year-caption-next:hover svg path { stroke:#f00;}
.calendar-entry { display: flex; flex-wrap:wrap; margin: 0 -1.5rem;}
.calendar-wrap .calendar-archives { width:33.33%; flex-shrink: 0; padding:0 1.5rem; margin-bottom:3rem;}
.calendar-wrap.calendar-month .calendar-archives { width:100%;}
.calendar-wrap .calendar-archives>.archives-years>.year { position:relative; top:auto; left:auto; margin-left:0; z-index:1;}
.calendar-wrap .calendar-archives.twentyfourteenlight .calendar-navigation { background-color:#293863;}
.calendar-wrap .calendar-archives.twentyfourteenlight .calendar-navigation>.menu-container { height:4rem;}
.calendar-wrap .calendar-archives.twentyfourteenlight .calendar-navigation>.menu-container>a.title { height:4rem; line-height:4rem; font-size: 2rem; text-transform: uppercase; font-weight: bold;}
.calendar-wrap .calendar-archives.twentyfourteenlight .weekdays, .calendar-wrap .calendar-archives.twentyfourteenlight>.archives-years { background: rgba(20,101,97,0.03);}
.calendar-wrap .calendar-archives.twentyfourteenlight .weekdays { padding-top: 0.5rem;}
.calendar-wrap .calendar-archives.twentyfourteenlight>.archives-years { padding-bottom:1rem;}
.calendar-wrap .calendar-archives.twentyfourteenlight .month, .calendar-wrap .calendar-archives.twentyfourteenlight .day { background:none; color:#000; border:none; font-size: 2rem; line-height: 3rem;}
.calendar-wrap .calendar-archives.twentyfourteenlight .day { padding: 0; color:rgba(0,0,0,0.2);}
.calendar-wrap .calendar-archives.twentyfourteenlight .day.has-posts a {padding: 0 !important;}
.calendar-wrap .calendar-archives.twentyfourteenlight .calendar-navigation>.menu-container>ul.menu { box-shadow:none; background-color:#e6e9ee;}
.calendar-wrap .calendar-archives.twentyfourteenlight .month.has-posts a, .calendar-wrap .calendar-archives.twentyfourteenlight .day.has-posts a, .calendar-wrap .calendar-archives.twentyfourteenlight .calendar-navigation>.menu-container li>a, .calendar-wrap .calendar-archives.twentyfourteenlight .calendar-navigation>.menu-container li>a.selected, .calendar-wrap .calendar-archives.twentyfourteenlight .calendar-navigation>.menu-container li>a.selected:hover { background:none; color:#000;}
.calendar-wrap .calendar-archives.twentyfourteenlight .month.has-posts a:hover, .calendar-wrap .calendar-archives.twentyfourteenlight .day.has-posts a:hover, .calendar-wrap .calendar-archives.twentyfourteenlight .day.has-posts a.current, .calendar-wrap .calendar-archives.twentyfourteenlight .calendar-navigation>.prev-year:hover, .calendar-wrap .calendar-archives.twentyfourteenlight .calendar-navigation>.next-year:hover, .calendar-wrap .calendar-archives.twentyfourteenlight .calendar-navigation>.menu-container li>a:hover { background-color:#293863; color:#fff;}
.calendar-wrap .calendar-archives.twentyfourteenlight .calendar-navigation>.menu-container:hover>.arrow-down { background-color:#293863;}
.calendar-wrap .calendar-archives.twentyfourteenlight .calendar-navigation>.prev-year:hover, .calendar-wrap .calendar-archives.twentyfourteenlight .calendar-navigation>.next-year:hover, .calendar-wrap .calendar-archives.twentyfourteenlight .calendar-navigation>.menu-container>.arrow-down:hover { background-color:#f00;}
.calendar-wrap .calendar-archives.twentyfourteenlight .day.weekday { font-weight:normal; color:#000; font-size: 1.4rem;}
.calendar-archives .prev-month, .calendar-archives .next-month { position: relative; display: table-cell; height:4rem; vertical-align: middle; width: 4rem; font-size:3rem; text-align: center; color:#293863;}
.calendar-archives .prev-month:hover, .calendar-archives .next-month:hover { background-color:#c00; color:#fff;}

@media screen and (max-width: 1000px) {
    .admin-bar .header { top:32px;}
}

@media screen and (max-width: 782px) {
    .admin-bar .header { top:46px;}
}

@media screen and (max-width: 767px) {
    .mobile-hide { display: none !important;}
    
    .title-30 { padding-bottom: 0;}
    
    .offer .post .post__thumb, .single-post .single-post__thumb .thumb { padding-bottom: 100%;}
    .post .post__full-width .post__title-white { font-size:2.2rem; margin-bottom: 0;}
    
    .post .post__title, .post.post-big .post__title, .post-list._publications .post__title { font-size: 2.4rem; line-height:1.25;}
    .post-list._adaptive-type .post__video { top:1.8rem; bottom:auto; right:1.8rem;}
    .post .authors-wrap { display: block; padding: 0.6rem 1rem; background: #293863; margin-bottom: 1rem;}
    .post-list._adaptive-type .post .authors-wrap { background: none; padding: 0;}
    .post .post__author-thumb { display: none;}
    .post .post-author-row { width:auto; display: inline; margin-right: 0;}    
    .post .post-author-row .post__author { padding: 0; margin: 0; max-width: none;}
    .post .post-author-row .post__author:after { content:', ';}
    .post .post-author-row:last-child .post__author:after { content:none;}
    .post-list._adaptive-type .post__category { z-index: 1;}
    .publications .post__body .post__full-width { order:-1; margin-bottom:1rem;}
    .publications .post-list._adaptive-type .post__date { position: absolute; width: 100%; text-align: right; right: 0; bottom: calc(100% + 15px); margin: 0; color: #fff; background: #293863; height: 4rem; line-height: 4rem; padding: 0 1.5rem;}
    
    .alignnone, .aligncenter, .alignright, .alignleft { display: block; float: none; margin:0.5rem auto 2rem;}

    .calendar-wrap .calendar-archives { width:50%;}
}

@media screen and (max-width: 576px) {
    .calendar-wrap { margin-left: -20px; margin-right: -20px;}
    .calendar-wrap .calendar-archives { width:100%;}
}