:root {
    font-family: Georgia, ui-serif, serif;
    text-align: center;
    background: black;
    color: white;
}

:link, :visited {
    color: #f90;
}

body, figure { margin: 0; }
img { max-width: 100%; }

footer, h1, h2, p {
    margin: 1rem;
}

h1, h2 { font-weight: normal; }
h1 { font-size: min(4em, 7vh); }
h2 { font-size:  min(3em, 6.5vh); }
footer, p  {
    font-size:  min(2em, 6vh);
    text-wrap: balance;
}
footer small { font-size: 1em; }

figure > a, figure > a > picture, figure > a > picture > img {
    display: block;
}

figure { position: relative; }
figcaption {
    position: absolute;
    right: 0;
    bottom: 0em;
    left: 0;
    font-family: "Helvetica Neue", Helvetica, serif;
    font-weight: bold;
    font-size: 0.75em;
    padding: 0.25em;
}
@media (pointer: none) or (pointer: coarse) {
    figcaption {
        background: rgba(0, 0, 0, 0.75);
        color: rgba(255, 255,255, 0.75);
    }
}
@media (pointer: fine) {
    figcaption {
        background: transparent;
        color: transparent;
    }
    figure:hover figcaption {
        background: rgba(0, 0, 0, 0.75);
        color: rgba(255, 255,255, 0.75);
    }
}

/* Small mobile screens */

section {
    display: grid;
    grid-template-columns: repeat(var(--columns), auto);
    --columns: 1;
}

section.five-by-seven, section.panoramas {}
section.five-by-four, section.cinematics {
    --columns: 3;
}
section.three-by-four,
section.four-by-three,
section.four-by-five,
section.nine-by-sixteen,
section.squares {
    --columns: 2;
}

/* Big mobile screens */

@media (min-width: 405px) {
    section.three-by-four {}
    section.four-by-three {}
    section.four-by-five {}
    section.five-by-four {}
    section.five-by-seven {}
    section.nine-by-sixteen {}
    section.cinematics {}
    section.panoramas {}
    section.squares {}
}

@media (min-width: 700px) {
    figcaption {
        font-size: 1.25em;
        padding: 1em;
    }
    section.squares { --columns: 5; }
}
