.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    display: none;
    justify-content: center;
    align-items: flex-start;
    padding-top: 80px;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.modal.show {
    display: flex;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

.cancel-btn,
.options-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
}

.modal-content {
    background: var(--background);
    border-radius: 12px;
    position: fixed;
    top: 5%;
    left: 33%;
    overflow: hidden;
    max-width: 640px;
    width: 90%;
    max-height: 100vh;
    display: flex;
    flex-direction: column;
}

.avatar-preview {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
}

label.upload-btn {
    display: inline-block;
    padding: 8px 12px;
    background: white;
    color: black !important;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    width: 80%;
}

.upload-btn:hover {
    background: #999999;
}

.separator {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}

.anyone {
    font-size: 13px;
    color: #aaa;
}

.post-btn {
    background: #555;
    color: #888;
    border: none;
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 14px;
    cursor: not-allowed;
}

.post-btn.active {
    background: #1da1f2;
    color: white;
    cursor: pointer;
}/* Image Modal Styles */

/* Image Modal Styles */
.image-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.image-modal {
    position: relative;
    width: auto;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-modal img,
.image-modal video {
    max-width: 95vw;
    max-height: 95vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.image-modal-close {
    position: absolute;
    top: -21px;
    right: -21px;
    background: black;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
}/* Make images clickable */

/* Make images clickable */
.thread__image img,
.image-preview-container img {
    cursor: pointer;
    transition: opacity 0.2s;
}

.thread__image img:hover,
.image-preview-container img:hover {
    opacity: 0.9;
}

.community-header {
    padding: 10px 0;
    align-items: baseline;
}
