*, *::after, *::before {
    box-sizing: inherit;
    color: inherit;
}

body {
    color: #101010;
    background: #f2f2f2 center 0;
    font-size: 12px;
    box-sizing: border-box;
}

nav {
    text-align: center;
}

nav a {
    text-decoration: none;
}

footer {
    font: .75em Verdana;
    padding-right: 2em;
    padding-left: 2em;
}

.maincontent {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.title {
    font-size: 1em;
    font-family: "Trebuchet MS", Verdana, sans-serif;
    font-weight: bold;
    margin-bottom: 3em;
}

.gallery {
}

.category {
    display: flex;
    flex-direction: column;
    padding-bottom: 2em;
}

.category__container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);

    grid-gap: 1.4em;
    grid-auto-rows: minmax(160px, auto);
    padding: 0 2em 2em;
}

.category__title {
    text-align: center;
    font-family: Futura, sans-serif; /* TODO "Open sans" */
    color: #3c3c3c;
    margin-bottom: 1em;
}

.category__description {
    text-align: center;
    padding: 0 2em .5em;
    font-family: helvetica, arial, sans-serif; /* TODO "Lato", "Open Sans", "HelveticaNeue", */
    font-weight: 400;
    line-height: 1.75em;
    color: #676767;
}

.category__item {
    display: flex;
    justify-content: center;
}

.image__link {
    width: 160px;
    height: 160px;
    overflow: hidden;
}

.imagedisplay {
    border: 1px solid silver;
    padding: 1em 1em 2em 1em;
    background-color: white;
    margin: 0 auto;
    text-align: center;
}

.imagedisplay__image {
    max-width: 100%;
    max-height: 80vh;
}

.imagedisplay__infos {
    text-align: center;
}

.imagedisplay__info {
    cursor: pointer;
}

.imagedisplay__info__popup {
    font-size: 10px;
    font-family: "Trebuchet MS", sans-serif;
    line-height: 14px;
    background-color: #fff;
    text-align: left;
    visibility: hidden;
    padding: 10px;
    position: absolute;
    top: 125px;
    left: 50%;
    width: 400px;
    height: 300px;
    margin-left: -200px;
    overflow-y: scroll;
    display: none;
    z-index: 2;
}


@media only screen and (min-width: 750px) {
    body {
        font-size: 16px;
    }

    .category__container {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media only screen and (min-width: 1120px) {
    .category__container {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* Je te vois romain */