
.follo-media-library {
    width: 100%;
}

.follo-media-library-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
}

.follo-media-library-tab {
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid #dfe4e8;
    border-radius: 999px;
    background: #fff;
    color: #536471;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.follo-media-library-tab.is-active {
    color: var(--follo-theme-color, #0f559d);
    border-color: currentColor;
}

.follo-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 14px;
}

.follo-media-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    margin: 0;
    border-radius: 12px;
    background: #f2f4f6;
}

.follo-media-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.follo-media-current {
    position: absolute;
    left: 10px;
    bottom: 10px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(15,20,25,.82);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

.follo-media-empty {
    grid-column: 1 / -1;
    margin: 0;
    padding: 28px;
    border: 1px dashed #d7dde2;
    border-radius: 12px;
    color: #65727d;
    text-align: center;
}
/* =========================================================
   PROFILE PHOTOS CARD
   ========================================================= */

.follo-profile-photos-card {
    width: 100%;
}

.follo-profile-photos-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 12px;
}

.follo-profile-photos-head h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.2;
}

.follo-profile-photos-see-all {
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.follo-profile-photos-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.follo-profile-photo-item {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    background: #eef1f4;
}

.follo-profile-photo-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.follo-profile-photo-type {
    position: absolute;
    left: 6px;
    right: 6px;
    bottom: 6px;
    overflow: hidden;
    padding: 3px 6px;
    border-radius: 999px;
    background: rgba(15, 20, 25, .72);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.follo-profile-photos-empty {
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    border-radius: 8px;
    background: #f1f3f5;
    color: #75808a;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}

@media (max-width: 767px) {
    .follo-profile-photos-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 5px;
    }

    .follo-profile-photo-type {
        display: none;
    }
}
/* =========================================================
   EXISTING FOLLO PROFILE PHOTOS CARD - PLUGIN CONNECTION
   ========================================================= */

.follo-media-connected-grid {
    width: 100%;
}

.follo-media-connected-grid .follo-media-profile-thumb {
    position: relative;
    display: block;
    min-width: 0;
}

.follo-media-connected-grid .follo-media-profile-thumb img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.follo-media-connected-empty {
    width: 100%;
}
/* =========================================================
   PROFILE PHOTO FOLDER TABS
   ========================================================= */

.follo-profile-photo-folder-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 12px;
}

.follo-profile-photo-folder-tab {
    min-height: 32px;
    margin: 0;
    padding: 0 10px;
    border: 1px solid #dfe4e8;
    border-radius: 999px;
    background: #fff;
    color: #536471;
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.follo-profile-photo-folder-tab.is-active {
    border-color: var(--follo-theme-color, #0f559d);
    color: var(--follo-theme-color, #0f559d);
    background: rgba(15, 85, 157, .06);
}

.follo-media-connected-grid .follo-media-profile-thumb {
    appearance: none;
    -webkit-appearance: none;
    margin: 0;
    padding: 0;
    border: 0;
    cursor: pointer;
}


/* =========================================================
   FULL LIBRARY PHOTO BUTTONS
   ========================================================= */

button.follo-media-card {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    padding: 0;
    border: 0;
    text-align: left;
    cursor: pointer;
}


/* =========================================================
   SAME-PAGE PHOTO VIEWER
   ========================================================= */

body.follo-media-viewer-open {
    overflow: hidden;
}

.follo-media-viewer {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 28px;
}

.follo-media-viewer.is-open {
    display: flex;
}

.follo-media-viewer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 14, 18, .78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.follo-media-viewer-dialog {
    position: relative;
    z-index: 2;
    width: min(920px, 94vw);
    max-height: 88vh;
    overflow: hidden;
    border-radius: 16px;
    background: #11161a;
    box-shadow: 0 24px 80px rgba(0,0,0,.45);
}

.follo-media-viewer-body {
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 78vh;
    min-height: 240px;
    padding: 18px;
    background: #11161a;
}

.follo-media-viewer-image {
    display: block;
    max-width: 100%;
    max-height: 72vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

.follo-media-viewer-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.14);
    color: #fff;
    font-size: 24px;
    line-height: 36px;
    cursor: pointer;
}

.follo-media-viewer-caption {
    padding: 10px 16px 14px;
    color: #d8dde2;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

@media (max-width: 767px) {
    .follo-media-viewer {
        padding: 14px;
    }

    .follo-media-viewer-dialog {
        width: 96vw;
        max-height: 90vh;
        border-radius: 12px;
    }

    .follo-media-viewer-body {
        min-height: 180px;
        padding: 10px;
    }
}
/* =========================================================
   FOLDER-ICON TABS
   Use member/theme accent color without hard-coded blue pills.
   ========================================================= */

.follo-profile-photo-folder-tabs,
.follo-media-library-tabs {
    gap: 8px;
}

.follo-profile-photo-folder-tab,
.follo-media-library-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    min-height: 34px;

    margin: 0;
    padding: 0 11px;

    border:
        1px solid
        rgba(83, 100, 113, .22);

    border-radius: 10px;

    background: #ffffff;

    color: #536471;

    box-shadow:
        0 1px 2px rgba(15, 20, 25, .04);

    transition:
        color .16s ease,
        border-color .16s ease,
        background .16s ease,
        box-shadow .16s ease,
        transform .16s ease;
}

.follo-profile-photo-folder-tab:hover,
.follo-media-library-tab:hover {
    color:
        var(
            --follo-theme-color,
            var(--follo-accent, #0f559d)
        );

    border-color: currentColor;

    background:
        color-mix(
            in srgb,
            currentColor 5%,
            #ffffff
        );

    box-shadow:
        0 2px 7px rgba(15, 20, 25, .07);

    transform: translateY(-1px);
}

.follo-profile-photo-folder-tab.is-active,
.follo-media-library-tab.is-active {
    color:
        var(
            --follo-theme-color,
            var(--follo-accent, #0f559d)
        );

    border-color: currentColor;

    background:
        color-mix(
            in srgb,
            currentColor 9%,
            #ffffff
        );

    box-shadow:
        0 2px 8px rgba(15, 20, 25, .08);
}

.follo-folder-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 17px;
    height: 17px;

    flex: 0 0 17px;

    color: currentColor;
}

.follo-folder-icon svg {
    display: block;

    width: 17px;
    height: 17px;

    overflow: visible;
}

.follo-folder-label {
    display: inline-block;

    font-size: 11px;
    font-weight: 700;
    line-height: 1;

    white-space: nowrap;
}


/*
 * Fallback for browsers without color-mix().
 */
@supports not (
    background:
        color-mix(
            in srgb,
            #000 10%,
            #fff
        )
) {

    .follo-profile-photo-folder-tab:hover,
    .follo-media-library-tab:hover,
    .follo-profile-photo-folder-tab.is-active,
    .follo-media-library-tab.is-active {
        background: #f6f8fa;
    }
}


@media (max-width: 767px) {

    .follo-profile-photo-folder-tab,
    .follo-media-library-tab {
        min-height: 32px;
        padding: 0 9px;
        gap: 6px;
    }

    .follo-folder-icon,
    .follo-folder-icon svg {
        width: 15px;
        height: 15px;
    }

    .follo-folder-icon {
        flex-basis: 15px;
    }

    .follo-folder-label {
        font-size: 10px;
    }
}
/* =========================================================
   PROFILE SIDEBAR PHOTO THUMBNAILS
   Small rounded thumbnails — not circles.
   ========================================================= */

.follo-media-recent-grid {
    margin-top: 12px;
}

.follo-media-recent-grid .follo-media-profile-thumb {
    position: relative !important;
    display: block !important;

    width: 100% !important;

    aspect-ratio: 1 / 1 !important;

    margin: 0 !important;
    padding: 0 !important;

    overflow: hidden !important;

    border: 0 !important;
    border-radius: 8px !important;

    background: #eef1f4 !important;

    box-shadow: none !important;

    cursor: pointer;
}

.follo-media-recent-grid .follo-media-profile-thumb img {
    display: block !important;

    width: 100% !important;
    height: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    border-radius: 0 !important;

    object-fit: cover !important;
}


/* Folder controls are navigation, not giant action pills. */
.follo-profile-photo-folder-tab {
    border-radius: 9px !important;
}

.follo-profile-photo-folder-tab.is-active {
    color:
        var(
            --follo-theme-color,
            var(--follo-accent, #0f559d)
        ) !important;
}


/* =========================================================
   MAIN PROFILE PHOTO GALLERY
   Replaces the feed visually while a folder is open.
   ========================================================= */

.follo-profile-feed.follo-media-gallery-mode
> *:not(.follo-profile-main-gallery) {
    display: none !important;
}

.follo-profile-main-gallery {
    width: 100%;

    margin: 0;
    padding: 22px;

    border: 0;
    border-radius: 14px;

    background: #ffffff;

    box-shadow:
        0 3px 14px rgba(20, 24, 35, .06);
}

.follo-profile-main-gallery-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 16px;

    margin: 0 0 18px;
}

.follo-profile-gallery-back {
    display: inline-flex;
    align-items: center;

    gap: 6px;

    min-height: 30px;

    margin: 0 0 10px;
    padding: 0;

    border: 0 !important;

    background: transparent !important;

    color:
        var(
            --follo-theme-color,
            var(--follo-accent, #0f559d)
        ) !important;

    font: inherit;
    font-size: 12px;
    font-weight: 700;

    box-shadow: none !important;

    cursor: pointer;
}

.follo-profile-main-gallery-head h2 {
    margin: 0 0 4px !important;
    padding: 0 !important;

    color: #202124;

    font-size: 23px !important;
    line-height: 1.2 !important;
    font-weight: 750 !important;

    outline: 0;
}

.follo-profile-main-gallery-head p {
    margin: 0 !important;

    color: #7a838c;

    font-size: 12px;
    line-height: 1.4;
}

.follo-profile-main-gallery-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 10px;
}

.follo-profile-main-gallery-item {
    position: relative;

    display: block;

    width: 100%;

    aspect-ratio: 1 / 1;

    margin: 0 !important;
    padding: 0 !important;

    overflow: hidden;

    border: 0 !important;
    border-radius: 10px !important;

    background: #eef1f4 !important;

    box-shadow: none !important;

    cursor: pointer;
}

.follo-profile-main-gallery-item img {
    display: block;

    width: 100% !important;
    height: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    border-radius: 0 !important;

    object-fit: cover;
}

.follo-profile-main-gallery-item:hover img {
    transform: scale(1.025);
}

.follo-profile-main-gallery-item img {
    transition: transform .18s ease;
}


@media (max-width: 900px) {

    .follo-profile-main-gallery-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }
}


@media (max-width: 640px) {

    .follo-profile-main-gallery {
        padding: 16px;
    }

    .follo-profile-main-gallery-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 8px;
    }

    .follo-profile-main-gallery-head h2 {
        font-size: 20px !important;
    }
}
/* =========================================================
   V0.6.1 - MODERN PHOTO THUMBNAILS
   Facebook-style compact square crop, no colored circles.
   ========================================================= */

/* Sidebar recent photos */
.follo-media-recent-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 4px !important;
    margin-top: 10px !important;
}

.follo-media-recent-grid .follo-media-profile-thumb {
    position: relative !important;
    display: block !important;

    width: 100% !important;
    aspect-ratio: 1 / 1 !important;

    margin: 0 !important;
    padding: 0 !important;

    overflow: hidden !important;

    border: 0 !important;
    border-radius: 5px !important;

    background: transparent !important;
    box-shadow: none !important;

    cursor: pointer;
}

.follo-media-recent-grid .follo-media-profile-thumb img {
    display: block !important;

    width: 100% !important;
    height: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    border-radius: 0 !important;

    background: transparent !important;

    object-fit: cover !important;
}


/* Full/main profile gallery */
.follo-profile-main-gallery-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 5px !important;
}

.follo-profile-main-gallery-item {
    position: relative !important;
    display: block !important;

    width: 100% !important;
    aspect-ratio: 1 / 1 !important;

    margin: 0 !important;
    padding: 0 !important;

    overflow: hidden !important;

    border: 0 !important;
    border-radius: 6px !important;

    background: transparent !important;
    box-shadow: none !important;

    cursor: pointer;
}

.follo-profile-main-gallery-item img {
    display: block !important;

    width: 100% !important;
    height: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    border-radius: 0 !important;

    background: transparent !important;

    object-fit: cover !important;

    transition:
        transform .16s ease,
        filter .16s ease;
}

.follo-profile-main-gallery-item:hover img {
    transform: scale(1.02);
    filter: brightness(.97);
}


/* Full My Photos library cards */
button.follo-media-card,
.follo-media-card {
    position: relative !important;

    width: 100% !important;
    aspect-ratio: 1 / 1 !important;

    margin: 0 !important;
    padding: 0 !important;

    overflow: hidden !important;

    border: 0 !important;
    border-radius: 6px !important;

    background: transparent !important;
    box-shadow: none !important;
}

.follo-media-card img {
    display: block !important;

    width: 100% !important;
    height: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    border-radius: 0 !important;

    object-fit: cover !important;
}


/* Keep "Current" badge subtle */
.follo-media-current {
    left: 6px !important;
    bottom: 6px !important;

    padding: 3px 6px !important;

    border-radius: 999px !important;

    background: rgba(15, 20, 25, .72) !important;
    color: #fff !important;

    font-size: 9px !important;
    font-weight: 700 !important;
}


/* Folder controls stay compact and secondary to the photos */
.follo-profile-photo-folder-tabs,
.follo-media-library-tabs {
    gap: 6px !important;
    margin-bottom: 10px !important;
}

.follo-profile-photo-folder-tab,
.follo-media-library-tab {
    min-height: 30px !important;

    padding: 0 9px !important;

    border-radius: 8px !important;

    font-size: 10px !important;
}


/* Responsive gallery counts */
@media (max-width: 900px) {
    .follo-profile-main-gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 640px) {
    .follo-profile-main-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 4px !important;
    }

    .follo-media-recent-grid {
        gap: 3px !important;
    }
}
/* =========================================================
   V0.6.2 — COMPACT PHOTO CARD
   - first 3 folders fit one row
   - smaller square thumbnails
   - aggressively neutralize theme button/avatar styling
   ========================================================= */

/* Three compact folder slots per row.
   Order remains:
   Profile Photo | Cover Photo | Bground Photo
   Photos falls to row 2 when all four exist. */
.follo-profile-photo-folder-tabs {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 5px !important;
    width: 100% !important;
    margin: 0 0 9px !important;
}

.follo-profile-photo-folder-tab {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;

    width: 100% !important;
    min-width: 0 !important;
    min-height: 28px !important;

    margin: 0 !important;
    padding: 0 6px !important;

    border: 1px solid rgba(83, 100, 113, .18) !important;
    border-radius: 7px !important;

    background: #ffffff !important;

    color:
        var(
            --follo-theme-color,
            var(--follo-accent, #0f559d)
        ) !important;

    box-shadow: none !important;

    font-size: 9px !important;
    font-weight: 700 !important;
    line-height: 1 !important;

    white-space: nowrap !important;
    overflow: hidden !important;

    transform: none !important;
}

.follo-profile-photo-folder-tab:hover,
.follo-profile-photo-folder-tab.is-active {
    background:
        color-mix(
            in srgb,
            currentColor 6%,
            #ffffff
        ) !important;

    border-color: currentColor !important;

    transform: none !important;
}

.follo-profile-photo-folder-tab .follo-folder-icon,
.follo-profile-photo-folder-tab .follo-folder-icon svg {
    width: 13px !important;
    height: 13px !important;
}

.follo-profile-photo-folder-tab .follo-folder-icon {
    flex: 0 0 13px !important;
}

.follo-profile-photo-folder-tab .follo-folder-label {
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;

    font-size: 9px !important;
    line-height: 1 !important;
}


/* Compact photo preview:
   fixed small tiles rather than stretching across the whole card. */
.follo-media-recent-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 68px) !important;
    gap: 5px !important;

    justify-content: start !important;

    width: auto !important;
    margin: 8px 0 0 !important;
}


/* Neutralize any Divi/BuddyPress/global button styling. */
body.buddypress
#buddypress
.follo-media-recent-grid
button.follo-media-profile-thumb,
body.buddypress
#buddypress
.follo-media-recent-grid
.follo-media-profile-thumb {
    appearance: none !important;
    -webkit-appearance: none !important;

    display: block !important;

    width: 68px !important;
    height: 68px !important;
    min-width: 68px !important;
    min-height: 68px !important;
    max-width: 68px !important;
    max-height: 68px !important;

    aspect-ratio: 1 / 1 !important;

    margin: 0 !important;
    padding: 0 !important;

    overflow: hidden !important;

    border: 0 !important;
    outline: 0 !important;
    border-radius: 5px !important;

    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;

    box-shadow: none !important;

    color: inherit !important;

    line-height: 0 !important;
    text-align: left !important;

    transform: none !important;
}

body.buddypress
#buddypress
.follo-media-recent-grid
button.follo-media-profile-thumb:hover,
body.buddypress
#buddypress
.follo-media-recent-grid
button.follo-media-profile-thumb:focus {
    border-radius: 5px !important;

    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;

    box-shadow: none !important;

    transform: none !important;
}


/* Neutralize avatar/profile-image rules on the actual thumbnail image. */
body.buddypress
#buddypress
.follo-media-recent-grid
.follo-media-profile-thumb
img {
    display: block !important;

    width: 68px !important;
    height: 68px !important;
    min-width: 68px !important;
    min-height: 68px !important;
    max-width: 68px !important;
    max-height: 68px !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    outline: 0 !important;
    border-radius: 0 !important;

    background: transparent !important;

    box-shadow: none !important;

    object-fit: cover !important;

    transform: none !important;
}


/* Main folder gallery remains larger, but always square rather than circular. */
body.buddypress
#buddypress
.follo-profile-main-gallery-item {
    border: 0 !important;
    border-radius: 6px !important;

    background: transparent !important;
    background-image: none !important;

    box-shadow: none !important;
}

body.buddypress
#buddypress
.follo-profile-main-gallery-item
img {
    border: 0 !important;
    border-radius: 0 !important;

    object-fit: cover !important;
}


/* Slightly smaller on narrow sidebars/mobile. */
@media (max-width: 480px) {

    .follo-profile-photo-folder-tabs {
        gap: 4px !important;
    }

    .follo-profile-photo-folder-tab {
        min-height: 27px !important;
        padding: 0 4px !important;
    }

    .follo-profile-photo-folder-tab .follo-folder-label {
        font-size: 8.5px !important;
    }

    .follo-media-recent-grid {
        grid-template-columns: repeat(3, 62px) !important;
        gap: 4px !important;
    }

    body.buddypress
    #buddypress
    .follo-media-recent-grid
    button.follo-media-profile-thumb,
    body.buddypress
    #buddypress
    .follo-media-recent-grid
    .follo-media-profile-thumb,
    body.buddypress
    #buddypress
    .follo-media-recent-grid
    .follo-media-profile-thumb
    img {
        width: 62px !important;
        height: 62px !important;
        min-width: 62px !important;
        min-height: 62px !important;
        max-width: 62px !important;
        max-height: 62px !important;
    }
}
/* =========================================================
   V0.6.3 — FIVE-COLUMN RESPONSIVE PHOTO PREVIEW
   Desktop sidebar: 5 thumbnails per row
   Tablet/sidebar narrow: 4 per row
   Mobile: 3 per row
   ========================================================= */

.follo-media-recent-grid {
    display: grid !important;

    grid-template-columns:
        repeat(5, minmax(0, 1fr)) !important;

    gap: 4px !important;

    width: 100% !important;

    margin: 8px 0 0 !important;

    justify-content: stretch !important;
}


/*
 * Let the grid determine the tile width.
 * Remove the previous fixed 68px dimensions.
 */
body.buddypress
#buddypress
.follo-media-recent-grid
button.follo-media-profile-thumb,
body.buddypress
#buddypress
.follo-media-recent-grid
.follo-media-profile-thumb {
    width: 100% !important;
    height: auto !important;

    min-width: 0 !important;
    min-height: 0 !important;

    max-width: none !important;
    max-height: none !important;

    aspect-ratio: 1 / 1 !important;

    margin: 0 !important;
    padding: 0 !important;

    border-radius: 5px !important;

    overflow: hidden !important;

    background: transparent !important;
    background-image: none !important;

    box-shadow: none !important;
}


/*
 * Image fills its square tile.
 */
body.buddypress
#buddypress
.follo-media-recent-grid
.follo-media-profile-thumb
img {
    width: 100% !important;
    height: 100% !important;

    min-width: 0 !important;
    min-height: 0 !important;

    max-width: none !important;
    max-height: none !important;

    aspect-ratio: 1 / 1 !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    border-radius: 0 !important;

    object-fit: cover !important;

    background: transparent !important;

    box-shadow: none !important;
}


/* ---------------------------------------------------------
   Narrow desktop / tablet sidebars
   --------------------------------------------------------- */

@media (max-width: 1180px) {

    .follo-media-recent-grid {
        grid-template-columns:
            repeat(4, minmax(0, 1fr)) !important;

        gap: 4px !important;
    }

}


/* ---------------------------------------------------------
   Mobile
   Three larger tap targets are easier to use than five tiny ones.
   --------------------------------------------------------- */

@media (max-width: 767px) {

    .follo-media-recent-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr)) !important;

        gap: 5px !important;
    }

}


/* ---------------------------------------------------------
   Very small phones
   Keep 3 columns but tighten spacing slightly.
   --------------------------------------------------------- */

@media (max-width: 420px) {

    .follo-media-recent-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr)) !important;

        gap: 4px !important;
    }

}


/* Folder row also needs to remain usable on phones. */

@media (max-width: 767px) {

    .follo-profile-photo-folder-tabs {
        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;

        gap: 5px !important;
    }

    .follo-profile-photo-folder-tab {
        min-height: 30px !important;

        padding: 0 7px !important;
    }

    .follo-profile-photo-folder-tab
    .follo-folder-label {
        font-size: 9px !important;
    }

}


/* Desktop keeps the three primary folders on one row. */

@media (min-width: 768px) {

    .follo-profile-photo-folder-tabs {
        grid-template-columns:
            repeat(3, minmax(0, 1fr)) !important;
    }

}
/* =========================================================
   V0.6.4 — GALLERY VIEWER NAVIGATION
   ========================================================= */

.follo-media-viewer-body {
    position: relative;
}

.follo-media-viewer-nav {
    position: absolute;
    top: 50%;
    z-index: 4;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;

    margin: 0;
    padding: 0;

    border: 1px solid rgba(255,255,255,.14);
    border-radius: 50%;

    background: rgba(15,20,25,.62);
    color: #ffffff;

    box-shadow:
        0 4px 18px rgba(0,0,0,.22);

    transform: translateY(-50%);

    cursor: pointer;

    transition:
        background .16s ease,
        transform .16s ease,
        opacity .16s ease;
}

.follo-media-viewer-nav:hover,
.follo-media-viewer-nav:focus-visible {
    background: rgba(15,20,25,.84);

    transform:
        translateY(-50%)
        scale(1.04);
}

.follo-media-viewer-nav span {
    display: block;

    margin-top: -3px;

    font-size: 36px;
    line-height: 1;
    font-weight: 300;
}

.follo-media-viewer-prev {
    left: 16px;
}

.follo-media-viewer-next {
    right: 16px;
}

.follo-media-viewer-nav[hidden] {
    display: none !important;
}


/* Give the image breathing room around arrow controls. */
.follo-media-viewer-body {
    padding-left: 72px !important;
    padding-right: 72px !important;
}


/* Mobile: smaller translucent controls closer to the edge. */
@media (max-width: 767px) {

    .follo-media-viewer-nav {
        width: 38px;
        height: 38px;

        background: rgba(15,20,25,.55);
    }

    .follo-media-viewer-nav span {
        font-size: 31px;
    }

    .follo-media-viewer-prev {
        left: 8px;
    }

    .follo-media-viewer-next {
        right: 8px;
    }

    .follo-media-viewer-body {
        padding-left: 48px !important;
        padding-right: 48px !important;
    }
}
/* =========================================================
   V0.7.0 — VIEWER REPAIR + GALLERY ACTIONS
   ========================================================= */

/*
 * Strongly isolate the viewer from Divi/BuddyPress global button/image
 * rules. This fixes the arrows collapsing into the center and the main
 * photo shrinking to avatar size.
 */

body #follo-media-viewer.follo-media-viewer {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483000 !important;

    width: 100vw !important;
    height: 100vh !important;

    margin: 0 !important;
    padding: 24px !important;
}

body #follo-media-viewer.follo-media-viewer.is-open {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

body #follo-media-viewer .follo-media-viewer-dialog {
    position: relative !important;
    z-index: 2 !important;

    display: block !important;

    width: min(1000px, 94vw) !important;
    max-width: 1000px !important;
    height: auto !important;
    max-height: 90vh !important;

    margin: 0 !important;
    padding: 0 !important;

    overflow: hidden !important;

    border: 0 !important;
    border-radius: 16px !important;

    background: #101519 !important;

    box-shadow:
        0 28px 90px rgba(0, 0, 0, .5) !important;
}

body #follo-media-viewer .follo-media-viewer-body {
    position: relative !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 100% !important;
    min-height: 420px !important;
    max-height: 80vh !important;

    margin: 0 !important;
    padding: 28px 78px !important;

    overflow: hidden !important;

    background: #101519 !important;
}

body #follo-media-viewer img.follo-media-viewer-image {
    position: static !important;

    display: block !important;

    width: auto !important;
    height: auto !important;

    min-width: 0 !important;
    min-height: 0 !important;

    max-width: 100% !important;
    max-height: 72vh !important;

    margin: 0 auto !important;
    padding: 0 !important;

    border: 0 !important;
    border-radius: 0 !important;

    background: transparent !important;

    box-shadow: none !important;

    object-fit: contain !important;

    transform: none !important;
}

body #follo-media-viewer button.follo-media-viewer-nav {
    appearance: none !important;
    -webkit-appearance: none !important;

    position: absolute !important;
    top: 50% !important;
    z-index: 6 !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 44px !important;
    height: 44px !important;

    min-width: 44px !important;
    min-height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;

    margin: 0 !important;
    padding: 0 !important;

    border:
        1px solid rgba(255, 255, 255, .16) !important;

    border-radius: 50% !important;

    background: rgba(15, 20, 25, .68) !important;
    background-image: none !important;

    color: #ffffff !important;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, .28) !important;

    transform: translateY(-50%) !important;

    line-height: 1 !important;

    cursor: pointer !important;
}

body #follo-media-viewer button.follo-media-viewer-prev {
    left: 18px !important;
    right: auto !important;
}

body #follo-media-viewer button.follo-media-viewer-next {
    right: 18px !important;
    left: auto !important;
}

body #follo-media-viewer
button.follo-media-viewer-nav
svg {
    display: block !important;

    width: 22px !important;
    height: 22px !important;

    margin: 0 !important;
    padding: 0 !important;

    overflow: visible !important;

    pointer-events: none !important;
}

body #follo-media-viewer
button.follo-media-viewer-nav:hover {
    background: rgba(15, 20, 25, .9) !important;

    transform:
        translateY(-50%)
        scale(1.04) !important;
}

body #follo-media-viewer
button.follo-media-viewer-close {
    appearance: none !important;
    -webkit-appearance: none !important;

    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    left: auto !important;

    z-index: 8 !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 38px !important;
    height: 38px !important;

    min-width: 38px !important;
    min-height: 38px !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    border-radius: 50% !important;

    background: rgba(255, 255, 255, .13) !important;
    background-image: none !important;

    color: #ffffff !important;

    font-size: 24px !important;
    line-height: 1 !important;

    box-shadow: none !important;

    transform: none !important;

    cursor: pointer !important;
}


/* Main folder-gallery owner actions */

.follo-profile-main-gallery-head {
    align-items: center !important;
}

.follo-profile-main-gallery-actions {
    flex: 0 0 auto;

    display: flex;
    align-items: center;

    gap: 8px;
}

body.buddypress
#buddypress
.follo-profile-gallery-action {
    appearance: none !important;
    -webkit-appearance: none !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    min-height: 38px !important;

    margin: 0 !important;
    padding: 0 14px !important;

    border: 0 !important;
    border-radius: 9px !important;

    background:
        var(
            --follo-theme-color,
            var(--follo-accent, #0f559d)
        ) !important;

    color: #ffffff !important;

    font: inherit !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1 !important;

    text-decoration: none !important;

    box-shadow: none !important;

    cursor: pointer !important;
}

body.buddypress
#buddypress
.follo-profile-gallery-action:hover {
    filter: brightness(.94);

    color: #ffffff !important;

    text-decoration: none !important;
}


@media (max-width: 767px) {

    body #follo-media-viewer.follo-media-viewer {
        padding: 10px !important;
    }

    body #follo-media-viewer .follo-media-viewer-dialog {
        width: 96vw !important;
        max-height: 92vh !important;

        border-radius: 12px !important;
    }

    body #follo-media-viewer .follo-media-viewer-body {
        min-height: 260px !important;
        max-height: 82vh !important;

        padding:
            18px
            52px !important;
    }

    body #follo-media-viewer
    button.follo-media-viewer-nav {
        width: 38px !important;
        height: 38px !important;

        min-width: 38px !important;
        min-height: 38px !important;
        max-width: 38px !important;
        max-height: 38px !important;
    }

    body #follo-media-viewer
    button.follo-media-viewer-prev {
        left: 7px !important;
    }

    body #follo-media-viewer
    button.follo-media-viewer-next {
        right: 7px !important;
    }

    .follo-profile-main-gallery-head {
        align-items: flex-start !important;
        flex-direction: column !important;
    }

    .follo-profile-main-gallery-actions {
        width: 100%;
    }

    body.buddypress
    #buddypress
    .follo-profile-gallery-action {
        width: 100% !important;
    }
}
/* =========================================================
   V0.8.0 — PHOTO DETAILS / EDIT / DELETE
   ========================================================= */

.follo-media-viewer-details {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 18px;

    padding: 14px 18px 16px;

    border-top:
        1px solid rgba(255, 255, 255, .08);

    background: #101519;
}

.follo-media-viewer-meta {
    min-width: 0;
    flex: 1 1 auto;
}

.follo-media-viewer-title {
    margin: 0 0 5px !important;
    padding: 0 !important;

    color: #ffffff !important;

    font-size: 15px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
}

.follo-media-viewer-description {
    margin: 0 0 6px !important;
    padding: 0 !important;

    color: rgba(255,255,255,.72) !important;

    font-size: 12px !important;
    line-height: 1.5 !important;
    font-weight: 400 !important;

    white-space: pre-wrap;
}

.follo-media-viewer-caption {
    color: rgba(255,255,255,.58) !important;

    font-size: 11px !important;
    line-height: 1.4 !important;
}

.follo-media-viewer-owner-actions {
    display: flex;
    align-items: center;

    gap: 7px;

    flex: 0 0 auto;
}

.follo-media-viewer-owner-actions[hidden] {
    display: none !important;
}

body #follo-media-viewer
.follo-media-viewer-owner-actions button {
    appearance: none !important;
    -webkit-appearance: none !important;

    min-height: 34px !important;

    margin: 0 !important;
    padding: 0 11px !important;

    border:
        1px solid rgba(255,255,255,.16) !important;

    border-radius: 8px !important;

    background: rgba(255,255,255,.08) !important;
    background-image: none !important;

    color: #ffffff !important;

    font: inherit !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1 !important;

    box-shadow: none !important;

    cursor: pointer !important;
}

body #follo-media-viewer
.follo-media-viewer-owner-actions
button.follo-media-viewer-delete {
    color: #ffb8b8 !important;
}

body #follo-media-viewer
.follo-media-viewer-owner-actions button:hover {
    background: rgba(255,255,255,.14) !important;
}


/* Inline editor */
.follo-media-photo-editor {
    padding: 16px 18px 18px;

    border-top:
        1px solid rgba(255,255,255,.08);

    background: #151b20;
}

.follo-media-photo-editor[hidden] {
    display: none !important;
}

.follo-media-photo-editor label {
    display: block;

    margin: 0 0 12px;
}

.follo-media-photo-editor label > span {
    display: block;

    margin: 0 0 5px;

    color: rgba(255,255,255,.76);

    font-size: 11px;
    font-weight: 700;
}

body #follo-media-viewer
.follo-media-photo-editor input,
body #follo-media-viewer
.follo-media-photo-editor textarea {
    display: block !important;

    width: 100% !important;

    margin: 0 !important;
    padding: 9px 10px !important;

    border:
        1px solid rgba(255,255,255,.15) !important;

    border-radius: 8px !important;

    background: #0e1317 !important;

    color: #ffffff !important;

    font: inherit !important;
    font-size: 13px !important;
    line-height: 1.45 !important;

    box-shadow: none !important;

    resize: vertical;
}

.follo-media-photo-editor-actions {
    display: flex;
    justify-content: flex-end;

    gap: 7px;
}

body #follo-media-viewer
.follo-media-photo-editor-actions button {
    appearance: none !important;
    -webkit-appearance: none !important;

    min-height: 35px !important;

    margin: 0 !important;
    padding: 0 12px !important;

    border: 0 !important;
    border-radius: 8px !important;

    background: rgba(255,255,255,.10) !important;

    color: #ffffff !important;

    font: inherit !important;
    font-size: 11px !important;
    font-weight: 700 !important;

    box-shadow: none !important;

    cursor: pointer !important;
}

body #follo-media-viewer
.follo-media-photo-editor-actions
button.follo-media-photo-save {
    background:
        var(
            --follo-theme-color,
            var(--follo-accent, #0f559d)
        ) !important;
}


@media (max-width: 767px) {

    .follo-media-viewer-details {
        flex-direction: column;

        gap: 10px;

        padding: 12px 14px 14px;
    }

    .follo-media-viewer-owner-actions {
        width: 100%;
    }

    body #follo-media-viewer
    .follo-media-viewer-owner-actions button {
        flex: 1 1 50%;
    }

    .follo-media-photo-editor {
        padding: 14px;
    }

    .follo-media-photo-editor-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}


/* =========================================================
   V0.9.0 — EMPTY PHOTOS + TIMELINE SHARE
   ========================================================= */

.follo-profile-gallery-empty {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 190px;
    padding: 24px;
    border: 1px dashed rgba(83,100,113,.22);
    border-radius: 10px;
    background: #f7f9fa;
    color: #69757f;
    text-align: center;
}

.follo-timeline-photo img {
    display: block !important;
    width: auto !important;
    max-width: 100% !important;
    max-height: 620px !important;
    margin-top: 12px !important;
    border-radius: 12px !important;
    object-fit: contain !important;
}

.follo-media-share-modal {
    position: fixed;
    inset: 0;
    z-index: 2147483100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.follo-media-share-modal.is-open { display: flex; }

.follo-media-share-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10,14,18,.72);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.follo-media-share-dialog {
    position: relative;
    z-index: 2;
    width: min(480px,94vw);
    max-height: 90vh;
    overflow: auto;
    padding: 22px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 26px 80px rgba(0,0,0,.34);
}

.follo-media-share-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #eef1f4;
    color: #42515d;
    font-size: 22px;
    cursor: pointer;
}

.follo-media-share-preview {
    display: block;
    width: 100%;
    max-height: 260px;
    margin: 0 0 16px;
    border-radius: 10px;
    object-fit: contain;
    background: #f4f6f8;
}

.follo-media-share-audience {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    border: 0;
}

.follo-media-share-audience label {
    display: flex;
    gap: 10px;
    padding: 10px 11px;
    border: 1px solid #e0e5e9;
    border-radius: 10px;
    cursor: pointer;
}

.follo-media-share-audience span {
    display: grid;
    gap: 2px;
}

.follo-media-share-audience small {
    color: #74808a;
    font-size: 11px;
}

.follo-media-share-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 18px;
}

.follo-media-share-actions button {
    min-height: 38px;
    padding: 0 14px;
    border: 0;
    border-radius: 9px;
    background: #eef1f4;
    color: #36434d;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.follo-media-share-actions .follo-media-share-confirm {
    background: var(--follo-theme-color, var(--follo-accent,#0f559d));
    color: #fff;
}

@media (max-width:600px) {
    .follo-media-share-dialog {
        width: 96vw;
        padding: 18px;
        border-radius: 13px;
    }

    .follo-media-share-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}
/* =========================================================
   V0.9.3 — SHARE MODAL CLOSE BUTTON POSITION
   ========================================================= */

.follo-media-share-dialog {
    position: relative !important;

    padding-top: 28px !important;
}

.follo-media-share-close {
    position: absolute !important;

    top: 12px !important;
    right: 12px !important;
    left: auto !important;

    z-index: 5 !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 32px !important;
    height: 32px !important;

    min-width: 32px !important;
    min-height: 32px !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    border-radius: 50% !important;

    background: #eef1f4 !important;
    color: #42515d !important;

    font-size: 18px !important;
    line-height: 1 !important;
    font-weight: 700 !important;

    box-shadow: none !important;

    transform: none !important;

    cursor: pointer !important;
}

.follo-media-share-close:hover {
    background: #e2e7eb !important;
}

.follo-media-share-dialog h3 {
    padding-right: 42px !important;
}


/* Mobile keeps the X clear of the heading too. */
@media (max-width: 600px) {

    .follo-media-share-dialog {
        padding-top: 26px !important;
    }

    .follo-media-share-close {
        top: 10px !important;
        right: 10px !important;
    }

    .follo-media-share-dialog h3 {
        padding-right: 40px !important;
    }
}
/* =========================================================
   V1.0.0 — POST COMPOSER / EDIT POST / ACTIVITY ACTION FIX
   ========================================================= */

.follo-media-post-text-field {
    display: block;
    margin: 0 0 14px;
}

.follo-media-post-text-field > span {
    display: block;
    margin: 0 0 6px;
    color: #2f3a42;
    font-size: 12px;
    font-weight: 800;
}

.follo-media-post-text-field textarea {
    display: block !important;
    width: 100% !important;
    min-height: 96px !important;
    margin: 0 !important;
    padding: 11px 12px !important;
    border: 1px solid #dbe1e6 !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: #202124 !important;
    font: inherit !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    box-shadow: none !important;
    resize: vertical !important;
}

.follo-media-post-copy {
    margin: 0 0 12px;
    color: #28323a;
    font-size: 14px;
    line-height: 1.55;
}

.follo-media-post-copy p {
    margin: 0 0 8px !important;
}


/* Edit Post action */
body.buddypress #buddypress .activity-meta .follo-edit-post-wrap {
    display: inline-block;
}

body.buddypress #buddypress
.activity-meta
button.follo-edit-media-post {
    appearance: none !important;
    -webkit-appearance: none !important;
    min-height: 36px !important;
    margin: 0 !important;
    padding: 0 12px !important;
    border: 1px solid #dbe1e6 !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: #536471 !important;
    font: inherit !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    box-shadow: none !important;
    cursor: pointer !important;
}


/* Edit post modal */
.follo-media-edit-post-modal {
    position: fixed;
    inset: 0;
    z-index: 2147483200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.follo-media-edit-post-modal.is-open {
    display: flex;
}

.follo-media-edit-post-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10,14,18,.72);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.follo-media-edit-post-dialog {
    position: relative;
    z-index: 2;
    width: min(520px, 94vw);
    max-height: 90vh;
    overflow: auto;
    padding: 24px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 26px 80px rgba(0,0,0,.34);
}

.follo-media-edit-post-dialog h3 {
    margin: 0 0 16px !important;
    padding-right: 42px !important;
    color: #202124;
    font-size: 21px !important;
    line-height: 1.2 !important;
}

.follo-media-edit-post-close {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    left: auto !important;
    width: 32px !important;
    height: 32px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: #eef1f4 !important;
    color: #42515d !important;
    font-size: 18px !important;
    line-height: 1 !important;
    font-weight: 700 !important;
    cursor: pointer !important;
}

.follo-media-edit-post-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 18px;
}

.follo-media-edit-post-actions button {
    min-height: 38px;
    padding: 0 14px;
    border: 0;
    border-radius: 9px;
    background: #eef1f4;
    color: #36434d;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.follo-media-edit-post-actions
.follo-media-edit-post-save {
    background:
        var(
            --follo-theme-color,
            var(--follo-accent, #0f559d)
        );
    color: #fff;
}


/*
 * BuddyPress Delete tooltip:
 * keep it clear of the circular delete button and other activity actions.
 */
body.buddypress #buddypress
.activity-meta
.delete-activity.bp-tooltip::after,
body.buddypress #buddypress
.activity-meta
.delete-activity[data-bp-tooltip]::after {
    top: calc(100% + 9px) !important;
    bottom: auto !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    z-index: 9999 !important;
    margin: 0 !important;
    white-space: nowrap !important;
}

body.buddypress #buddypress
.activity-meta
.delete-activity.bp-tooltip::before,
body.buddypress #buddypress
.activity-meta
.delete-activity[data-bp-tooltip]::before {
    top: calc(100% + 3px) !important;
    bottom: auto !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    z-index: 10000 !important;
}


@media (max-width: 600px) {

    .follo-media-edit-post-dialog {
        width: 96vw;
        padding: 18px;
        border-radius: 13px;
    }

    .follo-media-edit-post-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .follo-media-edit-post-actions button {
        width: 100%;
    }
}


/* =========================================================
   V1.0.1 — BUDDYPRESS DELETE TOOLTIP: NO OVERLAP
   BuddyPress/Divi can position the native tooltip below the
   action row. Force it above the Delete button instead.
   ========================================================= */

body.buddypress #buddypress .activity-meta .delete-activity {
    position: relative !important;
}

/* BuddyPress tooltip implementations using ::after */
body.buddypress #buddypress .activity-meta .delete-activity.bp-tooltip::after,
body.buddypress #buddypress .activity-meta .delete-activity[data-bp-tooltip]::after,
body.buddypress #buddypress .activity-meta .delete-activity[data-bp-tooltip-pos]::after {
    top: auto !important;
    bottom: calc(100% + 8px) !important;
    left: 50% !important;
    right: auto !important;
    margin: 0 !important;
    transform: translateX(-50%) !important;
    z-index: 100000 !important;
    white-space: nowrap !important;
}

/* Tooltip arrow */
body.buddypress #buddypress .activity-meta .delete-activity.bp-tooltip::before,
body.buddypress #buddypress .activity-meta .delete-activity[data-bp-tooltip]::before,
body.buddypress #buddypress .activity-meta .delete-activity[data-bp-tooltip-pos]::before {
    top: auto !important;
    bottom: calc(100% + 2px) !important;
    left: 50% !important;
    right: auto !important;
    margin: 0 !important;
    transform: translateX(-50%) !important;
    z-index: 100001 !important;
}

/*
 * Some BuddyPress versions use a real .bp-tooltip element rather
 * than only pseudo-elements.
 */
body.buddypress #buddypress .activity-meta .delete-activity .bp-tooltip,
body.buddypress #buddypress .activity-meta .delete-activity + .bp-tooltip {
    top: auto !important;
    bottom: calc(100% + 8px) !important;
    z-index: 100000 !important;
}


/* =========================================================
   V1.0.2 — ALL ACTIVITY ACTION TOOLTIPS
   Comment / Favorite / Delete now use the same safe position.
   ========================================================= */

/*
 * These are the actual BuddyPress activity action controls:
 *   .acomment-reply
 *   .fav / .unfav
 *   .delete-activity
 *
 * Force each tooltip above its own button so labels never collide
 * with the divider or content underneath.
 */

body.buddypress #buddypress .activity-meta
.acomment-reply,
body.buddypress #buddypress .activity-meta
.fav,
body.buddypress #buddypress .activity-meta
.unfav,
body.buddypress #buddypress .activity-meta
.delete-activity {
    position: relative !important;
}


/* Tooltip label */
body.buddypress #buddypress .activity-meta
.acomment-reply.bp-tooltip::after,
body.buddypress #buddypress .activity-meta
.acomment-reply[data-bp-tooltip]::after,

body.buddypress #buddypress .activity-meta
.fav.bp-tooltip::after,
body.buddypress #buddypress .activity-meta
.fav[data-bp-tooltip]::after,

body.buddypress #buddypress .activity-meta
.unfav.bp-tooltip::after,
body.buddypress #buddypress .activity-meta
.unfav[data-bp-tooltip]::after,

body.buddypress #buddypress .activity-meta
.delete-activity.bp-tooltip::after,
body.buddypress #buddypress .activity-meta
.delete-activity[data-bp-tooltip]::after {
    top: auto !important;
    bottom: calc(100% + 8px) !important;

    left: 50% !important;
    right: auto !important;

    margin: 0 !important;

    transform: translateX(-50%) !important;

    z-index: 100000 !important;

    white-space: nowrap !important;

    pointer-events: none !important;
}


/* Tooltip arrow */
body.buddypress #buddypress .activity-meta
.acomment-reply.bp-tooltip::before,
body.buddypress #buddypress .activity-meta
.acomment-reply[data-bp-tooltip]::before,

body.buddypress #buddypress .activity-meta
.fav.bp-tooltip::before,
body.buddypress #buddypress .activity-meta
.fav[data-bp-tooltip]::before,

body.buddypress #buddypress .activity-meta
.unfav.bp-tooltip::before,
body.buddypress #buddypress .activity-meta
.unfav[data-bp-tooltip]::before,

body.buddypress #buddypress .activity-meta
.delete-activity.bp-tooltip::before,
body.buddypress #buddypress .activity-meta
.delete-activity[data-bp-tooltip]::before {
    top: auto !important;
    bottom: calc(100% + 2px) !important;

    left: 50% !important;
    right: auto !important;

    margin: 0 !important;

    transform: translateX(-50%) !important;

    z-index: 100001 !important;

    pointer-events: none !important;
}


/*
 * Neutralize any directional tooltip attributes BuddyPress may add.
 */
body.buddypress #buddypress .activity-meta
.acomment-reply[data-bp-tooltip-pos]::after,
body.buddypress #buddypress .activity-meta
.fav[data-bp-tooltip-pos]::after,
body.buddypress #buddypress .activity-meta
.unfav[data-bp-tooltip-pos]::after,
body.buddypress #buddypress .activity-meta
.delete-activity[data-bp-tooltip-pos]::after {
    top: auto !important;
    bottom: calc(100% + 8px) !important;

    left: 50% !important;
    right: auto !important;

    transform: translateX(-50%) !important;
}


body.buddypress #buddypress .activity-meta
.acomment-reply[data-bp-tooltip-pos]::before,
body.buddypress #buddypress .activity-meta
.fav[data-bp-tooltip-pos]::before,
body.buddypress #buddypress .activity-meta
.unfav[data-bp-tooltip-pos]::before,
body.buddypress #buddypress .activity-meta
.delete-activity[data-bp-tooltip-pos]::before {
    top: auto !important;
    bottom: calc(100% + 2px) !important;

    left: 50% !important;
    right: auto !important;

    transform: translateX(-50%) !important;
}


/*
 * Small-screen edge protection:
 * Comment is the left-most control, so center the tooltip less aggressively
 * near the viewport edge.
 */
@media (max-width: 480px) {

    body.buddypress #buddypress .activity-meta
    .acomment-reply.bp-tooltip::after,
    body.buddypress #buddypress .activity-meta
    .acomment-reply[data-bp-tooltip]::after {
        left: 0 !important;
        transform: none !important;
    }

    body.buddypress #buddypress .activity-meta
    .acomment-reply.bp-tooltip::before,
    body.buddypress #buddypress .activity-meta
    .acomment-reply[data-bp-tooltip]::before {
        left: 18px !important;
        transform: none !important;
    }
}


/* =========================================================
   FOLLO USER MEDIA LIBRARY v1.0.3
   Activity-post Photo/Video integration
   ========================================================= */

.follo-media-card video,
.follo-profile-photo-item video,
.follo-media-profile-thumb video,
.follo-profile-main-gallery-item video {
    display: block !important;

    width: 100% !important;
    height: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;

    object-fit: cover !important;

    background: #101418 !important;
}

.follo-media-card,
.follo-profile-photo-item,
.follo-media-profile-thumb,
.follo-profile-main-gallery-item {
    position: relative !important;
}

.follo-media-video-badge {
    position: absolute !important;

    left: 50% !important;
    top: 50% !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 38px !important;
    height: 38px !important;

    transform: translate(-50%, -50%) !important;

    border-radius: 50% !important;

    background: rgba(10, 16, 22, .72) !important;

    color: #ffffff !important;

    font-size: 15px !important;
    line-height: 1 !important;

    pointer-events: none !important;

    box-shadow:
        0 4px 14px rgba(0, 0, 0, .20) !important;
}

@media (max-width: 640px) {
    .follo-media-video-badge {
        width: 32px !important;
        height: 32px !important;

        font-size: 13px !important;
    }
}


/* =========================================================
   FOLLO User Media Library 1.0.7
   Keep profile media folders on one row at every width.
   ========================================================= */

.follo-profile-photo-folder-tabs {
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: stretch !important;
    gap: 5px !important;
    width: 100% !important;
    min-width: 0 !important;
}

.follo-profile-photo-folder-tab {
    box-sizing: border-box !important;
    flex: 1 1 0 !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: none !important;
    padding-left: 5px !important;
    padding-right: 5px !important;
    overflow: hidden !important;
}

.follo-profile-photo-folder-tab .follo-folder-label {
    display: block !important;
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

@media (max-width: 480px) {
    .follo-profile-photo-folder-tabs {
        gap: 4px !important;
    }

    .follo-profile-photo-folder-tab {
        min-height: 34px !important;
        padding-left: 3px !important;
        padding-right: 3px !important;
    }

    .follo-profile-photo-folder-tab .follo-folder-icon {
        flex: 0 0 11px !important;
        width: 11px !important;
        height: 11px !important;
    }

    .follo-profile-photo-folder-tab .follo-folder-icon svg {
        width: 11px !important;
        height: 11px !important;
    }

    .follo-profile-photo-folder-tab .follo-folder-label {
        font-size: clamp(7px, 2.15vw, 9px) !important;
    }
}

/* =========================================================
   PROFILE PHOTOS — BULK SELECT / DELETE
   ========================================================= */

.follo-profile-main-gallery-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.follo-profile-gallery-manage,
.follo-profile-bulk-actions button {
    appearance: none;
    -webkit-appearance: none;
    min-height: 38px;
    margin: 0;
    padding: 0 14px;
    border: 1px solid #d8dee5;
    border-radius: 10px;
    background: #fff;
    color: #344054;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: none;
}

.follo-profile-gallery-manage:hover,
.follo-profile-bulk-actions button:hover {
    border-color: #b8c2cc;
    background: #f8fafc;
}

.follo-profile-bulk-toolbar[hidden] {
    display: none !important;
}

.follo-profile-bulk-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 0 0 18px;
    padding: 12px 14px;
    border: 1px solid #e4e8ed;
    border-radius: 12px;
    background: #f8fafc;
}

.follo-profile-bulk-status {
    min-width: 110px;
    color: #344054;
    font-size: 13px;
}

.follo-profile-bulk-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.follo-profile-bulk-actions .follo-profile-bulk-delete {
    border-color: #d92d20;
    background: #d92d20;
    color: #fff;
}

.follo-profile-bulk-actions .follo-profile-bulk-delete:hover:not(:disabled) {
    border-color: #b42318;
    background: #b42318;
    color: #fff;
}

.follo-profile-bulk-actions .follo-profile-bulk-delete:disabled {
    cursor: not-allowed;
    opacity: .5;
}

.follo-profile-main-gallery.is-bulk-selecting .follo-profile-main-gallery-item {
    position: relative;
    cursor: pointer;
}

.follo-profile-main-gallery.is-bulk-selecting .follo-profile-main-gallery-item::before {
    content: '';
    position: absolute;
    z-index: 4;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    border: 2px solid rgba(255,255,255,.96);
    border-radius: 50%;
    background: rgba(15,23,42,.48);
    box-shadow: 0 1px 4px rgba(15,23,42,.22);
    pointer-events: none;
}

.follo-profile-main-gallery.is-bulk-selecting .follo-profile-main-gallery-item::after {
    content: '✓';
    position: absolute;
    z-index: 5;
    top: 10px;
    right: 10px;
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    color: transparent;
    font-size: 16px;
    font-weight: 900;
    line-height: 1;
    pointer-events: none;
}

.follo-profile-main-gallery.is-bulk-selecting .follo-profile-main-gallery-item.is-selected {
    outline: 3px solid var(--follo-theme-color, #ff5a0a);
    outline-offset: 2px;
}

.follo-profile-main-gallery.is-bulk-selecting .follo-profile-main-gallery-item.is-selected::before {
    border-color: var(--follo-theme-color, #ff5a0a);
    background: var(--follo-theme-color, #ff5a0a);
}

.follo-profile-main-gallery.is-bulk-selecting .follo-profile-main-gallery-item.is-selected::after {
    color: #fff;
}

.follo-profile-main-gallery.is-bulk-selecting .follo-profile-main-gallery-item:not(.is-selected) img,
.follo-profile-main-gallery.is-bulk-selecting .follo-profile-main-gallery-item:not(.is-selected) video {
    transition: opacity .15s ease, transform .15s ease;
}

.follo-profile-main-gallery.is-bulk-selecting .follo-profile-main-gallery-item.is-selected img,
.follo-profile-main-gallery.is-bulk-selecting .follo-profile-main-gallery-item.is-selected video {
    opacity: .82;
}

@media (max-width: 640px) {
    .follo-profile-bulk-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .follo-profile-bulk-actions {
        justify-content: stretch;
    }

    .follo-profile-bulk-actions button {
        flex: 1 1 auto;
    }
}

