:root {
    --geo-line-max-width: 250px;
    --geo-shape-size: 12px;
    --geo-gap: 1.5rem;
    --divider-width: calc((var(--geo-line-max-width) * 2) + (var(--geo-shape-size) * 3) + (var(--geo-gap) * 4));
}

/* --- Geo Divider --- */
geo-divider {
    display: block;
    width: 100%;
}

.geo-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem 0 4rem;
    gap: var(--geo-gap);
    width: 100%;
}

.geo-line {
    height: 1px;
    flex-grow: 1;
    background-color: var(--color-black);
    max-width: var(--geo-line-max-width);
}

.geo-shape {
    width: var(--geo-shape-size);
    height: var(--geo-shape-size);
    background-color: var(--color-gold);
    transform: rotate(45deg);
}

/* --- Navigation (from Index Page) --- */
.gallery-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1.5rem var(--safe-padding);
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border-bottom: none;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.gallery-nav.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-black);
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: var(--color-gold);
}

.nav-logo {
    font-family: var(--font-willow);
    font-size: 3rem;
    text-decoration: none;
    color: var(--color-black);
    font-weight: normal;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--color-black);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    transition: color 0.3s ease;
    font-family: var(--font-body);
}

.nav-link:hover {
    color: var(--color-gold);
}

/* --- Dropdown Styles --- */
.nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: -1rem;
    background-color: var(--color-ivory);
    min-width: 180px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    padding: 1rem 0;
    z-index: 1000;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 2rem;
    text-decoration: none;
    color: var(--color-black);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: var(--font-body);
    transition: all 0.3s ease;
}

.dropdown-menu a:hover {
    background-color: var(--color-clay-light);
    color: var(--color-gold);
    padding-left: 2.5rem;
}

/* Dropdown Arrow for desktop (optional, but requested flexible) */
.dropdown-toggle::after {
    content: '';
    display: inline-block;
    margin-left: 0.5rem;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    vertical-align: middle;
    transition: transform 0.3s ease;
    position: relative;
    top: -1px; /* Fine-tune arrow position if needed */
}

.nav-dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

/* Theme: White Adjustments for Dropdown */
.gallery-nav.white .dropdown-menu {
    background-color: var(--color-charcoal);
}

.gallery-nav.white .dropdown-menu a {
    color: var(--color-ivory);
}

.gallery-nav.white .dropdown-menu a:hover {
    background-color: rgba(255,255,255,0.1);
}

/* --- Footer (from Gallery Page) --- */
.site-footer {
    background-color: var(--color-clay-light);
    padding: 5rem var(--safe-padding) 2rem;
    margin-top: 0;
    border-top: 1px solid var(--color-clay-dark);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-brand {
    margin-bottom: 3rem;
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    text-decoration: none;
    color: var(--color-charcoal);
    font-weight: 500;
    display: block;
    margin-bottom: 0.5rem;
}


.footer-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 3rem;
    margin-bottom: 5rem;
}

.footer-nav-group h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    color: var(--color-rust);
}

.footer-nav-group ul {
    list-style: none;
}

.footer-nav-group li {
    margin-bottom: 0.75rem;
}

.footer-nav-group a {
    text-decoration: none;
    color: var(--color-charcoal);
    font-size: 0.95rem;
    transition: color 0.2s ease;
    opacity: 0.8;
}

.footer-nav-group a:hover {
    color: var(--color-rust);
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: #666;
}


@media (max-width: 600px) {
    .footer-bottom {
        flex-direction: column;
        align-items: center; 
        text-align: center;
    }
    
}

/* --- Mobile Menu --- */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 101; /* Above nav background but below menu overlay if overlay is higher */
    padding: 0;
}

.hamburger-line {
    width: 100%;
    height: 2px;
    background-color: var(--color-black);
    transition: all 0.3s ease;
}

.gallery-nav.white .hamburger-line {
    background-color: var(--color-ivory);
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--color-ivory);
    z-index: 999; /* High z-index to cover everything */
    display: flex;
    flex-direction: column;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.mobile-menu-close {
    align-self: flex-end;
    background: none;
    border: none;
    font-size: 3rem;
    line-height: 0.5;
    cursor: pointer;
    color: var(--color-black);
    padding: 0.5rem;
    font-weight: 300;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    flex-grow: 1;
    justify-content: center;
}

.mobile-nav-link {
    font-family: var(--font-body);
    font-size: 2rem;
    color: var(--color-black);
    text-decoration: none;
    transition: color 0.3s ease;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.mobile-nav-link:hover {
    color: var(--color-gold);
}

/* --- Mobile Dropdown --- */
.mobile-dropdown {
    width: 100%;
}

.mobile-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    position: relative;
}

.dropdown-arrow {
    background: none;
    border: none;
    color: var(--color-black);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.mobile-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.mobile-dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(0,0,0,0.03);
    width: 100vw;
    margin-left: -2rem; /* Compensate for mobile-menu padding */
}

.mobile-dropdown.active .mobile-dropdown-content {
    max-height: 500px; /* Large enough to fit content */
    padding: 1rem 0;
    margin-top: 1rem;
}

.mobile-nav-link.sub-link {
    font-size: 1.25rem;
    padding: 0.75rem 0;
}

.mobile-social-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    margin-top: auto;
}

.mobile-social-icons .social-icon {
    width: 32px;
    height: 32px;
    color: var(--color-black);
}

body.no-scroll {
    overflow: hidden;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: flex;
    }
}
