/* Placeholder theme until the design track (S9): readable, nothing more. */
body {
    margin: 0 auto;
    max-width: 42rem;
    padding: 1rem;
    font-family: Georgia, serif;
    line-height: 1.6;
}

nav a {
    margin-right: 1rem;
}

article {
    hyphens: auto;
}

.articles {
    list-style: none;
    padding: 0;
}

.teaser {
    font-style: italic;
}

figure.media-image {
    margin: 1.5rem 0;
}

figure.media-image img,
.media-gallery img {
    display: block;
    max-width: 100%;
    height: auto;
}

figcaption {
    font-size: 0.9em;
    font-style: italic;
}

.media-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(12rem, 45%), 1fr));
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.media-gallery img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.lightbox-dialog {
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    max-height: 100vh;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgb(0 0 0 / 92%);
}

.lightbox-dialog::backdrop {
    background: rgb(0 0 0 / 92%);
}

.lightbox-dialog[open] {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-dialog img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.lightbox-dialog button {
    position: absolute;
    border: 0;
    padding: 0.5rem 1rem;
    background: rgb(0 0 0 / 50%);
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

.lightbox-close {
    top: 0.5rem;
    right: 0.5rem;
}

.lightbox-previous {
    top: 50%;
    left: 0.5rem;
}

.lightbox-next {
    top: 50%;
    right: 0.5rem;
}
