/* Isolated Astravelya media management styles; never modifies site theme. */
.astra-media-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:16px}.astra-media-thumb{display:flex;flex-direction:column;gap:4px;text-decoration:none;min-width:0}.astra-media-thumb img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:9px}.astra-media-thumb strong,.astra-media-thumb small{overflow-wrap:anywhere}.astra-media-preview{max-width:min(400px,100%);max-height:300px;object-fit:contain;display:block}.astra-featured-editor{padding:12px;border:1px solid #ced4c9;border-radius:10px;margin:15px 0}.astra-featured-editor img{max-width:250px;max-height:170px;object-fit:cover;display:block;border-radius:8px}.astra-media-dialog{box-sizing:border-box;width:min(1100px,95vw);height:min(760px,90vh);max-width:none;max-height:none;border:1px solid #b9c5ba;border-radius:16px;background:#fcfaf5;color:#173f3b;padding:20px}.astra-media-dialog::backdrop{background:rgba(12,27,26,.65)}.astra-media-dialog-header,.astra-media-dialog-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}.astra-media-dialog-header button,.astra-media-dialog-actions button{cursor:pointer;padding:9px 15px;border-radius:8px;border:1px solid #b8c1b5;background:#fff}.astra-media-toolbar{display:flex;gap:12px;margin:15px 0}.astra-media-toolbar input,.astra-media-toolbar select{padding:10px;min-width:0}.astra-media-toolbar input{flex:1}.astra-media-picker-layout{display:grid;grid-template-columns:minmax(0,1fr) 220px;gap:18px;height:calc(100% - 165px);min-height:180px}.astra-media-picker-grid{overflow:auto;display:grid;grid-template-columns:repeat(auto-fill,minmax(128px,1fr));align-content:start;gap:10px}.astra-media-pick-item{padding:6px;border:2px solid transparent;border-radius:10px;background:#fff;cursor:pointer;color:inherit}.astra-media-pick-item.selected{border-color:#175b4f}.astra-media-pick-item img{width:100%;aspect-ratio:4/3;object-fit:cover}.astra-media-pick-item span{display:block;overflow-wrap:anywhere;font-size:12px}.astra-media-picker-details{min-width:0;overflow:auto}.astra-media-picker-details img{width:100%;object-fit:contain}.astra-media-dialog-actions{padding-top:12px}.astra-media-dialog-actions [data-choose]{background:#174f43;color:#fff}.astra-media-dialog-actions [data-choose]:disabled{opacity:.45}@media(max-width:650px){.astra-media-picker-layout{grid-template-columns:1fr}.astra-media-picker-details{display:none}.astra-media-dialog{padding:12px}.astra-media-toolbar{flex-direction:column}}
