.church-gallery{margin-block:2rem}.church-gallery .section-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem}.church-gallery-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:1rem}.church-gallery-grid figure{margin:0;min-width:0}.church-gallery-grid a[data-church-image]{display:block;background:#edf3e8;overflow:hidden}.church-gallery-grid a[data-church-image]:focus-visible{outline:3px solid #196e76;outline-offset:3px}.church-gallery-grid img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;transition:transform .2s}.church-gallery-grid a[data-church-image]:hover img{transform:scale(1.025)}.church-gallery-grid figcaption{padding-block:.5rem;font-size:.875rem;line-height:1.45}.church-gallery-media{grid-column:1/-1;min-width:0}.church-gallery-media video{display:block;width:100%;max-height:70vh;background:#111}.church-gallery-media audio{width:100%}.church-lightbox{width:100%;height:100%;max-width:none;max-height:none;border:0;padding:0;margin:0;background:#132018;color:#fff;overscroll-behavior:contain}.church-lightbox[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto}.church-lightbox::backdrop{background:#132018}.church-lightbox-toolbar,.church-lightbox-footer{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.75rem max(.75rem,env(safe-area-inset-right)) .75rem max(.75rem,env(safe-area-inset-left))}.church-lightbox-toolbar{padding-top:max(.75rem,env(safe-area-inset-top));border-bottom:1px solid #ffffff30}.church-lightbox-toolbar>div{display:flex;gap:.5rem;align-items:center}.church-lightbox button,.church-lightbox a{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;border:1px solid #ffffff50;background:#ffffff10;color:#fff;min-height:44px;min-width:44px;padding:.6rem;text-decoration:none;border-radius:0;cursor:pointer;font:inherit}.church-lightbox button:focus-visible,.church-lightbox a:focus-visible{outline:3px solid #fff;outline-offset:2px}.church-lightbox button:disabled{opacity:.35;cursor:default}.church-lightbox p{margin:0;font-size:.9rem;line-height:1.45}.church-lightbox-stage{overflow:auto;display:flex;align-items:center;justify-content:center;min-height:0;min-width:0;touch-action:pan-x pan-y pinch-zoom}.church-lightbox-stage img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;image-orientation:from-image}.church-lightbox-stage.is-zoomed{display:block;text-align:center}.church-lightbox-stage.is-zoomed img{max-width:none;max-height:none;margin:auto}.church-lightbox-footer{border-top:1px solid #ffffff30;padding-bottom:max(.75rem,env(safe-area-inset-bottom))}.church-lightbox-footer p{flex:1;text-align:center;max-height:5rem;overflow:auto}.church-media-editor{display:grid;gap:.75rem;padding-block:1rem}.church-media-editor .check{margin:0}.news-admin-row:has(a[href*="/kirchennachrichten/"]){grid-template-columns:auto minmax(0,1fr) auto auto}@media(max-width:600px){.church-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}.church-lightbox-toolbar button span,.church-lightbox-toolbar a span{display:none}.church-lightbox-toolbar{gap:.5rem}.church-lightbox-footer{gap:.5rem}}@media(prefers-reduced-motion:reduce){.church-gallery-grid img{transition:none}}
.gallery-theme-church{--gallery-background:#551285}.gallery-theme-football{--gallery-background:#0e60a7}.church-lightbox{background:var(--gallery-background,#132018);outline:0}.church-lightbox::backdrop{background:var(--gallery-background,#132018)}.church-lightbox-toolbar>.gallery-heading{display:block;min-width:0;flex:1}.gallery-heading h2{color:#fff;background:none;margin:0 0 4px;padding:0;font-size:20px;line-height:1.35;overflow-wrap:anywhere}.gallery-heading p{opacity:.85}.gallery-controls{flex-shrink:0}.gallery-photo-button{display:block;width:100%;border:0;padding:0;background:var(--soft,#edf3e8);cursor:pointer;border-radius:0;overflow:hidden;aspect-ratio:4/3}.gallery-photo-button img{width:100%;height:100%;object-fit:cover}.gallery-photo-button:focus-visible{outline:3px solid var(--teal);outline-offset:3px}[data-gallery-protected]{-webkit-touch-callout:none;user-select:none;-webkit-user-select:none}.church-gallery-grid:empty{display:none}.gallery-load-status{margin:0 0 12px}.gallery-photo-button:hover img{transform:scale(1.025)}@media(max-width:600px){.gallery-heading h2{font-size:15px}.church-lightbox-toolbar{align-items:flex-start}.gallery-controls{gap:6px}.church-lightbox-toolbar .gallery-heading{display:block}}

.church-gallery [hidden]{display:none!important}
.church-lightbox-stage{touch-action:pan-y pinch-zoom;overscroll-behavior-x:none}.church-lightbox-stage.is-zoomed{touch-action:pan-x pan-y pinch-zoom}
.church-editor-gallery{margin:24px 0}.church-editor-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.church-editor-heading h2{margin:0}.church-editor-heading .button{font-size:14px;min-height:44px;padding:9px 12px}.church-editor-gallery>.muted{font-size:14px;line-height:1.5;margin:12px 0}.media-order-status{font-size:13px;margin:0 0 16px;color:var(--teal)}.church-media-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.church-media-card{min-width:0;border:1px solid var(--line);background:var(--paper);transition:opacity .1s}.church-editor-photo{aspect-ratio:4/3;background:var(--soft);overflow:hidden;cursor:grab}.church-editor-photo img{width:100%;height:100%;object-fit:cover;display:block;user-select:none;-webkit-user-drag:none}.church-editor-medium{aspect-ratio:4/3;display:flex;align-items:center;justify-content:center;gap:10px;background:var(--soft);color:var(--teal)}.church-media-card-body{padding:10px 12px}.church-media-card-title{display:flex;align-items:center;justify-content:space-between;gap:8px}.church-media-card-title strong{font-size:15px}.media-drag-handle,.media-move-button{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:8px;border:1px solid var(--line);background:var(--paper);color:var(--green-dark);cursor:pointer;border-radius:0}.media-drag-handle{cursor:grab;touch-action:none}.media-drag-handle:active{cursor:grabbing}.media-drag-handle .icon,.media-move-button .icon{width:20px;height:20px}.media-move-button:disabled{opacity:.3;cursor:default}.media-taken-at,.media-editor-caption{font-size:12px;line-height:1.45;margin:7px 0;color:var(--muted);overflow-wrap:anywhere}.media-card-actions{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:10px}.media-card-actions .check{margin:0;gap:6px;font-size:13px;min-height:44px}.media-card-actions>div{display:flex;gap:4px}.church-media-card.is-removed .church-editor-photo,.church-media-card.is-removed .church-editor-medium{opacity:.35}.church-media-card.is-dragging{opacity:.5}.church-media-card.drop-before{box-shadow:-4px 0 var(--teal)}.church-media-card.drop-after{box-shadow:4px 0 var(--teal)}@media(max-width:1100px){.church-media-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:760px){.church-media-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.church-editor-heading{gap:10px}.church-media-card-body{padding:8px}.media-card-actions{flex-wrap:wrap;gap:4px}.media-card-actions>div{margin-left:auto}.media-taken-at{min-height:35px}}@media(max-width:360px){.church-media-grid{gap:8px}.media-card-actions .check{font-size:12px}.media-move-button{min-width:40px;padding:6px}}@media(prefers-reduced-motion:reduce){.church-media-card{transition:none}}
