/* iPad or Custom Screens */
@media screen and (max-width: 1200px) {

    body {
        overflow-x: hidden; 
        max-width: 100vw;
        touch-action: pan-y;
    }

    img, iframe {
        max-width: 100vw;
    }

    #sidebar {
        width: 140px;
    }

    .sidebar-item {
        margin-bottom: 8px;
    }

    #main-header {
        right: 0px;
        padding: 2px 8px;
    }

    #main-header.hide-header {
        display: none;
    }

    .search-input {
        display: none;
    }

    #content {
        width: 100vw;
        max-width: 100vw;
    }

    .content-inner {
        width: calc(100% - 140px);
        margin-left: 140px;
        padding-left: 12px;
    }

    .hide-ipad-mobile {
        display: none;
    }

    .modal-inner {
        width: 70vw;
    }

}

/* Mobile Horiz Screens */
@media screen and (max-width: 800px) {
    #sidebar {
        width: 90px;
    }

    .content-inner {
        width: calc(100% - 90px);
        margin-left: 90px;
        padding-left: 7px;
    }

    .sidebar-item span {
        display: none;
    }

    .footer-text, .footer-text a {
        font-size: 0.8em;
    }
}

/* Mobile Screens */
@media screen and (max-width: 600px) {
    body {
        overflow-x: hidden;
        font-size: 1.1rem;
        line-height: 1.5;
    }

    h2 {
        line-height: 1.3em;
    }

    #center-nav,
    .desktop-only, #sidebar {
        display: none;
    }

    .mobile-only {
        display: block;
    }

    #content {
        margin-bottom: 40px;
    }

    .content-inner {
        width: 100%;
        margin-left: 0;
        padding-left: 0;
    }

    .hide-primary-nav {
        visibility: visible;
    }

    #primary-nav {
        gap: 10px;
        padding-left: 0;
        max-width: 50vw;
    }

    #secondary-nav {
        gap: 5px;
        width: 300px;
        margin-right: 5px;
        padding-right: 3px;
    }

    .search-input {
        width: 100%;
        min-width: unset;
        max-width: unset;
    }

    #mobile-menu, #modal-engagement {
        display: block;
        position: fixed;
        width: 100vw;
        height: 42px;
        bottom: 0;
        top: auto;
        left: 0;
        background-color: rgba(0, 0, 0, 0.25);
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
        padding: 6px;
        z-index: 1000;
    }

    #mobile-menu.scroll-down {
        -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 1));
        mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 1));
        -webkit-mask-composite: destination-in;
        mask-composite: intersect;
    }

    .mobile-menu-inner {
        display: flex;
        position: inherit;
        justify-content: space-evenly;
        align-items: start;
        gap: 0;
        width: 100%;
        margin: 0;
        right: 0;
    }

    .mobile-menu-div {
        width: calc(100%/5);
        line-height: 2em;
        text-align: center;
    }

    .post-menu {
        width: fit-content;
        top: auto;
        bottom: 40px;
        left: calc(50% - 75px);
        opacity: 99%;
    }

    .post-menu-item {
        color: #eee;
        font-size: .9rem;
        padding: 0 10px;
    }

    .post-menu-item:hover {
        font-size: 1rem;
    }

    .nav-icon-button {
        margin-top: auto;
        margin-bottom: auto;
        z-index: 1000;
        height: 27px;
        width: 27px;
        fill: #fff;
    }

    .nav-bar-icon {
        height: 27px;
        width: 27px;
        margin-top: 4px !important;
    }

    .messages-icon {
        width: 36px;
        height: 36px;
        margin-top: 1px !important;
    }

    .desktop-nav-icon {
        margin-top: 0;
    }

    .active-nav-icon {
        fill: #ff0;
    }

    .profile-pic {
        width: 27px;
        height: 27px;
        margin-top: 1px;
    }

    .login-link {
        padding: 0;
        background-color: transparent;
    }

    .login-link img {
        border-radius: 15px;
        border: 1px solid #444;
    }

    .login-link:hover {
        background-color: transparent;
    }

    .notifications-container,
    .notifs-div {
        left: 0;
        right: auto;
        min-width: 100%;
    }

    .search-item-image {
        width: 20vh;
        height: 27vh;
        border-radius: 10px;
    }

    .modal-inner {
        width: 95%;
        min-width: unset;
    }

    .scroll-to-top {
        right: 20px;
        bottom: 50px;
        margin: 0 !important;
    }

    .footer-div {
        padding: 5px;
        padding-bottom: 40px;
    }
    
    .footer-text {
        display: flex;
        justify-content: flex-start;
    }

    .mute-icon {
        opacity: 1;
    }

    .thoxt-row-article-box {
        padding: 10px 0;
    }
    
    .row-cover-rect {
        width: 100vw;
    }

    .article-engagement {
        margin: 10px 10px 10px 0;
        padding: 0;
    }
    
    .share-options {
        right: 10px;
    }
}