.mfp-with-zoom .mfp-container,
.mfp-with-zoom.mfp-bg {
  opacity: 0;
  -webkit-backface-visibility: hidden;
  /* ideally, transition speed should match zoom duration */
  -webkit-transition: all 0.3s ease-out;
  -moz-transition: all 0.3s ease-out;
  -o-transition: all 0.3s ease-out;
  transition: all 0.3s ease-out;
}

.mfp-with-zoom.mfp-ready .mfp-container {
    opacity: 1;

}
.mfp-with-zoom.mfp-ready.mfp-bg {
    opacity: 0.8;

}

.mfp-with-zoom.mfp-removing .mfp-container,
.mfp-with-zoom.mfp-removing.mfp-bg {
    opacity: 0;

    }


/**************************/

@import "compass/css3";

html,body {-webkit-backface-visibility:hidden;}

/* text-based popup styling */
.white-popup {
  position: relative;
  background: #FFF;
  padding: 25px;
  width:auto;
  max-width: 500px;
  margin: 0 auto;
}

/*
====== Zoom effect ======
*/
.mfp-zoom-in {

  /* start state */
  .mfp-with-anim {
    opacity: 0;
    transition: all 0.2s ease-in-out;
    transform: scale(0.8);
  }

  &.mfp-bg {
    opacity: 0;
	  transition: all 0.3s ease-out;
  }

  /* animate in */
  &.mfp-ready {
    .mfp-with-anim {
      opacity: 1;
      transform: scale(1);
    }
    &.mfp-bg {
      opacity: 0.8;
    }
  }

  /* animate out */
  &.mfp-removing {

    .mfp-with-anim {
      transform: scale(0.8);
      opacity: 0;
    }
    &.mfp-bg {
      opacity: 0;
    }

  }

}

/* réglages perso */
/* popup image contact */
.mfp-with-zoom {
    background: rgba(0,0,0,.7);
    cursor: pointer;
    padding: 0; margin: 0;
}
.mfp-with-zoom .mfp-figure { background: #333; }

.mfp-with-zoom .mfp-close {
    cursor: pointer !important;
    width: auto;
    color: #fff;
    position: absolute;
    top: 13px;
    right: 10px;
}

/* popup realisations */
.white-popup {
    color: #fff;
    background: #333;
    padding: 20px;
}
.white-popup img {
    float: left;
    clear: both;
    width: 80px;
    height: 80px;
    margin: 0 1em .5em 0;
    transition: .5s;
}
.white-popup h3 {
    margin: 0;
    padding: 0 0 .4em 0;

}
.white-popup a {
    position: absolute;
    bottom: 10px;
    right: 10px;
    padding: 5px 8px;
    border-radius: 3px;
    background: #fff;
    text-align: right;
    color: #cc0000;
    font-weight: bold;
    transition: .3s

}
.white-popup a:hover{
    transform-origin: 50% 50%;
    transform: scale(1.15);
    border-bottom-width: 0;

}
.white-popup span { line-height: 1.3em; }
.white-popup em {
    font-size: .9em;
    font-family: "Verdana";
}

#inline-popups {
    margin: 0 auto;
    padding: 0;
    text-align: center;
}
#inline-popups ul {
    margin: 0 auto;
    padding: .3em;

}

