/* ------------------  Page Nav ------------------ */
.page_nav {
    margin: 40px 0;
}
.page_nav h4 {
    margin: 0;
    font-size: 20px;
    color: black;
    font-family: 'Merriweather', serif;
    font-style: bold;
}
.page_nav a {
    font-size: 16px;
    color: black;
    font-family: 'Poppins', sans-serif;
}
.page_nav ul {
    margin: 0;
}
.page_nav li {
    margin: 0;
    list-style: disc;
}
.page_nav li:hover {
    text-decoration: underline;  
}


/* ------------------  Article Section ------------------ */
article {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: start;
    background-color: #F4F4F4;
}

article h2 {
    font-family: 'Roboto', sans-serif;
    font-size: 40px;
    margin: 0;
    font-weight: 500;
    color: black;
}
article p {
    font-family: 'Merriweather', serif;
    font-size: 18px;
    margin: 0;
    font-weight: 400;
    color: black;
}
.side_text {
    flex: 1 0 300px;
}

article sup {
    font-size: 12px;
    vertical-align: super;
    line-height: 0;
    margin-left: 2px;
    margin-right: 2px;
}

.paragraph_stack {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: start;
    flex-wrap: wrap;
    gap: 40px;
    margin: 0;
}

.paragraph_block h3 {
    font-family: 'Merriweather', serif;
    font-size: 30px;
    color: black;
    font-weight: 600;
}

.paragraph_block p {
    font-family: 'Merriweather', serif;
    font-size: 18px;
    color: black;
    font-weight: 400;
    margin-top: 20px;
}

.paragraph_block ul, .paragraph_block ol {
    color: black;
}

.paragraph_block li {
    font-family: 'Merriweather', serif;
    font-size: 18px;
    color: black;
    font-weight: 400;
    margin-top: 20px;
}

.image_container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px 40px;
    margin: 40px 20px;
}
.image_block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
}
.story_image {
    height: auto;
    width: min(600px, 90vh);
    max-width: 90vw !important;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0px 0px 6px 2px rgba(0, 0, 0, 0.3);
}

.story_image_wide {
    width: 100%;
    height: auto;
    max-width: min(650px, 90vw);
    border-radius: 10px;
    box-shadow: 0px 0px 6px 2px rgba(0, 0, 0, 0.3);
}

.story_image_portrait {
    width: auto;
    height: 100%;
    max-width: min(360px, 90vw);
    border-radius: 10px;
    box-shadow: 0px 0px 6px 2px rgba(0, 0, 0, 0.3);
}

.image_mid_small {
    width: min(400px, 90vh);
}

.image_mid {
    width: min(550px, 90vh);
}

.image_narrow {
    max-width: min(400px, 90vw);
    max-height: min(500px, 90vh);
}

.image_super_narrow {
    max-width: min(300px, 90vw);
    max-height: min(400px, 90vh);
}

.side_image {
    margin: 20px 0 20px 0;
}

.caption {
    font-family: 'Merriweather', serif;
    font-size: 16px;
    color: rgb(40, 40, 40);
    font-weight: 400;
    margin-top: 0;
    text-align: center;
    max-width: 600px;
    font-style: italic;
}
figure {
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}
figcaption {
    font-family: 'Merriweather', serif;
    font-size: 16px;
    color: rgb(30, 30, 30);
    font-weight: 400;
    margin-top: 5px;
    text-align: center;
    max-width: 600px;
    font-style: italic;
}

.image_ref_link {
    font-family: 'Merriweather', serif;
    color: rgb(40, 40, 40);
    font-weight: 400;
    margin-top: 20px;
}
.image_ref_link:visited {
    color: rgb(40, 40, 40);
}

/* ------------------  References Section ------------------ */
#references_block {
    margin-top: 40px;
}

#references_block h4 {
    font-family: 'Merriweather', serif;
    font-size: 18px;
    color: black;
    font-weight: 600;
    margin-top: 40px 0 0 0;
}
#references_block li {
    font-family: 'Merriweather', serif;
    font-size: 14px;
    color: black;
    padding: 3px 0;
}
#references_block a {
    font-family: 'Merriweather', serif;
    font-size: 14px;
    text-decoration: underline;
    color: black;
    overflow-wrap: break-word;
}