body {
    background-color: #EFEFE8;
    color: #000;
    height: auto; /* override 1000vh from index */
}

/* Navbar Overrides for Light Mode */
/* We want it to be transparent like the main page initially */
.navbar {
    opacity: 1 !important; /* Always visible on gallery page */
    position: fixed !important;
}

/* Navbar uses default white text from styles.css */

/* Gallery Specific Styles */
.gallery-hero {
    width: 100%;
    height: 70vh;
    min-height: 500px;
    background-color: #000;
    overflow: hidden;
    position: relative;
}

.gallery-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-container {
    margin: 60px auto;
    padding: 0 80px;
    min-height: 50vh;
}

.gallery-filters {
    display: flex;
    justify-content: flex-end;
    gap: 30px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 20px;
    margin-bottom: 40px;
}

.gallery-filters a {
    color: #888;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s;
}

.gallery-filters a.active, .gallery-filters a:hover {
    color: #000;
}

/* Masonry Layout */
.gallery-masonry {
    column-count: 3;
    column-gap: 20px;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease, filter 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
    filter: brightness(0.85);
}

.gallery-item-label {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.gallery-item:hover .gallery-item-label {
    opacity: 1;
    transform: translateY(0);
}

/* Footer override for this page (same as journal) */
.scene5-footer.journal-footer {
    position: relative;
    background: #000;
    padding-top: 60px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .gallery-container {
        padding: 40px;
    }
    .gallery-masonry {
        column-count: 2;
    }
}

@media (max-width: 768px) {
    .gallery-container {
        padding: 20px;
    }
    .gallery-hero {
        height: 40vw; /* Taller on mobile */
    }
    .gallery-masonry {
        column-count: 1;
    }
    .gallery-filters {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 20px;
    }
}
