[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.gallery-banner{display:flex;justify-content:space-between;align-items:center;gap:25px;background:#eaf2ff;padding:24px 28px;border-radius:6px;margin-bottom:25px}.gallery-banner p{font-size:13px;margin:5px 0 0}.gallery-banner strong{font-size:15px}#owner-actions{flex-shrink:0}.gallery-tools{display:flex;gap:12px;align-items:stretch}.gallery-tools input,.gallery-tools select{padding:12px 14px;border:1px solid var(--line);background:white;border-radius:4px;min-width:0;color:var(--ink)}.gallery-tools input{flex:1}.gallery-tools select{max-width:290px}.gallery-status{display:flex;justify-content:space-between;gap:15px;font-size:12px;padding:20px 0;color:var(--muted)}.photo-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}.photo-card{padding:0;border:1px solid var(--line);border-radius:5px;background:white;text-align:left;overflow:hidden;cursor:pointer;color:var(--ink);transition:transform .15s}.photo-card:hover{transform:translateY(-3px)}.photo-card img{width:100%;height:190px;object-fit:cover;display:block;background:#eaf0f8}.photo-card-text{padding:15px;display:block}.photo-card strong{display:block;font-size:13px;font-weight:500;line-height:1.5}.photo-card small{display:block;font-size:10px;line-height:1.5;color:var(--muted);margin-top:7px}.photo-card .deleted-label{color:#9b3838}.gallery-more{text-align:center;margin:35px 0}.photo-dialog{max-width:1200px;width:94vw;padding:20px;max-height:94vh;overflow-y:auto}.photo-dialog-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:11px;padding-bottom:15px;color:var(--muted)}.photo-detail{display:grid;grid-template-columns:1.7fr 1fr;gap:25px}.photo-image-wrap{background:#edf2f8;display:grid;place-items:center;min-height:350px}.photo-image-wrap img{max-height:72vh;object-fit:contain;width:100%;display:block}.photo-information{padding:15px 10px}.photo-information h3{font-size:27px;line-height:1.25;overflow-wrap:anywhere}.photo-information p{font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere}.photo-information dl{font-size:12px}.photo-information dt{color:var(--muted);margin-top:13px}.photo-information dd{margin:2px 0 0}.photo-information .actions{gap:14px}.photo-information .btn{padding:10px 15px;font-size:12px}.danger{color:#9b3838;border-color:#dbbcbc}.editor-dialog{width:min(640px,94vw);max-height:92vh;overflow:auto;padding:28px}.editor-dialog label{display:block;font-size:13px;font-weight:600;margin:17px 0 6px}.editor-dialog input,.editor-dialog textarea{width:100%;padding:11px 12px;border:1px solid var(--line);border-radius:4px;font:inherit;background:white;color:var(--ink)}.editor-dialog .field-help{font-size:11px;line-height:1.6}.form-columns{display:grid;grid-template-columns:1fr 1fr;gap:18px}.editor-dialog #save-message{font-size:13px}.photo-information .eyebrow{line-height:1.7;display:block}.gallery-error{grid-column:1/-1;padding:35px;border:1px dashed var(--line)}button:disabled{opacity:.55;cursor:wait} @media(max-width:1000px){.photo-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.gallery-tools{flex-wrap:wrap}.gallery-tools input{min-width:260px}}@media(max-width:700px){.photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.photo-card img{height:160px}.photo-detail{grid-template-columns:1fr}.photo-image-wrap{min-height:200px}.photo-image-wrap img{max-height:50vh}.photo-information{padding:10px 0}.gallery-banner{align-items:start;flex-direction:column}.gallery-tools>*{width:100%;max-width:none!important}.gallery-tools input{min-width:0}.photo-dialog{padding:14px}.form-columns{grid-template-columns:1fr}.photo-card-text{padding:10px}.photo-card strong{font-size:11px}.gallery-status{flex-wrap:wrap}}@media(prefers-reduced-motion:reduce){.photo-card{transition:none}}

/* Photo controls and descriptions remain legible on touch screens. */
.gallery-banner strong{font-size:18px}.gallery-banner p{font-size:16px;line-height:1.7}
.gallery-tools input,.gallery-tools select{font-size:17px;min-height:50px}
.gallery-status{font-size:15px;align-items:center;line-height:1.65}
.gallery-status label{display:flex;align-items:center;gap:10px;min-height:44px}
.gallery-status input[type=checkbox]{width:20px;height:20px;flex-shrink:0}
.photo-card strong{font-size:17px;line-height:1.5}.photo-card small{font-size:14px;line-height:1.55}
.photo-card-text{padding:18px}.photo-dialog-bar{font-size:15px;line-height:1.5;flex-wrap:wrap}
.photo-dialog-bar>div{display:flex;flex-wrap:wrap;gap:8px}
.photo-detail{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:28px}
.photo-information h3{font-size:29px}.photo-information p{font-size:17px;line-height:1.7}
.photo-information dl{font-size:16px;line-height:1.65}.photo-information .eyebrow{font-size:14px}
.photo-information .btn{font-size:16px;min-height:48px}.photo-information .actions{align-items:center}
.editor-dialog label{font-size:16px;line-height:1.5;margin-top:20px}
.editor-dialog input,.editor-dialog textarea{font-size:17px;line-height:1.5;padding:12px}
.editor-dialog .field-help{font-size:14px;line-height:1.7}.editor-dialog #save-message{font-size:16px}
.editor-dialog{max-height:92dvh}.photo-dialog{max-height:94dvh}
@media(max-width:900px){.photo-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.photo-detail{grid-template-columns:1fr}.photo-image-wrap img{max-height:58dvh}}
@media(max-width:700px){
 .gallery-banner{padding:22px;gap:20px}.gallery-banner strong{font-size:18px}.gallery-banner p{font-size:16px}
 #owner-actions{width:100%}#owner-actions .btn{width:100%}
 .gallery-tools{flex-direction:column}.gallery-tools>*{width:100%;max-width:100%!important}.gallery-tools input{min-width:0}
 .gallery-status{font-size:15px;gap:10px}.photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
 .photo-card img{height:170px}.photo-card-text{padding:14px}.photo-card strong{font-size:16px}.photo-card small{font-size:14px}
 .photo-dialog,.editor-dialog{width:calc(100vw - 24px);max-width:calc(100vw - 24px);padding:18px}
 .photo-dialog-bar{font-size:14px}.photo-information h3{font-size:26px;line-height:1.3}.photo-information{padding:10px 0}
 .photo-image-wrap{min-height:180px}.photo-image-wrap img{max-height:50dvh}
 .form-columns{grid-template-columns:1fr;gap:0}.editor-dialog .actions{display:flex;flex-wrap:wrap}
 .editor-dialog .actions>.btn{flex:1 1 130px}.photo-information .actions{gap:12px;flex-wrap:wrap}
}
@media(max-width:380px){.photo-grid{grid-template-columns:1fr}.photo-card img{height:220px}}

.gallery-tools>.sr-only{width:1px!important;max-width:1px!important;height:1px!important}

.photo-tile{position:relative;min-width:0;display:flex}.photo-tile .photo-card{width:100%;height:100%}
.photo-tile.is-selected .photo-card{border:2px solid #0078d4;box-shadow:0 0 0 2px #d2e3fc}
.photo-select{position:absolute;top:10px;left:10px;display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;background:#fffffff2;border:1px solid #bbcee6;border-radius:6px;box-shadow:0 2px 7px #172b4d1a;cursor:pointer}
.photo-select input{width:22px;height:22px;margin:0;accent-color:#0078d4;cursor:pointer}
#owner-actions{display:flex;gap:12px;flex-wrap:wrap;align-items:center}
.selection-bar{position:sticky;top:10px;z-index:8;padding:20px;background:#fff;border:1px solid #bbcee6;border-top:3px solid #0078d4;border-radius:7px;box-shadow:0 5px 20px #172b4d12;margin-bottom:24px}
.selection-bar>strong{display:block;font-size:18px;margin-bottom:14px}.selection-bar>small{font-size:14px;display:block;margin-top:12px;color:var(--muted);line-height:1.6}
.selection-tools{display:flex;gap:10px;flex-wrap:wrap}.selection-tools .btn,.selection-tools .close{font-size:15px;min-height:44px;padding:10px 14px}
.bulk-field{margin-bottom:20px}.editor-dialog .bulk-apply{display:flex;gap:12px;align-items:center;line-height:1.5;margin:18px 0 8px;cursor:pointer}
.editor-dialog .bulk-apply input[type=checkbox]{width:22px!important;height:22px;min-height:22px;margin:0;flex-shrink:0;accent-color:#0078d4}
#bulk-help,#bulk-message{font-size:16px;line-height:1.65}.bulk-field input:not([type=checkbox]),.bulk-field textarea{font-size:17px}
@media(max-width:700px){#owner-actions>.btn{flex:1 1 140px;width:auto}.selection-bar{padding:15px;top:6px}.selection-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.selection-tools .btn,.selection-tools .close{font-size:14px;padding:9px;min-width:0;width:100%}.selection-bar>small{font-size:13px}.selection-bar>strong{font-size:17px;margin-bottom:10px}.photo-select{top:8px;left:8px}}
