.range-gallery{margin:36px 0 48px;scroll-margin-top:100px}.gallery-photo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.gallery-photo-grid figure{margin:0;overflow:hidden}.gallery-photo-grid img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover}.gallery-photo-grid figcaption{padding:18px 20px}.gallery-photo-grid h3{font-size:18px;margin:0 0 9px}.gallery-photo-grid p{font-size:14px;line-height:1.6;margin:0}.gallery-admin-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.gallery-admin-card{border:1px solid #d1dae3;border-radius:12px;padding:14px;min-width:0}.gallery-admin-card img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:8px}.gallery-admin-card p{overflow-wrap:anywhere}.gallery-admin-card form{margin-top:14px}.gallery-preview img{display:block;max-width:480px;width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:10px}.gallery-preview{margin:20px 0}.gallery-preview[hidden]{display:none}.gallery-admin-card small{display:block}#galleryUploadForm{max-width:760px}#galleryStatus{min-height:24px}@media(max-width:900px){.gallery-photo-grid,.gallery-admin-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.gallery-photo-grid,.gallery-admin-grid{grid-template-columns:1fr}}

.gallery-photo-grid figure,.gallery-photo-grid img{border-radius:14px}.gallery-photo-grid figure{overflow:hidden}.gallery-photo-grid figure>a{display:block;border-radius:14px;overflow:hidden}.gallery-batch-preview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:20px 0}.gallery-batch-card{border:1px solid #d0dae3;border-radius:12px;padding:10px;min-width:0}.gallery-batch-card img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:10px}.gallery-batch-card p{font-size:12px;line-height:1.5;overflow-wrap:anywhere}.gallery-batch-card select{max-width:100%}.gallery-batch-group{margin:26px 0 38px}.gallery-batch-group>h3{font-size:19px;line-height:1.6;overflow-wrap:anywhere}#galleryBatchProgress{width:100%;height:18px;accent-color:#b91f2b;margin:16px 0}#galleryBatchProgress[hidden]{display:none}@media(max-width:700px){.gallery-batch-preview{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:420px){.gallery-batch-preview{grid-template-columns:1fr}}

.gallery-pagination{display:flex;gap:12px;margin:24px 0;flex-wrap:wrap}.gallery-batch-group>summary{cursor:pointer;padding:18px;background:#f2f3f4;border-radius:12px;font-weight:700}.gallery-batch-group[open]>summary{margin-bottom:20px}.gallery-pagination [aria-current="page"]{font-weight:700;outline:2px solid #b9192b}.gallery-browser .card>a{color:inherit;text-decoration:none;display:block}

.gallery-browser .grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.gallery-browser .gallery-image{width:100%;height:auto;aspect-ratio:4/3;object-fit:cover}.gallery-browser>nav,.gallery-viewer-controls{display:flex;gap:16px;align-items:center;flex-wrap:wrap;margin:24px 0}.gallery-expanded-photo{display:block;max-width:100%;max-height:70vh;width:auto;height:auto;margin:0 auto;object-fit:contain;border-radius:14px;background:#161b22;box-shadow:0 8px 24px #0003}.gallery-viewer{background:#fff;padding:24px;border-radius:16px}.gallery-viewer-controls p{margin:0}.gallery-viewer-controls a{min-height:44px}@media(max-width:900px){.gallery-browser .grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.gallery-browser .grid{grid-template-columns:1fr}.gallery-viewer{padding:12px}.gallery-viewer-controls{gap:12px}}

.gallery-viewer-controls{display:grid;grid-template-columns:140px 110px 140px minmax(190px,1fr);align-items:center;gap:16px}.gallery-viewer-controls>a,.gallery-viewer-controls>span{margin:0;min-height:46px;display:flex;align-items:center;justify-content:center;box-sizing:border-box;align-self:center}.gallery-viewer-controls>p{text-align:center}.gallery-viewer-controls>a:last-child{justify-self:end}.gallery-manage-toolbar{display:flex;align-items:center;gap:20px;flex-wrap:wrap;margin-bottom:20px}.gallery-manage-toolbar label,.gallery-select{display:flex;align-items:center;gap:10px}.gallery-manage-form input[type=checkbox]{width:20px;height:20px;margin:0;flex:0 0 20px}.gallery-admin-card{display:flex;flex-direction:column;gap:12px}.gallery-admin-card>button,.gallery-cover-badge{margin-top:auto;min-height:44px;display:flex;align-items:center;justify-content:center}.gallery-cover-badge{background:#edf2f5;border-radius:8px;font-weight:700}.gallery-manage-form button{margin-bottom:0}@media(max-width:700px){.gallery-viewer-controls{grid-template-columns:1fr 90px 1fr;gap:10px}.gallery-viewer-controls>a:last-child{grid-column:1/-1;justify-self:stretch}}

.gallery-viewer-controls>a{height:48px;padding:12px 16px;line-height:1.2}

.gallery-completed-actions{display:flex;align-items:center;flex-wrap:wrap;gap:16px;margin-top:24px}.gallery-completed-actions[hidden]{display:none}
