/* ── Reset & Global ── */
*,
*::before,
*::after {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Adjust this to match the height of your sticky bar */
}

body {
    background-color: #ffffff;
    color: #999;
    font-family: "Cormorant Garamond", serif;
    margin: 0;
    padding: 0;
}

/* ── Layout Structure ── */
.landing-container {
    display: flex;
    min-height: 100vh;
    background: #ffffff;
}

.sidebar {
    width: 300px;
    padding: 60px 40px 80px;
    background: #eee;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 10;
    border-right: 1px solid #e0e0e0;
}

.main-area {
    margin-left: 300px; /* Matches sidebar width */
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #fff;
}

/* ── Sidebar Typography ── */
.sidebar h1 {
    font-family: "Cormorant Garamond", serif;
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    color: #999;
    margin-bottom: 0.6em;
    text-transform: uppercase;
}

h1 a {
    text-decoration: none;
    color: #666;
}

.tagline {
    font-family: "Cormorant Garamond", serif;
    font-weight: 300;
    font-size: 1.15rem;
    color: #777777;
    margin: 1.8em 0 3.5em;
    letter-spacing: 0.08em;
    font-style: italic;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav a {
    color: #999;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    transition: color 0.3s ease;
    text-transform: uppercase;
    display: block;
    margin-bottom: 1em;
}

.sidebar-nav a:hover,
.socials a:hover {
    color: #ff00a4;
}

.socials {
    margin-top: 5em;
}

.socials a {
    color: #aaa;
    margin-right: 1.5em;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* ── Gallery Header Section ── */
.gallery {
    padding: 60px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery h1 {
    font-size: 3.2rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    color: #999; /* Slightly darker for better legibility */
    text-transform: uppercase;
    margin-bottom: 10px;
    text-align: center;
}

.gallery p {
    font-size: 1.2rem;
    font-weight: 400;
    color: #999;
    font-style: italic;
    text-align: center;
    margin-bottom: 10px;
}

.gallery h3 {
    font-size: 0.95rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #999;
    text-align: center;
    margin-bottom: 40px;
}
/* ── Clean Static Featured Image ── */
.featured-container {
    width: auto;
    margin: 0 auto 50px auto;
    display: flex;
    justify-content: center;
}

.featured-image {
    width: auto;
    max-width: 600px;
    max-height: 680px;
    background: #fdfdfd;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    cursor: pointer; /* Keeps it feeling clickable */
}

.featured-image img {
    max-width: 600px;
    max-height: 600px;
    display: block;
    transition: opacity 0.3s ease;
}

.featured-image img:hover {
    /* opacity: 0.9;  Simple visual feedback instead of a zoom */
}

@media (max-width: 900px) {
    .featured-container {
        margin-bottom: 30px;
    }
    .featured-image {
        padding: 10px;
    }
}
/* ── Timeline & Grid ── */
.date-group {
    margin-bottom: 60px;
}

.date-label {
    font-size: 1rem;
    font-weight: 500;
    color: #999;
    letter-spacing: 0.25em;
    margin-bottom: 20px;
    display: inline-block;
}
/*
.date-label::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: #FF00A4;
    margin-top: 8px;
}
*/
.thumbs-row {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
}

/* ── Unified Thumbnail Fix ── */
.thumb-item {
    width: 120px; /* Fixed size for desktop */
    aspect-ratio: 1 / 1; /* Forces a perfect square */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.09);
    text-decoration: none;
    flex-shrink: 0;
    transition: all 0.28s ease;
    animation: fadeIn 0.4s ease;
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.thumb-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.15);
}

.thumb-item:hover img {
    transform: scale(1.08);
}

/* ── Lightbox ── */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 9999;
}

.lightbox.active {
    visibility: visible;
    opacity: 1;
}

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    box-shadow: 0 10px 60px rgba(0, 0, 0, 0.7);
    transform: scale(0.94);
    transition: transform 0.35s ease;
}

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

.lb-close,
.lb-prev,
.lb-next {
    position: absolute;
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.lb-close {
    top: 30px;
    right: 30px;
}
.lb-prev {
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
}
.lb-next {
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
}

/* ── Animations ── */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hide the hamburger button on Desktop */
.menu-toggle {
    display: none;
}

/* ── Mobile Responsive ── */
@media (max-width: 900px) {
    .landing-container {
        flex-direction: column;
    }

    /* Mobile Toggle Styles */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 25px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1100; /* Higher than sidebar-nav */
        position: absolute;
        top: 50%;
        right: 20px;
        transform: translateY(-50%);
    }

    .menu-toggle span {
        width: 30px;
        height: 2px;
        background: #999;
        transition: all 0.3s linear;
    }

    /* Animate to X */
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    /* Sidebar becomes the Sticky Top Header */
    .sidebar {
        position: -webkit-sticky;
        position: sticky;
        top: 0;
        width: 100%;
        height: auto;
        padding: 15px 20px;
        background: #ffffff;
        border-bottom: 1px solid #eee;
        z-index: 1000;
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: visible; /* Prevents menu cutting off */
    }

    .sidebar h1 {
        margin: 0;
        font-size: 1.2rem;
        color: #444;
    }

    .tagline {
        display: none;
    }

    /* The Hidden Full-Screen Nav */
    .sidebar-nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        z-index: 1050;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .sidebar-nav.active {
        display: flex;
    }

    .sidebar-nav ul {
        text-align: center;
    }

    .sidebar-nav a {
        font-size: 1.5rem; /* Larger links for easy tapping */
        margin-bottom: 1.5rem;
        color: #444;
    }

    /* Remove desktop margins and fix layout */
    .main-area {
        margin-left: 0 !important;
    }

    .gallery {
        padding: 25px 15px;
    }

    .gallery h1 {
        font-size: 1.6rem;
        color: #444;
    }

    /* Grid layout for thumbnails */
    .thumbs-row {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .thumb-item {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
    }
} /* End of Media Query */
