/* Dialog backdrop */
dialog::backdrop {
    background: rgba(0, 0, 0, 0.55);
}

/* Dialog container */
dialog {
    border: none;
    border-radius: 12px;
    padding: 20px;
    width: 450px;
    max-width: 95%;
    background: #fff;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
    animation: fadeIn 0.25s ease-out;
    margin: auto auto;
}

/* Close button */
dialog > button {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 15px;
    color: #666;
}

dialog > button:hover {
    color: #000;
}

/* Form fields */
.post_message {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.post_message label {
    display: block;
    font-size: 14px;
    color: #444;
    margin-bottom: 5px;
}

textarea {
    width: 100%;
    min-height: 80px;
    padding: 8px;
    border-radius: 10px;
    border: 1px solid #ccc;
    resize: vertical;
}

/* Username + avatar */
.ig-profile-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

/* Image grid */
.post-images-edit {
    display: grid;
    grid-template-columns: repeat(auto-fill, 110px);
    gap: 12px;
    margin: 15px 0;
}

.edit-image {
    position: relative;
}

.edit-image img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #ddd;
}

/* Remove button */
.remove-image-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(255, 0, 0, 0.85);
    border: none;
    color: white;
    padding: 4px 7px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
}

.remove-image-btn:hover {
    background: red;
}

.new-image-upload{
    display: flex;
    flex-direction: column;
    padding-bottom: 20px;
}

.update-btn {
    padding: 0.9rem;
    background: var(--midnight-navy);
    color: var(--white);
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 1rem;

    &:hover {
        background-color: var(--steel-slate);
    }
}