/*!
Theme Name: Ohio-Child
Theme URI: http://ohio.colabr.io/
Author: Colabrio
Author URI: http://colabr.io/
Description: Ohio is a WordPress theme bundled with premium plugins to build a modern and functional website.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Template: ohio
Text Domain: ohio-child
Tags: ajax, customizer, ecommerce, portfolio, minimal, page builder, responsive, multipurpose, shop, store, woocommerce, wpml

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal http://necolas.github.com/normalize.css/
*/


.project-preview {
    position: relative;
    width: 78%;
    /* Largeur du bloc, ajustable */
    height: 800px;
    /* Hauteur du bloc, ajustable */
    overflow: hidden;
    border: 2px solid #e0e0e0;
    /* Bordure subtile comme Americ */
    border-radius: 8px;
    /* Coins arrondis pour un look moderne */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    /* Ombre légère */
    margin: auto;
    background: #fff;
    /* Fond blanc pour un effet net */
}

.preview-image {
    width: 100%;
    height: auto;
    /* L'image garde ses proportions */
    position: absolute;
    top: 0;
    left: 0;
}

/* Réinitialisation rapide au mouseleave */
.project-preview:not(:hover) .preview-image {
    transition: top 7s ease-out;
    top: 0;
}

/*Preview Acsun*/
.acsun .project-preview:hover .preview-image {
    top: calc(800px - 3305px);
    /* Défile jusqu'à la fin de l'image */
}

.acsun .preview-image {
    transition: top 12s linear;
    /* Défilement fluide sur 8 secondes */
}

/*Preview SPA29*/
.spa29 .project-preview:hover .preview-image {
    top: calc(800px - 6305px);
    /* Défile jusqu'à la fin de l'image */
}

.spa29 .preview-image {
    transition: top 17s linear;
    /* Défilement fluide sur 8 secondes */
}
/*Preview idgo*/
.idgo .project-preview:hover .preview-image {
    top: calc(800px - 1655px);
    /* Défile jusqu'à la fin de l'image */
}

.idgo .preview-image {
    transition: top 4s linear;
    /* Défilement fluide sur 8 secondes */
}
/*Preview aftep*/
.aftep .project-preview:hover .preview-image {
    top: calc(800px - 1455px);
    /* Défile jusqu'à la fin de l'image */
}

.aftep .preview-image {
    transition: top 4s linear;
    /* Défilement fluide sur 8 secondes */
}
/*Preview comete*/
.comete .project-preview:hover .preview-image {
    top: calc(800px - 1800px);
    /* Défile jusqu'à la fin de l'image */
}

.comete .preview-image {
    transition: top 5s linear;
    /* Défilement fluide sur 8 secondes */
}
@media only screen and (max-width: 767px) {
    .project-preview {
       width: 100%;
     }
    .spa29 .project-preview:hover .preview-image {
    top: calc(800px - 16305px);
    /* Défile jusqu'à la fin de l'image */
}
     .spa29 .preview-image {
    transition: top 50s linear;
    /* Défilement fluide sur 8 secondes */
}
	    .acsun .project-preview:hover .preview-image {
    top: calc(800px - 8305px);
    /* Défile jusqu'à la fin de l'image */
}
    .acsun .preview-image {
    transition: top 20s linear;
    /* Défilement fluide sur 8 secondes */
}
	     .idgo .project-preview:hover .preview-image {
    top: calc(800px - 3305px);
    /* Défile jusqu'à la fin de l'image */
}
    .idgo .preview-image {
    transition: top 12s linear;
    /* Défilement fluide sur 8 secondes */
}
	.aftep .project-preview:hover .preview-image {
    top: calc(800px - 3305px);
    /* Défile jusqu'à la fin de l'image */
}
    .aftep .preview-image {
    transition: top 12s linear;
    /* Défilement fluide sur 8 secondes */
}
	.comete .project-preview:hover .preview-image {
    top: calc(800px - 3800px);
    /* Défile jusqu'à la fin de l'image */
}

.comete .preview-image {
    transition: top 12s linear;
    /* Défilement fluide sur 8 secondes */
}
	.single-ohio_portfolio .page-headline  {
        align-items: end;
    }
    .single-ohio_portfolio .page-headline h1 {
        font-size: 40px;
        margin-bottom: 20px;
    }
	h2.textwidget,
	.textwidget h3 {
		font-size: 30px;
	}
}