.gallery-page{width:min(1240px,calc(100% - 80px));margin:0 auto;padding:70px 0 90px;font-family:var(--type,Arial,sans-serif)}.gallery-heading{max-width:1000px;margin-bottom:36px}.gallery-heading h1{font-size:clamp(38px,5vw,68px);line-height:1.04;letter-spacing:-.045em;margin:0 0 24px;overflow-wrap:anywhere}.gallery-heading .lead{color:#6e6e73;font-size:22px}.gallery-meta,.gallery-author{font-size:14px;line-height:1.65;color:#6e6e73;margin:12px 0}.gallery-author a{color:#0071e3}.gallery-description{font-size:18px;line-height:1.65;max-width:75ch;white-space:normal;overflow-wrap:anywhere}.gallery-back{display:inline-block;margin-bottom:24px;color:#0071e3}.gallery-filters{display:flex;flex-wrap:wrap;align-items:end;gap:16px;margin:30px 0 36px}.gallery-filters label{display:flex;flex-direction:column;gap:8px;min-width:170px;font-size:13px}.gallery-filters select{border:1px solid #d2d2d7;border-radius:12px;background:white;padding:12px 16px;min-height:46px;font:inherit;color:#1d1d1f}.gallery-filters>a{padding:14px 0;color:#0071e3}.gallery-albums{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px 24px}.gallery-album-card{min-width:0}.gallery-album-card>a{text-decoration:none;color:inherit}.gallery-album-card figure{margin:0;aspect-ratio:4/3;background:#f5f5f7;border-radius:22px;overflow:hidden}.gallery-album-card img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .25s}.gallery-album-card a:hover img{transform:scale(1.025)}.gallery-album-card h2{font-size:24px;line-height:1.15;letter-spacing:-.03em;margin:12px 0;overflow-wrap:anywhere}.gallery-album-card p{color:#6e6e73;font-size:13px;line-height:1.5;margin:10px 0}.gallery-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.gallery-photo{display:block;aspect-ratio:1;overflow:hidden;border-radius:16px;background:#f5f5f7}.gallery-photo img{display:block;width:100%;height:100%;object-fit:cover}.gallery-more{margin-top:28px}.gallery-load-status{font-size:14px;line-height:1.5}.gallery-empty{padding:40px 0;color:#6e6e73}
.gallery-viewer:not([open]){display:none}.gallery-viewer[open]{display:grid;grid-template-columns:60px minmax(0,1fr) 60px;grid-template-rows:64px minmax(0,1fr) 32px;position:fixed;inset:0;margin:0;width:100%;height:100%;height:100dvh;max-width:none;max-height:none;border:0;padding:0;box-sizing:border-box;background:#090909;color:#fff;z-index:1200}.gallery-viewer::backdrop{background:#090909}.gallery-viewer-tools{grid-column:1/-1;display:flex;align-items:center;justify-content:flex-end;gap:16px;padding:8px 20px;font-size:14px}.gallery-viewer-tools span{margin-right:auto}.gallery-viewer button{color:#fff;background:#252525;border:1px solid #444;border-radius:25px;min-height:44px;padding:10px 16px;cursor:pointer;font:inherit}.gallery-viewer-image{min-width:0;min-height:0;display:flex;align-items:center;justify-content:center;overflow:auto;touch-action:pan-y pinch-zoom}.gallery-viewer-image img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}.gallery-viewer.is-zoomed .gallery-viewer-image{display:block}.gallery-viewer.is-zoomed img{max-width:none;max-height:none;width:auto;height:auto}.gallery-prev,.gallery-next{align-self:center;margin:0 5px;font-size:32px!important;padding:4px 8px!important}.gallery-viewer button:disabled{opacity:.25;cursor:default}.gallery-viewer [data-view-status]{grid-column:1/-1;text-align:center;margin:0;font-size:12px}
.gallery-admin-heading{display:flex;align-items:center;gap:20px;flex-wrap:wrap}.gallery-admin-heading h2{margin-right:auto}.gallery-settings{margin:24px 0;padding:20px;border:1px solid var(--line);border-radius:14px}.gallery-settings summary{cursor:pointer;font-weight:600}.gallery-settings form{margin:24px 0}.gallery-admin-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.gallery-admin-fields label,.gallery-settings label{min-width:0}.gallery-check{display:flex!important;flex-direction:row!important;align-items:center;gap:10px}.gallery-check input{width:18px!important;height:18px;min-height:0!important}.gallery-admin-list{display:grid;gap:16px}.gallery-admin-card{display:grid;grid-template-columns:180px minmax(0,1fr);gap:24px;border:1px solid var(--line);padding:18px;border-radius:14px}.gallery-admin-card>img,.gallery-no-cover{width:180px;aspect-ratio:4/3;object-fit:cover;border-radius:10px;background:var(--wash)}.gallery-no-cover{display:grid;place-items:center}.gallery-admin-card h3{font-size:22px}.gallery-admin-card .actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:16px}.gallery-upload-drop{border:2px dashed #b5c7de;border-radius:16px;padding:30px;margin:24px 0;background:#f7faff}.gallery-upload-drop.is-dragging{background:#e7f3ff;border-color:#0071e3}.gallery-admin-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:20px 0}.gallery-admin-grid article{padding:10px;border:1px solid var(--line);border-radius:12px;min-width:0}.gallery-admin-grid img{width:100%;height:130px;object-fit:contain;display:block;margin-bottom:8px}.gallery-admin-grid button{font-size:12px;padding:6px 8px;margin:3px}.gallery-import{margin-top:40px}#gallery-upload-progress{width:100%;height:20px}.gallery-admin-photos,.gallery-import{scroll-margin-top:30px}#gallery-admin-status{white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:1000px){.gallery-albums{grid-template-columns:repeat(2,minmax(0,1fr))}.gallery-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:680px){.gallery-page{width:calc(100% - 40px);padding:44px 0 56px}.gallery-albums{grid-template-columns:1fr;gap:32px}.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.gallery-photo{border-radius:12px}.gallery-filters{gap:12px}.gallery-filters label{min-width:0;flex:1 1 140px}.gallery-heading .lead{font-size:18px}.gallery-description{font-size:16px}.gallery-admin-fields{grid-template-columns:1fr}.gallery-admin-card{grid-template-columns:1fr}.gallery-admin-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.gallery-viewer[open]{grid-template-columns:40px minmax(0,1fr) 40px}.gallery-viewer-tools{gap:8px;padding:8px 10px;font-size:12px}.gallery-viewer-tools button{padding:8px 10px}.gallery-upload-drop{padding:20px}}
@media(prefers-reduced-motion:reduce){.gallery-album-card img{transition:none}}
.gallery-viewer.is-zoomed .gallery-viewer-image{touch-action:pan-x pan-y pinch-zoom}

.gallery-steps{display:flex;flex-wrap:wrap;gap:12px 24px;list-style:none;padding:20px 0;color:#6e6e73}.gallery-wizard{max-width:720px;margin:24px 0;padding:28px;background:#f5f5f7;border-radius:20px}.gallery-wizard form{display:grid;gap:20px;margin:24px 0}.gallery-wizard input{width:100%;box-sizing:border-box}.gallery-wizard progress{width:100%;height:16px}.gallery-storage-note{color:#6e6e73}.gallery-wizard [hidden]{display:none!important}

[data-wizard-details] .gallery-import{display:none}
