.post-view-wrapper {
        flex: 1 1 auto;
        min-height: 0;
        overflow: hidden;
        display: flex;
        flex-direction: column;
}

.post-details-wrapper {
        display: flex;
        height: 100vh;
        background: rgb(10, 10, 10);
        overflow: hidden;
}

.post-details-left {
        flex: 1 1 auto;
        max-width: 60%;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
}

.post-details-left img {
        object-fit: contain;
        border-radius: 4px;
        width: auto;
        height: auto;
}

/* PORTRAIT MODE */
.portrait .post-details-left img {
        max-height: 100vh;
        width: auto;
        height: auto;
        object-fit: contain;
}

/* LANDSCAPE MODE */
.landscape .post-details-left img {
        max-width: 100%;
        max-height: 100%;
        width: 100%;
        height: auto;
        object-fit: contain;
        margin: 0 auto;
}

.post-details-right {
        flex: 0 0 40%;
        display: flex;
        flex-direction: column;
        background: rgb(20, 20, 20);
        border-radius: 4px;
        padding: 12px;
        overflow: hidden;
}

.post-author-box {
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: rgb(20, 20, 20);
        border-radius: 4px;
        gap: 8px;
}

.post-meta-section {
        flex-shrink: 0;
        margin-top: 10px;
        color: white;
}

.post-actions {
        flex-shrink: 0;
        margin-top: 12px;
        padding: 10px;
        background: rgb(25, 25, 25);
        border-radius: 4px;
        display: flex;
        justify-content: space-between;
        align-items: center;
}

.post-comments-section {
        flex: 1 1 auto;
        overflow-y: auto;
        margin-top: 14px;
        background: rgb(10, 10, 10);
        padding: 12px;
        border-radius: 4px;
        color: white;
}

.metrics-dropdown-content {
        max-height: 240px;
        overflow-y: auto;
}
@media (max-width: 768px) {
    /* entire page should scroll normally */
    .post-view-wrapper {
            height: auto;
            overflow: auto;
    }

    .post-details-wrapper {
            flex-direction: column;
            height: auto;
            overflow: visible;
    }

    .post-details-left {
            max-width: 100%;
            width: 100%;
            overflow: visible;
    }

    /* MOBILE IMAGE FIX */
    .post-details-left img {
            max-height: none !important;
            width: 100% !important;
            height: auto !important;
    }

    .post-details-right {
            max-width: 100%;
            width: 100%;
            overflow: visible;
    }

    .post-comments-section {
            max-height: none;
            overflow: visible;
    }
}

@media (max-width: 768px) {
    .mobile-close-container {
            width: 100%;
            padding: 12px;
            background: rgb(10, 10, 10);
    }
    .post-details-left img {
            margin-top: 0;
    }
    .post-author-box .btn.btn-secondary {
            display: none;
    }
}

@media (min-width: 769px) {
    .mobile-close-container {
            display: none;
    }
}