/* Chá Digital Pro v3.9.15 — editor responsivo de publicações */
.publication-editor-page{
    width:min(100%,980px);
    margin:0 auto;
}

.publication-editor-card{
    width:100%!important;
    max-width:none!important;
    min-width:0;
    overflow:hidden;
}

.publication-editor-card form,
.publication-editor-card .field{
    min-width:0;
}

.edit-photo-grid{
    display:grid;
    grid-template-columns:repeat(
        auto-fit,
        minmax(170px,1fr)
    );
    gap:12px;
    width:100%;
    min-width:0;
}

.edit-photo-card{
    min-width:0;
    overflow:hidden;
    border:1px solid var(--line);
    border-radius:14px;
    background:#fff;
}

.edit-photo-card img{
    display:block;
    width:100%!important;
    max-width:100%!important;
    height:180px!important;
    object-fit:contain!important;
    background:var(--soft,#f8f8f8);
    border-radius:13px 13px 0 0;
    cursor:pointer;
}

.remove-photo-control{
    display:flex;
    align-items:center;
    gap:7px;
    padding:9px 10px;
    font-size:12px;
    cursor:pointer;
}

.remove-photo-control input{
    width:auto!important;
    flex:0 0 auto;
}

.publication-editor-actions{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
}

.social-post-actions{
    display:flex;
    gap:7px;
    flex-wrap:wrap;
    margin-top:10px;
}

.social-post-actions .btn{
    min-height:36px;
    padding:7px 10px;
    font-size:12px;
}

@media(max-width:700px){
    .publication-editor-page{
        width:100%;
    }

    .publication-editor-card{
        padding:15px!important;
    }

    .edit-photo-grid{
        grid-template-columns:1fr;
    }

    .edit-photo-card img{
        height:auto!important;
        max-height:320px!important;
    }

    .publication-editor-actions,
    .social-post-actions{
        display:grid;
        grid-template-columns:1fr;
    }

    .publication-editor-actions .btn,
    .social-post-actions .btn{
        width:100%!important;
        justify-content:center!important;
    }
}
