/* ===========================
   Root Colors & Global Styles
   =========================== */
:root {
    --blue: #0050A0;
    --gold: #F2C200;
    --light-blue: #E6F0FA;
    --header-grad-top: #003366;
    --header-grad-bottom: #001f3f;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 1.15rem; /* previously ~1rem */	
    margin: 0;
    padding: 0;
    background: var(--light-blue);
    color: #222;
}


/* ===========================
   Header (Rounded + Gradient + 3D)
   =========================== */
header {
    background: linear-gradient(to bottom, var(--header-grad-top), var(--header-grad-bottom));
    color: white;
    padding: 20px;
    margin: 10px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);

    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Logo stays left, never overlaps */
header .logo {
    max-width: 120px;
    height: auto;
    flex-shrink: 0;
}

/* Title block wraps naturally */
header div {
    flex: 1 1 auto;
    min-width: 200px;
}

header h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
}

header p {
    margin: 5px 0 0 0;
    font-size: 1.1rem;
    font-weight: 400;
}


/* ===========================
   Navigation
   =========================== */
nav {
    background: var(--gold);
    padding: 12px;
    text-align: center;

    border-radius: 12px;      /* match header/footer */
    margin: 10px;             /* align spacing */
    box-shadow: 0 4px 10px rgba(0,0,0,0.15); /* subtle lift */
}


nav a {
    color: var(--blue);
    margin: 0 20px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
}

nav a:hover {
    text-decoration: underline;
}


/* ===========================
   Main Content
   =========================== */
main {
    padding: 30px;
    max-width: 1000px;
    margin: 25px auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    overflow: visible;
}

main h2 {
    font-size: 1.8rem; /* previously ~1.5rem */
    color: var(--blue);
    margin-top: 0;
}

/* Paragraph spacing and readability */
main p {
    font-size: 1.15rem;
    line-height: 1.6;
}


/* ===========================
   Footer (Rounded + Gradient + Right-Aligned)
   =========================== */
footer {
    background: linear-gradient(to bottom, var(--header-grad-top), var(--header-grad-bottom));
    color: white;
    padding: 15px;
    margin: 10px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);

    text-align: right;
}

/* Kelly Systems link — visible even when visited */
footer a {
    color: #ffcc00;
    text-decoration: none;
}

footer a:visited {
    color: #ffcc00; /* prevent disappearing */
}

footer a:hover {
    text-decoration: underline;
}


/* ===========================
   Gallery Grid
   =========================== */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-gap: 20px;
    justify-items: center;
}

.gallery-item {
    width: 100%;
    max-width: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gallery img {
    width: 100%;
    max-width: 240px;
    border-radius: 6px;
    border: 3px solid var(--gold);
}


/* ===========================
   Lightbox Overlay (Final Correct Version)
   =========================== */
#lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#lightbox-overlay-img {
    max-width: 95vw;
    max-height: 95vh;
    border: 4px solid white;
    border-radius: 8px;
    box-shadow: 0 0 20px black;
    cursor: zoom-out;
}
