.gallery-management{padding:24px;margin-bottom:24px}.gallery-filters{display:flex;align-items:end;flex-wrap:wrap;gap:12px;margin-bottom:24px}.gallery-filters label{display:grid;gap:6px;min-width:0;max-width:100%}.gallery-filters input,.gallery-filters select,.gallery-editor input:not([type=checkbox]),.gallery-editor select,.gallery-editor textarea,[data-gallery-upload]>input{font:inherit;color:#1c2d47;background:#fff;border:1px solid #aab9cd;border-radius:6px;padding:10px;min-height:44px;max-width:100%}.gallery-filters select{max-width:260px}.gallery-button{display:inline-flex;justify-content:center;align-items:center;gap:6px;min-height:44px;border:1px solid #b4c1d2;border-radius:7px;background:#fff;color:#10264b;padding:9px 14px;font:inherit;font-size:13px;text-decoration:none;cursor:pointer;line-height:1.6}.gallery-button:hover{background:#edf2f9}.gallery-button:disabled{opacity:.5;cursor:default}.gallery-button.danger{color:#b90716;border-color:#dbabb1}.gallery-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.gallery-actions form{margin:0}.gallery-albums,.gallery-photos{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-bottom:24px}.gallery-album-card,.gallery-photo-card{min-width:0;overflow:hidden;overflow-wrap:anywhere}.gallery-album-card>a{display:block}.gallery-album-card img,.gallery-photo-card>a img{width:100%;height:210px;object-fit:cover}.gallery-album-card>div,.gallery-photo-card>div{padding:18px}.gallery-album-card h2{font-size:18px;line-height:1.7;margin:8px 0}.gallery-album-card h2 a:hover{text-decoration:underline}.gallery-meta{font-size:12px;color:#596b81}.gallery-no-cover{display:grid;place-items:center;height:210px;background:#e9eef5;color:#596b81}.gallery-empty{padding:25px}.gallery-editor{display:grid;gap:12px;padding:24px;width:100%;max-width:850px;margin-bottom:28px}.gallery-editor>label{font-weight:600;margin-top:7px}.gallery-editor textarea{width:100%;resize:vertical}.gallery-editor-preview{width:auto;max-width:100%;max-height:380px;object-fit:contain}.gallery-editor p{color:#596b81;font-size:13px}.gallery-assignment{display:flex;align-items:center;gap:10px;min-height:46px}.gallery-assignment input,.gallery-photo-select input{width:20px;height:20px;flex-shrink:0}.gallery-editor fieldset{border:1px solid #c7d1df;border-radius:8px;min-width:0;padding:15px}.gallery-toolbar{margin:18px 0 24px}.gallery-status{font-size:13px;font-weight:600}.gallery-album-description{white-space:normal;overflow-wrap:anywhere}.gallery-photo-select{display:flex;align-items:center;gap:8px;min-height:44px}.gallery-photo-card p{margin:10px 0;white-space:pre-wrap}.gallery-section-heading{display:flex;align-items:center;gap:18px;margin:10px 0 16px}.gallery-section-heading h2{font-size:21px}#gallery-delete-photos{margin-bottom:18px}.gallery-upload-queue{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:18px}.gallery-upload-item{min-width:0;padding:10px;border:1px solid #d4dce7;border-radius:8px;overflow-wrap:anywhere}.gallery-upload-item img{width:100%;height:100px;object-fit:cover}.gallery-upload-item progress{width:100%;height:12px}.gallery-upload-item p{font-size:12px}.gallery-error{color:#a20b1a;background:#fff2f3;padding:16px;border-radius:8px;margin-bottom:20px}.gallery-public-main{padding-top:32px;padding-bottom:40px;min-height:60vh}.gallery-public-main>h1{font-size:28px;line-height:1.6;margin:10px 0}.gallery-public-main>.gallery-filters{margin-top:24px}.gallery-back{display:inline-block;color:#b90716;min-height:44px;padding:10px 0}.gallery-public-main .gallery-album-description{margin:15px 0 24px}.gallery-lightbox{width:min(1100px,calc(100% - 24px));max-height:calc(100dvh - 24px);padding:18px;border:0;border-radius:12px;background:#0e1d32;color:#fff}.gallery-lightbox::backdrop{background:#071123dd}.gallery-lightbox-toolbar,.gallery-lightbox-controls{display:flex;align-items:center;justify-content:space-between;gap:12px}.gallery-lightbox-toolbar h2{font-size:18px}.gallery-lightbox>img{display:block;width:100%;height:min(65dvh,760px);object-fit:contain;margin:16px 0}.gallery-lightbox>p{white-space:pre-wrap;text-align:center;margin-bottom:12px;overflow-wrap:anywhere}.gallery-lightbox-controls{flex-wrap:wrap}.gallery-lightbox-controls span{font-size:12px}.gallery-public-photo{margin:0}.gallery-public-photo figcaption{padding:12px;white-space:pre-wrap;overflow-wrap:anywhere}.gallery-public-photo img{width:100%;height:230px;object-fit:cover}.gallery-home-empty{padding:12px 0;font-size:13px}.gallery-pagination{margin:20px 0}.gallery-photos a:focus-visible,.gallery-albums a:focus-visible{outline:3px solid #287bd0;outline-offset:3px}#gallery-upload-title{font-size:20px;margin-bottom:10px}[data-gallery-upload]{display:grid;gap:12px;margin-top:16px}.gallery-upload-item .failed{color:#a20b1a}.gallery-upload-item .success{color:#17633d}@media(max-width:1100px){.gallery-albums,.gallery-photos{grid-template-columns:repeat(2,minmax(0,1fr))}.gallery-upload-queue{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:600px){.gallery-albums,.gallery-photos{grid-template-columns:1fr}.gallery-management,.gallery-editor{padding:16px}.gallery-filters label,.gallery-filters input,.gallery-filters select{width:100%;max-width:100%}.gallery-filters{align-items:stretch}.gallery-upload-queue{grid-template-columns:repeat(2,minmax(0,1fr))}.gallery-section-heading{align-items:flex-start;flex-direction:column;gap:4px}.gallery-lightbox{padding:12px}.gallery-lightbox-controls{justify-content:center}}
.gallery-album-cover{display:block;max-width:100%;width:auto;max-height:500px;object-fit:contain;margin:20px auto}

.gallery-public-main h1,.page-heading h1{overflow-wrap:anywhere}
.news-pagination{display:flex;align-items:center;justify-content:center;gap:18px;flex-wrap:wrap;padding:24px 0}.news-pagination a{display:inline-block;padding:10px 16px;min-height:44px;border:1px solid #b4c1d2;border-radius:6px;background:#fff;color:#10264b}

.gallery-card-status{font-weight:600}.gallery-card-status.is-draft{color:#c45b69}.gallery-card-status.is-published{color:#438b63}

.gallery-button.is-current-cover{background:#e6f4ea;border-color:#a8d5b6;color:#2d7046}.gallery-button.is-current-cover:hover{background:#d9eedf}
