/* ============================================================
   Grundlayout
   ============================================================ */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #ffffff;
    color: #222222;
}


/* ============================================================
   Seiteninhalt
   ============================================================ */

.content {
    width: min(
        calc(100% - 30px),
        var(--max-breite)
    );

    margin: 30px auto;
}


/* ============================================================
   Überschrift
   ============================================================ */

h1 {
    margin: 0 0 25px 0;

    font-size: 28px;
    line-height: 1.2;
    font-weight: 600;
}


/* ============================================================
   Galerie
   ============================================================ */

.gallery {
    position: relative;

    width: 100%;

    margin: 0;
    padding: 0;
}


/* ============================================================
   Einzelnes Bild / Tile
   ============================================================ */

.tile {
    position: absolute;

    margin: 0;
    padding: 0;

    overflow: hidden;

    /*
     * Keine zusätzlichen Abstände durch inline
     * oder Browser-Standardverhalten.
     */
    line-height: 0;
}


/* ============================================================
   Bild
   ============================================================ */

.tile img {
    display: block;

    width: 100%;
    height: 100%;

    margin: 0;
    padding: 0;

    /*
     * Die Größe des Tiles wird bereits durch JavaScript
     * exakt anhand des Original-Seitenverhältnisses berechnet.
     */
    object-fit: contain;
    object-position: center center;

    /*
     * Verhindert zusätzliche Browser-Darstellung
     * beim Laden.
     */
    vertical-align: top;
}


/* ============================================================
   Falls ein Bild nicht geladen werden kann
   ============================================================ */

.tile img:not([src]) {
    visibility: hidden;
}


/* ============================================================
   Keine Bilder vorhanden
   ============================================================ */

.keine-bilder {
    padding: 30px;

    text-align: center;

    font-size: 16px;
}


/* ============================================================
   Tablet
   ============================================================ */

@media (max-width: 900px) {

    .content {
        width: calc(100% - 24px);

        margin: 24px auto;
    }

    h1 {
        font-size: 26px;

        margin-bottom: 20px;
    }
}


/* ============================================================
   Smartphone
   ============================================================ */

@media (max-width: 700px) {

    .content {
        width: calc(100% - 16px);

        margin: 15px auto;
    }

    h1 {
        font-size: 22px;

        margin-bottom: 15px;
    }
}


/* ============================================================
   Sehr kleine Smartphones
   ============================================================ */

@media (max-width: 520px) {

    .content {
        width: calc(100% - 12px);

        margin: 12px auto;
    }

    h1 {
        font-size: 20px;

        margin-bottom: 12px;
    }
}