/* CSS for http://gritadams.de/gallerie */

:root {
    --teal: #006580;
    --rule: #348B81;
    --red: #FF0000;
    --mat: #f4f1ea;
    --ink: #1b1b1b;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0 16px 60px;
    background-color: var(--teal);
    color: #000000;
    font-family: Verdana, Geneva, sans-serif;
}

a {
    color: var(--red);
}

hr.rule {
    border: none;
    border-top: 1px solid var(--rule);
    margin: 18px auto;
    max-width: 1100px;
}

/* --- Kopf --- */

.kopf {
    text-align: center;
    padding-top: 24px;
}

.kopf img {
    max-width: 100%;
    height: auto;
}

.kopf h1 {
    font-family: "Viner Hand ITC", "Enviro", "Brush Script MT", cursive;
    font-size: 40px;
    font-weight: normal;
    color: var(--red);
    margin: 14px 0 4px;
}

.kopf p {
    font-size: 12px;
    margin: 0;
}

/* --- Jahres-Filter --- */

.jahre {
    text-align: center;
    margin: 18px 0 26px;
}

.jahre button {
    background-color: var(--red);
    border: none;
    border-radius: 8px;
    color: white;
    font-family: inherit;
    font-size: 14px;
    padding: 10px 22px;
    margin: 4px 6px;
    cursor: pointer;
}

.jahre button:hover {
    background-color: #b30000;
}

.jahre button[aria-pressed="true"] {
    background-color: var(--ink);
}

/* --- Bilderwand --- */

.wand {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
    gap: 26px;
}

.bild {
    margin: 0;
    background: var(--mat);
    padding: 14px 14px 10px;
    border: 1px solid var(--rule);
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.35);
    cursor: pointer;
}

.bild img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid #999;
}

.bild .schild {
    text-align: center;
    padding-top: 10px;
}

.bild .titel {
    font-family: "Viner Hand ITC", "Enviro", "Brush Script MT", cursive;
    font-size: 22px;
    color: var(--red);
    line-height: 1.2;
}

.bild .datum {
    font-size: 10px;
    color: #555;
    padding-top: 4px;
}

/* --- Lightbox --- */

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    z-index: 10;
    text-align: center;
}

.lightbox.auf {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.lightbox img {
    max-width: 92vw;
    max-height: 76vh;
    border: 8px solid var(--mat);
}

.lightbox .titel {
    font-family: "Viner Hand ITC", "Enviro", "Brush Script MT", cursive;
    font-size: 26px;
    color: #ffffff;
    margin-top: 14px;
}

.lightbox .datum {
    font-size: 11px;
    color: #cccccc;
    margin-top: 4px;
}

.lightbox .zaehler {
    font-size: 11px;
    color: #888888;
    margin-top: 10px;
}

.lightbox button {
    position: absolute;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 44px;
    line-height: 1;
    cursor: pointer;
    padding: 10px 18px;
}

.lightbox button:hover {
    color: var(--red);
}

.lightbox .zu {
    top: 6px;
    right: 10px;
    font-size: 34px;
}

.lightbox .zurueck {
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox .vor {
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
}

/* --- Fuss --- */

.fuss {
    text-align: center;
    font-size: 11px;
    margin-top: 30px;
}

/* --- kleinere Schirme --- */

@media (max-width: 860px) {
    .wand {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .wand {
        grid-template-columns: 1fr;
    }

    .kopf h1 {
        font-size: 30px;
    }

    .lightbox button {
        font-size: 32px;
    }
}
