/* Reset-ish */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #111;
    color: #f7f7f7;
}

/* Header & Nav */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.site-header h1 {
    font-size: 1.3rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0;
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.main-nav a {
    color: #ddd;
    text-decoration: none;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.main-nav a:hover {
    border-color: rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.06);
}

/* Page layout */
.site-main {
    max-width: 1200px;
    margin: 1.5rem auto 3rem auto;
    padding: 0 1rem 2rem;
}

/* Section headings */
.gallery-section {
    margin-bottom: 3rem;
}

.gallery-section h2 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #bbb;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 0.4rem;
    margin-bottom: 1.2rem;
}
/* ============================
   HERO / SPLASH SECTION
   ============================ */

.hero {
    max-width: 1200px;
    margin: 1.5rem auto 2rem;
    padding: 0 1rem;
}

.hero-inner {
    border-radius: 1rem;
    padding: 1.75rem 1.5rem 2rem;
    background: radial-gradient(circle at top left, #333 0%, #111 50%, #000 100%);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 18px 40px rgba(0,0,0,0.6);
}

.hero-title {
    font-size: 1.6rem;
    margin: 0 0 0.5rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-subtitle {
    margin: 0 0 0.75rem;
    color: #d7d7d7;
    font-size: 0.98rem;
}

.hero-note {
    margin: 0;
    color: #aaaaaa;
    font-size: 0.9rem;
    line-height: 1.5;
}

@media (max-width: 600px) {
    .hero-inner {
        padding: 1.5rem 1.25rem 1.75rem;
    }

    .hero-title {
        font-size: 1.3rem;
    }
}

/* Masonry layout using columns */
.gallery-grid {
     column-width: 260px;   /* target width of each column */
    column-gap: 1rem;
    max-width: 1100px;     /* overall gallery width on large screens */
    margin: 0 auto;        /* center the gallery */

}

@media (max-width: 1200px) {
    .gallery-grid {
        column-count: 3;
    }
}
@media (max-width: 900px) {
    .gallery-grid {
        column-count: 2;
    }
}
@media (max-width: 600px) {
    .gallery-grid {
        column-count: 1;
    }
}

.photo-card {
  position: relative;
    margin-bottom: 1rem;
    break-inside: avoid;
    overflow: hidden;
    border-radius: 0.5rem;
    background: #181818;
    box-shadow: 0 6px 18px rgba(0,0,0,0.5);
}

.photo-card img.photo-thumb {
width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
    transition: transform 0.25s ease, opacity 0.25s ease;

}

.photo-card:hover img.photo-thumb {
    transform: scale(1.03);
    opacity: 0.95;
}

/* Download button overlay */
.photo-actions {
    position: absolute;
    bottom: 0.4rem;
    right: 0.4rem;
    padding: 0.2rem;
}

.download-btn {
    background: rgba(0, 0, 0, 0.75);
    color: #f7f7f7;
    border-radius: 999px;
    padding: 0.3rem 0.7rem;
    font-size: 0.75rem;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
}

.download-btn:hover {
    background: rgba(255,255,255,0.9);
    color: #111;
}

/* ============================
   LIGHTBOX (FULLSCREEN VIEWER)
   ============================ */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox.hidden {
    display: none;
}

.lightbox-inner {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    box-sizing: border-box;
    flex-direction: column;
    gap: 0.75rem;
}

/* Image always fits on screen */
#lightbox-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Toolbar under the image */
.lightbox-toolbar {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 0.25rem;
}

.lightbox-download-btn {
    background: rgba(0,0,0,0.8);
    color: #f7f7f7;
    border-radius: 999px;
    padding: 0.45rem 1.1rem;
    font-size: 0.85rem;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(4px);
    white-space: nowrap;
}

.lightbox-download-btn:hover {
    background: rgba(255,255,255,0.9);
    color: #111;
}

/* Buttons: X + arrows */
.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    border: none;
    background: rgba(0, 0, 0, 0.6);
    color: #f7f7f7;
    font-size: 1.8rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(4px);
}

.lightbox-close {
    top: 1rem;
    right: 1rem;
}

.lightbox-prev,
.lightbox-next {
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-prev {
    left: 1rem;
}

.lightbox-next {
    right: 1rem;
}

@media (max-width: 700px) {
    .lightbox-inner {
        padding: 1rem;
    }

    .lightbox-close,
    .lightbox-prev,
    .lightbox-next {
        font-size: 1.6rem;
        width: 2.3rem;
        height: 2.3rem;
    }

    .lightbox-prev {
        left: 0.5rem;
    }

    .lightbox-next {
        right: 0.5rem;
    }

    .lightbox-close {
        top: 0.5rem;
        right: 0.5rem;
    }

    .lightbox-download-btn {
        font-size: 0.8rem;
        padding: 0.35rem 0.9rem;
    }
}


.hidden {
    display: none;
}
