/* --------------------------------------------------------------
   Base layout – keep the look you already like
   -------------------------------------------------------------- */
body {
    max-width: 768px;
    margin: auto;
    min-height: 100vh;
    background-color: #222;
    color: #FFF;
    font-family: "DejaVu Sans", Arial, sans-serif;
}

/* Links */
a {
    color: #FFF;
    text-decoration: none;
}
a:hover,
a:active {
    text-decoration: underline;
}

/* Prevent accidental text selection on headings */
.unselectable {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
.unselectable a:hover { text-decoration: none; }

/* Header */
.header {
    margin: 0;
    font-size: 64px;
    text-align: center;
}

/* Top navigation */
.menu {
    margin-top: 0;
    text-align: center;
    font-size: 12pt;
    font-weight: bold;
}
.menu a { color: #FFF; }
.menu a:hover,
.menu a:active { text-decoration: underline; }

/* Main container */
.content {
    color            : #5F5;
    padding-left     : 16px;
    padding-right    : 16px;
    margin-top       : 10px;
    font-size        : 10pt;
    overflow         : hidden;
}

/* Project block (original) */
.project { padding-top: 8pt; }
.project-title { color: #D33; font-weight: bold; }
.project-description { color: #FFF; padding-left: 30pt; }
.project-data {
    color: #FFF;
    padding: 8pt 0 0 30pt;
    font-size: 8pt;
    font-family: "Courier New", "Liberation Mono", "Droid Sans Mono", monospace;
}
.project-data span { text-decoration: underline; }

/* --------------------------------------------------------------
   New sections – hero, gallery, footer tweaks
   -------------------------------------------------------------- */

/* Hero / short pitch */
.hero {
    margin: 20px 0;
    text-align: center;
    color: #FFF;
}

/* Gallery */
.gallery {
    margin-top: 30px;
}
.gallery-title {
    color: #D33;
    font-size: 1.2em;
    text-align: center;
    margin-bottom: 15px;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}
.gallery-grid img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 0 6px rgba(0,0,0,.6);
}

/* Footer */
.footer {
    text-align: center;
    color: #666;
    font-size: 6pt;
    font-weight: bold;
    margin-top: 40px;
    padding-bottom: 20px;
}
.footer img { margin: 5px; }
.footer a { color: #666; text-decoration: underline; }

/* --------------------------------------------------------------
   Helper wrappers
   -------------------------------------------------------------- */
.wrap {
    display: block;          /* or simply omit the whole rule */
    min-height: auto;        /* let the page grow naturally */
}

/* Optional – hide the large empty space that was previously used */
.galant { display: none; }

/* ---------- Lightbox (pure‑HTML) ----------------------------------- */
.lightbox {
    display: none;                     /* hidden by default */
    position: fixed;
    inset: 0;                          /* full‑screen overlay */
    background: rgba(0, 0, 0, 0.85);
    align-items: center;
    justify-content: center;
    z-index: 9999;
    text-align: center;                /* center the image inside the <a> */
}

/* Show when its id matches the URL fragment */
.lightbox:target {
    display: flex;
}

/* Make the image itself non‑clickable so the click reaches the <a> */
.lightbox img {
    max-width: 95vw;
    max-height: 95vh;
    border: 4px solid #fff;
    border-radius: 4px;
    box-shadow: 0 0 12px rgba(255,255,255,.4);
    pointer-events: none;              /* important for closing on click */
}

/* Optional close hint (still works) */
.lightbox::before {
    content: "✕ Click anywhere to close";
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: #fff;
    font-size: .9rem;
    opacity: .7;
}

/* Thumbnails – keep them tidy */
.thumb {
    width: 150px;          /* adjust if you want larger/smaller thumbs */
    height: auto;
    border-radius: 3px;
    cursor: pointer;
    transition: transform .15s ease;
}
.thumb:hover {
    transform: scale(1.04);
}
