* {
    margin: 0;
    padding: 0;
}

html,
body {
    font-family: 'EB Garamond', serif;
}

body {
    background-color: #eee;
}

a {
    color: #ddd;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

article {
    display: flex;
    flex-direction: column;
    margin: 0.5rem;
    position: relative;
    transition: transform 1s;
    transform: scale(1);
    z-index: 1;
}

article a {
    display: none;
}

article[data-focussed] {
    transform: scale(1.25);
    z-index: 2;
}

article[data-attribution]:not([data-focussed]) a {
    display: block;
}

article[data-attribution]:not([data-focussed]) .overlay {
    opacity: 1;
}

footer {
    padding: 5rem 2rem 2rem;
}

img {
    width: 100%;
}

input {
    padding: 0.5rem;
}

main {
    padding: 0 1.5rem;
    position: relative;
}

nav {
    align-items: center;
    display: flex;
    justify-content: space-between;
    padding: 2rem;
}

ul {
    list-style: none;
}

.grid-item {
    width: 100%;
}

@media (min-width: 600px) {
    .grid-item {
        width: 50%;
    }
}

@media (min-width: 900px) {
    main {
        padding: 0 1rem 0 1.5rem
    }

    .grid-item {
        width: 33%;
    }
}

#spinner {
    animation: rotation 2s linear infinite;
    border: 1px solid #ddd;
    border-width: 1px 1px 1px 0;
    border-radius: 100%;
    height: 50px;
    left: calc(50% - 25px);
    position: absolute;
    top: 0;
    width: 50px;
    z-index: 4;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.overlay {
    background: rgba(0, 0, 0, 0.7);
    color: #ddd;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: calc(100% - 1rem);
    justify-content: flex-end;
    opacity: 0;
    padding: 0.5rem;
    position: absolute;
    transition: opacity 1s;
    width: calc(100% - 1rem);
}