/* Homepage thumbnails */
img:not(#currentPicture) {
    display: block;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
    width: 90%;
    height: auto;
    box-sizing: border-box;
}

div.description {
    text-align: center;
    margin-bottom: 2em;
}

body {
    background-color: #ffffff;
    font-size: 14px;
    color: #666666;
    font-family: 'Antic Didone', serif;
    margin: 1em;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

a {
    color: #666666;
    text-decoration: underline;
}

span.copyright {
    float: right;
    font-size: 1em;
}

span.pager {
    cursor: pointer;
}

span.header {
    font-size: 1em;
    font-family: 'Antic Didone', serif;
    float: left;
    position: relative;
    font-weight: bold;
}

span.sections {
    display: block;
    font-size: 1em;
    font-family: 'Antic Didone', serif;
    position: relative;
    margin-left: 0;
    padding: 1em 0;
    width: 100%;
    font-weight: bold;
}

/* Two main columns */

.main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 2em;
}

.column {
    min-width: 0;
}

table {
    height: 3em;
    width: 100%;
}

th, td {
    width: 33%;
    vertical-align: top;
}

#overlay {
    position: fixed;
    display: none;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.75);
    z-index: 2;
    cursor: pointer;
}

#overlayText {
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 50px;
    color: white;
    transform: translate(-50%,-50%);
    -ms-transform: translate(-50%,-50%);
    display: none;
}

.column .description img {
    width: 100%;
    height: auto;
    padding: 0;
}


@media (max-width: 600px) {
    .main-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

#currentPicture {
    display: block;
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
    padding: 0;
    margin: 1em auto;
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1em;
}

.gallery-header .description {
    margin-bottom: 0;
}

.project-title {
    text-align: center;
    margin-top: 1em;
}

body:has(#currentPicture) {
    max-width: none;
    margin: 1em;
}
