@font-face {
    font-family: "Ubuntu";
    font-style: normal;
    font-weight: normal;
    src: url("/ubuntu-r.woff2") format("woff2");
}
@font-face {
    font-family: "Ubuntu";
    font-style: normal;
    font-weight: bold;
    src: url("/ubuntu-b.woff2") format("woff2");
}

body {
    background: #222;
    color: #fff;
    font-family: "Ubuntu", sans-serif;
    line-height: 1;
    margin: 0;
    --image-columns: 5;
    --image-size: 192px;
}

a {
    text-decoration: none;
    color: inherit;
}

a:hover {
    text-decoration: underline;
}

#menu {
    display: none;
}

#content {
    display: contents;
}

.container {
    padding: 8px;
    box-sizing: content-box;
    max-width: calc((var(--image-size) + 8px) * var(--image-columns) - 8px);
    margin: auto;
}

.year-nav {
    display: flex;
    justify-content: space-between;
    margin: 8px 0;
}

.year-nav a {
    color: #fff;
    opacity: 0.5;
}

footer .year-nav {
    margin: 24px 0;
}

footer .imprint {
    margin: 16px 0;
    opacity: 0.4;
    display: flex;
    justify-content: space-between;
}

.title .name {
    color: #487473;
    font-weight: bold;
    font-size: min(8vw, 4rem);
    display: inline-block;
    margin-top: 8px;
}

.title h1 {
    font-size: min(10vw, 6rem);
    position: relative;
    white-space: pre-line;
    margin: 0;
    pointer-events: none;
}

.title h1 .year {
    position: absolute;
    bottom: 0;
    right: 0;
    font-size: 2.25em;
    line-height: 0.85;
    opacity: 0.2;
}

#content .title p {
    font-size: clamp(1rem, 2.5vw, 2rem);
    margin: 1em 0 1.5em;
}

#img-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

#img-container a {
    position: relative;
}

#img-container img {
    width: var(--image-size);
    height: var(--image-size);
    object-fit: cover;
    border-radius: 8px;
    border: none;
    margin: 0;
    display: block;
}

#img-container img:hover {
    outline: 2px solid #fff;
}

#img-container .year-label {
    position: absolute;
    right: 0;
    bottom: 0;
    margin: 12px;
    font-size: calc(var(--image-size) / 4);
    font-weight: bold;
    opacity: 0.75;
    pointer-events: none;
}

#TB_HideSelect {
    display: none;
}

#TB_overlay {
    background: #000c;
    position: fixed;
    inset: 0 0 0 0;
    width: initial !important;
    height: initial !important;
    z-index: 100;
}

#TB_window {
    width: auto !important;
    height: auto !important;
    position: fixed;
    top: 50% !important;
    right: initial !important;
    left: 50% !important;
    transform: translate(-50%, -50%);
    z-index: 102;
}

#TB_window img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100vw;
    max-height: 100vh;
}

#TB_caption {
    position: absolute;
    bottom: 1em;
    left: 1em;
    font-size: 2em;
}

#TB_secondLine {
    position: absolute;
    inset: 0 0 0 0;
    pointer-events: none;
    padding: 1em;
    text-align: center;
}

#TB_prev,
#TB_next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: all;
    font-size: 0;
}

#TB_prev {
    left: 0;
    --label: "←";
}

#TB_next {
    right: 0;
    --label: "→";
}

#TB_closeWindow {
    position: absolute;
    top: 0;
    right: 0;
    pointer-events: all;
    --label: "×";
}

#TB_prev a,
#TB_next a,
#TB_closeWindow a {
    visibility: hidden;
}

#TB_prev a::before,
#TB_next a::after,
#TB_closeWindow a::after {
    content: var(--label);
    visibility: visible;
    padding: 1em;
    display: inline-flex;
    align-items: center;
    font-size: 24px;
    text-shadow: 1px 1px #000;
}

#TB_prev a::before,
#TB_next a::after {
    min-height: 50vh;
}
#TB_prev a:hover::before,
#TB_next a:hover::after,
#TB_closeWindow a:hover::after {
    background: #0004;
}

@media (max-width: 1007px) {
    body {
        --image-columns: 4;
    }
}

@media (max-width: 807px) {
    .container {
        --image-columns: 3;
    }
}

@media (max-width: 607px) {
    .container {
        --image-columns: 2;
    }
}

@media (max-width: 407px) {
    .container {
        --image-size: calc(50vw - 12px);
    }
}
