@media print {
    @page {
        size: A4;
        margin-top: 0 !important;
    }
    body {
        margin: 0;
    }
    body * {
        visibility: hidden;
    }
    #main-navigation,
    #header-top,
    #mobile-header,
    .header.clearfix,
    .hide-on-mobile,
    .widget_custom_html,
    #fake_end_point,
    .single-post-realtime-data,
    .footer,
    .content-tags {
        display: none;
    }

    #single-content-parent .content-wrapper,
    #single-content-parent *,
    #gallery-container,
    #gallery-container *,
    .page-header,
    .page-header *,
    .page-footer,
    .page-footer *,
    .print-only * {
        visibility: visible;
    }

    .page-header.d-none,
    .page-footer,
    .content-meta.single-meta.hide-on-mobile,
    .print-only.d-none {
        display: block !important;
    }
    /* safari styling */
    #single-content-parent .col-lg-9 {
        max-width: 100% !important;
        flex: unset;
    }/* --safari styling-- */

    /* firefox styling */
    #content-wrapper-parent img,
    #content-wrapper-parent table tr {
        page-break-inside: unset;
    }/* --firefox styling-- */

    .page-header {
        position: fixed;
        top: 10mm;
        width: 100%;
        height: 80px;
        border-bottom: 1px solid #f4f4f4;
    }
    .page-header.safari {
        position: relative;
    }

    .page-header .logo {
        width: 49%;
        display: inline-block;
    }
    .page-header .logo img {
        max-height: 50px;
    }
    .page-header .tagline {
        color: #827d7d;
        width: 50%;
        display: inline-block;
        text-align: right;
    }
    .page-footer {
        position: fixed;
        width: 100%;
        bottom: 10mm;
        width: 100%;
        border-top: 1px solid #f4f4f4;
        padding-top: 5mm;
    }
    .print-only * {
        color: #827d7d;
    }

    .black-trans-label {
        border: 1px solid rgba(0, 0, 0, 0.79);
    }
    .black-trans-label span {
        color: #1b1b1b;
    }
    .page-header-space {
        height: 140px;
    }
    .page-footer-space {
        height: 25px;
    }

    #main-content-wrapper {
        margin-top: 0px !important;
        margin-left: 0px !important;
    }
    #main-content-wrapper .container {
        padding: 0px !important;
        max-width: unset !important;
    }
    #main-content-wrapper .container table {
        width: 100% !important;
    }

    .content-meta.single-meta.show-on-mobile, .content-meta.single-meta .bottom-author,
    .slideshow-expand {
        display: none !important;
    }
    .gallery-counter span {
        display: inline-block;
        vertical-align: middle;
    }
    .gallery-counter span.spacer {
        border-right: 1px solid #000;
        height: 20px;
        margin: 0 10px;
        width: 0px;
    }
    .sticky-social-icons {
        display: none;
    }
}
/* Safari */
/* @media not all and (min-resolution:.001dpcm){
    @supports (-webkit-appearance:none) and (stroke-color:transparent) {
        .page-header.d-none {
            display: none !important;
        }
        .page-header-safari.d-none {
            position: relative;
            display: block !important;
        }
    }
    .page-header.d-none {
        display: none !important;
    }
    .page-header-safari.d-none {
        position: relative;
        display: block !important;
    }
} */
@media (max-width: 370px) {
    .header-top-inner .align-items-center:first-child {
        height: 10px;
    }
    .header-top-inner .header-top-nav{margin-top: -5px;}
    .header-top-nav .other-nav a {font-size: 14px;}
    .header-top-nav .other-nav ul li a img{height: 11px;}

    .sticky-social-icons #sci_share{margin-right: 10px;}
    .sticky-social-icons .sci-item {
        font-size: 10px;
        padding: 5px 10px;
    }
    .sticky-social-icons .dropdown-menu {
        left: auto;
        right: auto;
        bottom: auto;
    }
}

@media (max-width: 500px) {
    .header-top-inner.d-flex {
        flex-wrap: wrap !important;
    }
    .author-block-wrapper .external-link { padding-top: 4px; }
}

@media screen and (max-width: 575px) {
    .header-date {
        font-size: 11px;
        line-height: 1;
    }

    .nk-profile-tab-menu .nav-tabs li {
        width: 33.333%;
    }

    .nk-profile-tab-menu .nav-tabs a.nav-link {
        padding: 5px 10px;
        line-height: 12px;
        font-size: 11px;
        min-height: 65px;
    }

    .nk-profile-tab-menu .nav-tabs {
        margin: 0 -15px;
    }

    .featured-image {
        margin-left: -15px;
        margin-right: -15px;
    }

    .content-tags a:not(:last-child) {
        margin-right: 10px;
    }

    #subscribeModal .modal-body {
        padding: 100px 30px 80px;
    }

    #subscribeModal .popup-left {
        min-height: unset;
    }

    .gallery-image .gallery-image-meta {
        flex-wrap: wrap;
    }

    .gallery-image .gallery-image-meta button {
        margin-left: 0;
        margin-top: 10px;
    }
    .page .special-highlight{text-align: center;}
    .page .special-highlight ul,
    .page .special-highlight p.sub-tag{text-align: left;}
    #mastodon_link .modal-content .close {
        top: 20px;
        right: 30px;
    }
}

@media only screen and (max-width: 767px) {
    table {
        width: 100%;
    }

    #fullScreenImg img {
        max-width: 100%;
    }

    .nk-profile-tab-menu .nav-tabs a.nav-link {
        font-size: 12px;
    }
    .gallery-header .gallery-content-main {display: none;}
    .gallery-main .gallery-content-main {display: block;}
    .subscribe-block h2, .subscribe-block h3 {
        font-size: 23px;
    }
    .subscribe_widget small{font-size: 12px;}

    #fsw-iframe {
        height: calc(100% - 100px) !important;
        width: 100vw !important;
    }
}

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

@media screen and (max-width: 991px) {
    body.single-gallery #main-content-wrapper{
        position: relative;
        overflow: hidden;
    }

    .popup-content h3 {
        max-width: initial;
    }

    .popupclose {
        color: #fff;
    }

    .modal-bottom {
        padding: 25px 10px;
    }

    .modal-dialog.popup-dialog {
        width: 96%;
        max-width: inherit;
        margin: 4% auto;
    }

    .popup-dialog .modal-body {
        max-width: 500px;
        margin: 0 auto;
        padding: 30px 30px 0px;
    }

    #mobile-header {
        display: block;
    }
}

@media screen and (min-width: 576px) {
    .no-padding-mobile {
        margin-left: 0;
        margin-right: 0;
    }
}

@media screen and (min-width: 768px) {
    .redesign-article-left {
        -webkit-flex: 0 0 275px;
        -moz-flex: 0 0 275px;
        -ms-flex: 0 0 275px;
        -o-flex: 0 0 275px;
        flex: 0 0 275px;
    }

    .redesign-article-right {
        -webkit-flex: calc(100% - 275px);
        -moz-flex: calc(100% - 275px);
        -ms-flex: calc(100% - 275px);
        -o-flex: calc(100% - 275px);
        flex: calc(100% - 275px);
    }

    .mfp-bottom-bar {
        position: absolute;
        bottom: 0;
        left: 0;
    }

    .popup-inner-right .gallery-description {
        max-height: 63px;
        overflow-y: auto;
    }

    .mfp-figure {
        min-width: 100vh;
    }

    .nk-your-library-tab .col-md-3.subjects-left-main {
        padding-right: 8px;
    }
    #share_popup .shareClose {
        top: 20px;
        right: 20px;
    }
}

@media screen and (min-width: 992px) {
    #header-top.showLogo .header-brand, body:not(.home) #header-top .header-brand {
        width: auto;
        margin-right: 20px;
    }

    .container {
        max-width: 880px;
    }

    .related-image {
        max-width: 115px;
    }

    #main-navigation-sticky-wrapper, body.home #home-banner, #podcast-main, #main-navigation, .header-social-nav, body.home #mobile-header {
        display: block;
    }

    .show-on-mobile {
        display: none !important;
    }

    .captha-wrapper label {
        line-height: 78px !important;
    }

    .captha-wrapper .captha-area {
        text-align: right;
    }

    #main-navigation li a {
        padding: 23px 10px;
        font-size: 12px;
    }

    .hide-on-mobile {
        display: block !important;
    }

    body.home .header-search form {
        display: block;
        position: relative;
    }

    .mobile-menubar, #mobile-nav-wrapper {
        display: none;
    }

    .news-section-top {
        padding-top: 0;
        margin-bottom: 50px;
    }

    .news-section-top > .container > .row > :nth-child(1) {
        order: 1;
    }

    .news-section-top > .container > .row > :nth-child(2) {
        order: 2;
    }

    .news-section-top > .container > .row > :nth-child(3) {
        order: 3;
    }

    .header {
        min-height: initial;
    }

    .headerSliderWrap h1 {
        font-size: 36px;
    }

    .news-standard-image {
        margin-bottom: 0;
    }

    .moreNewsSliderWrapper {
        margin-bottom: 0px;
    }

    .moreNewsSlide {
        display: flex !important;
        align-items: flex-start;
        max-width: 460px;
    }

    #moreNewsArrow, #moreNewsArrowLeft {
        display: flex !important;
    }

    .moreNewsImage {
        margin-right: 20px;
        margin-bottom: 0;
        flex: 0 0 45%;
    }

    .banner-strip {
        display: block;
        margin-bottom: 45px;
    }

    .cat-header {
        font-size: 22px;
    }

    .section-header-wrapper {
        margin-bottom: 15px;
    }

    .section-header {
        font-size: 22px;
    }

    .singlePodcast {
        height: 240px;
        padding-top: 0;
        padding-bottom: 0;
    }

    .singlePodcastInner {
        margin-left: 8%;
        padding-top: 65px;
    }

    .podcast-section {
        margin-bottom: 70px;
    }

    .footer-inner {
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
    }

    .headerSlide {
        height: 380px;
        background-size: cover !important;
    }

    .other-nav {
        margin-left: 30px;
    }

    .other-nav li {
        margin-right: 10px;
        padding-left: 10px;
    }

    .podcast-wrapper {
        display: block;
    }

    .moreNewsBody h3 {
        font-size: 20px;
    }

    .singleFeaturedCategory .news-summary,
    .singleHeadlinePost .news-summary {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .headline-section > .row > :first-child {
        order: 1;
    }

    .headline-section > .row > :last-child {
        order: 2;
    }

    .nkprobanner {
        margin-bottom: 0;
    }

    .related-article-wrapper,
    .single-content-author {
        padding: 35px;
    }

    .related-article-wrapper {
        padding-bottom: 20px;
    }

    #content-title {
        font-size: 32px;
    }

    #content-subtitle {
        font-size: 20px;
        color: #535151;
    }

    #featured-image {
        margin-bottom: 30px;
    }

    body:not(.home) #main-content-wrapper {
        margin-top: 0;
    }

    body:not(.home) .header-main {
        display: none;
    }

    .error-body {
        text-align: left;
    }

    .error-form {
        flex-wrap: nowrap;
    }

    .error-form input[type="text"] {
        margin-bottom: 0;
    }

    .error-form button {
        width: 100%;
        max-width: 150px;
        margin-left: 45px;
    }

    .category-header {
        margin-top: 0;
    }

    .category-filter {
        display: flex;
    }

    .category-filter .single-category-filter {
        margin-bottom: 0;
        margin-right: 50px;
    }

    .category-filter .single-category-filter:last-child {
        margin-right: 0;
    }

    .date-wrapper input {
        width: 135px;
    }

    .modal-body-wrapper {
        background: #fff;
    }

    .modal-dialog {
        min-width: 962px;
    }

    #subscribeModal .modal-dialog {
        min-width: 650px;
    }

    .modal-wrapper {
        background: none !important;
        min-height: auto;
    }

    .form-buttons {
        text-align: left;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .form-buttons button[type="submit"] {
        width: auto;
        padding-left: 25px;
        padding-right: 25px;
    }

    .modal-body {
        padding: 135px 0;
    }

    .modal-body.popsignin {
        padding: 100px 0;
    }

    .modal-body.popsignup {
        padding: 60px 0 40px;
    }

    .modal-body.fpemail {
        padding: 147px 0;
    }

    .modal-body.fpsent {
        padding: 213px 0;
    }

    .modal-body-inner {
        max-width: 335px;
    }

    .modal-body-inner.signupbody {
        max-width: 510px;
    }

    .popup-logo {
        display: block;
    }

    .popup-logo-alt {
        display: none;
    }

    #more-photo-container .gallery-post-wrapper {
        margin-bottom: 0;
    }

    .readmore-popup-wrapper {
        padding-left: 200px;
        padding-right: 200px;
    }

    .readmore-popup {
        text-align: center;
    }

    .readmore-popup h3 {
        font-size: 23px;
    }

    .readmore-popup h1 {
        font-size: 47px;
    }

    .readmore-popup img {
        max-width: 220px;
    }

    .readmore-popup h2 {
        font-size: 30px;
        padding: 0 40px;
    }

    .readmore-popup h4 {
        font-size: 28px;
    }

    .readmore-popup h5 {
        font-size: 20px;
    }

    .readmore-popup p {
        font-size: 20px;
    }

    .readmore-popup form {
        padding: 0px 150px;
    }

    .modal-link {
        margin: 0;
        padding: 0;
    }

    .modal-link:hover {
        text-decoration: underline;
    }

    .subscribe-block.widget {
        display: none;
    }

     .popup-left-inner {
        padding: 62px 44px;
    }

    .header-news-slider {
        max-height: 380px;
        overflow: hidden;
    }

    body:not(.home) #main-navigation .header-brand a {
        padding: 20px 0;
    }

    .user-block span {
        font-size: 12px;
    }

    .user-block img {
        width: 25px;
    }

    #mastodon_link .modal-dialog {
        min-width: 700px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1080px;
    }

    #main-navigation li a {
        padding: 23px 12px;
        font-size: 14px;
    }

    .user-block span {
        font-size: 14px;
    }

    body:not(.home) #main-navigation .header-brand a {
        padding: 18.5px 0;
    }

    .footer-logo {
        flex: none;
        float: left;
        margin-bottom: 0;
    }

    .footer {
        text-align: left;
    }

    .footer-meta {
        float: right;
    }

    #subscribeModal .modal-dialog {
        min-width: 650px;
    }
}

@media screen and (min-width: 1400px) {
    .container {
        max-width: 1285px;
    }

    .singlePodcastInner {
        width: 55%;
    }

    .col-lg-5 .singlePodcastInner {
        width: 85%;
    }

    .subscribe-block.widget {
        display: block;
    }

    #main-navigation li a {
        padding: 21.5px 20px;
        font-size: 17px;
    }

    .modal-dialog {
        min-width: 1120px;
    }

    body:not(.home) #main-navigation .header-brand a {
        padding: 15.5px 0;
    }

    .user-block span {
        font-size: 16px;
    }

    .user-block img {
        width: 30px;
    }

    .subscribe-block h2, .subscribe-block h3 {
        font-size: 23px;
    }
}

@media screen and (min-width: 1500px) {
    img.mfp-img {
        max-width: none;
        height: 100%;
    }
}
