/* ===================================
   Self-hosted Exo 2 & Montserrat Fonts
   =================================== */
@font-face {
    font-family: 'Exo 2';
    src: url('/fonts/Exo2-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Exo 2';
    src: url('/fonts/Exo2-Italic-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Montserrat';
    src: url('/fonts/Montserrat-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Montserrat';
    src: url('/fonts/Montserrat-Italic-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

/* ===================================
   Variables
   =================================== */
:root {
    --primary-color: rgb(18, 18, 20);
    --accent-color: rgb(52, 90, 151);
    --font-color: rgb(236, 236, 238);
    --link-color: rgb(190, 190, 195);
    --hover-link-color: rgb(52, 90, 151);
    --border-color: rgb(48, 48, 52);
    --post-background-color: rgba(11, 19, 43, 0.95);

    --header-gradient-start: #0b132b;
    --header-gradient-end: #030712;
    --nav-background-color: rgba(11, 19, 43, 0.95);
    --header-border-color: rgba(255, 255, 255, 0.08);
    --nav-border-color: rgba(255, 255, 255, 0.1);

    --box-shadow-strong: 0 4px 12px rgba(0, 0, 0, 0.25);
    --box-shadow-header: 0 2px 8px rgba(0, 0, 0, 0.25);
    --text-glow-primary: rgba(120, 150, 255, 0.25);
    --text-glow-secondary: rgba(120, 150, 255, 0.1);

    --tagline-color: #9aa4c7;
    --nav-hover-color: #78aaff;
}

/* ===================================
   Global Styles
   =================================== */
* { box-sizing: border-box; }

body {
    margin: 0;
    background-color: var(--primary-color);
    color: var(--font-color);
    font-family: 'Montserrat', 'Trebuchet MS', 'Arial', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    font-size: 1rem;
}

.page-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.page-spacer { height: 0; }

/* ===================================
   Sticky Header
   =================================== */
.sticky-top {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    z-index: 999;
    background-color: var(--primary-color);
    box-shadow: var(--box-shadow-header);
}

/* ===================================
   Header
   =================================== */
.header {
    background: radial-gradient(
        circle at top,
        var(--header-gradient-start) 0%,
        var(--header-gradient-end) 60%
    );
    padding: 1.5rem 1rem 1rem;
    border-bottom: 1px solid var(--header-border-color);
    text-align: center;
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.site-title {
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    font-size: 4rem;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: var(--font-color);
    margin: 0;
    text-shadow:
        0 0 16px var(--text-glow-primary),
        0 0 48px var(--text-glow-secondary);
}

.title-mobile,
.tagline-mobile { display: none; }

.site-tagline {
    font-family: 'Exo 2', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    color: var(--tagline-color);
    letter-spacing: 0.05em;
    margin-top: 0.75rem;
}

/* ===================================
   Navigation
   =================================== */
.navigation {
    background-color: var(--nav-background-color);
    border-bottom: 1px solid var(--nav-border-color);
}

.nav-list {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 0.75rem 0;
    margin: 0;
    list-style: none;
}

.nav-item a {
    color: var(--link-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.25s;
}

.nav-item a:hover {
    color: var(--nav-hover-color);
}

.nav-item a.active {
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-thickness: 2px;
}

/* ===================================
   Main Content
   =================================== */
.main-content,
.main-content-single {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    padding: 24px 0;
    min-height: 60vh;
}

.main-content {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ===================================
   Photo Posts
   =================================== */
.photo-post-link {
    display: block;
    text-decoration: none;
}

.photo-post {
    display: flex;
    flex-direction: column;
    border: 2px solid var(--border-color);
    padding: 8px;
    background-color: var(--post-background-color);
    color: var(--font-color);
    transition: transform 0.2s ease, border-color 0.2s ease;
    border-radius: 4px;
    box-shadow: var(--box-shadow-strong);
    flex: 0 1 280px;
}

.photo-post:hover {
    transform: translateY(-4px);
    border-color: var(--accent-color);
}

.photo-post-image {
    display: block;
    max-width: 100%;
    height: 240px;
    margin-bottom: 8px;
}

.photo-post-title {
    margin: 0;
}

.photo-post-description {
    margin: 0;
}

/* ===================================
   Single Photo Page
   =================================== */
.photo-post-single {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80%;
    max-width: 800px;
    border: 2px solid var(--border-color);
    padding: 16px;
    background-color: var(--post-background-color);
    margin: 0 auto;
}

.image-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 16px;
}

.photo-post-image-single {
    display: block;
    max-width: 100%;
    height: auto;
    cursor: zoom-in; /* lightbox hint */
}

.download-link-single {
    display: block;
    color: var(--link-color);
    text-decoration: none;
    font-weight: 500;
    margin-top: 4px;
}

.download-link-single:hover {
    color: var(--hover-link-color);
}

/* ===================================
   Lightbox (NEW)
   =================================== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    
}

.lightbox img {
    max-width: 95%;
    max-height: 95%;
    box-shadow: var(--box-shadow-strong);
    cursor: zoom-out;
    transition: transform 0.15s ease;
    transform-origin: center center;
    border: 2px solid var(--border-color);
}

.hidden {
    display: none;
}

/* ===================================
   Post Navigation
   =================================== */

.post-nav {
  display: flex;
  justify-content: space-between;
}

.post-nav a {
  min-width: 120px;
}

.post-nav a.empty {
  visibility: hidden;
}

.post-nav a.nav-next {
  text-align: right;
}





/* ===================================
   Post Content
   =================================== */
.post-content {
    text-align: left;
    width: 100%;
    line-height: 1.8;
}

.post-content a {
    color: var(--accent-color);
    text-decoration: none;
}

.post-content a:visited {
    color: var(--accent-color);
}

.post-content h2 {
    text-align: center;
    color: var(--accent-color);
}

/* ===================================
   Footer
   =================================== */
.footer {
    padding: 16px 24px;
    border-top: 2px solid var(--border-color);
    color: var(--link-color);
    font-size: 0.9rem;
    text-align: center;
}

.footer a {
    color: var(--link-color);
    text-decoration: underline;
}

/* ===================================
   Responsive (max-width: 860px)
   =================================== */
@media (max-width: 860px) {

    .site-title {
        font-size: 2.5rem;
        letter-spacing: 0.06em;
    }

    .title-desktop,
    .tagline-desktop { display: none; }

    .title-mobile,
    .tagline-mobile { display: inline; }

    .tagline-mobile {
        display: block;
        font-size: 0.9rem;
        margin-top: 0.5rem;
    }

    .nav-list {
        gap: 1.5rem;
    }

    .photo-post,
    .photo-post-single {
        width: 100%;
        max-width: 100%;
    }
}
