/**
 * Post upload page – clean centered layout (single fixed-width column).
 */
.post-upload-page {
    display: flex;
    justify-content: center;
}

.upload-column {
    width: 320px;
}

.post-upload-inner {
    width: 280px;
    margin: 0 auto;
}

.upload-dropzone {
    width: 100%;
    height: 200px;

    border: 2px dashed #d7dce3;
    border-radius: 10px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    cursor: pointer;
}

/* When preview is shown, expand dropzone to fit image and keep button below */
.upload-dropzone:has(#previewImg[src]) {
    height: auto;
    min-height: 200px;
    padding: 12px 0;
}

.upload-dropzone:hover {
    border-color: #3b82f6;
}

.upload-text {
    font-size: 14px;
    color: #6b7280;
}

#previewImg {
    display: block;
    width: 100%;
    max-width: 280px;
    height: auto;
    margin: 12px auto;
    position: relative;
}

#previewImg:not([src]),
#previewImg[src=""] {
    display: none;
}

.comunity-image-upload-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.post-all-submit-wrap {
    width: 100%;
}

.post-all-submit-wrap .btn {
    width: 100%;
}

.submit-post {
    width: 100%;
    margin-top: 16px;
}
