/* Breakpoints
----------------------------------------------------------------------------------------------------*/

@media screen
and (min-device-width: 768px)
and (max-device-width: 1024px)
and (min-width: 1022px)
and (orientation: landscape), screen and (max-width: 1100px) and (min-width: 1022px) {

}
#mobile-menu {
    position: absolute;
    z-index: 20;
    left: 0;
    right: 0;
    display: none;
}
#mobile-menu .container {
    position: relative;
    overflow: visible;
}

.size-adder {
    height: 160px;
}

#edition-size-adder {
    height: 0px;
}

#mobile-menu .toggle {
    display: inline-block;
    cursor: pointer;
    position: absolute;
    padding: 10px;
    right: 0px;
    top: 0px;
    background: #F00000;
}
#mobile-menu ul li {
    margin: 20px 0px;
    font-size: 18px;
    font-weight: normal;
}
#mobile-menu ul {
    display: none;
    color: #FFF;
    padding: 10px 20px;
    float: right;
    box-sizing: border-box;
    background-color: rgba(0, 0, 0, 0.7);
    width: 360px;
    text-transform: uppercase;
}
#mobile-menu ul #top-spacer{
    margin-top: 87px;
 }
.bar1, .bar2, .bar3 {
    width: 30px;
    height: 4px;
    background-color: #FFF;
    margin: 4px 0;
    transition: 0.4s;
}
/* Rotate first bar */
.opened .bar1 {
    -webkit-transform: rotate(-45deg) translate(-7px, 5px) ;
    transform: rotate(-45deg) translate(-7px, 5px) ;
}

/* Fade out the second bar */
.opened .bar2 {
    opacity: 0;
}

/* Rotate last bar */
.opened .bar3 {
    -webkit-transform: rotate(45deg) translate(-6px, -5px) ;
    transform: rotate(45deg) translate(-6px, -5px) ;
}
@media screen and (max-width: 1235px) , screen and (max-device-width: 1235px) and (orientation: portrait) {
    #content-wrapper {
        width: 845px;
    }
    .two-in-line-module {
        width: 380px;
    }
    #favorite-container li {
        margin-right: 15px;
    }
}

@media screen and (max-width: 1215px) , screen and (max-device-width: 1215px) and (orientation: portrait) {
    #content {
        min-height: initial;
    }

    .size-adder {
        display: none;
    }

    #edition-size-adder {
        height: 100px;
    }

    #top-right {
        width: auto;
    }
    #menu, #whether {
        display: none;
    }
    #mobile-menu {
        display: block;
    }
    #archive-of-publications {
        margin-top: 12px;
    }
    #whether-and-social div#social-buttons {
        margin-right: 50px;
        width: 256px;
        padding-top: 10px;
        padding-bottom: 35px;
    }
    #top-right #img_18_plus_top {
        display: inline-block;
    }

    .width30 .grid-sizer,
    .width30 li {
        width: 100%;
    }

    .width30 .gutter-sizer {
        width: 0;
    }

    #copyright {
        margin-bottom: 30px;
    }

    .content {
        padding: 0px 0px 2px 0px;
    }

    #showcase {
        margin: 20px 0px;
    }

    .first-page-rubrica ul {
        display: none;
    }
    .module-separator.no-separator {
        display: none;
    }
    #favorite-container ul,
    #blog-container ul {
        display: flex;
    }

    .first-page-rubrica li,
    #favorite-container li,
    #blog-container li {
        width: 342px;
        margin-right: 16px;
        margin-bottom: 16px;
    }
    .search-results .first-page-rubrica li
    {
       width: 100%;
    }

    .first-page-rubrica .margin-left-and-right {
        margin: auto;
    }

    .first-page-rubrica li .cont {
        width: auto;
    }

    .first-page-rubrica img {
        width: 100%;
        height: auto;
    }

    ul.rubrica,
    ul.more-items {
        -moz-column-count: 1;
        -webkit-column-count: 1;
        column-count: 1;
    }

    #content .rubricator .container {
        width: auto;
    }

    .rubricator #content .element {
        width: 100%;
    }

    .rubricator #content .element {
        padding: 10px 0px;
    }

    #favorite-container .image-container {
        width: 100%;
    }

    #header-table > #logo {
        margin: 30px auto 0px auto;
    }
    .container {
        overflow-x: hidden;
        overflow-y: hidden;
        width: 720px;
        margin: auto;
    }

    .right-side,
    #day-and-time {
        width: 306px;
        box-sizing:content-box;
    }

    #content-wrapper {
        width: 360px;
        margin: auto;
        padding: 17px;
    }

    #content .container {
        width: auto;
    }
    #content > .lenta-name {
        margin-top: -17px;
    }

    .page-view #right-column {
        display: none;
    }

    .page-view #content-wrapper {
        width: 100%;
    }

    .one-in-line-module .article-title,
    .one-in-line-module.image-in-right .article-title {
        float: none;
        width: 100%;
        max-width: initial;
    }

    #top-line #logo-slogan,
    #header-table > #logo {
        padding-left: 27px;
    }

    #day-and-time {
        height: 30px;
    }

    #whether-and-social div {
        height: 20px;
    }

    #whether-and-social {
        height: auto;
    }

    #content img,
    .main-image .title, .main-image .author,
    .photostory .title, .photostory .author,
    .image-wrapper,
    div.main-image {
        max-width: 100%;
        height: auto;
    }

    .two-in-line-module {
        width: auto;
    }

    .one-in-line-module img {
        position: static;
    }

    .two-in-line-module.no-separator {
        margin: auto;
    }

    .module-separator.two-in-line-module.no-separator {
        display: block;
        margin-bottom: 40px;
        border-bottom: 1px #C0C0C0 solid;
        width: 100%;
        padding-bottom: 40px;
    }

    footer .container .social-button-row {
        width: 30px;
    }

    footer {
        padding: 0px;
    }

    footer .container .social-button-row a {
        display: block;
    }

    footer .container .social-button-row {
        position: absolute;
        right: 10px;
        top: 10px;
    }

    #img_18_plus {
        margin-top: 10px;
    }

    #bottomMenu, #disclaimer {
        display: block;
        width: auto;
        margin-top: 0px;
        padding: 0px 25px;
    }

    #bottomMenu ul {
        display: inline-block;
        margin-right: 30px;
    }

    .item-list {
        width: auto;
        /*        text-align: center;*/
    }

    #news-list li:nth-child(-n+5), #news-list li:nth-of-type(-n+5) {
        display: inline-block;
    }

    .column-header:after {
        content: " »";
    }

    #blog-list li, #dialog-list li {
        display: none;
    }

    #blog-list li:nth-child(-n+2), #blog-list li:nth-of-type(-n+2)
    #dialog-list li:nth-child(-n+2), #dialog-list li:nth-of-type(-n+2) {
        display: inline-block;
    }

    .element.smprev.third img {
        height: auto;
    }
    #content h3.backquote {
        width: auto;
        margin-left: 0px;
        margin-right: 0px;
    }
    #content h3.backquote:before {
         display: block;
         margin-bottom: 10px;
      margin-left: -17px;
    }
}

/* All except large Screens */
@media screen and (max-width: 720px), screen and  (max-device-width: 720px) {
    div.page, .container {
        overflow-x: hidden;
        width: 360px;
        margin: auto;
    }

    #edition-size-adder {
        height: 0px;
    }

    #content-wrapper iframe.youtube-frame {
        max-width: 100%;
        width: 100% !important;
        height: auto !important;
    }

    #news-list li:nth-of-type(12) ~ li {
        display: none;
    }
    #mobile-menu ul #top-spacer {
        margin-top: 129px;
    }
    #news-title-in-320 {
        display: block;
    }
    .rubricator #right-column {
        display: none;
    }
    .first-page-rubrica img {
        width: 330px;
        max-width: 100%;
    }
    #favorite-container ul,
    #blog-container ul {
        display: block;
        column-count: 1;
    }
    #header-table {
        display: flex;
        flex-flow: column;
    }

    #header-table #logo {
        order: 2;
        margin: 0px;
    }

    #top-right {
        order: 1;
    }

    .first-page-rubrica li,
    #blog-container li,
    #favorite-container li {
        width: auto;
        margin: 0px 15px 15px 15px;
    }

    .first-page-rubrica li .cont {
        width: 100%;
    }

    #right-column .scrollable {
        padding-bottom: 50px;
    }

    #whether-and-social div.right-side {
        background: none;
    }

    #header-table > div#grey-right, #day-and-time {
        display: none;
    }

    #whether-and-social div {
        text-align: left;
        height: 30px;
        padding-top: 10px;
        padding-bottom: 15px;
    }

    .first-page-rubrica li a {
        display: block;
    }

    .right-side {
        width: 306px;
    }
}

@media screen and (max-width: 365px), screen and  (max-device-width: 365px) {
    div.page, .container,
    #content-wrapper,
    #mobile-menu ul,
    .right-side {
        width: 100%;
        box-sizing: border-box;
    }

    .add-me-pop-app {
        width: calc(100% - 16px);
    }

    .adv-header-block {
        height: 250px;
        margin-bottom: 10px;
    }
}

@media screen and (max-width: 420px) , screen and (max-device-width: 420px) {
    input.searchimp {
        width: 80px;
    }

    #menu > ul > li a {
        font-size: 11px;
    }

    /* Base */
    body {
        word-wrap: break-word;
    }

    #first-article-list li:nth-child(-n+2),
    #first-article-list li:nth-of-type(-n+2) {
        display: block;
    }

    #menu, .rubricator-types, .rubricator-theme {
        font-size: 11px;
    }

    .rubricator-theme {
        display: none;
    }

    .articleBottom h1 {
        font-size: 16px;
    }

    #menu > ul > li a {
        padding: 4px 0px;
    }

    .element.smprev {
        width: 49%;
    }

    .adv-header-block {
        height: 250px;
        margin-bottom: 10px;
    }
}

/* Only Phones (Portrait) */
@media screen and (max-width: 564px), screen and  (max-device-width: 564px) {

    .item-list > li {
        display: none;
        visibility: hidden;
    }

    .item-list > li.news {
        visibility: visible;
    }

    .item-list li img, .rubrica .dialog img {
        width: 100%;
        height: auto;
    }

    .item-list li:nth-child(-n+2),
    .item-list li:nth-of-type(-n+2) {
        display: inline-block;
        visibility: visible;
    }

    .element.dialog {
        width: 100%;
    }

    .element.dialog .imageHolder a {
        width: 100%;
    }
}
