/* ====--- custom overwrite ---=== */
/* ===================================== */

.mfp-iframe-holder .mfp-content,
.mfp-inline-holder .mfp-content {
    position: relative;
    top: 40px;
}
.mfp-close {
    color: #ffffff !important;
    background: transparent !important;
    padding: 0px 0px 0px 0px !important;
    border: 0 !important;
    right: 0 !important;
    font-weight: 400 !important;
}
.mfp-close:hover {
    background: transparent;
    border: 0;
}


/* ====--- theme white-popup ---=== */
/* ===================================== */

.white-popup {
    background: #ffffff;
    padding: 20px;
    max-width: 620px;
    margin: 0px auto 20px auto;
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.7);
}

.white-popup .mfp-close {
    top: -40px;
}


/* ====--- theme grey-fullsize ---=== */
/* ===================================== */

.mfp-grey-fullsize {
    background: #F0F0F0;
}

.mfp-grey-fullsize .mfp-iframe-holder {
    padding: 0px 0px 0px 0px !important;
}

.mfp-grey-fullsize .mfp-iframe-holder .mfp-close {
    display: none;
}

.mfp-grey-fullsize .mfp-iframe-scaler iframe {
    padding: 0px 0px 0px 0px !important;
    background: #F0F0F0 !important;
}


/*
====== Zoom effect ======
*/

.mfp-zoom-in {
    /* start state */
    /* animate in */
    /* animate out */
}

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

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

.mfp-zoom-in.mfp-ready .mfp-with-anim {
    opacity: 1;
    transform: scale(1);
}

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

.mfp-zoom-in.mfp-removing .mfp-with-anim {
    transform: scale(0.8);
    opacity: 0;
}

.mfp-zoom-in.mfp-removing.mfp-bg {
    opacity: 0;
}



/*
====== Fullheight ======
*/

.mfp-fullheight .mfp-container:before {
    display: none;
}
.mfp-fullheight .mfp-iframe-holder .mfp-content {
    max-width: 1024px;
    top: 0;
    height: 100%;
}
.mfp-fullheight .mfp-iframe-scaler {
    height: 100%;
    padding-top: 0;
}



/*
====== Fullscreen ======
*/

.mfp-fullscreen {
    /* start state */
    /* animate in */
    /* animate out */
}

.mfp-fullscreen.mfp-bg {
    background: #ffffff;
}

@keyframes icon-spin {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(359deg);
    transform: rotate(359deg);
  }
}

.mfp-fullscreen.mfp-bg::before {
    content: '\f013';
    font-family: FontAwesome;
    width: 80px;
    height: 80px;
    line-height: 80px;
    font-size: 35px;
    text-align: center;
    color: rgba(0,0,0,0.7);
    display: block;
    animation: icon-spin 2s infinite linear;
    position: fixed;
    top: 50%;
    left: 50%;
    margin-top: -40px;
    margin-left: -40px;
}


.mfp-fullscreen.mfp-wrap {
    opacity: 0;
    transition: all 0.5s ease-in-out;
}


.mfp-fullscreen .mfp-iframe-holder {
    padding: 0;
    overflow: hidden;
}

.mfp-fullscreen .mfp-iframe-holder .mfp-content {
    top: 0;
    max-width: none;
    height: 100%;
}

.mfp-fullscreen .mfp-iframe-holder .mfp-content iframe {
  background-color: transparent;
}

.mfp-fullscreen .mfp-iframe-scaler {
  height: 100%;
  padding-top: 100%;
}


.mfp-fullscreen .mfp-iframe-holder .mfp-close {
  padding: 0;
  top: 70px;
  right: 10px !important;
  color: #666666 !important;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  background-color: #ffffff !important;
  border-radius: 2px;
  box-shadow: 0px 1px 4px -1px rgba(0,0,0,0.3);
  opacity: 1 !important;
}
.mfp-fullscreen .mfp-iframe-holder .mfp-close:hover {
  color: #666666 !important;
  background-color: rgba(255,255,255,0.5) !important;
}


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

.mfp-fullscreen.mfp-ready {
    opacity: 1;
    transform: scale(1);
}

.mfp-fullscreen.mfp-ready.mfp-bg {
    opacity: 0.8;
}

.mfp-fullscreen.mfp-removing {
    transform: scale(0.8);
    opacity: 0;
}

.mfp-fullscreen.mfp-removing.mfp-bg {
    opacity: 0;
}




/*
====== iFrame content height - needs Javascript inside frame-url to adapt to content height ======
*/

.mfp-iframe-content-height .mfp-iframe-scaler {
    width: 100%;
    height: auto;
    padding-top: 0;
}

.mfp-iframe-content-height .mfp-iframe-holder .mfp-content {
    top: 0;
}

.mfp-iframe-content-height iframe {
    transition: all 0.6s;
}

.mfp-iframe-content-height.mfp-removing iframe {
    opacity: 0;
}

._mfp-iframe-content-height.mfp-with-anim iframe {
    opacity: 1;
}