html,
body,
p,
h1 {
    font-family: Urbanist, sans-serif;
    font-weight: 350;
}
h1 {
    font-weight: 650;
}
header,
main {
    max-width: 880px;
    width: 90vw;
    margin: 0 auto;
}

header img {
    display: block;
    width: 100%;
    object-fit: cover;
    max-height: 400px;
}

main p {
    font-size: 20px;
    text-align: justify;
}

footer {
    text-align: center;
}

hr {
    max-width: 300px;
    margin: 0 auto;
}

nav {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

nav li {
    display: inline-block;
    margin: 0 10px;
}

nav a,
header a {
    text-decoration: none;
    color: #000;
    font-weight: 650;
}

nav a:hover,
nav a.active {
    color: #004088;
}

/* Gallery styles */
.gallery {
    margin: 0.75rem 0;
}

.gallery img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
    transition: opacity 0.2s;
}

.gallery a:hover img {
    opacity: 0.85;
}

/* 6-column grid (Nests) */
.gallery-6col {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.1rem;
}

/* 4-column grid (Guardians) */
.gallery-4col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.1rem;
}

/* Uniform aspect ratio grid (Confronting Resilience) */
.gallery-uniform {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.1rem;
}

.gallery-uniform a {
    aspect-ratio: 1;
    overflow: hidden;
}

.gallery-uniform img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Paired layout (Convent Compositions) */
.gallery-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.1rem;
}

/* Stigmata: image + text side by side */
.section-split {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    align-items: start;
}

.section-split .gallery {
    margin: 0;
}

.section-split .gallery img {
    width: 100%;
    height: auto;
}

.section-split p:first-of-type {
    margin-top: 0;
}

/* Responsive */
@media (max-width: 700px) {
    .gallery-6col {
        grid-template-columns: repeat(3, 1fr);
    }
    .gallery-4col {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-uniform {
        grid-template-columns: repeat(3, 1fr);
    }
    .gallery-pair {
        grid-template-columns: 1fr;
    }
    .section-split {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 400px) {
    .gallery-6col,
    .gallery-uniform {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-4col {
        grid-template-columns: repeat(2, 1fr);
    }
}

main section h1 {
    font-size: 1.5rem;
}

/* Collapsible sections */
details {
    margin-top: 0;
}

details summary {
    cursor: pointer;
    color: #004088;
    font-size: 20px;
    font-family: Urbanist, sans-serif;
    list-style: none;
}

details summary::-webkit-details-marker {
    display: none;
}

details summary::before {
    content: "Read more";
}

details[open] summary {
    display: none;
}
