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

body {
    background-color: #ffffff;
    color: #1a1a1a;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    padding: 30px 20px 30px 100px;
}

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

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 80px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f5f5f5;
    border-right: 1px solid #ddd;
    z-index: 100;
}

.nav-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #1a1a1a;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 2px;
    transition: background-color 0.3s ease;
    border-bottom: 1px solid #ddd;
}

.nav-btn:last-child {
    border-bottom: none;
}

.nav-btn.active { background-color: #ededed; }
.nav-btn:hover:not(.active) { background-color: #f5f5f5; }

.vertical-text {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    white-space: nowrap;
}

.hero-section {
    background-color: #e8e8e8;
    padding: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 60px;
    margin-bottom: 40px;
    text-align: left;
    width: 100%;
}

.hero-image-wrapper {
    flex-shrink: 0; 
}

.main-photo {
    width: 100%;
    max-width: 350px; 
    height: auto;
    border-radius: 4px; 
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.5s ease, transform 0.5s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12); 
}

.main-photo:hover {
    filter: grayscale(0%);
    transform: translateY(-2px);
}

.hero-text-wrapper {
    flex-grow: 1; 
}

.hero-text-wrapper h1 {
    font-size: 32px; 
    font-weight: 500;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.subtitle {
    font-size: 14px;
    color: #777;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.intro-p {
    font-size: 16px;
    color: #444;
    max-width: 100%; 
    line-height: 1.8; 
}

.gallery-section {
    width: 100%;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    background-color: #ffffff;
    gap: 0;
    padding: 0;
}

.grid-item {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: #ffffff;
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.grid-item img:hover {
    transform: scale(1.02);
}

.quote-in-grid {
    aspect-ratio: 1 / 1;
    background-color: #d9d9d9;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
    color: #444;
    font-style: italic;
    box-sizing: border-box;
    overflow: hidden;
    font-size: 16px;
    line-height: 1.6;
}

.quote-ribbon {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #d9d9d9 0%, #e8e8e8 100%);
    padding: 40px 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #333;
    font-style: italic;
    box-sizing: border-box;
    border-top: 1px solid #bbb;
    border-bottom: 1px solid #bbb;
}

.site-footer {
    margin-top: 40px;
    padding: 40px;
    background-color: #f5f5f5;
    border-top: 1px solid #ddd;
    text-align: center;
    font-size: 16px;
    color: #666;
    line-height: 1.8;
}

.site-footer p {
    margin: 0;
}

.footer-credit {
    font-size: 14px;
    color: #999;
    margin-top: 8px;
    font-style: italic;
}

@media (max-width: 768px) {
    body {
        padding: 40px 16px;
        padding-top: 100px;
    }

    .sidebar {
        width: 100%;
        height: 60px;
        flex-direction: row;
        border-right: none;
        border-bottom: 1px solid #ddd;
    }

    .vertical-text {
        writing-mode: horizontal-tb;
        transform: none;
        font-size: 14px;
    }

    .nav-btn { border-bottom: none; border-right: 1px solid #ddd; }
    .nav-btn:last-child { border-right: none; }

    .hero-section {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .photo-grid { grid-template-columns: repeat(3, 1fr) !important; }

    .quote-ribbon {
        padding: 30px 20px !important;
    }
}

@media (max-width: 480px) {
    .photo-grid { grid-template-columns: repeat(1, 1fr) !important; }
}