/* -----------------------------------------------------------
   GLOBAL
----------------------------------------------------------- */
body {
    margin: 0;
    font-family: system-ui, sans-serif;
    background: #f7f7f7;
    color: #333;
}

/* -----------------------------------------------------------
   NAVIGATION
----------------------------------------------------------- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 10;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

/* -----------------------------------------------------------
   HERO
----------------------------------------------------------- */
.hero {
    text-align: center;
    padding: 1rem 1rem;
    background: linear-gradient(to bottom right, #222, #555);
    color: white;
}

.hero h1 {
    margin-bottom: 0.5rem;
}

/* -----------------------------------------------------------
   GALLERY GRID
----------------------------------------------------------- */
.gallery {
    display: grid;
    gap: 15px;
    padding: 20px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

figure {
    margin: 0;
}

figure img {
    width: 100%;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

figcaption {
    margin-top: 6px;
    font-size: 0.9rem;
    text-align: center;
    color: #555;
}

/* -----------------------------------------------------------
   ABOUT SECTION
----------------------------------------------------------- */
.about {
    padding: 3rem 2rem;
    max-width: 800px;
    margin: auto;
}

/* -----------------------------------------------------------
   LIGHTBOX OVERLAY
----------------------------------------------------------- */
#lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.hidden {
    display: none !important;
}

/* -----------------------------------------------------------
   LIGHTBOX IMAGE WRAPPER
----------------------------------------------------------- */
.lightbox-image-wrapper {
    position: relative;
    overflow: hidden;
    width: 90vw;
    height: 80vh;
    background: black;
    touch-action: none;
    /* CRITICAL for mobile gestures */
}

/* Zoomable image */
#lightbox-img {
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: 0 0;
    max-width: none;
    max-height: none;
    pointer-events: none;
}

/* -----------------------------------------------------------
   LIGHTBOX NAV BUTTONS
----------------------------------------------------------- */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10000;
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

/* -----------------------------------------------------------
   FULLSCREEN + EXIT BUTTONS
----------------------------------------------------------- */
.fsbutton-container {
    margin-top: 15px;
    display: flex;
    gap: 20px;
}

.fullscreen-btn,
.exit-lightbox-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.fullscreen-btn:hover,
.exit-lightbox-btn:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* -----------------------------------------------------------
   CAPTION
----------------------------------------------------------- */
#lightbox-caption {
    margin-top: 10px;
    color: white;
    text-align: center;
}