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

body {
    font-family: "Open Sans", sans-serif;
    background: #f8f8f8;
    color: #333;
    line-height: 1.6;
    margin: 0px;
}

.open-sans-bold {
    font-family: "Open Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
    font-variation-settings: "wdth" 100;
}

.open-sans-regular {
    font-family: "Open Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
    font-variation-settings: "wdth" 100;
}
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #f8f8f8;
    padding: 1.5% 0;
    z-index: 1000;
}

.header-content {

    margin: 20px;
}

.header h1 {
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 1px;
    margin: 0;
}

.container {
    display: flex;
    min-height: 100vh;
    margin-top: 100px;
}

.sidebar {
    width: 200px;
    background: #f8f8f8;
    margin: 20px;
    font-size:small;
    position: fixed;
    height: calc(100vh - 100px);
    overflow-y: auto;
}

.main-content {
    margin-left: 280px;
    flex: 1;
    padding: 20px;
    max-width: 100%;
}

.nav-menu {
    list-style: none;
    margin: 0;
}

.nav-menu li {
    margin-bottom: 1.5rem;
}

.nav-menu a {
    text-decoration: underline;
    color: #333;
    font-size: 0.8rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
}

.nav-menu a:hover {
    color: #666;
}

.nav-menu a.active {
    font-family: "Open Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
    font-variation-settings: "wdth" 100;
    text-decoration: underline;
}

.content h1 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.content p {
    font-family: "Open Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
    font-variation-settings: "wdth" 100;
    font-size:medium;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.muted {
    color: #6b7280;
    font-size: .9rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 300px);
    gap: 30px;
    justify-content: center;
}

.grid a {
    display: block;
    text-decoration: none;
}

.grid img {
    width: 300px;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

    .grid img:hover {
      transform: scale(1.05);
    }
    .image-container {
      float: right;
      margin: 20px;
      margin-top: 0px;
      max-width: 50%;
    }
    .image-container img {
      width: 100%;
      height: auto;
      border-radius: 8px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.1); 
    }
    
    /* Home Page Styles */
    .home-container {
      display: flex;
      min-height: calc(100vh - 120px);
      margin-top: 120px;
    }
    
    .home-sidebar {
      width: 200px;
      padding: 2rem 1.5rem;
      position: fixed;
      height: calc(100vh - 120px);
      overflow-y: auto;
      z-index: 100;
    }
    
    .home-nav-menu {
      list-style: none;
      margin: 0;
    }
    
    .home-nav-menu li {
      margin-bottom: 2rem;
    }
    
    .home-nav-menu a {
            text-decoration: underline;
            color: #ffffff;
            font-size: 0.8rem;
            font-weight: 300;
            letter-spacing: 0.5px;
            transition: color 0.2s ease;
    }
    
    .home-nav-menu a:hover {
      color: #ccc;
    }
    
    .home-gallery {
        margin-left: 0px;
        width: 100vw;
        height: calc(100vh - 120px);
    }
    
    .home-gallery .swiper {
      width: 100%;
      height: 100%;
    }
    
    .home-gallery .swiper-slide {
      display: flex;
      align-items: center;
      justify-content: center;
    }
    
    .home-gallery .swiper-slide img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    
    .project-layout {
      display: flex;
      gap: 2rem;
    }
    
    .project-image {
      flex: 0 0 70%;
      width: 70%;
    }
    
    .project-image img {
      width: 100%;
      height: auto;
      border-radius: 8px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
    
    .project-details {
      flex: 0 0 30%;
      width: 30%;
      padding-left: 1rem;
    }

    .portrait img{
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        display: block;
    } 
    
    .detail-item {
      font-family: "Open Sans", sans-serif;
      font-optical-sizing: auto;
      font-weight: 300;
      font-style: normal;
      font-variation-settings: "wdth" 100;
      font-size: 0.8rem;
      margin-bottom: 1rem;
      line-height: 1.5;
    }
    
    .description {
      font-family: "Open Sans", sans-serif;
      font-optical-sizing: auto;
      font-weight: 300;
      font-style: normal;
      font-variation-settings: "wdth" 100;
      font-size: 0.8rem;
      line-height: 1.5;
      margin-top: 2rem;
    }
 
@media (max-width: 768px) {
    .grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, 100%);
        gap: 20px;
        justify-content: center;
    }
    .grid img {
        width: 100%;
        height: auto;
        object-fit: cover;
        border-radius: 8px;
        transition: transform 0.3s ease;
    }

    .sidebar {
        max-width: 100%;
        position: relative;
        height: auto;
        border-right: none;
    }

    .main-content {
        margin:20px;
        padding:0px;
    }

    .container {
        flex-direction: column;
    }
    
    .home-container {
        flex-direction: column;
        margin-top: 100px;
    }
    
    .home-sidebar {
        width: 100%;
        position: absolute;
        height: auto;
    }
    
    .home-gallery {
        margin-left: 0;
        height: 100vh;
    }
    
    .project-layout {
        flex-direction: column;
    }
    
    .project-image {
        flex: none;
        width: 100%;
    }
    
    .project-details {
        flex: none;
        max-width: 100%;
        padding: 0;
        margin-top: 1rem;
    }

    .image-container {
        float: none;
        margin: 0px;
        margin-bottom: 20px;
      
      }
      .image-container img {
        max-width: 70%;
        height: auto;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1); 
      }
    .portrait{
        width:100%;
    }
    .portrait img{
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        display: block;
    } 
}