/* Galerie: normaler Seitenfluss, drei Spalten und Navigation am Ende. */
html.galeriehtml {
    display: block !important;
    width: 100%;
    height: auto !important;
    min-height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
}

html.galeriehtml body.galerieseite {
    display: block !important;
    position: static;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    min-height: 100vh;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    transform: none;
}

html.galeriehtml .galerieflaeche {
    display: block;
    position: static;
    container-type: inline-size;
    container-name: none;
    width: 100%;
    max-width: 1300px;
    height: auto;
    min-height: 0;
    box-sizing: border-box;
    margin: 0 auto;
    padding: 40px 30px;
    transform: none;
}

html.galeriehtml .galerie {
    display: grid;
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: none;
    grid-auto-rows: auto;
    /* Beide Abstände = 25 % einer Spaltenbreite, ohne Höhen-Prozentwerte. */
    gap: calc(100cqw / 14);
    width: 100%;
    height: auto;
    min-height: 0;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    transform: none;
}

html.galeriehtml .galerie .bildlink,
html.galeriehtml .galerie .bildblock {
    display: block;
    position: static;
    float: none;
    width: 100%;
    max-width: none;
    height: auto;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 0;
    transform: none;
}

html.galeriehtml .galerie .bildlink {
    color: inherit;
    text-decoration: none;
}

html.galeriehtml .galerie .bildflaeche {
    display: block;
    position: static;
    width: 100%;
    height: min(330px, calc(200cqw / 7));
    max-height: 330px;
    aspect-ratio: 1 / 1;
    margin: 0;
    padding: 0;
    transform: none;
}

html.galeriehtml .galerie .bildflaeche img {
    display: block;
    position: static;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    max-width: 100%;
    max-height: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    object-fit: contain;
    object-position: center bottom;
    transform: none;
}

html.galeriehtml .galerie .dateiname {
    display: block;
    position: static;
    width: 100%;
    max-width: none;
    height: auto;
    box-sizing: border-box;
    margin: 0.4em 0 0;
    padding: 0;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
    transform: none;
}

html.galeriehtml .galerie .dateiname.bildangaben {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5em 1em;
    text-align: left;
}

html.galeriehtml .bildangaben .bildtitel,
html.galeriehtml .bildangaben .bilddetails {
    flex: 1 1 0;
    min-width: 0;
    overflow-wrap: anywhere;
}

html.galeriehtml .bildangaben .bildtitel { text-align: left; }
html.galeriehtml .bildangaben .bilddetails { text-align: right; }

html.galeriehtml .bildangaben .punkt {
    display: inline-block;
    position: static;
    float: none;
    width: 0.5em;
    height: 0.5em;
    margin-left: 0.3em;
    border-radius: 50%;
    background-color: red;
    vertical-align: middle;
}

html.galeriehtml body.galerieseite .seitenfooter {
    display: block !important;
    position: static !important;
    float: none;
    clear: both;
    inset: auto;
    width: 100% !important;
    max-width: none;
    height: auto !important;
    min-height: 0;
    box-sizing: border-box;
    margin: 0 !important;
    padding: 0 20px 24px;
    text-align: center;
    transform: none !important;
}
