.gallery-main,.gallery-main *,.gallery-lightbox *{letter-spacing:0}
.gallery-main{padding-top:40px;padding-bottom:64px;min-height:55vh}
.gallery-heading{margin-bottom:32px}.gallery-heading h1{font-size:48px;margin-bottom:12px}.gallery-heading p{color:var(--text-soft)}
.gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px}
.gallery-photo{margin:0;min-width:0}.gallery-photo-link{display:block;padding:7px;border:1px solid #a58c63;border-radius:4px;background:#fff;box-shadow:0 5px 16px #35261b12;transition:border-color .2s,box-shadow .2s}
.gallery-photo-link:hover{border-color:var(--accent-deep);box-shadow:0 8px 20px #35261b24}.gallery-photo-link:focus-visible{outline:3px solid #53816c;outline-offset:4px}
.gallery-photo-link img{width:100%;aspect-ratio:4/3;height:auto;object-fit:cover;background:#eee;max-height:none}
.gallery-photo figcaption{padding:16px 1px 0}.gallery-photo h2{font-size:25px;line-height:1.2;margin:0 0 8px;overflow-wrap:anywhere}.gallery-photo p{font-size:14px;line-height:1.6;color:var(--text-soft);margin:0;overflow-wrap:anywhere}
.gallery-empty{padding:48px 0;border-block:1px solid var(--line);color:var(--text-soft)}
.gallery-albums{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:0 0 36px;padding:0 0 28px;border-bottom:1px solid var(--line,#d6cbbb)}
.gallery-album{display:flex;flex-direction:column;min-width:0;height:100%;overflow:hidden;border:2px solid var(--line,#d6cbbb);border-radius:6px;background:#fff;color:var(--text,#312b25);text-decoration:none;transition:border-color .2s,box-shadow .2s}
.gallery-album>img,.gallery-album-empty{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;background:#edf1ed}.gallery-album-empty{display:grid;place-items:center;color:#5a6b60;font-size:13px}
.gallery-album-copy{display:flex;flex-direction:column;gap:6px;padding:13px 14px;flex:1;overflow-wrap:anywhere}.gallery-album-copy strong{font-size:15px;line-height:1.4}.gallery-album-copy small{font-size:12px;color:var(--text-soft,#665d54)}
.gallery-album:hover{border-color:#6c937b}.gallery-album[aria-current]{border-color:#4f8768;box-shadow:0 0 0 1px #4f8768}.gallery-album:focus-visible{outline:3px solid #53816c;outline-offset:4px}
.gallery-album-item{display:flex;flex-direction:column;min-width:0;gap:8px}.gallery-album-item .gallery-album{height:auto;flex:1}.gallery-album-delete{margin:0}.gallery-album-delete .v-btn{width:100%;padding:8px 12px;font-size:12px}
.gallery-admin .gallery-albums{border-color:var(--v-line)}.gallery-admin .gallery-album{background:var(--v-surface);color:var(--v-text);border-color:var(--v-line)}.gallery-admin .gallery-album:hover,.gallery-admin .gallery-album[aria-current]{border-color:#6da98a}.gallery-admin .gallery-album-copy small{color:var(--v-soft)}.gallery-admin .gallery-album-empty{background:var(--v-bg);color:var(--v-soft)}
.gallery-category-picker{border:0;padding:0;margin:0 0 18px;min-width:0}.gallery-category-picker legend{font-size:14px;margin-bottom:8px}.gallery-category-picker>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.gallery-category-picker label{position:relative;min-width:0;margin:0;cursor:pointer}.gallery-category-picker input[type=radio]{position:absolute;width:1px;height:1px;opacity:0;margin:0}.gallery-category-picker span{display:flex;align-items:center;min-height:46px;height:100%;padding:10px 12px;border:1px solid var(--v-line);border-radius:5px;font-size:13px;line-height:1.4;overflow-wrap:anywhere;background:var(--v-bg)}.gallery-category-picker input:checked+span{border-color:#73b091;background:#203c2d}.gallery-category-picker input:focus-visible+span{outline:3px solid #84b89a;outline-offset:2px}.gallery-category-picker input:disabled+span{opacity:.6}
.gallery-upload-status{font-size:14px;overflow-wrap:anywhere}.gallery-upload-status[data-error]{color:#f3b5ab}
.gallery-category-picker input[type=radio]{min-height:0;padding:0;border:0;top:0;left:0}
.gallery-category-label{display:block;font:600 12px/1.4 Arial,sans-serif;margin:0 0 10px;overflow-wrap:anywhere;color:var(--text-soft)}a.gallery-category-label{width:fit-content;text-decoration:underline}.gallery-admin .gallery-category-label{color:var(--v-soft)}
.gallery-category-create{display:flex;align-items:end;gap:12px;margin-bottom:24px}.gallery-category-create label{flex:1;margin:0;min-width:0}.gallery-category-list{border-top:1px solid var(--v-line)}.gallery-category-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;align-items:end;padding:18px 0;border-bottom:1px solid var(--v-line)}.gallery-category-row>form:first-child{display:flex;gap:10px;align-items:end;min-width:0}.gallery-category-row label{flex:1;min-width:0;margin:0}.gallery-category-row small{grid-column:1/-1;color:var(--v-soft)}.gallery-category-row form{margin:0}
.gallery-pagination{display:flex;flex-wrap:wrap;gap:24px;align-items:center;justify-content:center;margin-top:36px;font-size:15px}.gallery-pagination a{text-decoration:underline;min-height:44px;display:flex;align-items:center}
.gallery-footer{display:grid;gap:20px}.gallery-footer p{font-size:13px;margin:0}.gallery-footer h3{font-size:25px}
.gallery-lightbox{width:min(1100px,calc(100% - 24px));max-height:calc(100dvh - 24px);padding:16px;border:1px solid #a58c63;border-radius:6px;background:#fff;color:#312b25;overflow:auto}
.gallery-lightbox::backdrop{background:#111b16e8}.gallery-lightbox-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;font:14px Arial,sans-serif}
.gallery-lightbox button{height:44px;width:44px;flex:0 0 44px;display:grid;place-items:center;border:1px solid #d3d8d2;border-radius:4px;background:#fff;color:#283c31;font:28px/1 Arial,sans-serif;cursor:pointer}.gallery-lightbox button:hover{background:#edf3ee}.gallery-lightbox button:focus-visible{outline:3px solid #53816c;outline-offset:2px}
.gallery-lightbox-stage{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:12px;align-items:center;margin-top:12px;min-width:0}.gallery-lightbox-stage img{display:block;width:100%;height:min(65dvh,660px);object-fit:contain;min-width:0;background:#f5f6f4}
.gallery-lightbox-caption{padding:18px 56px 4px;overflow-wrap:anywhere}.gallery-lightbox-caption h2{font-size:25px;margin:0 0 8px}.gallery-lightbox-caption p{font-size:14px;line-height:1.6;white-space:pre-line;margin:0}.gallery-lightbox button:disabled{opacity:.35;cursor:default}
body:has(.gallery-lightbox[open]),body.gallery-admin:has(dialog[open]){overflow:hidden}
.gallery-admin-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.gallery-admin-item{border:1px solid var(--v-line);border-radius:6px;overflow:hidden;min-width:0;background:var(--v-surface)}
.gallery-admin-item>img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;background:var(--v-bg)}.gallery-admin-copy{padding:16px}.gallery-item-heading{display:flex;gap:10px;align-items:start;justify-content:space-between;margin-bottom:12px}.gallery-admin-copy h2{font:20px/1.3 Georgia,serif;overflow-wrap:anywhere;margin:0}.gallery-admin-copy p{font-size:13px;color:var(--v-soft);overflow-wrap:anywhere;white-space:pre-line}.gallery-item-heading .v-status{flex-shrink:0}
.gallery-file-hint{font-size:13px;color:var(--v-soft);margin-top:-8px!important}.gallery-upload-preview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:18px}.gallery-upload-preview img{width:100%;height:100px;object-fit:cover;border:1px solid var(--v-line);border-radius:4px}.gallery-admin .gallery-empty{border-color:var(--v-line);color:var(--v-soft)}
.gallery-photo-link{position:relative}.gallery-video-badge{position:absolute;bottom:18px;left:18px;display:flex;align-items:center;gap:8px;padding:7px 12px;border-radius:4px;background:#163126ed;color:#fff;font:600 13px/1.4 Arial,sans-serif}
.gallery-lightbox-stage video{display:block;width:100%;height:min(65dvh,660px);object-fit:contain;min-width:0;background:#101713}.gallery-lightbox-stage [hidden]{display:none!important}
.gallery-video-dialog{width:min(960px,calc(100% - 32px))}.gallery-video-dialog video{display:block;width:100%;height:min(65dvh,660px);object-fit:contain;max-height:70dvh;background:#101713}
.gallery-video-upload-preview{display:block;width:100%;height:220px;object-fit:contain;background:#0a100c;border:1px solid var(--v-line);border-radius:4px;margin:0 0 20px}.gallery-video-upload-preview[hidden]{display:none}.gallery-video-progress{display:block;width:100%;height:14px;margin:12px 0;accent-color:var(--v-accent)}.gallery-video-progress[hidden]{display:none}
[data-video-discard][hidden]{display:none!important}
@media(max-width:900px){.gallery-grid,.gallery-admin-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.gallery-albums{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){.gallery-main{padding-top:28px;padding-bottom:40px}.gallery-heading h1{font-size:38px}.gallery-grid,.gallery-admin-grid{grid-template-columns:minmax(0,1fr)}.gallery-heading{margin-bottom:24px}.gallery-lightbox{padding:12px}.gallery-lightbox-stage{grid-template-columns:36px minmax(0,1fr) 36px;gap:6px}.gallery-lightbox-stage button{width:36px;height:44px;font-size:23px}.gallery-lightbox-caption{padding:16px 0 0}.gallery-lightbox-stage img{height:52dvh}.gallery-item-heading{flex-wrap:wrap}.gallery-category-create{align-items:stretch;flex-direction:column}.gallery-category-row{grid-template-columns:minmax(0,1fr)}.gallery-category-row>form:first-child{align-items:stretch;flex-direction:column}}
@media(max-width:600px){.gallery-albums{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.gallery-album-copy{padding:10px}.gallery-album-copy strong{font-size:14px}.gallery-category-picker>div{grid-template-columns:repeat(2,minmax(0,1fr))}}
