#project-details {
    text-align: center;
    margin: 2rem auto;
    max-width: 800px;
}

#project-details {
    font-size: 20px;
    font-weight: 600;
    color: rgb(163, 163, 163); 
    text-transform: uppercase;
    margin-bottom: 150px;
}

#project-details h2 {
    font-size: 20px;
    margin-bottom: 30px;
}

#project-details p {
    margin-top: 30px;
    margin-bottom: 100px;
}

.project-images img {
    max-width: 100%;
    margin: 1rem 0;
    max-height: 100vh;
}

.project-text {
    font-size: 5.208vw;
    font-family: "Tenor Sans";
    font-weight: 400;
    letter-spacing: 0px;
    line-height: 1.2;
    color: rgb(219, 219, 219);
}

@layer demo {
    @keyframes scale-a-lil {
        from {
            scale: 0.8;
        }
        to {
            scale: 1.2; /* Ajuste para atingir escala 1.5 */
        }
    }
    
    @media (prefers-reduced-motion: no-preference) {
      figure {
        animation: scale-a-lil linear both;
        animation-timeline: view();
        animation-range: 1vh 100vh;
      }
    }
  }
  
  @layer demo.support {  
    /* Define largura máxima para as imagens */
    img {
        max-inline-size: 100%;
    }
    
    /* Configurações de layout do grid */
    .project-images {
        display: grid;
        gap: 20vmin;
        max-inline-size: 1024px;
        width: 100%;
        text-align-last: center;
        margin-bottom: 100px;
    }
    
    /* Define o layout da figure */
    figure {
        display: flex;
        flex-direction: column;
        align-items: center;
        overflow: visible;
        margin: 0;
    }

    /* Configura o figcaption para não ser escondido pela imagem */
    figcaption {
        text-transform: uppercase;
        margin-top: 0.5rem;
        z-index: 1;
        text-align-last: left;
    }

    /* Ajuste para a animação da imagem */
    figure img {
        transform-origin: center;
        transition: transform 0.3s;
        max-inline-size: 100%;
    }
}

@media (max-width: 600px) {
    .project-images {
        width: 80%;
    }

    #project-details {
        font-size: 16px;
    }

    #project-details h2 {
        font-size: 16px;
    }
}