/*
Theme Name: Enfold Child
Description: A <a href='http://codex.wordpress.org/Child_Themes'>Child Theme</a> for the Enfold Wordpress Theme. If you plan to do a lot of file modifications we recommend to use this Theme instead of the original Theme. Updating will be much easier then.
Version: 1.0
Author: Kriesi
Author URI: http://www.kriesi.at
Template: enfold
*/

/*Add your own styles here:*/
/* =========================
   TRIPTYQUE MEDIA
========================= */

.triptyque {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
top:-46px;
  height: 80vh;


  overflow: hidden;
  isolation: isolate;
  background: #000;

  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
}

.trip-col {
  position: relative;
  overflow: hidden;
  min-width: 0;
  height: 100%;
}

.trip-item {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  will-change: transform, opacity;
}

.trip-media {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  background: #000;
}

.trip-item.is-active {
  transform: translateY(0);
  opacity: 1;
  z-index: 1;
}
.trip-item.is-entering {
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 2;
}

.trip-item.from-bottom {
  transform: translateY(100%);
}

.trip-item.from-top {
  transform: translateY(-100%);
}

.trip-item.to-center {
  transform: translateY(0);
}

/* mobile */
@media (max-width: 767px) {
  .triptyque {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
    aspect-ratio: 4 / 5;
	  top: -140px;
  }

  .triptyque .trip-col {
    height: 100%;
    min-height: 0;
  }

  .triptyque .trip-col:nth-child(3) {
    display: none;
  }
	 /* remonte juste le bloc texte */
  #top .avia_code_block_0 + .flex_column.av_one_full {
    margin-top: -100px !important;
    padding-top: 0 !important;
  }
	
}