body {
    font-family: "Garamond", "EB Garamond", "Baskerville", "Georgia", serif;
    background-color: #ffffff;
    color: #1a1a1a;
    line-height: 1.65;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 3rem auto 5rem auto;
    padding: 0 1.5rem;
}

h2 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #e2e2dc;
    padding-bottom: 0.25rem;
}

p {
    font-size: 1.15rem;
    margin: 0 0 1.5rem 0;
}

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

li {
    font-size: 1.15rem;
}

a {
    color: #8b0000;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

a:hover {
    color: #1a1a1a;
    border-bottom-color: #1a1a1a;
}

.navbar {
    border-bottom: 1px solid #e2e2dc;
    background-color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    font-family: "Montserrat", "Helvetica Neue", "Arial", sans-serif;
}

.nav-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.05rem;
    text-transform: uppercase;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: #555555;
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-links a:hover {
    color: #8b0000;
}

.nav-links a.active {
    color: #1a1a1a;
    font-weight: 600;
}

.footer {
    font-family: "Montserrat", "Helvetica Neue", "Arial", sans-serif;
    border-top: 1px solid #e2e2dc;
    margin-top: 5rem;
}

.footer-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 1.5rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.5rem;
    color: #555555;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
}

.footer-container p {
    margin: 0;
    font-size: 0.8rem;
}

.footer-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.footer-links a {
    font-size: 0.8rem;
    color: #555555;
}

.footer-links a:hover {
    color: #8b0000;
}

@media (max-width: 480px) {
    .about-profile {
        flex-direction: column;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Navigation Layout */
.navbar {
    border-bottom: 1px solid var(--border-color, #e0e0e0);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    color: var(--text-color, #222222);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--muted-color, #666666);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

/* Hover State */
.nav-links a:hover {
    color: var(--link-color, #0066cc);
}

/* Active Page State */
.nav-links a.active {
    color: var(--text-color, #222222);
    font-weight: 600;
}

/* Footer Layout */
.footer {
    border-top: 1px solid var(--border-color, #e0e0e0);
    margin-top: 5rem; /* Pushes the footer away from page content */
}

.footer-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 1.5rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--muted-color, #666666);
}

.footer-container p {
    margin: 0;
}

/* Footer Navigation Links */
.footer-links {
    list-style: none;
    display: flex;
    gap: 1.25rem;
    margin: 0;
    padding: 0;
}

.footer-links a {
    text-decoration: none;
    color: var(--muted-color, #666666);
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--link-color, #0066cc);
}

/* Responsive adjustments for tiny mobile screens */
@media (max-width: 400px) {
    .footer-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Image Grid */

.image-grid {
    /* Sets the target width for columns; browser adds or subtracts columns based on screen width */
    columns: 3 200px;
    column-gap: 1.25rem;
    margin-top: 1.25rem;
    margin-bottom: 2rem;
}

.grid-item {
    border-radius: 4px;
    margin-bottom: 1.25rem; /* Replaces row gap since column styling handles spaces vertically */
    break-inside: avoid; /* Prevents an individual image from snapping or splitting across two columns */
    overflow: hidden;
}

.grid-item img {
    width: 100%;
    height: auto; /* Allows the image to scale naturally based on its original dimension proportions */
    display: block;
    transition: opacity 0.2s ease;
}

.grid-item img:hover {
    opacity: 0.9;
}

.about-profile {
    display: flex;
    align-items: center;
    gap: 2.5rem; 
    margin: 3rem 0;
}

img.site-image {
    max-width: 200px;
    border-radius: 50%;
}

/* light box styling */
.image-grid .grid-item img {
    cursor: pointer;
    transition: opacity 0.2s ease-in-out;
}

.image-grid .grid-item img:hover {
    opacity: 0.85;
}

/* Lightbox overlay backdrop */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    
    /* Hidden by default */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Toggled on by JavaScript */
.lightbox-modal.active {
    opacity: 1;
    pointer-events: auto;
}

/* zoomed image style */
.lightbox-img {
    max-width: 90%;
    max-height: 85%;
    border-radius: 4px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.7);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.lightbox-modal.active .lightbox-img {
    transform: scale(1);
}

/* Close icon styling */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 45px;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    transition: color 0.2s ease;
}

.lightbox-close:hover {
    color: #ccc;
}

/* --- Lightbox Carousel Arrows --- */
.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    border: none;
    font-size: 30px;
    padding: 16px 20px;
    cursor: pointer;
    user-select: none;
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
    z-index: 100000;
}

.lightbox-arrow:hover {
    background-color: rgba(255, 255, 255, 0.9);
    color: #000;
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

/* Hide navigation arrows on small mobile devices to prevent layout cramping */
@media (max-width: 600px) {
    .lightbox-arrow {
        padding: 10px 14px;
        font-size: 20px;
    }
    .prev-btn { left: 5px; }
    .next-btn { right: 5px; }
}
