.header-nav {
    max-width: 2000px;
    margin: 10px;
    padding: 0 10px;
}

.header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    background-color: #333333;
    padding: 10px 15px;
    border: 2px solid #000000;
    box-sizing: border-box;
}

.site-name {
    color: #ffffff;
    font-size: 20px;
    font-weight: bold;
    margin-right: 10px;
    font-family: "Courier New", Courier, monospace;
    flex-shrink: 0;
}

.nav-link {
    background-color: #cccccc;
    color: #000000;
    padding: 6px 14px;
    text-decoration: none;
    font-size: 14px;
    border: 2px solid #000000;
    font-family: "New Century Schoolbook", serif;
    display: inline-block;
}

.nav-link:hover {
    background-color: #ffffff;
    color: #000000;
}

/* DROPDOWN STYLES */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #cccccc;
    min-width: 160px;
    border: 2px solid #000000;
    z-index: 1;
    top: 100%;
    left: 0;
    box-sizing: border-box;
}

.dropdown-content a {
    color: #000000;
    padding: 12px 12px;
    text-decoration: none;
    display: block;
    font-family: "New Century Schoolbook", serif;
    font-size: 14px;
    border-bottom: 1px solid #000000;
    box-sizing: border-box;
    min-height: 44px;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: #ffffff;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* BODY STYLES */
body {
    font-family: "New Century Schoolbook", serif;
    background-color: #202020;
    color: #000000;
    background-image: url("background_1.jpg");
    background-repeat: repeat;
    margin: 0;
    padding: 0;
}

/* MAIN CONTENT CONTAINER */
.content-container {
    max-width: 2000px;
    margin: 10px;
    padding: 0 10px;
}

/* MERGED CONTENT AREA */
.content-area {
    width: 100%;
    box-sizing: border-box;
    background-color: #FFFFFF;
    background-image: url("background_z.jpg");
    padding: 20px;
    border: 1px solid #AAAAAA;
    box-shadow: 2px 2px 5px #0000001a;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

/* LIST STYLES */
.list {
    width: 32px;
    height: 32px;
    display: block;
    cursor: pointer;
    margin-bottom: 10px;
    flex-shrink: 0;
}

.list:active {
    opacity: 0.7;
}

/* MAIN CONTENT WRAPPER */
.main-content-wrapper {
    flex: 1;
    min-width: 0;
    width: 100%;
}

.content-area h1,
.content-area h2 {
    color: #000000;
    font-size: 22px;
    border-bottom: 2px solid #777777;
    padding-bottom: 5px;
    margin-bottom: 15px;
    word-wrap: break-word;
}

.content-area h3 {
    color: #000000;
    font-size: 20px;
    border-bottom: 2px solid #DDDDDD;
    padding-bottom: 5px;
    margin-bottom: 15px;
    word-wrap: break-word;
}

.content-area p {
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 16px;
    word-wrap: break-word;
}

.content-area p2 {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 5px;
    word-wrap: break-word;
}

.content-area img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 20px auto;
    box-shadow: 7px 7px 1px #00000033;
}

.content-area ul {
    margin-left: 20px;
    padding-right: 10px;
}

.content-area li {
    margin-bottom: 8px;
    word-wrap: break-word;
}

/* SIDE MENU */
.side-menu {
    background-color: #202A44;
    padding: 15px;
    border: 1px solid #777777;
    width: 200px;
    flex-shrink: 0;
    font-size: 18px;
}

.side-menu h2 {
    color: #ffffff;
    border-bottom: 2px solid #777777;
    padding-bottom: 5px;
    margin-bottom: 15px;
    margin-top: 0;
    font-size: 26px;
}

.side-menu ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.side-menu li {
    margin-bottom: 8px;
}

.side-menu a {
    color: #ffffff;
    text-decoration: none;
    display: block;
    padding: 5px 8px;
    background-color: #202A44;
    border: 1px solid #202A44;
}

.side-menu a:hover {
    border-color: #ffffff;
}

/* NAVIGATION BUTTONS */
.gallery-nav-buttons {
    display: flex;
    justify-content: flex-end;
    padding: 0 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.gallery-nav-button {
    background-color: #202A44;
    color: #FFFFFF;
    padding: 10px 12px;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    border: 2px solid #656565;
    cursor: pointer;
    letter-spacing: 1px;
    min-height: 44px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.gallery-nav-button:hover {
    background-color: #ffffff;
    color: #202A44;
    border-color: #202A44;
}

/* IMAGE GRID */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
    padding: 10px;
}

.gallery-item {
    background-color: #f3f3f3;
    box-shadow: 2px 2px 1px #00000033;
    padding: 10px 15px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.gallery-item img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 10px;
    cursor: zoom-in;
    transition: all 0.3s ease-in-out;
    box-sizing: border-box;
    object-fit: cover;
}

.gallery-item h3 {
    color: #000000;
    font-size: 1.1em;
    margin-top: 0;
    margin-bottom: 5px;
    border-bottom: 1px dashed #BBBBBB;
    padding-bottom: 3px;
    word-wrap: break-word;
}

.gallery-item p {
    font-size: 0.9em;
    line-height: 1.4;
    margin-bottom: 5px;
    word-wrap: break-word;
}

.gallery-item .context {
    font-style: italic;
    color: #555555;
    font-size: 0.85em;
}

/* FULL SIZED IMAGE STYLES */
.gallery-item img.full-size {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 95vw;
    max-height: 95vh;
    width: auto;
    height: auto;
    object-fit: contain;
    z-index: 10001;
    box-shadow: 0 0 40px #000000e6;
    cursor: zoom-out;
}

/* OVERLAY TO DIM BACKGROUND */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000cc;
    z-index: 10000;
    cursor: pointer;
}

/* UTILITY CLASSES */
.center {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
}

/* MODAL STYLES */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000b3;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    color: #ffffff;
    background-color: #202A44;
    border: 3px solid #202A44;
    padding: 20px;
    width: 90%;
    max-width: 400px;
    box-shadow: 5px 5px 10px #00000033;
    text-align: center;
}

.modal-content h2 {
    color: #ffffff;
    border-bottom: 2px solid #777777;
    padding-bottom: 5px;
    margin-top: 0;
    margin-bottom: 15px;
}

.modal-buttons button {
    background-color: #202A44;
    color: #ffffff;
    border: 2px solid #202A44;
    padding: 10px 20px;
    margin: 0 5px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
}

.modal-buttons button:hover {
    border-color: #ffffff;
}

    /* ORIGINAL CONTENT AREA */
    .content-area-og {
        width: 100%;
        box-sizing: border-box;
        background-color: #FFFFFF;
        background-image: url("background_z.jpg");
        padding: 15px;
        border: 1px solid #AAAAAA;
        margin-top: 15px;
    }

    .content-area-og h1, .content-area-og h2 {
        color: #000000;
        font-size: 24px;
        border-bottom: 2px solid #DDDDDD;
        padding-bottom: 5px;
        margin-bottom: 15px;
        word-wrap: break-word;
    }

    .content-area-og h3 {
       color: #000000;
       font-size: 20px;
       padding-bottom: 5px;
        margin-bottom: 15px;
        word-wrap: break-word;
    }

    .content-area-og p {
        line-height: 1.6;
        margin-bottom: 15px;
        word-wrap: break-word;
    }

    .content-area-og p2 {
        font-size: 12px;
        line-height: 1.6;
        margin-bottom: 5px;
        word-wrap: break-word;
    }

    .content-area-og img {
        max-width: 100%;
        height: auto;
        display: block;
        margin: 15px auto;
        box-shadow: 7px 7px 1px #00000033;
        object-fit: cover;
    }

/* MOBILE BREAKPOINT */
@media (min-width: 600px) {
    .header-nav {
        margin: 20px 20px 0 20px;
        padding: 0 15px;
    }

    .site-name {
        font-size: 20px;
    }

    .content-container {
        margin: 20px 20px;
        padding: 0 15px;
    }

    .content-area {
        padding: 20px;
        flex-direction: row;
    }

    .content-area h1,
    .content-area h2 {
        font-size: 26px;
    }

    .content-area h3 {
        font-size: 26px;
    }

    .content-area p {
        font-size: 18px;
    }

    .side-menu {
        width: 200px;
        font-size: 18px;
    }

    .side-menu h2 {
        font-size: 26px;
    }

    .gallery-nav-button {
        font-size: 15px;
    }

    .image-gallery {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
        padding: 15px;
    }

    .gallery-item {
        padding: 5px 20px;
    }

    .content-area-og {
        padding: 0 20px;
    }

    .content-area-og h1, .content-area-og h2 {
        font-size: 30px;
    }

    .content-area-og img {
        max-width: 600px;
        max-height: 600px;
        width: 300px;
        height: 300px;
    }
}