body {
    margin: 0;
    font-family: Georgia, serif;
    font-size: 24px;
    line-height: 1.7;
    background: #bbff99;
    color: #333;
}

header {
    background: #008000;
    color: white;
    text-align: center;
    padding:6px;
    margin-bottom:10px;
}

nav {
    background: #006600;
    text-align: center;
    padding: 12px;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 18px;
    font-weight: bold;
}

nav ul {
    list-style-type: none;
    display: flex;
    gap: 20px;
}


nav a.active {
    font-weight: bold;
    color: #0066cc;
}


h1 {
    text-align: center;
    margin: 6px 0 6px 0;
}

h2 {
   margin: 6px 0 6px 0;
}

h3 {
    margin-top: 30px;
}

hr.new {
  border: 4px solid #8da37b;
  border-radius: 5px;
  width:80%;
}

p {
    text-align: justify;
    margin-left: 12px;
    margin-right: 12px;
}


main::after {
    content: "";
    display: block;
    clear: both;
}

span.emp {
   font-weight:bold;
}

.hero {
    display: block;
    width: 100%;
    max-width: 1000px;
    margin: auto;
    border: 1px solid #777;
}

figure {
      max-width: 100%;
      width: fit-content; /* Keeps the figure width snapped to the image size */
      margin: 20px auto;
      padding: 10px;
      border: 1px solid #ccc;
      background-color: #bbff99;
      text-align: center;
    }

.img-pics figcaption {
    font-style: italic;
    font-size: 0.9em;
    text-align: center;
    margin-top: .5em;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(520px,1fr));
    gap: 30px;
    justify-items: center;
}

.img-left {
    float: left;
    width: 240px;
    height: auto;
    margin: 0 10px 0 10px;
    border:4px solid black;
    box-shadow: 0 0 8px rgba(0,0,0,.3);
    cursor: zoom-in;
    transition: transform .2s ease;
}

.img-right {
    float: right;
    width: 240px;
    height: auto;
    margin: 0 10px 0 10px;
    border: 4px solid black;
    box-shadow: 0 0 8px rgba(0,0,0,.3);
    cursor: zoom-in;
    transition: transform .2s ease;
}

.img-pics {
    float: left;
    width: 520px;
    margin: 0 20px 15px 0;
    border: 4px solid black;
    box-shadow: 0 0 8px rgba(0,0,0,.3);
}

.img-pics img {
    display: block;
    width: 100%;
    height: auto;
}

.family-photos {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 25px;
    margin: 25px 0;
}

.family-photos figure {
    text-align: center;
    margin: 0;
}

.family-photos img {
    width: 320px;
    border: 1px solid #888;
    padding: 4px;
    background: white;
}

.family-photos figcaption {
    margin-top: 6px;
    font-size: .9em;
}

ul {
    margin-left: 25px;
}

blockquote {
    margin-left: 30px;
    font-style: italic;
    color: #555;
}

.toc {
    background: #ccff99;
    border: 1px solid #ddd;
    padding: 20px;
    margin-bottom: 40px;
}

.toc ul {
    list-style-type: none;
    padding-left: 0;
}

.toc li {
    margin: 8px 0;
}

.toc a {
    text-decoration: none;
    color: #004d1a;
}

.toc a:hover {
    text-decoration: underline;
}

footer {
    margin-top: 4px;
    padding: 6px;
    background: #006600;
    color: white;
    text-align: center;
    font-size: 0.9em;
}

/*--------------------------------------------------------------*/
/* Explore the Site                                              */
/*--------------------------------------------------------------*/


.cards { /* Home Page Four Cards */
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 25px;
    text-align: center;
}


.cards-two { /* Documents Page Two Cards */
    max-width: 900px;
    margin: 10px auto 25px;
    text-align: center;
}


.card {
    flex: 1;
    border: 1px solid #8da37b;
    background: #fcfcf8;
    padding: 16px;
    text-align: center;
}

.card p {
    margin-top: 8px;
    margin-bottom: 0;
    text-align: center;
    line-height: 1.4;
    font-size: 0.95rem;
}

.card h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #2e5d34;
    text-align: center;
}

.card h3 a {
    color: #2e5d34;
    text-decoration: none;
}

.icon {
    font-size: 2.2rem;
    line-height: 1;
    margin-bottom: 8px;
    text-align: center;
}

@media (max-width: 800px) {
    .cards {
        flex-direction: column;
    }
}

/* ===========================================
   Document Cards
   =========================================== */

.doc-card {
    display: flex;
    gap: 16px;
    max-width: 1100px;
    margin: 30px auto;
    padding: 18px;
    align-items: flex-start;
    background: #fcfcf8;
    border: 1px solid #8da37b;
    border-radius: 8px;
    transition: box-shadow .2s;
}

.doc-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

.doc-thumb {
    width: 220px;
    height: auto;

    border: 1px solid #888;
    box-shadow: 2px 2px 6px rgba(0,0,0,.20);

    transition: transform .2s;
}

.doc-thumb:hover {
    transform: scale(1.03);
}

.doc-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.doc-info h3 {
    margin: 0 0 8px 0;
    line-height: 1.2;
    color: #2e5d34;
}

.doc-info p {
    margin-top: 0;
    margin-bottom: 18px;
    text-align: justify;
    color:#001a00;
}

.doc-links {
    font-weight: bold;
    margin-top: auto;
}

.doc-links a {
    margin-right: 25px;

    color: #006600;
    text-decoration: none;
}

.doc-links a:hover {
    text-decoration: underline;
} 

.doc-meta {
    font-size: .9em;
    color: #666;
    margin-bottom: 12px;
}   

/*--------------------------------------------------------------*/
/* Text / Story Pages                                            */
/*--------------------------------------------------------------*/

/*--------------------------------------------------------------*/
/* Text / Story Pages                                            */
/*--------------------------------------------------------------*/

body.story-page {
    background: #f8f8f2;
}

.story-page header {
    padding: 18px 20px;
}

.story-page header h1 {
    margin: 0 0 4px 0;
}

.story-page header p {
    margin: 2px 0;
    text-align: center;
}

.story-page main {
    max-width: 850px;
    margin: 0 auto;
    padding: 32px 24px 50px;
}

.story-page .story {
    background: white;
    padding: 26px 32px;
    border-radius: 8px;
}

.story-page .story p {
    margin: 0 0 18px 0;
}

.story-page .closing {
    text-align: center;
    font-weight: bold;
    margin-top: 30px;
}

@media (max-width: 700px) {

    .story-page main {
        padding: 20px 16px 40px;
    }

    .story-page .story {
        padding: 20px;
    }

    .story-page nav a {
        display: inline-block;
        margin: 4px 8px;
    }
}


