.rpmx-contribution-shell{max-width:760px;margin:32px auto;padding:0 20px 40px}.rpmx-photo-form{display:grid;gap:22px}.rpmx-photo-form label{display:grid;gap:8px}.rpmx-photo-form input:not([type=checkbox]){width:100%;box-sizing:border-box;padding:12px;border:1px solid #cbd5e1;border-radius:10px;font:inherit}.rpmx-photo-form small{color:#475569}.rpmx-photo-form .rpmx-gallery-checkbox{display:flex;align-items:flex-start;gap:12px}.rpmx-gallery-notice{padding:20px;border:1px solid #dbe3eb;border-radius:16px;background:#f8fafc;margin:20px 0}.rpmx-gallery-honeypot{position:absolute!important;left:-10000px!important}.rpmx-gallery-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:24px;text-align:center;background:#f1f5f9;color:#1e293b;border-radius:20px;min-height:260px;box-sizing:border-box}.rpmx-gallery-empty h2,.rpmx-gallery-empty p{margin:0}.rpmx-gallery-empty p{max-width:38ch}.rpmx-gallery-empty .rpmx-btn{white-space:normal}.rpmx-gallery-contribute-link{display:inline-flex;margin:12px 0;font-weight:600}.rpmx-gallery-controls{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:18px 0}.rpmx-gallery-status{font-size:14px;color:#475569}.rpmx-gallery-review-actions{display:flex;gap:8px;flex-wrap:wrap}.rpmx-gallery-review-actions button{padding:10px;border:1px solid #cbd5e1;border-radius:8px;font:inherit;cursor:pointer;background:#fff}

/* Empty listings use content dimensions rather than photo dimensions. */
body.rpmx-listing-v2 .rpmx-hero-without-photos{grid-template-columns:minmax(0,1.5fr) minmax(280px,1fr);align-items:start}
.rpmx-hero-without-photos .rpmx-listing-panel{order:0}
.rpmx-hero-without-photos .rpmx-contribution-card{order:1;min-width:0}
.rpmx-contribution-card .rpmx-gallery-empty{min-height:0;padding:24px;align-items:flex-start;text-align:left;gap:12px}
.rpmx-contribution-card .rpmx-gallery-empty h2{font-size:1.3rem;line-height:1.3}
.rpmx-contribution-card .rpmx-gallery-empty p{font-size:.95rem;line-height:1.5;max-width:none}
@media(max-width:980px){body.rpmx-listing-v2 .rpmx-hero-without-photos{grid-template-columns:minmax(0,1fr)}}
@media(max-width:640px){.rpmx-contribution-card .rpmx-gallery-empty{padding:16px;border-radius:16px}.rpmx-contribution-card .rpmx-btn{max-width:100%;box-sizing:border-box}}

/* Galería colaborativa · selección múltiple y vistas previas */
.rpmx-photo-form{gap:18px}
.rpmx-photo-form label{font-weight:600}
.rpmx-photo-form label small,.rpmx-photo-form small{font-weight:400;line-height:1.45}
.rpmx-photo-form input[type=file]{background:#fff;cursor:pointer;border:1px dashed #b6c4b8!important;min-height:57px}
.rpmx-photo-form input[type=file]::file-selector-button{border:0;border-radius:8px;background:#e44341;color:#fff;font:inherit;padding:10px 12px;margin-right:12px;cursor:pointer}
.rpmx-gallery-selection{background:#f8faf8;border:1px solid #e1e8e2;border-radius:14px;padding:14px}
.rpmx-gallery-selection-head{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-bottom:12px}
.rpmx-gallery-selection-head strong{font-size:.92rem}
.rpmx-gallery-clear{border:0;background:none;color:#a3312f;text-decoration:underline;cursor:pointer;font:inherit;font-size:.85rem}
.rpmx-gallery-selection-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.rpmx-gallery-file{min-width:0;margin:0;background:#fff;border:1px solid #e1e8e2;border-radius:10px;overflow:hidden;display:flex;flex-direction:column}
.rpmx-gallery-file img{width:100%;height:130px;object-fit:cover;background:#e9efea}
.rpmx-gallery-file figcaption{padding:7px 9px;display:flex;flex-direction:column;gap:2px;overflow:hidden}
.rpmx-gallery-file figcaption span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.78rem}
.rpmx-gallery-file figcaption small{font-size:.72rem;color:#607269}
.rpmx-gallery-remove{background:#fff;border:0;border-top:1px solid #e1e8e2;color:#b3322f;cursor:pointer;font:inherit;font-size:.78rem;padding:8px}
.rpmx-gallery-file-error{color:#ae302d;background:#fff2f2;border:1px solid #f3b4b3;border-radius:8px;padding:12px;margin:0}
.rpmx-gallery-privacy{font-size:.9rem;line-height:1.5}
.rpmx-gallery-submit-state{margin:0;color:#446251;font-size:.9rem}
.rpmx-photo-form button[type=submit]:disabled{opacity:.7;cursor:wait}
@media(max-width:520px){.rpmx-gallery-selection-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.rpmx-gallery-file img{height:112px}.rpmx-gallery-selection{padding:10px}}
.rpmx-gallery-review-guidance{display:grid;gap:7px;padding:12px;border:1px solid #d7e2d9;background:#f8fbf8;border-radius:10px;font-size:.85rem;line-height:1.45}
.rpmx-gallery-review-guidance strong{color:#264c37}
.rpmx-gallery-review-flag{border:1px solid #edc58b;border-radius:6px;background:#fff7e8;color:#7d4a10;padding:8px}
.rpmx-gallery-review-guidance small{color:#667b69}

.rpmx-photo-credit{display:inline;font-size:.82rem;color:inherit}.rpmx-photo-credit a{color:inherit;text-decoration:underline;text-underline-offset:2px}
.rpmx-community-contributor-link{background:#f6faf7;padding:12px;border-radius:10px;line-height:1.5;font-size:.9rem}.rpmx-community-contributor-link a{color:#92392d;font-weight:650}
