.gallery-structure .gallery-toolbar{width:100%;margin:1rem 0 .75rem}
.gallery-structure .gallery-toolbar .gallery-v32-manage{display:inline-flex!important;visibility:visible!important;opacity:1!important;align-items:center;justify-content:center;flex:0 0 auto;margin-left:auto;border:1px solid rgba(161,105,66,.45);border-radius:999px;background:#f4e7d5;color:#6f4934;min-height:42px;padding:.62rem 1rem;font:inherit;cursor:pointer}
.gallery-v32-manage-mobile{display:none}
.gallery-v32-upload-fields{display:grid;gap:1rem;margin:.25rem 0}
.gallery-v32-field-title{display:block;color:#315d50}
.gallery-v32-date,.gallery-v32-captions{display:grid;grid-template-columns:1fr 1fr;gap:.75rem}
.gallery-v32-upload-fields label{display:grid;gap:.35rem}
.gallery-v32-upload-fields textarea{width:100%;resize:vertical}
.gallery-v32-albums,.gallery-v32-edit-albums{border:1px solid rgba(161,105,66,.3);border-radius:18px;padding:.8rem 1rem}
.gallery-v32-albums small{display:block;margin-bottom:.6rem;color:#7a766d}
.gallery-v32-album-list,.gallery-v32-edit-albums{max-height:13rem;overflow:auto}
.gallery-v32-album-list label{display:flex;align-items:flex-start;gap:.55rem;padding:.35rem 0}
.gallery-v32-manager{position:fixed;inset:0;z-index:10050;display:grid;place-items:center;padding:1rem;background:rgba(31,42,36,.48);backdrop-filter:blur(4px)}
.gallery-v32-manager-card{width:min(920px,96vw);max-height:92vh;overflow:auto;border:1px solid rgba(161,105,66,.28);border-radius:26px;background:#fbf8f1;box-shadow:0 24px 70px rgba(42,38,31,.28);padding:1.1rem}
.gallery-v32-manager-card>header{display:flex;align-items:center;justify-content:space-between;gap:1rem;position:sticky;top:-1.1rem;z-index:2;margin:-1.1rem -1.1rem .8rem;padding:1rem 1.1rem;background:rgba(251,248,241,.96);border-bottom:1px solid rgba(161,105,66,.2)}
.gallery-v32-manager-card>header::after{content:"";position:absolute;top:0;bottom:-1px;left:100%;width:2.2rem;background:rgba(251,248,241,.96);border-bottom:1px solid rgba(161,105,66,.2)}
.gallery-v32-manager-card>header h2{margin:0;color:#244f43;font-size:clamp(1.25rem,3vw,1.8rem)}
.gallery-v32-manager-card>header button{border:0;background:transparent;color:#6f4934;font-size:2rem;cursor:pointer}
.gallery-v32-manager-controls{display:grid;grid-template-columns:repeat(3,minmax(180px,1fr));gap:.75rem;align-items:end;margin-bottom:.5rem}
.gallery-v32-manager-controls label{display:grid;gap:.35rem}
.gallery-v32-manager-controls select{min-height:44px}
.gallery-v32-manager-controls p{grid-column:1/-1;margin:0;color:#6f746f}
.gallery-v32-manager-status{min-height:1.4em;margin:.5rem 0;color:#39745f}
.gallery-v32-manager-status.error{color:#a44d4d}
.gallery-v32-manager-list{display:grid;gap:.55rem}
.gallery-v32-manager-pager{display:flex;align-items:center;justify-content:center;gap:.7rem;margin-top:1rem}
.gallery-v32-manager-pager button{border:1px solid rgba(161,105,66,.4);border-radius:999px;background:#f7efe3;color:#6f4934;min-height:40px;padding:.45rem .8rem;cursor:pointer}
.gallery-v32-manager-pager button:disabled{opacity:.35;cursor:default}
.gallery-v32-manager-row{display:grid;grid-template-columns:78px minmax(0,1fr) auto;gap:.8rem;align-items:center;border:1px solid rgba(78,105,91,.18);border-radius:16px;padding:.55rem;background:#fffdf8}
.gallery-v32-manager-row>img{width:78px;height:64px;object-fit:cover;border-radius:11px}
.gallery-v32-manager-copy{display:grid;gap:.18rem;min-width:0}
.gallery-v32-manager-copy span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#73766f}
.gallery-v32-manager-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:.35rem}
.gallery-v32-manager-actions button,.gallery-v32-editor-actions button{border:1px solid rgba(161,105,66,.4);border-radius:999px;background:#f7efe3;color:#6f4934;padding:.5rem .72rem;cursor:pointer}
.gallery-v32-manager-actions .gallery-v32-order{min-width:5.7rem}
.gallery-v32-manager-actions .gallery-v32-edit{background:#ead5bd;font-weight:600}
.gallery-v32-manager-actions button:disabled{opacity:.35;cursor:default}
.gallery-v32-photo-editor{display:grid;grid-template-columns:1fr 1fr;gap:.8rem;border:2px solid rgba(161,105,66,.34);border-radius:18px;background:#fffaf2;box-shadow:inset 0 0 0 1px rgba(255,255,255,.7);padding:1rem}
.gallery-v32-edit-date{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,1fr);gap:.7rem}
.gallery-v32-photo-editor label{display:grid;gap:.3rem}
.gallery-v32-photo-editor input,.gallery-v32-photo-editor textarea,.gallery-v32-photo-editor select{width:100%;background:#fff;border:1px solid rgba(118,110,94,.38)}
.gallery-v32-edit-visibility,.gallery-v32-edit-albums,.gallery-v32-editor-actions{grid-column:1/-1}
.gallery-v32-edit-albums{padding:.55rem;background:#f2e7d8}
.gallery-v32-edit-albums legend{padding:0 .45rem;color:#315d50;font-weight:600}
.gallery-v32-edit-albums label{display:grid!important;grid-template-columns:24px minmax(0,1fr);align-items:center;justify-content:start;gap:.65rem;margin:0;padding:.62rem .72rem;border-radius:10px}
.gallery-v32-edit-albums label:nth-of-type(odd){background:#fffaf2}
.gallery-v32-edit-albums label:nth-of-type(even){background:#eadcca}
.gallery-v32-edit-albums label input{width:18px;height:18px;margin:0;justify-self:center}
.gallery-v32-edit-albums label span{min-width:0;text-align:left}
.gallery-v32-editor-actions{display:flex;justify-content:flex-end;gap:.5rem}
.gallery-v32-editor-actions .primary{background:#bd8155;color:#fff}
@media(max-width:700px){
  .gallery-heading{flex-wrap:wrap}
  .gallery-structure .gallery-toolbar{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:end!important;gap:.55rem!important}
  .gallery-structure .gallery-toolbar>label{grid-column:1;min-width:0;display:block!important}
  .gallery-structure .gallery-toolbar>label>span{display:none!important}
  .gallery-structure .gallery-toolbar select{width:100%!important;min-width:0!important}
  .gallery-structure .gallery-toolbar .gallery-v32-manage{grid-column:2;grid-row:1;width:auto!important;min-width:112px;margin:0!important;padding:.62rem .78rem;font-size:.92rem}
  .gallery-structure .gallery-toolbar .gallery-crosslinks{grid-column:1/-1}
  .gallery-v32-manage-desktop{display:none}
  .gallery-v32-manage-mobile{display:inline}
  .gallery-v32-date,.gallery-v32-captions,.gallery-v32-manager-controls,.gallery-v32-photo-editor{grid-template-columns:1fr}
  .gallery-v32-manager-row{grid-template-columns:62px minmax(0,1fr)}
  .gallery-v32-manager-row>img{width:62px;height:58px}
  .gallery-v32-manager-actions{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;justify-content:stretch}
  .gallery-v32-manager-actions button{min-height:42px}
  .gallery-v32-manager-actions .gallery-v32-edit{grid-column:1/-1}
  .gallery-v32-edit-date{grid-template-columns:repeat(3,1fr)}
  .gallery-v32-edit-caption{grid-column:1/-1}
  .gallery-v32-manager-pager{display:grid;grid-template-columns:1fr 1fr}
  .gallery-v32-manager-pager span{grid-column:1/-1;grid-row:1;text-align:center}
}
