/*! Styles pour le pattern Texte avec Image à Gauche */

.is-text-image-left-figure,
.is-text-image-left-text {
  width: 50%;
}

.image-square {
	aspect-ratio: 1/1;
	height: 100%;
}

.image-square img {
    object-fit: cover;
	height: 100% !important;
}

/* Styles responsives */

/* Tablettes (max-width: 1024px) */
@media (max-width: 1024px) {
  .is-text-image-left-figure,
  .is-text-image-left-text {
    width: 50%;
  }
  
  .is-text-image-left-figure img {
    max-width: 90%;
    height: auto;
  }
}

/* Tablettes portrait (max-width: 768px) */
@media (max-width: 768px) {
  .is-text-image-left-figure {
    align-self: flex-end !important;
    width: 92.5% !important;
  }

  .is-text-image-left-text {
    width: 100% !important;
  }
  
  .wp-block-columns.are-vertically-aligned-center {
    flex-direction: column;
  }
  
  .is-text-image-left-text {
    order: 2;
  }
  
  .is-text-image-left-figure {
    order: 1;
    margin-bottom: var(--wp--custom--spacer-l-fluid);
  }
  
  .is-text-image-left-figure figure {
    margin: 0 auto;
  }
}

/* Mobiles (max-width: 480px) */
@media (max-width: 480px) {
  .is-text-image-left-figure img {
    max-width: 100%;
  }
  
  .is-text-image-left-figure {
    margin-bottom: var(--wp--custom--spacer-m-fluid);
  }
}
