/**
 * MOBILE MODIFICATIONS
 * Breakpoint: Max-width 800px
 */

@media screen and (max-width: 800px) {
    /* --- ACTIVITY FEED PADDING --- */
    /* Remove padding on general activity, but keep/add it for "My Activity" */
    .activity .bb-grid > *:not(.no-gutter),
    .activity .bb-grid-cell:not(.no-gutter) {
        padding: 0;
    }
    .my-activity .bb-grid > *:not(.no-gutter),
    .my-activity .bb-grid-cell:not(.no-gutter) {
        padding: 0 10px;
    }

    /* --- MOBILE HEADER & LOGO --- */
    .bb-mobile-header,
    .header-search-wrap,
    .header-search-wrap form.search-form {
        height: 60px !important;
    }

    .mobile-logo-wrapper {
        padding: 0 15px 0 0;
    }

    /* Align logo left for logged-out users */
    body:not(.logged-in) .bb-mobile-header .flex-1 {
        justify-content: flex-start !important;
    }

    /* Avatar and Aside Padding */
    .bb-mobile-header .header-aside {
        padding-right: 5px !important;
    }
    body:not(.logged-in) .bb-mobile-header .header-aside {
        padding-right: 0 !important;
    }
    .bb-template-v2 .bb-mobile-header .header-aside .user-wrap.user-wrap-container {
        margin-left: 0;
    }

    /* --- GROUPS & MEMBERS MOBILE --- */
    /* Hide filters and make search full width */
    .groups .bp-secondary-header .push-right:has(.bp-group-filter-wrap),
    .members .bp-secondary-header .push-right:has(.bp-profile-filter-wrap) {
        display: none !important;
    }

    .groups .bp-secondary-header .push-left:has(.groups-search),
    .members .bp-secondary-header .push-left:has(.members-search) {
        width: 100%;
        margin-left: auto !important;
    }

    .groups .content-area,
    .members .content-area {
        padding-top: 0;
    }

    /* --- MESSAGES --- */
    /* Reduce minimum height of messages page */
    .bp-messages-content-wrapper, #send_message_form {
        min-height: 450px !important;
    }
}