/* Unified Navigation Styles */
/* Uses !important to override stylepg.css's * { background-color: white } */

/* Fixed navigation bar */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 75px;
    background-color: white !important;
    z-index: 1000;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.nav-container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: transparent !important;
    box-sizing: border-box;
}

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    background-color: transparent !important;
}

.nav-logo img {
    height: 50px;
    width: auto;
    background-color: transparent !important;
}

/* Title */
.nav-title {
    font-family: Sansation R;
    font-size: 1.5rem;
    color: black;
    letter-spacing: 0.15em;
    margin-left: 20px;
    background-color: transparent !important;
}

/* Desktop navigation links */
.nav-links {
    display: flex;
    gap: 60px;
    margin-left: auto;
    background-color: transparent !important;
}

.nav-links a {
    font-family: Sansation R;
    font-size: 1.1rem;
    color: gray;
    text-decoration: none;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
    background-color: transparent !important;
}

.nav-links a:hover {
    color: black;
}

/* Underline animation on hover */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: gray;
    transition: width 0.4s ease, left 0.4s ease;
}

.nav-links a:hover::after {
    width: 100%;
    left: 0;
}

/* Hamburger button - hidden on desktop */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    background: transparent !important;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 28px;
    height: 2px;
    background-color: gray !important;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hamburger animation when menu is open */
.nav-hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.nav-hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile menu overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6) !important;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Slide-in menu panel */
.mobile-menu {
    position: absolute;
    top: 0;
    right: 0;
    width: 280px;
    height: 100%;
    background-color: #1a1a1a !important;
    padding: 100px 30px 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-sizing: border-box;
}

.mobile-menu-overlay.active .mobile-menu {
    transform: translateX(0);
}

.mobile-menu a {
    font-family: Sansation R;
    font-size: 1.3rem;
    color: #ccc;
    text-decoration: none;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: color 0.3s ease, padding-left 0.3s ease;
    background-color: transparent !important;
}

.mobile-menu a:hover {
    padding-left: 10px;
    color: #fff;
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}

/* Mobile styles */
@media (max-width: 768px) {
    .site-nav {
        height: 60px;
    }

    .nav-title {
        display: none;
    }

    .nav-links {
        display: none;
    }

    .nav-hamburger {
        display: flex;
    }

    .nav-logo img {
        height: 40px;
    }

    .nav-container {
        padding: 0 15px;
    }

    /* Mobile gallery layout - single column full width */
    .content {
        margin-top: 70px;
    }

    .gallery {
        gap: 4px;
    }

    .gallery li {
        flex-basis: 100%;
        flex-grow: 0;
        height: auto;
    }

    .gallery img {
        width: 100%;
        height: auto;
        min-width: 0;
    }
}

/* Ensure gallery content stays below nav on gallery pages */
/* The existing style.css has .content { margin-top: 105px } which handles this */
