* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
}

:root {
    --logo-link-blue: #1638b3;
    --logo-link-blue-hover: #0c1d90;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.6;
    color: #000;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Layout Container */
.layout-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 15%;
    background-color: #fff;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    padding: 40px 30px;
}

.logo-container {
    margin-bottom: 40px;
}

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

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    color: #000;
    text-decoration: none;
    font-size: 14px;
    font-weight: 300;
    padding: 8px 0;
}

.nav-item.active {
    background-color: #f0f0f0;
    padding-left: 8px;
    margin-left: -8px;
}

/* Content Area */
.content-area {
    width: 85%;
    margin-left: 15%;
    background-color: #fff;
}

.section {
    padding: 60px 80px;
    min-height: 100vh;
    display: none;
}

.section.active {
    display: block;
}

/* Photo Grid */
.photo-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 100%;
}

.photo-item {
    width: auto;
    overflow: hidden;
    background-color: #fff;
    display: flex;
    justify-content: flex-start;
}

.photo-item img {
    width: auto;
    height: auto;
    max-width: 80%;
    display: block;
    cursor: pointer;
}

/* Content sections */
.content-wrapper {
    max-width: 900px;
}

.content-wrapper h2 {
    font-size: 24px;
    font-weight: 300;
    margin-bottom: 40px;
    color: #000;
}

#music .content-wrapper h2 {
    margin-bottom: 0;
}

.text-content {
    font-size: 16px;
    line-height: 1.8;
    color: #000;
    font-weight: 300;
}

.text-content p {
    margin-bottom: 20px;
}

.background-line {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0;
}

.background-description {
    margin-left: 20px;
    margin-top: .5px;
    margin-bottom: 20px;
    font-size: 12px;
    font-weight: 300;
    color: #000;
    line-height: 1.2;
}

.background-logo {
    height: 48px;
    width: auto;
    flex-shrink: 0;
    margin-left: auto;
}

.background-logo-small {
    height: 34px;
    width: auto;
    flex-shrink: 0;
    margin-left: auto;
}

.background-logo-tiny {
    height: 24px;
    width: auto;
    flex-shrink: 0;
    margin-left: auto;
}


/* Content Section */
.content-thumbnail {
    margin-top: 20px;
    margin-bottom: 20px;
}

.content-link {
    display: inline-block;
    text-decoration: none;
}

.content-image {
    max-width: 400px;
    height: auto;
    display: block;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.content-image:hover {
    opacity: 0.8;
}

.content-caption {
    font-size: 12px;
    font-weight: 300;
    color: #000;
    margin-top: 5px;
    margin-bottom: 0;
}

.vimeo-container {
    margin-top: 40px;
    margin-bottom: 40px;
}

.vimeo-container iframe {
    width: 100%;
    max-width: 640px;
    height: auto;
    aspect-ratio: 16 / 9;
    display: block;
}

.video-player-wrapper {
    position: relative;
    display: inline-block;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.video-player-wrapper--cropped video {
    aspect-ratio: 16 / 9;
    max-width: 640px;
    min-height: 0;
}

.video-player-wrapper video {
    width: 100%;
    max-width: 640px;
    height: auto;
    display: block;
    background-color: #000;
    object-fit: contain;
    aspect-ratio: 16 / 9;
    min-height: 200px;
}

.video-player-wrapper video::-webkit-media-controls {
    display: none !important;
}

.video-player-wrapper video::-webkit-media-controls-enclosure {
    display: none !important;
}

.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 1;
    transition: opacity 0s;
    pointer-events: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.video-player-wrapper.playing .video-play-button {
    opacity: 0;
}

.video-player-wrapper:not(.playing):hover .video-play-button {
    opacity: 1;
}

.vimeo-caption {
    font-size: 12px;
    font-weight: 300;
    color: #000;
    margin-top: 5px;
    margin-bottom: 0;
}

/* Bio Section */
.bio-name-block {
    display: inline-block;
    width: min-content;
}

.bio-portrait {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 10px;
}

.bio-name {
    font-size: 24px;
    font-weight: 300;
    color: #000;
    margin-bottom: 0;
    white-space: nowrap;
}

.bio-email {
    font-size: 12px;
    font-weight: 300;
    color: #000;
    margin-bottom: 0;
    margin-top: 2px;
}

.bio-intro {
    font-size: 12px;
    font-weight: 300;
    line-height: 1.7;
    color: #000;
    margin-top: 20px;
    margin-bottom: 0;
    max-width: 640px;
}

.bio-divider {
    width: 100%;
    max-width: 640px;
    height: 1px;
    background-color: #000;
    border: none;
    margin-top: 20px;
    margin-bottom: 20px;
}

.bio-resume-description {
    margin-bottom: 20px;
}

/* Timeline (Bio) */
.timeline-wrapper {
    max-width: 640px;
}

.timeline-current {
    font-size: 12px;
    font-weight: 300;
    line-height: 1.7;
    margin-top: 12px;
    color: #000;
}

.timeline {
    margin-top: 28px;
    padding-left: 0;
    list-style: none;
}

.timeline li {
    font-size: 12px;
    font-weight: 300;
    line-height: 1.7;
    margin-bottom: 18px;
    color: #000;
    padding-left: 0;
}

.timeline-note {
    font-style: italic;
    color: #666;
}

.timeline-footer {
    margin-top: 36px;
}

.bio-location {
    font-size: 16px;
    font-weight: 300;
    color: #000;
    margin-bottom: 0;
    margin-top: 20px;
}

.bio-description {
    font-size: 16px;
    font-weight: 300;
    color: #000;
    margin-bottom: 0;
    margin-top: 20px;
}

.founder-link,
.founder-link:visited {
    color: var(--logo-link-blue);
    text-decoration: none;
    font-weight: 300;
    transition: color 0.2s ease;
}

.founder-link:hover {
    color: var(--logo-link-blue-hover);
}

/* Music Section */
.music-genius-link {
    font-size: 12px;
    font-weight: 300;
    color: #000;
    margin-top: 2px;
    margin-bottom: 30px;
}

.music-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.music-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.music-link {
    display: inline-block;
    text-decoration: none;
}

.music-image {
    max-width: 240px;
    height: auto;
    display: block;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.music-image:hover {
    opacity: 0.8;
}

.music-title {
    font-size: 12px;
    font-weight: 300;
    color: #000;
    margin: 0;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    cursor: pointer;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox img {
    max-width: 98%;
    max-height: 98%;
    width: auto;
    height: auto;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
    z-index: 2001;
}

/* Responsive */
@media (max-width: 768px) {
    .layout-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 20px;
    }

    .logo-container {
        margin-bottom: 20px;
    }

    .logo {
        max-width: 80px;
    }

    .sidebar-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 15px;
    }

    .content-area {
        width: 100%;
        margin-left: 0;
    }

    .section {
        padding: 20px 15px;
    }

    .photo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .photo-item img {
        max-width: 100%;
    }

    /* Video adjustments for mobile */
    .vimeo-container {
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .vimeo-container iframe {
        width: 100%;
        max-width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        min-height: 200px;
    }

    .video-player-wrapper video {
        width: 100%;
        max-width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        min-height: 200px;
    }

    .video-play-button {
        width: 60px;
        height: 60px;
    }

    .video-play-button svg {
        width: 60px;
        height: 60px;
    }

    /* Bio section mobile adjustments */
    .bio-name {
        font-size: 20px;
    }

    .bio-email {
        font-size: 11px;
    }

    .bio-divider {
        max-width: 100%;
        margin-top: 15px;
        margin-bottom: 15px;
    }

    /* Music section mobile */
    .music-image {
        max-width: 100%;
    }

    .content-image {
        max-width: 100%;
    }

}

/* iPhone Safari specific fixes */
@supports (-webkit-touch-callout: none) {
    body {
        -webkit-text-size-adjust: 100%;
    }
}

