.galerie {
    display: flex;
    justify-content: center;
    align-content: flex-start;
    flex-wrap: wrap;
    padding-bottom: 3em;
}

.tile {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 20em;
    height: 20em;
    padding-bottom: 5em;
}

.tile a {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    align-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: #5F0707;
}

.tile a img {
    display: block;
    margin-top: auto;
    margin-bottom: auto;
    height: auto;
    width: auto;
    object-fit: contain;
    max-height: 17em;
    max-width: 17em;
}

.tile a p {
    margin: 0;
    padding: 0;
    font-size: 1.3em;
    max-width: 80%;
    text-align: center;
}

@media screen and (max-width: 100em) {
    .tile {
        width: 15em;
        height: 15em;
    }

    .tile a img {
        max-height: 12em;
        max-width: 12em;
    }

    .tile a p {
        font-size: 1em;
    }
}

@media screen and (max-width: 70em) {
    .tile {
        width: 10em;
        height: 10em;
    }

    .tile a img {
        max-height: 8em;
        max-width: 8em;
    }

    .tile a p {
        font-size: 0.8em;
    }
}

@media screen and (max-width: 40em) {
    .tile {
        width: 8em;
        height: 8em;
    }

    .tile a img {
        max-height: 6.5em;
        max-width: 6.5em;
    }

    .tile a p {
        font-size: 0.7em;
    }
}
