/* Styles pour la page galerie de mes projets graphiques */

h1 {
    font-size: 10dvw;
}

h2 {
    margin: 0;
    padding: 0;
    font-size: 2.5rem;
    line-height: 2.5rem;
    color: var(--main-accent-color);
}

a {
    color: white;
    text-decoration: none;
}

img, video {
    height: 100%;
    transition: height 1s ease;
    object-fit: cover;
}

.graphicgalery-landing {
    display: block;
    height: 100px;
}

.graphicgalery {
    width: 100dvw;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.project {
    width: 100dvw;
    display: flex;
    padding: 2rem 10dvw;
    gap: 5dvw;
    border-top: 1px solid var(--main-accent-color);
    align-items: center;
    background: radial-gradient(circle at left, var(--main-accent-color-alpha) 0%, transparent 75%);
}

.description {
    width: 40dvw;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.description p {
    text-align: justify;
}

.project:nth-child(even) {
    flex-direction: row-reverse;
    background: radial-gradient(circle at right , var(--main-accent-color-alpha) 0%, transparent 75%);
}

.image-container {
    display: flex;
    width: 40dvw;
    aspect-ratio: 1/1;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 1rem;
}

.image-container:hover img {
    height: 125%;
    transition: height 2s ease;
}

/* Animation de chargement */

.project:nth-child(even) .description {
    transform: translateX(-125%);
    animation: projectgaleryonloadminus 2s ease forwards;
}

.project:nth-child(odd) .description {
    transform: translateX(125%);
    animation: projectgaleryonloadplus 2s ease forwards;
}

.project:nth-child(even) .image-container {
    transform: translateX(125%);
    animation: projectgaleryonloadplus 2s ease forwards;
}

.project:nth-child(odd) .image-container {
    transform: translateX(-125%);
    animation: projectgaleryonloadminus 2s ease forwards;
}

@keyframes projectgaleryonloadminus {
    0% {
        opacity: 0;
        transform: translateX(-125%);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes projectgaleryonloadplus {
    0% {
        opacity: 0;
        transform: translateX(125%);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Fin de l'animation de chargement */
/* fin */

@media (max-width: 425px) {
    .project {
        flex-direction: column;
    }

    .project:nth-child(even) {
        flex-direction: column;
    }

    .image-container {
        width: 100%;
    }

    .description {
        width: 100%;
    }
}