/* Basic Styling */
button {
    transition: all 0.3s ease;
}


body {
    font-family: TwitterChirp, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: black;
    margin: 0;
    padding: 0;
    scrollbar-width: thin;
    scrollbar-color: #333 #1a1a1a;
}


.container {
    display: flex;
    justify-content: center;
    width: 100%;
    align-items: flex-start;
    gap: 20px;
}

/* Left Side Panel */
.left-panel {
    position: sticky;
    top: 0;
    max-height: 98vh;
    padding: 0px 8px;
    width: 259px;
    align-items: flex-end;
    overflow-y: auto;
    justify-content: space-between;
}

.logo {
    margin-bottom: 20px;
    fill: #e7e9ea;
    padding-top: 12px;

}

.navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    margin-bottom: 15px;
}

.nav-item a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #e7e9ea;
    padding: 12px;
    border-radius: 25px;
    font-size: 20px;
    word-wrap: break-word;
    justify-content: flex-start; /* Changed from default */
    transition: all 0.3s ease; /* Added for smooth transition */
}

.nav-item a:hover,
.nav-item a.active {
    background-color: #181818;
}

.nav-item svg {
    fill: #e7e9ea;
    align-items: center;
    transition: all 0.3s ease; /* Added for smooth transition */

}

.nav-item span {
    margin-left: 20px;

}

.post-button {
    background-color: #1A8CD8;
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 25px;
    width: 90%;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    font-size: 17px;
    transition: all 0.3s ease;
}

.post-button:hover {
    background-color: rgba(26, 140, 216, 0.9);
}


.post-button svg {
    display: none;
    fill: #e7e9ea;
}

/* Main Content */
.main-content {
    width: 598px;
    margin: 0;
    padding: 0;
    border-left: 1px solid #2f3336;
    border-right: 1px solid #2f3336;
}

.header-content {
    display: flex;
    align-items: center;
}
.main-header {
    position: sticky;
    top: 0;
    background-color: rgba(0, 0, 0, 0.65);
    height: 53px;
    display: flex;
    align-items: center;

    justify-content: space-between;
    z-index: 10;
    padding: 0 15px;
}

.follow-header {
    justify-content: flex-end;
}

#following-button2 {
    background-color: #000;
    color: #fff;
    border: 1px solid #536471;
    padding: 7px 14px;
    border-radius: 9999px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.following-button2:hover {
    background-color: rgba(255, 255, 255, 0.1);
}


.follow-hidden {
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.3s ease !important;
}


.back-arrow {
    margin-right: 30px;
    cursor: pointer;
    fill: #e7e9ea;
}

.header-title {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.header-name {
    display: flex;
    align-items: center;
}

.profile-name {
    font-size: 20px;
    font-weight: 700;
    color: white;
    margin: 0;
    display: flex;
    align-items: center;
}

.verification-icon {
    margin-left: 2px;
    color: rgb(29, 155, 240);
    fill: rgb(29, 155, 240);
}

.profile-name .verification-icon-gold {
    margin-top: 3px;
}
.verification-icon-gold {
    margin-left: 2px;
    align-items: center;
}

.verification-icon-wrapper {
    display: inline-flex;
    align-items: center;
}

.post-count {
    font-size: 13px;
    font-weight: 400;
    color: rgb(113, 118, 123);
    margin: 0;
}


.banner-image {
    width: 100%;
    height: 199.33px;
    overflow: hidden;
}

.banner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-header {
    position: relative;
    margin-top: -66.75px; /* Half the height of the profile picture */
    margin-bottom: 15px;
}




.profile-info {
    clear: both;
    padding: 0px 15px;
}

.profile-picture-container {
    margin-left: 15px;
}

.profile-picture {
    width: 133.5px;
    height: 133.5px;
    border-radius: 50%;
    border: 4px solid black;
    z-index: 12;
}

.profile-buttons {
    position: absolute;
    right: 15px;
    bottom: 32px;
    display: flex;
    align-items: center;
}

.profile-button {
    background-color: transparent;
    border: 1px solid #536471;
    color: rgb(239, 243, 244);
    padding: 7px 7px;
    border-radius: 25px;
    margin-left: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: 15px;
    transition: opacity 0.3s ease;
}

.follow-button:hover,
.post-button:hover {
    opacity: 0.8;
}

.profile-button:hover {
    border-color: rgb(103, 7, 15);
    background-color: rgba(244, 33, 46, 0.1);
    color: rgb(244, 33, 46);
}

.profile-button:hover span {
    content: "Unfollow";
}


.search-bar input:focus {
    outline: none;
    outline-offset: 2px;
}




.profile-button svg {
    fill: #e7e9ea;
}

.profile-button span {
    padding: 0px 8px;
}

.profile-handle {
    font-size: 15px;
    color: rgb(113, 118, 123);
}

.profile-bio {
    font-size: 15px;
    color: rgb(231, 233, 234);
    margin-top: 16px;
}

.profile-details {
    display: flex;
    align-items: center;
    color: rgb(113, 118, 123);
    font-size: 15px;
    margin-top: 10px;
}

.profile-details svg {
    margin-right: 4px;
    fill: #71767b;
}

.profile-details a {
    color: #1d9bf0;
    text-decoration: none;
}

.follower-stats {
    display: flex;
    margin-top: 15px;
}

.follower-count {
    font-size: 14px;
    font-weight: 700;
    color: rgb(231, 233, 234);
    margin-right: 5px;
}

.follower-descriptor, .links-descriptor {
    font-size: 14px;
    font-weight: 400;
    color: rgb(113, 118, 123);
    margin-right: 12px;
    margin-left: 0;
}

.followed-by {
    display: flex;
    align-items: center;
    margin-top: 15px;
}

.followed-by {
    display: flex;
    align-items: center;
    margin-top: 15px;
}

.mini-profile-picture {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    margin-right: -11px; /* Overlap by half */
}

.followed-by span {
    font-size: 13px;
    color: rgb(113, 118, 123);
    margin-left: 20px;
}

#profile-followed-1 {
    z-index: 1;
}

#profile-followed-2 {
    z-index: 2;
}
#profile-followed-3 {
    z-index: 3;
}


.tab-navigation {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 15px;
}

.tab-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: space-between;
}

.tab-item {
    flex: 1;
    text-align: center;
}

.tab-item a {
    text-decoration: none;
    color: rgb(113, 118, 123);
    font-size: 15px;
    padding: 15px 0;
    display: block;
    transition: color 0.2s, border-bottom 0.2s;
}

.tab-item.active a {
    color: #e7e9ea;
    border-bottom: 2px solid rgb(29, 155, 240);
}

.post {
    display: flex;
    padding: 12px 16px 2px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    cursor: default;
}

.highlighted-post {
    background-color: rgba(29, 155, 240, 0.25);
    transition: background-color 0.3s;
}

.post-profile-picture {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;

    float: left;
}

.post-content {
    flex: 1;
    min-width: 0;
    max-width: 100%;
}

.post-header {
    display: flex;
    align-items: center;
}

.post-author {
    font-size: 15px;
    font-weight: bold;
    color: rgb(231, 233, 234);
    cursor: pointer;
}

.post-author, .post-handle {
    max-width: 25ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.trend .post-handle {
    margin-left: 8px;
}

.post-handle {
    font-size: 15px;
    color: rgb(113, 118, 123);
    margin-left: 2px;
}

.post-date {
    font-size: 13px;
    color: rgb(113, 118, 123);
    margin-left: 5px;
}

.more-icon {
    margin-left: auto;
    cursor: pointer;
    fill: #71767b;
    padding-right: 6px;

}

.post-text {
    font-size: 15px;
    color: rgb(231, 233, 234);
    margin: 5px 0;

    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;

    max-width: 100%;
}

.post-link {
    color: #1da1f2;
    text-decoration: none;
    word-break: break-all;
}

.post-author:hover, .post-link:hover {
    text-decoration: underline;
}

.post-replies > .post {
    border-bottom: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 0;
}

.post-replies {
    margin-top: 10px;
    position: relative;
}

/* Thread line (vertical line) */
.thread-line {
    position: absolute;
    left: 20px; /* Align with left edge of profile picture */
    top: 50px; /* Height of profile picture */
    width: 3px;
    background-color: #2f3336;
    display: none;
    
    /* Height will be set dynamically via JavaScript */
}
.day-post > .thread-line,
.today-post > .thread-line {
    left: 35px;
}


/* Horizontal line (connector to child profile picture) */
.post-replies .post .horizontal-line {
    position: absolute;
    left: -28px; /* Align with the vertical line */
    top: 30px; /* Centered vertically with profile picture */
    width: 28px; /* Length from vertical line to profile picture */
    height: 3px;
    background-color: #2f3336;
}

/* Hover effects */
.thread-line:hover,
.horizontal-line:hover,
.post-replies .post .horizontal-line:hover,
.thread-line.hovered {
    background-color: #E7E9EA;
}

/* Ensure lines are hidden when replies are collapsed */
.thread-line,
.horizontal-line {
    transition: background-color 0.3s ease;
    cursor: pointer;
}


.post-interactions {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Spread out the icons evenly */
}


.interaction-item, .interaction-items {
    display: flex;
    align-items: center;
}

.interaction-icon-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34.75px; /* 18.75px (icon) + 16px (padding) */
    height: 34.75px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.interaction-icon {
    cursor: pointer;
    fill: #71767b;
    transition: all 0.2s ease;
}

.liked.interaction-icon {
    fill: rgb(249, 24, 128);
}

.interaction-count {
    font-size: 13px;
    color: rgb(113, 118, 123);
    margin-right: 15px;
    transition: all 0.2s ease;
}

.liked.interaction-count {
    color: rgb(249, 24, 128);
}

.interaction-icon-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    opacity: 0;
    transition: all 0.2s ease;
}

/* Comment hover effect */
.interaction-item:hover .interaction-icon-wrapper[data-type="comment"]::after {
    background-color: rgba(29, 155, 240, 0.1);
    opacity: 1;
}

.interaction-item:hover .interaction-icon-wrapper[data-type="comment"] .interaction-icon,
.interaction-item:hover .interaction-icon-wrapper[data-type="comment"] + .interaction-count {
    fill: rgb(29, 155, 240);
    color: rgb(29, 155, 240);
}

/* Repost hover effect */
.interaction-item:hover .interaction-icon-wrapper[data-type="repost"]::after {
    background-color: rgba(0, 186, 124, 0.1);
    opacity: 1;
}

.interaction-item:hover .interaction-icon-wrapper[data-type="repost"] .interaction-icon,
.interaction-item:hover .interaction-icon-wrapper[data-type="repost"] + .interaction-count {
    fill: rgb(0, 186, 124);
    color: rgb(0, 186, 124);
}

/* Reposted state styles */
.reposted.interaction-icon {
    fill: rgb(0, 186, 124);
}

.reposted.interaction-count {
    color: rgb(0, 186, 124);
}


/* Like hover effect */
.interaction-item:hover .interaction-icon-wrapper[data-type="like"]::after {
    background-color: rgba(249, 24, 128, 0.1);
    opacity: 1;
}

.interaction-item:hover .interaction-icon-wrapper[data-type="like"] .interaction-icon,
.interaction-item:hover .interaction-icon-wrapper[data-type="like"] + .interaction-count {
    fill: rgb(249, 24, 128);
    color: rgb(249, 24, 128);
}

/* View hover effect */
.interaction-item:hover .interaction-icon-wrapper[data-type="view"]::after {
    background-color: rgba(29, 155, 240, 0.1);
    opacity: 1;
}

.interaction-item:hover .interaction-icon-wrapper[data-type="view"] .interaction-icon,
.interaction-item:hover .interaction-icon-wrapper[data-type="view"] + .interaction-count {
    fill: rgb(29, 155, 240);
    color: rgb(29, 155, 240);
}

/* Bookmark hover effect (assuming it's an icon without count) */
.interaction-icon-wrapper[data-type="bookmark"]:hover::after {
    background-color: rgba(29, 155, 240, 0.1);
    opacity: 1;
}

.interaction-icon-wrapper[data-type="bookmark"]:hover .interaction-icon {
    fill: rgb(29, 155, 240);
}

/* Share hover effect (assuming it's an icon without count) */
.interaction-icon-wrapper[data-type="share"]:hover::after {
    background-color: rgba(29, 155, 240, 0.1);
    opacity: 1;
}

.interaction-icon-wrapper[data-type="share"]:hover .interaction-icon {
    fill: rgb(29, 155, 240);
}




/* Right Side Panel */
.right-panel {
    position: sticky;
    top: 0;
    width: 350px;
    max-height: 98vh;
    padding: 4.5px 20px;
    margin-right: 70px;
    overflow-y: auto;    
}


.search-bar {
    background-color: #202327;
    border-radius: 25px;
    padding: 10px;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    transition: background-color 0.2s, outline 0.2s;
}

.search-icon {
    color: rgb(113, 118, 123);
    margin-right: 10px;
    fill: #71767b;
}

.search-bar input {
    background-color: transparent;
    border: none;
    outline: none;
    color: rgb(231, 233, 234);
    flex: 1;
}

.search-bar input::placeholder {
    color: rgb(113, 118, 123);
}

.clearButton {
    background-color: rgb(29, 155, 240);
    display: none; /* Hidden by default */
    cursor: pointer;
    border-radius: 22px;
    border: none;
    padding: 4px 6px;
}

.clear-search-icon {
    fill: #000000;
}

.you-might-like,
.whats-happening {
    border: 1px solid #2f3336;
    border-radius: 10px;
    margin-bottom: 20px;
}
.you-might-like {
    padding: 16px;
}

.panel-title {
    font-size: 20px;
    color: #e7e9ea;
    margin-bottom: 15px;
    margin-top: 0px;
}
.profile-suggestion {
    display: flex;
    align-items: center;
    padding: 12px 0;
}

.suggestion-profile-picture {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-right: 8px;
    flex-shrink: 0;
}

.suggestion-info {
    flex-grow: 1;
    flex-shrink: 1;
    min-width: 0; /* This is crucial for text truncation to work */
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.suggestion-name-wrapper a {
    text-decoration: none;
}

.suggestion-name-wrapper {
    display: flex;
    align-items: center;
}

.suggestion-name {
    font-size: 15px;
    font-weight: bold;
    color: #e7e9ea;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: hidden;
    max-width: calc(100% - 22px); /* Adjust based on verification icon width */
}

.suggestion-handle {
    font-size: 13px;
    color: #71767b;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.follow-button {
    background-color: #eff3f4;
    color: #0f1419;
    border: none;
    border-radius: 9999px;
    padding: 6px 16px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
    flex-shrink: 0;
    margin-left: 12px;
    min-height: 32px;
}

.follow-button:hover {
    background-color: #e7e9ea;
}

.show-more {
    color: rgb(29, 155, 240);
    font-size: 15px;
    text-decoration: none;
    display: block;
    margin-top: 10px;
}

.whats-happening h3, .whats-happening .show-more {
    padding: 12px 16px;
    margin: 0;
}

.trending-topic {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 16px;
}

.topic-info {
    display: flex;
    flex-direction: column;
}

.topic-category {
    font-size: 13px;
    color: #71767B;
}

.topic-phrase {
    font-size: 15px;
    color: #e7e9ea;
    font-weight: bold;
    margin: 6px 0;
    cursor: pointer;
}

.topic-info {
    font-size: 13px;
    color: #71767B;
}

.footer-links {
    display: flex;
    justify-content: flex-start;
    gap: 15px;
    margin-top: 20px;
}

.footer-links a {
    color: #71767B;
    font-size: 13px;
    text-decoration: none;
    padding-left: 12px;
}

/* Media Queries */

/* Left Panel Collapse */
@media (max-width: 1300px) {
    .left-panel {
        width: 72px;
        padding: 8px;
    }

    .navigation span {
        display: none;
    }

    .post-button span {
        display: none;
    }

    .post-button-wrapper {
        display: flex;
        justify-content: center;
        align-items: center;
        
    }

    .post-button svg {
        display: block;
    }

    .post-button {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        padding: 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .post-button span {
        display: none;
    }

    .nav-item a {
        justify-content: center;
    }
    
    .nav-item svg {
        margin-right: 0; /* Remove any right margin */
    }
    
    .nav-item span {
        display: none;
    }

    .logo {
        justify-content: center;
        display:flex;
    }
}

/* Right Panel Adjustments */
@media (max-width: 1414px) {
    .right-panel {
        right: 10px;
    }
}

@media (max-width: 1110px) {
    .right-panel {
        width: 290px;
    }
}

@media (max-width: 1017px) {
    .right-panel {
        display: none;
    }
}


@media (max-width: 575px) {


    .left-panel {
        position: fixed;
        left: -6px;
        top: 0;
        height: 100vh;
        z-index: 1000;
    }

    .main-content {
        margin-left: 78px;
        transition: none;
        min-width: 0px;
    }

    
}

@media (max-width: 500px) {
    .profile-buttons {
        position: sticky;
    }
}

@media (max-width: 768px) {
    .media-thumbnail {
        width: 100px; /* Slightly smaller thumbnail on mobile */
        height: 100px;
    }
    
    .media-url-box {
        height: 100px;
    }
}


/* Search Bar Active State */


.search-bar input:not(:placeholder-shown) + .clear-search-icon {
    display: block;
}

.search-bar:focus-within {
    background-color: black;
    outline: 1px solid #1d9bf0;
}

.search-bar:focus-within .search-icon {
    fill: #1d9bf0;
}

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1a1a1a;
}
::-webkit-scrollbar-thumb {
    background-color: #333;
    border-radius: 4px;
    border: 2px solid #1a1a1a;
}

.error-post {
    background-color: #ffe6e6;
    border: 1px solid #ff8080;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.error-post:hover {
    background-color: #ffcccc;
}

.error-post .post-text {
    color: #cc0000;
    font-weight: bold;
}

.error-instructions {
    font-style: italic;
    color: #666;
    margin-top: 10px;
}



.bookmarked {
    fill: rgb(29, 155, 240);
}

.interaction-icon-wrapper[data-type="like"].liked .interaction-icon {
    animation: liked 0.3s ease;
}

@keyframes liked {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}



/* Metrics Section */
.metrics-section {
    padding: 16px;
    background-color: black;
}

#metrics-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

#metrics-dropdown {
    padding: 8px 12px;
    border: 1px solid #2f3336;
    border-radius: 9999px;
    background-color: #202327;
    color: #e7e9ea;
    outline: none;
}

#metrics-dropdown option {
    background-color: #15202b;
    color: #e7e9ea;
}

#time-period-selector {
    display: flex;
    align-items: center;
}

.time-option {
    margin-left: 10px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 14px;
    border-radius: 9999px;
    color: #e7e9ea;
    transition: background-color 0.2s;
}

.time-option:hover {
    background-color: rgba(29, 155, 240, 0.1);
}

.time-option.selected {
    background-color: rgba(29, 155, 240, 0.2);
}

#chart {
    max-width: 100%;
    height: auto;
}

.metrics-section canvas {
    background-color: #15202b;
    border-radius: 20px;
    padding: 16px;
}

@media (max-width: 600px) {
    #metrics-container {
        flex-direction: column;
        align-items: flex-start;
    }

    #time-period-selector {
        margin-top: 10px;
    }
}



/* Views Popup Styles */
.views-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(91, 112, 131, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.views-popup {
    background-color: #15202b;
    padding: 20px;
    border-radius: 15px;
    width: 300px;
    position: relative;
}

.views-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.views-popup-header span {
    font-size: 20px;
    font-weight: bold;
    color: #e7e9ea;
}

.views-popup-close-button {
    background: none;
    border: none;
    color: #e7e9ea;
    font-size: 24px;
    cursor: pointer;
}

.views-popup-content {
    margin-top: 20px;
    color: #e7e9ea;
}

.views-popup-content a {
    color: #1da1f2;
    text-decoration: none;
}

.views-popup-dismiss-button {
    margin-top: 20px;
    width: 100%;
    padding: 10px;
    background-color: #1da1f2;
    border: none;
    border-radius: 5px;
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
}

/* Style for pinned post */
.post.pinned {
    border-left: 4px solid #1da1f2;
}

/* More Menu Styles */
.more-menu {
    position: absolute;
    background-color: #15202b;
    border: 1px solid #38444d;
    border-radius: 4px;
    min-width: 200px;
    z-index: 1000;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.more-menu-item {
    padding: 12px 16px;
    color: #e7e9ea;
    cursor: pointer;
    font-size: 15px;
    transition: background-color 0.2s;
}

.more-menu-item:hover {
    background-color: rgba(29, 161, 242, 0.1);
}

.more-menu-item + .more-menu-item {
    border-top: 1px solid #38444d;
}

/* Style for pinned post */
.post.pinned {
    border-left: 4px solid #1da1f2;
}


.highlight {
    color: #1da1f2;
}






/* Media Tab Styling */
.media-post {
    cursor: pointer;
}

.media-preview {
    margin: 10px 0;
    border-radius: 16px;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

.media-url-box {
    display: flex;
    text-decoration: none;
    color: inherit;
    border: 1px solid #2f3336;
    border-radius: 16px;
    overflow: hidden;
    height: 125px;
    width: 100%; /* Set explicit width to 100% of container */
    max-width: 100%; /* Ensure it doesn't exceed container width */
    box-sizing: border-box;
}

.media-thumbnail {
    width: 125px;
    height: 125px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    background-color: #000;
}

.media-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.history-post .media-thumbnail img {
    height: 134%;
    object-position: center;
}

.youtube-thumbnail {
    background-color: #000;
    justify-content: center;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 2px 4px;
    border-radius: 4px;
    font-size: 12px;
}

.media-info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
    overflow: hidden;
    min-width: 0;
}

.media-domain {
    color: #71767b;
    font-size: 14px;
    margin-bottom: 4px;
}

.media-title {
    color: #e7e9ea;
    font-size: 15px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.media-description {
    color: #71767b;
    font-size: 14px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    width: 100%;
}

.greyed-out-interactions .interaction-icon {
    cursor: default;
    opacity: 0.5;
}

.greyed-out-interactions .interaction-count {
    cursor: default !important;
    opacity: 0.5;
}
.greyed-out-interactions .interaction-item {
    cursor: default;
}

.greyed-out-interactions .interaction-items {
    cursor: default;
}

.greyed-out-interactions .interaction-icon-wrapper {
    cursor: default !important;
    pointer-events: none;
}

.interaction-count.greyed-out {
    cursor: default !important;
    pointer-events: none;
}

.greyed-out {
    opacity: 0.5;
}

.comments-loading,
.media-loading,
.no-comments,
.comments-error,
.media-error,
.no-more-posts {
    padding: 20px;
    text-align: center;
    color: #71767b;
    font-size: 14px;
}

.comment-post {
    padding-left: 0;
}


.instagram-post .thread-line {
    left: 35px;
    top: 52px;
    height: 100%;
    width: 3px;
    background-color: #2f3336;
    position: absolute;
    display: none;
}