:root{--g-ivory:#f8f7f3;--g-white:#fff;--g-forest:#254c43;--g-deep:#193b32;--g-text:#242b29;--g-muted:#68736f;--g-border:#e1e5e1;--g-soft:#edf3f0;--g-danger:#9b403b}.gallery-admin-page,.gallery-admin-page *{box-sizing:border-box}.gallery-admin-page{margin:0;overflow-x:hidden;background:var(--g-ivory)!important;color:var(--g-text)}.gallery-admin-page h1,.gallery-admin-page h2,.gallery-admin-page p{margin:0}.gallery-admin-page #adminAccessLoading{min-height:100vh;align-items:center;justify-content:center;padding:24px}.gallery-access{width:min(100%,30rem);padding:2rem;text-align:center;background:#fff;border:1px solid var(--g-border);border-radius:16px}.gallery-access h1{font:600 1.8rem Georgia,serif;color:var(--g-deep)}.gallery-access p{margin-top:.6rem;color:var(--g-muted)}.gallery-shell{width:min(100% - 48px,1180px);margin:auto;padding:1.7rem 0 4rem}.gallery-breadcrumb{display:flex;flex-wrap:wrap;align-items:center;gap:.45rem;color:var(--g-muted);font-size:.78rem}.gallery-breadcrumb a,.gallery-breadcrumb button{padding:0;color:var(--g-forest);background:none;border:0;font:inherit;text-decoration:underline;cursor:pointer}.gallery-header{margin-top:1rem;display:flex;align-items:flex-end;justify-content:space-between;gap:2rem}.gallery-header h1{font:600 clamp(2.5rem,5vw,3.9rem)/1 Georgia,serif;letter-spacing:-.04em;color:var(--g-deep)}.gallery-header p{margin-top:.65rem;color:var(--g-muted)}.gallery-header-actions{display:flex;align-items:center;gap:.55rem}.gallery-primary,.gallery-secondary,.gallery-danger{min-height:44px;padding:.63rem .85rem;display:inline-flex;align-items:center;justify-content:center;border-radius:9px;font:inherit;font-size:.79rem;font-weight:750;text-decoration:none;cursor:pointer}.gallery-primary{color:#fff;background:var(--g-forest);border:1px solid var(--g-forest)}.gallery-secondary{color:var(--g-forest);background:#fff;border:1px solid #cad4d0}.gallery-danger{color:#fff;background:var(--g-danger);border:1px solid var(--g-danger)}button:disabled{opacity:.5;cursor:not-allowed}.gallery-panel{margin-top:1.6rem;background:#fff;border:1px solid var(--g-border);border-radius:16px;box-shadow:0 14px 36px rgba(36,43,41,.045);overflow:hidden}.gallery-panel>header{padding:1rem 1.2rem;display:flex;align-items:flex-end;justify-content:space-between;gap:1rem;border-bottom:1px solid var(--g-border)}.gallery-panel h2{font:600 1.65rem Georgia,serif;color:var(--g-deep)}.gallery-panel header p:not(.gallery-eyebrow){margin-top:.3rem;color:var(--g-muted);font-size:.82rem}.gallery-eyebrow{color:var(--g-forest)!important;font-size:.68rem!important;font-weight:800;letter-spacing:.1em;text-transform:uppercase}.gallery-filters{display:grid;grid-template-columns:180px 150px;gap:.65rem}.gallery-admin-page label>span{display:block;margin-bottom:.35rem;font-size:.72rem;font-weight:750}.gallery-admin-page input,.gallery-admin-page select{width:100%;min-height:44px;padding:.62rem .7rem;color:var(--g-text);background:#fff;border:1px solid #ccd4d0;border-radius:9px;font:inherit;font-size:.82rem}.gallery-admin-page :focus-visible{outline:3px solid rgba(37,76,67,.2)!important;outline-offset:2px}.gallery-albums-grid{padding:1rem 1.2rem;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.85rem}.gallery-album-card{padding:0;overflow:hidden;text-align:left;color:inherit;background:#fff;border:1px solid var(--g-border);border-radius:13px;cursor:pointer;transition:transform .18s,border-color .18s,box-shadow .18s}.gallery-album-card:hover{transform:translateY(-2px);border-color:#b8c9c3;box-shadow:0 12px 28px rgba(36,43,41,.08)}.gallery-album-cover{aspect-ratio:16/10;display:grid;place-items:center;background:var(--g-soft);overflow:hidden}.gallery-album-cover img{width:100%;height:100%;object-fit:cover}.gallery-album-cover svg{width:42px;fill:none;stroke:#789087;stroke-width:1.5}.gallery-album-copy{padding:.85rem}.gallery-album-copy h3{font-size:.94rem;color:var(--g-deep)}.gallery-album-copy p{margin-top:.28rem;color:var(--g-muted);font-size:.76rem}.gallery-state{grid-column:1/-1;min-height:180px;padding:2rem;display:grid;place-items:center;text-align:center;color:var(--g-muted)}.gallery-photos-grid{padding:1rem 1.2rem;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.65rem}.gallery-photo-card{position:relative;aspect-ratio:1/1;overflow:hidden;background:var(--g-soft);border:1px solid var(--g-border);border-radius:11px}.gallery-photo-card img{width:100%;height:100%;object-fit:cover}.gallery-photo-actions{position:absolute;inset:auto 7px 7px;display:flex;gap:.35rem;opacity:0;transition:opacity .15s}.gallery-photo-card:hover .gallery-photo-actions,.gallery-photo-card:focus-within .gallery-photo-actions{opacity:1}.gallery-photo-actions button{min-height:36px;flex:1;color:#fff;background:rgba(25,59,50,.9);border:0;border-radius:7px;font-size:.68rem;font-weight:750;cursor:pointer}.gallery-photo-actions .delete{background:rgba(129,47,43,.92)}.gallery-photo-select{position:absolute;top:8px;left:8px;width:26px;height:26px;accent-color:var(--g-forest)}.gallery-bulk{padding:.65rem 1.2rem;display:flex;align-items:center;justify-content:space-between;background:#f8faf8;border-bottom:1px solid var(--g-border);font-size:.8rem}.gallery-bulk[hidden]{display:none}.gallery-load-more{padding:0 1.2rem 1rem;text-align:center}.gallery-status{margin:1rem 0 0;padding:.72rem .85rem;color:#246148;background:#eaf4ef;border:1px solid #cbe2d7;border-radius:9px;font-size:.8rem;font-weight:700}.gallery-status.is-error{color:var(--g-danger);background:#fbefee;border-color:#efd2cf}.gallery-status[hidden]{display:none}.gallery-modal[hidden]{display:none}.gallery-modal{position:fixed;inset:0;z-index:1500;padding:20px;display:grid;place-items:center}.gallery-modal-backdrop{position:absolute;inset:0;background:rgba(25,45,39,.58)}.gallery-dialog{position:relative;width:min(100%,760px);max-height:92vh;display:flex;flex-direction:column;background:#fff;border-radius:16px;overflow:hidden;box-shadow:0 28px 80px rgba(20,39,34,.24)}.gallery-confirm-dialog{width:min(100%,480px)}.gallery-dialog>header{padding:1rem 1.15rem;display:flex;justify-content:space-between;border-bottom:1px solid var(--g-border)}.gallery-dialog h2{font:600 1.55rem Georgia,serif;color:var(--g-deep)}.gallery-close{width:44px;height:44px;color:var(--g-deep);background:var(--g-soft);border:0;border-radius:10px;font-size:1.5rem;cursor:pointer}.gallery-dialog form{padding:1rem 1.15rem;display:grid;grid-template-columns:1fr 1fr;gap:.8rem;overflow:auto}.gallery-full{grid-column:1/-1}.gallery-dialog footer,.gallery-confirm-body footer{display:flex;justify-content:flex-end;gap:.55rem}.gallery-dropzone{min-height:145px;padding:1.1rem;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:var(--g-forest);background:#f8fbf9;border:1.5px dashed #aabfb7;border-radius:12px;cursor:pointer}.gallery-dropzone.is-dragging{background:#edf5f1;border-color:var(--g-forest)}.gallery-dropzone svg{width:30px;height:30px;margin-bottom:.4rem;fill:none;stroke:currentColor;stroke-width:1.7}.gallery-dropzone small{margin-top:.25rem;color:var(--g-muted)}.gallery-text-button{margin-top:.45rem;padding:.25rem;color:var(--g-forest);background:none;border:0;text-decoration:underline;cursor:pointer}.gallery-selection-summary{font-size:.8rem;font-weight:700}.gallery-selected-files{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.5rem}.gallery-selected-file{position:relative;aspect-ratio:1/1;overflow:hidden;border:1px solid var(--g-border);border-radius:9px;background:var(--g-soft)}.gallery-selected-file img{width:100%;height:100%;object-fit:cover}.gallery-selected-file button{position:absolute;top:5px;right:5px;width:30px;height:30px;color:#fff;background:rgba(129,47,43,.92);border:0;border-radius:7px;cursor:pointer}.gallery-selected-file span{position:absolute;inset:auto 5px 5px;padding:.2rem;background:rgba(25,45,39,.78);border-radius:5px;color:#fff;font-size:.6rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gallery-selected-file progress{position:absolute;inset:auto 0 0;width:100%;height:5px;accent-color:var(--g-forest)}.gallery-overall{font-size:.78rem}.gallery-overall progress{width:100%;height:8px;accent-color:var(--g-forest)}.gallery-confirm-body{padding:1rem 1.15rem;color:var(--g-muted)}.gallery-confirm-body footer{margin-top:1rem}.gallery-lightbox[hidden]{display:none}.gallery-lightbox{position:fixed;inset:0;z-index:1600;display:grid;place-items:center;padding:48px 70px;background:rgba(13,26,22,.94)}.gallery-lightbox figure{max-width:min(100%,1200px);max-height:100%;margin:0;display:grid;place-items:center}.gallery-lightbox img{max-width:100%;max-height:calc(100vh - 130px);object-fit:contain}.gallery-lightbox figcaption{margin-top:.65rem;color:#fff;font-size:.8rem}.gallery-lightbox-close,.gallery-lightbox-nav{position:absolute;color:#fff;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.25);cursor:pointer}.gallery-lightbox-close{top:16px;right:16px;width:44px;height:44px;border-radius:10px;font-size:1.5rem}.gallery-lightbox-nav{top:50%;width:48px;height:58px;border-radius:10px;font-size:2rem}.gallery-lightbox-nav.prev{left:14px}.gallery-lightbox-nav.next{right:14px}body.gallery-modal-open{overflow:hidden}
@media(min-width:1200px){.gallery-albums-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:900px){.gallery-albums-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.gallery-photos-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.gallery-header{align-items:flex-start;flex-direction:column}.gallery-panel>header{align-items:flex-start;flex-direction:column}}@media(max-width:767px){.gallery-shell{width:auto;padding:1rem 16px 3rem}.gallery-header{padding-right:58px}.gallery-header-actions{width:100%;flex-direction:column}.gallery-header-actions>*{width:100%}.gallery-filters{width:100%;grid-template-columns:1fr}.gallery-albums-grid{grid-template-columns:1fr}.gallery-photos-grid{grid-template-columns:repeat(2,minmax(0,1fr));padding:.75rem;gap:.45rem}.gallery-photo-actions{opacity:1}.gallery-dialog form{grid-template-columns:1fr}.gallery-full{grid-column:auto}.gallery-selected-files{grid-template-columns:repeat(3,minmax(0,1fr))}.gallery-dialog footer{flex-direction:column-reverse}.gallery-dialog footer button{width:100%}.gallery-modal{padding:10px}.gallery-lightbox{padding:60px 12px}.gallery-lightbox-nav{top:auto;bottom:14px}.gallery-lightbox img{max-height:calc(100vh - 150px)}}@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
.gallery-skeleton{aspect-ratio:16/12;border-radius:13px;background:linear-gradient(90deg,#edf1ee 25%,#f7f8f6 50%,#edf1ee 75%);background-size:200% 100%;animation:gallery-shimmer 1.25s infinite}.gallery-skeleton:nth-child(2n){animation-delay:.12s}@keyframes gallery-shimmer{to{background-position:-200% 0}}@media(prefers-reduced-motion:reduce){.gallery-skeleton{animation:none}}
