/* Gestaltung: gemeinsam/galerie/galerie.css – aus dem bestätigten Unterseiten-Design. */

.gallery-image { display: block; position: relative; overflow: hidden; background: #232326; }
.gallery-image img { display: block; width: 100%; aspect-ratio: 1.4; object-fit: cover; transition: transform .25s; }
.gallery-image:hover img { transform: scale(1.035); }
.gallery-image > span { position: absolute; bottom: 12px; right: 12px; background: #111b; color: white; width: 35px; height: 35px; display: grid; place-items: center; }
.media-dialog { background: #171719; border: 1px solid #605a66; color: #fff; padding: 55px 20px 15px; width: min(1100px,94vw); max-height: 94dvh; }
.media-dialog::backdrop { background: #000d; }
.media-dialog > img { display: block; max-width: 100%; max-height: 74dvh; margin: auto; object-fit: contain; }
.media-dialog p { text-align: center; margin: 12px 0 0; }
.dialog-close { position: absolute; top: 5px; right: 10px; background: transparent; color: white; border: none; font-size: 40px; line-height: 1; width: 44px; height: 44px; }
@media (prefers-reduced-motion:reduce) { .gallery-image img { transition: none; } }
.dialog-image-stage { display: flex; align-items: center; justify-content: center; }
.dialog-image-stage img { max-height: 70vh; max-width: 100%; width: auto; object-fit: contain; }
.dialog-navigation { display: flex; align-items: center; justify-content: center; gap: 25px; margin-top: 15px; }
.dialog-navigation button { font-size: 28px; min-width: 48px; min-height: 48px; padding: 0 15px; }
.dialog-navigation span { font-size: 14px; color: #c8c2cd; }
