#postImageModal > .modal-dialog > .modal-content {
    height: 100vh;
    height: 100dvh;
}

#postImageModal .post-modal-media-pane,
#postImageModal .post-modal-details-pane {
    height: 100%;
    min-height: 0;
}

#postImageModal .post-modal-media-pane {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

#postImageModal .post-modal-media-pane::before {
    content: '';
    position: absolute;
    inset: -24px;
    background-image: var(--post-modal-bg);
    background-position: center;
    background-size: cover;
    filter: blur(24px) brightness(.55);
    transform: scale(1.08);
}

#postImageModalCarousel .carousel-item img {
    object-fit: contain;
    aspect-ratio: auto;
}

#postImageModalDetails {
    min-height: 0;
    background: var(--bs-body-bg);
}

#postImageModalDetails .modal-post-header {
    flex: none;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--bs-border-color);
}

#postImageModalDetails .modal-post-header > div {
    padding-right: 3rem;
}

#postImageModalDetails .modal-post-content {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden auto;
    padding: 1rem 1.25rem;
}

#postImageModalDetails .post-feed-media,
#postImageModalDetails .carousel,
#postImageModalDetails .video-preview-container,
#postImageModalDetails [data-bs-target="#reportModal"],
#posts-container .post-comments-empty {
    display: none !important;
}

#postImageModalDetails .comments-container > .card {
    margin-bottom: .75rem !important;
    border-radius: 0 !important;
}

#postImageModalDetails .comments-container > .card .card-header {
    position: static;
}

.post-modal-close {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 2000;
    width: 44px;
    height: 44px;
    background: #7f00ff !important;
    border-color: #e100ff !important;
    color: #fff !important;
}

@media (max-width: 991.98px) {
    #postImageModal .post-modal-media-pane,
    #postImageModal .post-modal-details-pane {
        height: 50%;
    }

    #postImageModalDetails .modal-post-header > div {
        padding-right: 0;
    }

    .post-modal-close {
        position: absolute;
        top: .5rem;
        right: .5rem;
    }
}

.dashboard-comment-highlight {
    animation: dashboard-comment-highlight 2.2s ease-out;
}

@keyframes dashboard-comment-highlight {
    0%, 65% {
        background-color: rgb(127 0 255 / 16%);
        box-shadow: 0 0 0 .25rem rgb(127 0 255 / 18%);
    }
    100% { background-color: transparent; box-shadow: none; }
}
