* {
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background: #111;
    color: #ddd;
    display: flex;
    min-height: 100vh;
}

/* Sidebar */

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;

    padding: 3rem 1.5rem;
    margin-left: clamp(11rem, 12vw, 16rem);
}


.sidebar h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #888;
    letter-spacing: 2px;
}

.work-list {
    list-style: none;
    margin-bottom: 70px;
}

.work-list li {
    margin-bottom: 1rem;
}

.work-list a{
    display: block;
    text-decoration: none;
    color: #ddd;
}

.work-list a:hover{
    color: white;
}

.sidebar-title {
    display: block;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    font-size: 1rem;
}
    
.sidebar-meta {
    display: block;

    font-size: .8rem;
    color: #404040;

    margin-top: .2rem;
}

.work-list .active {
    color: #ff3c3c;
}

.content {
    padding: 3rem;
    max-width: 800px;


}

.work-item.active a {
  color: #404040;
}

.work-item a {
  display: block;
  text-decoration: none;
}

.project-header {
    margin-bottom: 1.5rem;
}

.project-info h1 {
    font-size: clamp(2rem, 3vw, 2.8rem);

    line-height: 1.1;

    margin-bottom: 0.5rem;
}

.year {
    margin-bottom: 0.3rem;
}

.meta {
    margin-bottom: 0.3rem;
}
/* Gallery */

/* Gallery */

#gallery {
    max-width: 750px;

    display: flex;
    flex-direction: column;

    gap: 2rem;

    margin-top: 2rem;
}

/* Images */

#gallery img {
    display: block;

    width: 100%;
    max-width: 500px;

    height: auto;

    border-radius: 4px;
}

/* Videos */

.youtube-video {
    display: block;

    width: 100%;
    max-width: 500px;

    aspect-ratio: 16 / 9;

    border: none;

    margin: 0 auto;
}

/* Text */

.description {
    max-width: 650px;

    line-height: 1.7;
    font-size: 1rem;

    color: #ccc;

    margin: 0;
}

.description + .description {
    margin-top: -1rem;
}

/* Responsive */

@media (max-width: 900px) {

    body {
        flex-direction: column;
    }

    .sidebar {
        position: static;
        width: 100%;
        height: auto;
        padding: 30px 24px;
    }

    .content {
        margin-left: 0;
        width: 100%;
        padding: 40px 24px;
    }

    .project-header {
        justify-content: center;
    }

    .project-info {
        text-align: left;
    }

    .project-info h1 {
        font-size: 2.5rem;
    }
}

.back-button {
    position: fixed;
    top: 20px;
    left: 20px;
    font-size: 28px;
    color: #fff;
    text-decoration: none;
    padding: 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
  }
  
  .back-button:hover {
    transform: scale(1.1);
  }

  .youtube-video {
    display: block;

    width: 100%;
    max-width: 1000px;

    aspect-ratio: 16 / 9;

    border: none;

    margin: 0 auto;
}