.socialwall {
    .masonry-item .socialwall-img {
        width: 100%;
        object-fit: cover;
        display: block;
    }
    .socialwall-video {
        height: 250px;
        object-fit: cover;
        display: block;

        &:fullscreen {
            object-fit: contain;
        }
    }

    .post {
        border: solid 1px lightgray; 
        border-radius: 8px;
    }

    .box-shadow {
        box-shadow: 0px 1px 12px 0px #00000030;
    }

    .post-header {
        padding: 10px;
        display:flex;
        flex-flow: row; 
        justify-content: space-between;
        align-items: center;
        &.hide {
            display: none;
        }
    }

    .channel-name {
        margin-top: 0;
        margin-bottom: 5px;
        font-weight: bold;
    }

    .post-time {
        font-size: 0.9rem;
        margin-bottom: 0;
        margin-top: -0.2rem;
        color: black;
    }

    .message-content {
        overflow: hidden;
        font-size: 1rem;
        display: -webkit-box;
        -webkit-line-clamp: 3; 
        -webkit-box-orient: vertical;
        text-overflow: ellipsis;
        margin-bottom: 0;
    }

    .message-content.expanded {
        -webkit-line-clamp: unset; 
    }

    .message {
        padding: 10px;
    }
      
    .read-more {
        width: max-content;
        background: none; 
        color: blue;
        border: none;
        cursor: pointer;
        font-size: 14px;
        margin-top: 5px;
        padding: 0;
        text-decoration: underline;
    }
    
    .read-more:hover {
        color: darkblue;
    }

    .yt-iframe {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    .post-link {
        align-self: center;
        line-height: 0;
        margin-right: 5px;
        margin-left: 5px;
    }

    .post-icon{
        max-width: 23px;
        max-height: 23px;
        margin:3px;
    }

    .socialwall-navigation {
        display: flex;
        flex-wrap: wrap;
        gap: 50px;
        justify-content: center;

        div {
            &.hide {
                display: none;
            }
            text-align:center;
        }
        .load-less {
            display: none;
        }

        .navigation-button {
            background-color: var(--e-global-color-secondary);
            color: white;
        }
    }
    .channel-link {
        display: flex;
        align-items: center;
        gap: 10px;
        color: black;
        &:hover {
            color:black
        }
    }
    .channel-picture {
        max-width: 40px;
        max-height: 40px;
    }

    .yt-wrapper {
        position: relative;
        padding-top: 60%; 
        &.short {
            padding-top: 130%;
        }
        &:has(.brlbs-cmpnt-container) {
            padding-top:0;
        }
    }

    a {
        text-decoration: none;
    }
    .play-icon {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: #ffffff;
        z-index: 1;
        border-radius: 100px;
        pointer-events: none;
        .fa-play {
            transform: translateX(4%);
        }
    }

    .hover-overlay {
        opacity: 0;
        background-color: black;
        position: absolute;
        width: 100%;
        height: 100%;
        top:0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }


    .share-icon {
        position: absolute;
        bottom: 10px;
        right: 10px;
        padding: 5px;
        color: #475993;
        border-radius: 10px;
        background:#ffffffba;
        &:hover {
            transform: scale(1.15);
        }
    }

    .media-container {
        cursor: pointer;
        position: relative;
    }
}

.custom-lightbox {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    &.hidden { display: none; }

    .lightbox-container {
        display: flex;
        position: relative;
        background: black;
        height: 80vh;
        width: 60vw;
        transform: translateX(-12.5vw);
        /* border-top-left-radius: var(--border-radius-lightbox-container);
        border-bottom-left-radius: var(--border-radius-lightbox-container); */
    }
    .lightbox-media {
        width: 100%;
        object-fit: contain;
        max-height: 85vh;
    }
    .lightbox-content-wrapper {
        width: 25vw;
        max-height: 100%;
        height: 100%;
        padding: 25px 20px 20px 20px;
        position: absolute;
        background:white;
        right: 0;
        transform: translateX(100%);
        /* border-top-right-radius: var(--border-radius-lightbox-content);
        border-bottom-right-radius: var(--border-radius-lightbox-content); */
    }
    .lightbox-content {
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .lightbox-channel-picture {
        max-width: 40px;
        max-height: 40px;
    }

    .lightbox-channel-name {
        padding-right: 15px;
        margin-bottom: 5px;
        color: black;
        font-weight: bold;
    }
    .lightbox-post-time {
        font-size: 0.9rem;
        margin-bottom: 0;
        margin-top: -0.2rem;
        color: black;
    }

    .lightbox-header {
        display: flex;
        align-items: center;
        gap: 10px;
        padding-bottom: 10px;
    }

    a.close-lightbox {
        padding:10px 10px 0px 0px;
        background-color: transparent;
        font-size: 0;
        position: absolute;
        right: 5px;
        top: 5px;
        color:black;
        &:hover {
            color:black;
        }
    }

    .lightbox-message {
        flex: 1;
        overflow-y: auto;
        padding-right: 8px;
    }

    .lightbox-message a, .message-content a {
        text-decoration: underline;
        word-break: break-all;
    }

    .lightbox-channel-name-link {
        width: 100%;
        display: block;
        text-decoration: none;
        &.hide {
            display: none;
        }
    }

    .media-container {
        position: relative;
        &:hover .hover-overlay {
            opacity: 0.3;
        }
        &.video .color-overlay {
            background-color: rgba(201, 201, 201, 0.33);
            position: absolute;
            width: 100%;
            height: 100%;
            top:0;
            pointer-events: none; 
        }
    }


    @media (max-width: 768px) {
        .lightbox-container {
            height: 50vh;
            transform: translateY(-15vh);
            width: 80vw;
            /* border-top-left-radius: var(--border-radius-lightbox-container);
            border-top-right-radius: var(--border-radius-lightbox-container);
            border-bottom-left-radius: 0;
            border-bottom-right-radius: 0; */
        }

        .lightbox-content-wrapper {
            max-height: 30vh;
            width: 100%;
            height: auto;
            padding: 10px 20px;
            bottom:0;
            transform: translateY(100%);
            /* border-bottom-left-radius: var(--border-radius-lightbox-content);
            border-bottom-right-radius: var(--border-radius-lightbox-content);
            border-top-left-radius: 0;
            border-top-right-radius: 0; */
        }

        .lightbox-content {
            max-height: calc(30vh - 20px);
            max-width: 100%;
            width: 100%;
            height: auto;
        }

        a.close-lightbox {
            position: absolute;
            color:black;
            &:hover {
                color:black;
            }
        }
    }
}