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

.header {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: #333333;
    padding: 10px 18px;
    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;
}

.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;
}

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

.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;
    /* margin: 0;
    padding: 0; */
    background-image: url("background_1.jpg");
    background-repeat: repeat;
}

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

/* 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;
    gap: 10px;
    align-items: flex-start;
}

/* List Styles */
.list {
    width: 32px;
    height: 32px;
    display: block;
    cursor: pointer;
    margin-bottom: 10px;
}

.list:active {
    opacity: 0.7;  /* Visual feedback when clicked */
}

/* MAIN CONTENT WRAPPER */
.main-content-wrapper {
    flex: 1;
}

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

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

.content-area p {
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 18px;
}

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

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

.content-area ul {
    margin-left: 20px;

}

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

/* SIDE MENU SECTION */
.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;
}

.gallery-nav-button {
    background-color: #202A44;
    color: #FFFFFF;
    padding: 8px 10px;
    text-decoration: none;
    font-size: 15px;
    font-weight: bold;
    border: 2px solid #656565;
    cursor: pointer;
    letter-spacing: 1px;
}

.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(280px, 1fr));
    gap: 20px;
    padding: 15px;
}

.gallery-item {
    background-color: #f3f3f3;
    box-shadow: 2px 2px 1px #00000033;
    padding: 5px 20px;
    display: flex;
    flex-direction: column;
}

.gallery-item img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 10px;
}

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

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

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

/* Existing .gallery-item img  */
.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;
    max-width: 400px;
    max-height: 300px;
    object-fit: cover;
}

/* Styles for when the image is full-sized */
.gallery-item img.full-size {
    position: fixed;
    top: 48%;
    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;
    width: 50%;
}

/* 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;
    flex-shrink: 900;
    background-color: #FFFFFF;
    background-image: url("background_z.jpg");
    padding: 0 20px;
    border: 1px solid #AAAAAA;
    margin-top: 15px;
}

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

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

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

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

.content-area-og img {
    max-width: 600px;
    max-height: 600px;
    width: 100%;
    height: auto;

    display: block;
    margin: 15px auto;
    box-shadow: 7px 7px 1px #00000033;
    object-fit: cover;
    width: 300px;
    height: 300px;
}

/* RESPONSIVE ADJUSTMENTS */
@media (max-width: 620px) {
    .header-nav {
        margin-left: 10px;
    }

    .content-container {
        margin: 20px 10px;
    }

    .content-area {
        flex-direction: column;
    }

    .side-menu {
        width: 100%;
    }

    .dropdown {
        width: 90%;
    }

    .dropdown-content {
        width: 100%;
    }
}