/* GENERAL RESPONSIVE RULES */

.mainWrap {
    min-width: 305px;
}

img {
    max-width: 100%;
}

.only-mobile {
    display: block !important;
}

.only-desktop,
.only-tablet {
    display: none !important;
}

.hidden-desktop {
    display: block !important;
}

@media (min-width: 621px) {
    .only-mobile {
        display: none !important;
    }

    .only-tablet {
        display: block !important;
    }
}

@media (min-width: 961px) {
    .only-tablet {
        display: none !important;
    }

    .only-desktop {
        display: block !important;
    }

    .hidden-desktop {
        display: none !important;
    }
}

/* HEADER */

@media (max-width: 960px) {
    .mainWrap,
    .mainTop {
        background: none;
    }

    .header {
        margin: 0;
    }

    .ymnav,
    .ym-languages-wrapper {
        display: none;
    }

    .ym-header,
    .ym-header a {
        height: auto;
    }
}

/* MAIN CONTENT */
@media (max-width: 960px) {
    .primary-content,
    #right-sidebar {
        margin: auto;
        float: none;
        display: block;
        clear: both;
    }

    #right-sidebar {
        width: 305px;
        padding-top: 15px;
    }

    #right-sidebar .g8 {
        width: 305px;
        max-width: none;
        margin: auto;
    }

    .article-content p,
    .article-content ul {
        padding-left: 0;
        padding-right: 0;
    }

    .article-content {
        -ms-word-wrap: break-word;
        word-wrap: break-word;
    }

    .article-content img {
        max-width: 100% !important;
    }

    .article-social-media {
        margin: 0;
    }

    .section-subcategories a,
    .pagination a {
        padding: 5px 10px;
        display: inline-block;
    }
}

/* NAVIGATION */

.responsive-menu {
    display: none;
}

.responsive-menu .responsive-languages {
    border: 1px solid #bcdff7;
    padding: 3px 5px;
    display: block;
    margin: 0 auto;
    width: 90%;
    text-align: center;
}

.responsive-menu ul.menu {
    background: #fff;
    padding: 5px 0 0;
    text-align: center;
}

.responsive-menu li {
    padding: 10px 0;
    border-bottom: 1px solid #bcdff7;
    clear: both;
}

.responsive-menu .sub {
    margin: 10px 10px -10px 10px;
}

.responsive-menu .sub li {
    border-bottom: 1px solid #fff;
    background: #bee3ff;
    clear: none;
}

.responsive-menu a {
    text-decoration: none;
}

.responsive-menu li.separator {
    display: none;
}

@media (min-width: 621px) {
    .responsive-menu .sub li {
        border-bottom: 1px solid #fff;
        width: 50%;
        float: left;
    }
}

@media (max-width: 620px) {
    .mobile-no-margin {
        margin: 0;
    }
}

/* RELATED ARTICLES */

.section-thumb a {
    display: block;
    width: 100%;
    padding-top: 65%; /* CSS hack to set the height proportional to width */

    background: no-repeat center center;
    -webkit-background-size: cover;
    background-size: cover;
}

@media (min-width: 621px) {
    .related-articles-bottom li {
        width: 31%;
        float: left;
    }
}