/* =================================
   CSS Custom Properties for Theming
   ================================= */
:root {
    --color-accent: #ffffff;
    --color-bg: #0a0a0a;
    --color-border: #333333;
    --color-text: #f5f5f5;
    --color-text-secondary: #b8b8b8;

    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    --font-title: 'Futura', 'Avenir Next', 'Century Gothic', 'Trebuchet MS', sans-serif;

    --header-height: 120px;

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;

    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s ease;
    --transition-slow: 0.6s ease;
}

/* =================================
   Reset and Base Styles
   ================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--color-text);
    text-decoration: none;
    transition: opacity var(--transition-fast);
}

a:hover {
    opacity: 0.7;
}

button {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-family: inherit;
}

img {
    display: block;
    height: auto;
    max-width: 100%;
}

/* =================================
   Header and Navigation
   ================================= */
.site-header {
    background-color: var(--color-bg);
    bottom: 0;
    display: flex;
    flex-direction: column;
    left: 0;
    padding: var(--spacing-lg) var(--spacing-md) var(--spacing-xl) var(--spacing-lg);
    position: fixed;
    top: 0;
    transition: transform var(--transition-medium);
    width: 230px;
}

.header-content {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.site-title {
    font-family: var(--font-title);
    font-size: 1.125rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    margin-bottom: 0;
    text-transform: uppercase;
}

.site-title a {
    color: var(--font-title);
}

.site-subtitle {
    color: var(--color-text-secondary);
    font-size: 0.688rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    margin-bottom: 3rem;
}

.main-nav {
    flex: 1;
    width: 100%;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    list-style: none;
}

.nav-menu > li > a {
    display: block;
    font-size: 0.813rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    padding: 0;
    text-transform: none;
    transition: opacity var(--transition-fast);
}

.nav-menu > li > a:hover {
    opacity: 0.6;
}

.nav-menu > li > a.active {
    color: var(--color-accent);
}

.nav-menu > li:last-child {
    margin-top: 1rem;
}

.nav-instagram svg {
    display: block;
    fill: var(--color-text);
    height: 20px;
    transition: opacity var(--transition-fast);
    width: 20px;
}

.nav-instagram svg:hover {
    opacity: 0.6;
}

/* Dropdown Menu */
.has-dropdown {
    position: relative;
}

.dropdown {
    animation: fadeIn var(--transition-fast) forwards;
    background-color: transparent;
    border: none;
    display: none;
    list-style: none;
    opacity: 0;
    padding: 0.75rem 0 0 1rem;
    position: static;
}

.has-dropdown.active .dropdown {
    display: block;
}

.dropdown li {
    margin: 0;
    margin-bottom: 0.75rem;
}

.dropdown li:last-child {
    margin-bottom: 0;
}

.dropdown a {
    color: var(--color-text-secondary);
    display: block;
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    padding: 0;
    transition: opacity var(--transition-fast);
    white-space: nowrap;
}

.dropdown a:hover {
    opacity: 0.6;
}

.dropdown a.active {
    color: var(--color-accent);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    height: 40px;
    justify-content: center;
    padding: var(--spacing-xs);
    position: absolute;
    right: var(--spacing-md);
    top: var(--spacing-md);
    width: 40px;
}

.mobile-menu-toggle span {
    background-color: var(--color-text);
    display: block;
    height: 2px;
    width: 25px;
}

.gallery-container {
    margin-left: 230px;
    min-height: 100vh;
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
}

.gallery-slideshow {
    background-color: var(--color-bg);
    height: 100vh;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.slides {
    height: 100%;
    position: relative;
    width: 100%;
}

.slides.hidden {
    display: none;
}

.slide {
    align-items: center;
    display: flex;
    height: 100%;
    justify-content: center;
    left: 0;
    opacity: 0;
    position: absolute;
    top: 0;
    transition: opacity var(--transition-slow);
    width: 100%;
}

.slide-caption {
    display: none;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide img {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    cursor: w-resize;
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.slide img.cursor-next {
    cursor: e-resize;
}

.gallery-caption {
    bottom: var(--spacing-xl);
    display: block;
    left: var(--spacing-lg);
    padding: 0;
    position: fixed;
    text-align: left;
    width: 150px;
}

.photo-title {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: var(--spacing-xs);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.gallery-nav-links {
    align-items: center;
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.nav-link {
    background: none;
    border: none;
    color: var(--color-text);
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    padding: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    transition: opacity var(--transition-fast);
}

.nav-link:hover {
    opacity: 0.6;
}

.nav-separator {
    color: var(--color-text);
    font-size: 0.75rem;
    opacity: 0.5;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.show-thumbnails-btn {
    background: none;
    border: none;
    color: var(--color-text);
    cursor: pointer;
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    margin-top:0.75rem;
    padding: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    text-transform: uppercase;
    transition: opacity var(--transition-fast);
}

.show-thumbnails-btn:hover {
    opacity: 0.6;
}

.thumbnails-view {
    background-color: var(--color-bg);
    display: none;
    height: 100%;
    left: 0;
    overflow-y: auto;
    padding: var(--spacing-xl);
    position: absolute;
    top: 0;
    width: 100%;
}

.thumbnails-view.active {
    display: block;
}

.thumbnails-grid {
    column-count: 4;
    column-gap: 1rem;
}

.thumbnail-item {
    break-inside: avoid;
    cursor: pointer;
    margin-bottom: 1rem;
    position: relative;
}

.thumbnail-item img {
    display: block;
    transition: opacity var(--transition-fast);
    width: 100%;
}

.thumbnail-item:hover img {
    opacity: 0.7;
}

.video-container {
    margin-left: 230px;
    max-width: 800px;
    padding: var(--spacing-xl) var(--spacing-md);
}

.video-item {
    margin-bottom: var(--spacing-xl);
}

.video-title {
    font-size: 1.125rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    margin-bottom: var(--spacing-md);
}

.video-wrapper {
    height: 0;
    margin-bottom: var(--spacing-md);
    overflow: hidden;
    padding-bottom: 56.25%;
    position: relative;
}

.video-wrapper iframe,
.video-wrapper video {
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
}

.video-description {
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    line-height: 1.8;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media screen and (max-width: 768px) {
    :root {
        --header-height: 80px;
        --spacing-lg: 1.5rem;
        --spacing-md: 1rem;
    }

    body {
        display: block;
        height: auto;
        overflow-y: auto;
    }

    .site-header {
        background-color: var(--color-bg);
        border-bottom: none;
        border-right: none;
        bottom: auto !important;
        flex-shrink: 0;
        left: auto !important;
        padding: var(--spacing-md) var(--spacing-lg);
        position: relative !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        width: 100% !important;
    }

    .header-content {
        align-items: flex-start;
    }

    .site-title {
        font-size: 1.25rem;
        letter-spacing: 0.2em;
        margin-bottom: 0;
        text-align: left;
    }

    .site-subtitle {
        font-size: 0.75rem;
        margin-bottom: 0;
        text-align: left;
    }

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

    .nav-menu {
        background-color: var(--color-bg);
        display: none;
        flex-direction: column;
        gap: 1.5rem;
        padding: var(--spacing-lg);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu > li {
        display: flex;
        justify-content: center;
        text-align: center;
        width: 100%;
    }

    /* Stack the Cities link above its dropdown instead of beside it */
    .nav-menu > li.has-dropdown {
        align-items: center;
        flex-direction: column;
    }

    .nav-menu > li > a {
        font-size: 1.5rem;
        letter-spacing: 0.1em;
        padding: var(--spacing-sm) 0;
    }

    .nav-instagram svg {
        height: 28px;
        width: 28px;
    }

    .has-dropdown .dropdown {
        padding: var(--spacing-md) 0 0 0;
        text-align: center;
    }

    .dropdown a {
        font-size: 1.125rem;
        padding: var(--spacing-sm) 0;
    }

    .gallery-container {
        margin-left: 0;
        margin-top: 0;
        padding-top: 0;
    }

    .video-container {
        margin-left: 0;
        padding-top: var(--spacing-md);
    }

    .gallery-slideshow {
        height: auto;
        overflow: visible;
        padding: var(--spacing-md) 0 var(--spacing-xl) 0;
        position: static;
    }

    .slides {
        display: flex;
        flex-direction: column;
        gap: 0;
        height: auto;
    }

    .slide {
        align-items: center;
        display: flex;
        flex-direction: column;
        height: auto;
        margin-bottom: var(--spacing-lg);
        opacity: 1;
        padding: 0;
        position: static;
        width: 100%;
    }

    .slide:last-child {
        margin-bottom: 0;
    }

    .slide img {
        border-radius: 0;
        box-shadow: none;
        cursor: default;
        height: auto;
        max-height: none;
        max-width: 100%;
        pointer-events: none;
        width: 100%;
    }

    .slide img.cursor-next {
        cursor: default;
    }

    .gallery-caption {
        display: none;
    }

    .thumbnails-grid {
        column-count: 2;
    }

    .thumbnails-view {
        padding: var(--spacing-md);
    }

    .slide-caption {
        display: block;
        margin: var(--spacing-sm) 0 0 0;
        max-width: 100%;
        padding: 0 var(--spacing-md);
        text-align: left;
        width: 100%;
    }

    .slide-caption .photo-title {
        font-size: 1rem;
        font-size: 600;
        letter-spacing: 0.05em;
        margin-bottom: 0.5rem;
        text-shadow: none;
    }
}