.gallery-page{padding-top:30px;color:var(--text);font-size:16px;line-height:1.55}.gallery-page *,.gallery-dialog *{box-sizing:border-box}.gallery-header{display:flex;justify-content:space-between;align-items:flex-start;gap:28px;margin-bottom:30px}.gallery-kicker{font-size:12px;letter-spacing:1.6px;color:var(--muted);font-weight:600;margin:0}.gallery-header h1{font-size:46px;line-height:1.1;letter-spacing:-1.8px;margin:12px 0 15px;font-weight:580}.gallery-header p:last-child{font-size:16px;max-width:650px;color:var(--muted);margin-bottom:0}.gallery-header-actions{display:flex;gap:10px;flex-wrap:wrap;padding-top:25px}.gallery-page button,.gallery-dialog button,.gallery-detail-actions a{font:inherit;border:1px solid var(--line);border-radius:9px;color:var(--text);background:var(--raised);padding:11px 15px;min-height:44px;cursor:pointer;text-decoration:none}.gallery-page button:hover:not(:disabled),.gallery-dialog button:hover:not(:disabled),.gallery-detail-actions a:hover{border-color:var(--muted)}.gallery-page button:disabled,.gallery-dialog button:disabled{opacity:.5;cursor:wait}.gallery-page .gallery-primary,.gallery-dialog .gallery-primary{color:var(--bg);background:var(--text);border-color:var(--text);font-weight:600}.gallery-toolbar{display:grid;grid-template-columns:minmax(220px,1.5fr) repeat(3,minmax(150px,1fr));gap:14px;padding:20px;border:1px solid var(--line);background:var(--surface);border-radius:13px}.gallery-toolbar label,.gallery-form>label{display:grid;gap:8px;font-size:14px;color:var(--muted)}.gallery-toolbar input,.gallery-toolbar select,.gallery-form input:not([type=checkbox]),.gallery-form select{font:inherit;color:var(--text);background:var(--bg);border:1px solid var(--line);min-height:45px;width:100%;padding:10px 12px;border-radius:8px}.gallery-page :focus-visible,.gallery-dialog :focus-visible{outline:2px solid var(--text);outline-offset:3px}.gallery-context{font-size:14px;color:var(--muted);margin:18px 0 27px}.gallery-page a{color:var(--text)}.gallery-collection-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:26px 0}.gallery-collection-heading h2{font-size:24px;letter-spacing:-.5px;font-weight:550;margin:0}.gallery-collection-heading p{margin:6px 0 0;color:var(--muted);font-size:14px}.gallery-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}.gallery-card{min-width:0;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--surface)}.gallery-page button.gallery-preview{position:relative;display:block;width:100%;aspect-ratio:4/5;border:0;border-radius:0;padding:0;background:var(--raised);overflow:hidden}.gallery-preview img,.gallery-preview video{width:100%;height:100%;display:block;object-fit:cover;transition:transform .2s}.gallery-preview:hover img,.gallery-preview:hover video{transform:scale(1.025)}.gallery-video-label{position:absolute;bottom:12px;left:12px;background:rgba(0,0,0,.75);color:#fff;border-radius:6px;padding:4px 9px;font-size:12px}.gallery-card-caption{padding:14px 15px;display:grid;gap:7px}.gallery-page .gallery-card-caption button{border:0;padding:0;min-height:0;background:transparent;text-align:left;font-size:15px;font-weight:550;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.gallery-card-caption span{color:var(--muted);font-size:12px}.gallery-empty{text-align:center;border:1px dashed var(--line);border-radius:14px;padding:70px 25px;margin:27px 0;background:var(--surface)}.gallery-empty>span{font-size:42px;color:var(--muted)}.gallery-empty h2{font-size:25px;font-weight:530;margin:12px 0}.gallery-empty p{color:var(--muted);max-width:570px;margin:0 auto 22px}.gallery-error,.gallery-notice{padding:15px 18px;border:1px solid var(--line);border-radius:10px;background:var(--raised);margin:20px 0}.gallery-error button{margin-left:10px}.gallery-more{text-align:center;margin:28px 0}.gallery-dialog{width:min(900px,calc(100vw - 40px));max-height:calc(100vh - 50px);padding:26px;background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:16px;font-size:16px;line-height:1.6;overflow:auto}.gallery-dialog::backdrop{background:rgba(0,0,0,.7);backdrop-filter:blur(5px)}.gallery-dialog>header{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:22px}.gallery-dialog h2{font-size:26px;line-height:1.3;font-weight:550;letter-spacing:-.6px;margin:0;overflow-wrap:anywhere}.gallery-dialog header button{min-height:36px;width:36px;padding:0;flex-shrink:0;background:transparent;font-size:25px;border:0;line-height:1}.gallery-detail-media{background:var(--bg);border:1px solid var(--line);border-radius:11px;display:grid;place-items:center;overflow:hidden}.gallery-detail-media img,.gallery-detail-media video{width:100%;max-height:58vh;object-fit:contain;display:block}.gallery-information{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;border-bottom:1px solid var(--line);padding-bottom:23px;margin:24px 0}.gallery-information dt{font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:.8px;margin-bottom:5px}.gallery-information dd{font-size:14px;margin:0;overflow-wrap:anywhere}.gallery-detail-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.gallery-detail-actions a{display:inline-flex;align-items:center;font-size:14px}.gallery-detail-actions button{font-size:14px}.gallery-detail-actions [data-gallery-delete]{margin-left:auto;background:transparent;color:var(--muted)}.gallery-form{display:grid;gap:23px}.gallery-form p{color:var(--muted);margin:0}.gallery-form fieldset{border:1px solid var(--line);border-radius:10px;padding:17px;min-width:0}.gallery-form legend{font-weight:550;padding:0 7px}.gallery-form fieldset>p{font-size:14px;margin-bottom:15px}.gallery-asset-choices{display:grid;max-height:300px;overflow:auto;gap:10px}.gallery-asset-choices label{display:flex;align-items:center;gap:10px;font-size:14px;padding:7px 0;overflow-wrap:anywhere}.gallery-asset-choices label>span{font-size:12px;color:var(--muted);margin-left:auto;white-space:nowrap}.gallery-asset-choices input{accent-color:var(--text);width:17px;height:17px;flex-shrink:0}.gallery-form footer{border-top:1px solid var(--line);padding-top:20px;display:flex;justify-content:flex-end;gap:10px}.gallery-form [data-gallery-error]:not(:empty),.gallery-dialog>[data-gallery-error]:not(:empty){border:1px solid var(--line);background:var(--raised);padding:13px;border-radius:8px}.gallery-note{font-size:14px}.gallery-dialog .gallery-danger{border-color:var(--muted);background:transparent;font-weight:600}
@media(min-width:1500px){.gallery-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}@media(max-width:1050px){.gallery-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.gallery-toolbar{grid-template-columns:repeat(2,minmax(0,1fr))}.gallery-header{flex-direction:column;gap:5px}.gallery-header-actions{padding-top:0}}@media(max-width:650px){.gallery-page{padding-top:20px}.gallery-header h1{font-size:38px}.gallery-header-actions{width:100%}.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.gallery-toolbar{padding:14px;gap:12px}.gallery-toolbar label:first-child{grid-column:1/-1}.gallery-toolbar label:last-child{grid-column:1/-1}.gallery-toolbar label{font-size:13px}.gallery-card-caption{padding:11px}.gallery-card-caption span{font-size:11px}.gallery-dialog{padding:19px;width:calc(100vw - 22px);max-height:calc(100vh - 24px)}.gallery-information{grid-template-columns:repeat(2,minmax(0,1fr))}.gallery-detail-actions{display:grid;grid-template-columns:1fr}.gallery-detail-actions a,.gallery-detail-actions button{width:100%;justify-content:center}.gallery-detail-actions [data-gallery-delete]{margin-left:0}.gallery-collection-heading{align-items:flex-start;flex-direction:column}.gallery-error button{margin:12px 0 0;display:block}}
@media(prefers-reduced-motion:reduce){.gallery-preview img,.gallery-preview video{transition:none}}
