/* ==========================================================================
   PROJECT DETAILS (GALERIA VERTICAL & SIDEBAR FIXA)
   ========================================================================== */

#project-detail-section {
    padding-top: 40px;
    padding-bottom: 80px;
}

.detail-header {
    max-width: 1000px;
    margin: 0 auto 64px;
    padding: 0 24px;
}

.detail-header h1 {
    font-size: 48px;
    font-weight: 500;
    letter-spacing: -0.5px;
    margin-top: 10px;
    margin-bottom: 8px;
    color: var(--color-primary);
}

/* --- Layout de Grid Assimetrico --- */
.detail-grid-container {
    display: grid;
    grid-template-columns: 2fr 1fr; 
    gap: 15px;
    max-width: var(--max-width-container);
    margin: 0 auto;
    padding: 0 150px;
}

/* --- Galeria Vertical --- */
.project-gallery {
    min-height: 100vh;
    background: var(--color-accent-lighter);
    border-radius: 4px;
}

.project-gallery-image-block {
    width: 100%;
    min-height: calc(100vh - 88px);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.project-gallery-image-block .image-content {
    width: 100%;
    min-height: calc(100vh - 88px);
    background-size: cover;
    background-position: center center;
    transition: opacity 0.3s ease;
}

/* --- Sidebar de Informações (Sticky no PC) --- */
.project-info-panel {
    background: var(--color-background);
    padding: 30px;
    border: 1px solid var(--color-accent-lighter);
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: calc(var(--spacing-header-height) + 40px); 
    max-height: calc(100vh - var(--spacing-header-height) - 80px); 
    overflow-y: auto;
}

.project-info-panel h4 {
    font-size: 20px;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 8px;
    color: var(--color-primary);
    border-bottom: 1px solid var(--color-accent-lighter);
    padding-bottom: 5px;
}

/* ==========================================================================
   RESPONSIVO: DETALHES DO PROJETO (Mobile)
   ========================================================================== */

@media (max-width: 768px) {
    #project-detail-section {
        padding: 80px 1px;
    }

    .detail-header h1 {
        font-size: 36px;
    }

    .detail-grid-container {
        grid-template-columns: 1fr; 
        padding: 0 1px;
        gap: 20px;
    }

    .project-gallery-image-block {
        min-height: 50vh;
    }

    .project-info-panel {
        position: static; /* Remove o sticky no mobile */
        max-height: none;
        padding: 32px 24px;
    }

    .project-info-panel .back-button,
    .project-info-panel .project-online-button {
        width: 100%;
    }
}