#post-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: flex-end;
    z-index: 1000;
}

#post-overlay.show {
    display: flex;
}

#post-overlay .overlay-content {
    background: var(--b1);
    border: 6px solid var(--bc);
    width: 90%;
    max-width: 900px;
    height: 90%;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
    border-radius: 0.5rem 0.5rem 0 0;
    position: relative;
    overflow: hidden;
}

#post-overlay.show .overlay-content {
    transform: translateY(0);
}

#post-overlay .overlay-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: #ef4444;
    cursor: pointer;
    line-height: 1;
}

#post-overlay iframe {
    width: 100%;
    height: 100%;
    border: 0;
}
