/* Styling for fancyBox demo pages */

@import url('https://fonts.googleapis.com/css?family=Montserrat:400,700|Lato:400,700');

body, html {
  background-color: #f7f7f7;
}



h2, h3 {
  font-family: 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 30px;
}

.fancybox-container * {
  box-sizing: border-box;
}

.text-center {
  text-align: center!important;
}

.p-5 {
  padding: 3rem!important;
}

.img-fluid {
  max-width: 100%;
  height: 100% !important;
  aspect-ratio:14/9 ;
}

figure {
  margin: 0;
}

img {
  vertical-align: middle;
  border-style: none;
}


/*

    Styles for animated modal
    =========================

    */

/* Start state */
.animated-modal {
  max-width: 550px;
  border-radius: 4px;
  overflow: hidden;
  background: linear-gradient(45deg, #543093 32%, #d960ae 100%);

  transform: translateY(-80px);
  transition: all 0.5s; /* Should match `data-animation-duration` parameter */
}

.animated-modal * {
  color: #fff;
}

.animated-modal h2,
.animated-modal p {
  transform: translateY(-40px);
  opacity: 0;

  transition-property: transform, opacity;
  transition-duration: 0.3s;
}

/* Final state */
.fancybox-slide--current .animated-modal,
.fancybox-slide--current .animated-modal h2,
.fancybox-slide--current .animated-modal p {
  transform: translateY(0);
  opacity: 1;

  transition-duration: 0.3s;
}

/* Reveal content with different delays */
.fancybox-slide--current .animated-modal h2 {
  transition-delay: 0.1s;
}

.fancybox-slide--current .animated-modal p {
  transition-delay: 0.4s;
}

.fancybox-slide--current .animated-modal p:first-of-type {
  transition-delay: 0.2s;
}


/*
Advanced example - Confirm dialog
*/

.fc-container .fancybox-bg {
  background: #eee;
}

.fancybox-is-open.fc-container .fancybox-bg {
  opacity: 0.95;
}

.fc-content {
  margin: 20px;
  max-width: 550px;
  padding: 50px;
  box-shadow: 10px 10px 60px -25px;
  border-radius: 4px;
}

.fc-content h3 {
  margin-top: 0;
  font-size: 1.6em;
  letter-spacing: normal;
}

.fc-content p {
  color: #666;
  line-height: 1.5;
}

.fc-content p:last-child {
  margin-bottom: 0;
}

/* Custom animation */
.fancybox-fx-material.fancybox-slide--previous,
.fancybox-fx-material.fancybox-slide--next {
  transform: translateY(-60px) scale(1.1);
  opacity: 0;
}

.fancybox-fx-material.fancybox-slide--current {
  opacity: 1;
  transform: translateY(0) scale(1);
}


/*

Advanced example - Morphing modal window

https://codepen.io/fancyapps/pen/rmwyXN

*/

.morphing-btn-wrap {
    display: inline-block;
    position: relative;
    text-align: center;
}

.morphing-btn {
    box-sizing: border-box;
    -webkit-transition: background .3s, color .2s .2s, width .2s 0s;
       -moz-transition: background .3s, color .2s .2s, width .2s 0s;
         -o-transition: background .3s, color .2s .2s, width .2s 0s;
            transition: color .3s .2s, width .2s 0s;
    white-space: nowrap;
}

.morphing-btn_circle {
    color: transparent !important;
    padding-left: 0;
    padding-right: 0;

/* Override inline style rule */
    -webkit-transition: color .2s 0s, width .3s .2s;
       -moz-transition: color .2s 0s, width .3s .2s;
         -o-transition: color .2s 0s, width .3s .2s;
            transition: color .2s 0s, width .3s .2s;
    width: 35.6px !important;
}

.morphing-btn-clone {
    -webkit-backface-visibility: hidden;
            backface-visibility: hidden;
    background: #ff5268;
    border-radius: 50%;
    position: fixed;
    -webkit-transition: all .5s cubic-bezier(.65, .05, .36, 1);
       -moz-transition: all .5s cubic-bezier(.65, .05, .36, 1);
         -o-transition: all .5s cubic-bezier(.65, .05, .36, 1);
            transition: all .5s cubic-bezier(.65, .05, .36, 1);
    z-index: 3;
}

.morphing-btn-clone_visible {
    display: block;
    -webkit-transform: scale(1) !important;
       -moz-transform: scale(1) !important;
        -ms-transform: scale(1) !important;
         -o-transform: scale(1) !important;
            transform: scale(1) !important;
}

.fancybox-morphing .fancybox-bg {
    background: #ff5268;
    opacity: 1;
}

.fancybox-morphing .fancybox-toolbar {
    right: 40px;
    top: 20px;
}

.fancybox-morphing .fancybox-button--close {
    background: rgba(0, 0, 0, .2);
    border-radius: 50%;
    color: #fff;
}

.fancybox-morphing .fancybox-button--close:hover {
    background: rgba(0, 0, 0, .25);
}

/* Styling for element used in example */

#morphing-content {
    -webkit-backface-visibility: hidden;
            backface-visibility: hidden;
    background: transparent;
    line-height: 2;
    margin: 0;
    padding: 6em 10vw;
    position: relative;
    z-index: 3;
}

#morphing-content * {
    color: #fff;
}